0 Members and 1 Guest are viewing this topic.

Edit my Profile Preferences
« on: December 08, 2016, 06:34:24 PM »
Hello again :-)

Is there a option to to disable the forced "Edit my Profile Preferences"  on login for new users. I would prefer that new users can start the site ASAP instead to get forced to fill out 5 Pages of Questions.

Thank you
David

*

Pharg

  • *****
  • 3,139
    • OsDateFourm
  • osDate Version: osDateEvo v1.3
Re: Edit my Profile Preferences
« Reply #1 on: December 08, 2016, 08:20:00 PM »
Hi Dave,

Yes there is, this was only just put in the osDateEvo version because you will find loads of new members
just wont and don't fill in there profiles, which makes a dating site very un-interesting for the other members, if they
have nothing to read about any potential date they just wont come back.

To disable it, go to the index.php and find line 368 and remove this code:
Code: [Select]
/* Begin profile completion mod */

     
        $qCount = 'select count(distinct questionid) as cnt from ! where userid=? and answer>0';
      $qsAnswered = $osDB->getOne($qCount,array(USER_PREFERENCE_TABLE, $_SESSION['UserId']));

     if ($qsAnswered < 15) {
       
header('location: editquestions.php?sectionid=1');
        exit;
     }

       /*end profile completion mod*/

Save and that's all there is to it.
Regards,
Pharg ( Phill )

Don't Personal Message me unless it's about a sensitive matter!!

REMEMBER TO ALWAYS BACKUP BEFORE MAKING ANY CHANGES!!

osDateEvo v1.3 | PHP: 5.3.42 & PHP: 7.2 | MySQL: 5.5.35

Re: Edit my Profile Preferences
« Reply #2 on: January 02, 2017, 12:02:59 PM »
My users can not complete their profile for no matter how much they fill as it keeps on coming up with Edit My Profile Preferences -

editquestions.php?sectionid=1

Re: Edit my Profile Preferences
« Reply #3 on: January 02, 2017, 12:21:30 PM »
Nvm i Changed
 if ($qsAnswered < 15) {

to

 if ($qsAnswered < 7) {

now it work fine

*

Pharg

  • *****
  • 3,139
    • OsDateFourm
  • osDate Version: osDateEvo v1.3
Re: Edit my Profile Preferences
« Reply #4 on: January 02, 2017, 09:19:59 PM »
Hi landste,

You can set it to what ever number questions you want, it's only there to get
members to fill in their profiles.
Regards,
Pharg ( Phill )

Don't Personal Message me unless it's about a sensitive matter!!

REMEMBER TO ALWAYS BACKUP BEFORE MAKING ANY CHANGES!!

osDateEvo v1.3 | PHP: 5.3.42 & PHP: 7.2 | MySQL: 5.5.35

Re: Edit my Profile Preferences
« Reply #5 on: March 25, 2017, 06:30:05 PM »
Hi Phil,

i removed the part ad so far is it not mandatory anymore.. But it pops still up for new users, even when they answered the questions.
Seems there is somewhere a count value that needs to be lowered.. Is this done in the code or Admin Back-end?

*

Pharg

  • *****
  • 3,139
    • OsDateFourm
  • osDate Version: osDateEvo v1.3
Re: Edit my Profile Preferences
« Reply #6 on: March 25, 2017, 08:53:34 PM »
Hi scorpiocub,

It's more than likely the other one that's in the index.php as there is two of them ;)

In the index.php about line 374 you will find this:
Code: [Select]
    if ($qsAnswered < 15) {
       
header('location: editquestions.php?sectionid=1');
        exit;
     }
Regards,
Pharg ( Phill )

Don't Personal Message me unless it's about a sensitive matter!!

REMEMBER TO ALWAYS BACKUP BEFORE MAKING ANY CHANGES!!

osDateEvo v1.3 | PHP: 5.3.42 & PHP: 7.2 | MySQL: 5.5.35

Re: Edit my Profile Preferences
« Reply #7 on: March 25, 2017, 11:34:50 PM »
Hi Phil,

actually it's not ;-)

i checked the whole index.php and there is no trace of ...

Dave

*

Pharg

  • *****
  • 3,139
    • OsDateFourm
  • osDate Version: osDateEvo v1.3
Re: Edit my Profile Preferences
« Reply #8 on: March 26, 2017, 06:52:16 AM »
Hi Dave,

Actually it is, but if I recall, you removed yours from the index.php but it's normally there  :P
It's in the latest version in the index.php and in the midlogin.php

In the index.php line 368
Code: [Select]
/* Begin profile completion mod */

     
        $qCount = 'select count(distinct questionid) as cnt from ! where userid=? and answer>0';
      $qsAnswered = $osDB->getOne($qCount,array(USER_PREFERENCE_TABLE, $_SESSION['UserId']));

     if ($qsAnswered < 15) {
       
header('location: editquestions.php?sectionid=1');
        exit;
     }

       /*end profile completion mod*/

And the midlogin.php line 208
Code: [Select]
// header('location: index.php');
if ($qsAnswered < 15) {
header( 'location: editquestions.php?sectionid=1');
exit();

}
unset($row);
header('location: index.php');
exit();
       
       /*end profile completion mod*/
« Last Edit: March 26, 2017, 06:54:46 AM by Pharg »
Regards,
Pharg ( Phill )

Don't Personal Message me unless it's about a sensitive matter!!

REMEMBER TO ALWAYS BACKUP BEFORE MAKING ANY CHANGES!!

osDateEvo v1.3 | PHP: 5.3.42 & PHP: 7.2 | MySQL: 5.5.35

Re: Edit my Profile Preferences
« Reply #9 on: March 26, 2017, 11:57:19 AM »
Hi Phil,

cool, this php file location was new to me :-)

Thanx for the hint

Dave