0 Members and 1 Guest are viewing this topic.

*

alexchiu

  • *
  • 43
  • Sup nigga
  • osDate Version: osDate Evo v1.2
Visitor cannot view profile even if allowed to
« on: May 05, 2017, 06:48:48 PM »
Strange.  Visitor must registor before viewing profile but I allow them to.  Want to know what I did wrong.  If no solution I will have to change the codes on profile page.

*

Pharg

  • *****
  • 2,886
    • OsDateFourm
  • osDate Version: osDateEvo v1.2
Re: Visitor cannot view profile even if allowed to
« Reply #1 on: May 05, 2017, 10:50:45 PM »
Hi alexchiu,

In the showprofile.php either commit out or remove this line.

Also commit it out in the nickpicgallery.php
Code: [Select]
include('sessioninc.php');
That's it.
« Last Edit: August 21, 2017, 10:55:26 PM by Pharg »
Regards,
Pharg ( Phill )

REMEMBER: ALWAYS BACKUP BEFORE YOU MAKE ANY CHANGES!!

osDateEvo v1.2 | PHP: 5.3.42 & PHP: 5.6.18 | MySQL: 5.5.35

*

alexchiu

  • *
  • 43
  • Sup nigga
  • osDate Version: osDate Evo v1.2
Re: Visitor cannot view profile even if allowed to
« Reply #2 on: May 06, 2017, 01:05:48 AM »
thanks for telling. 

*

alexchiu

  • *
  • 43
  • Sup nigga
  • osDate Version: osDate Evo v1.2
Re: Visitor cannot view profile even if allowed to
« Reply #3 on: May 06, 2017, 09:51:30 AM »
OK I deleted that line and it still won't let me enter without login.

*

alexchiu

  • *
  • 43
  • Sup nigga
  • osDate Version: osDate Evo v1.2
Re: Visitor cannot view profile even if allowed to
« Reply #4 on: May 06, 2017, 07:49:40 PM »
I tried using other templates rather than freshdate and it reacts differently.  I think freshdate is affecting the script.  I have to edit the freshdate template then.

*

Pharg

  • *****
  • 2,886
    • OsDateFourm
  • osDate Version: osDateEvo v1.2
Re: Visitor cannot view profile even if allowed to
« Reply #5 on: May 06, 2017, 10:45:56 PM »
Hi alexchiu,

I have FreshDate and have no issues with it.
Regards,
Pharg ( Phill )

REMEMBER: ALWAYS BACKUP BEFORE YOU MAKE ANY CHANGES!!

osDateEvo v1.2 | PHP: 5.3.42 & PHP: 5.6.18 | MySQL: 5.5.35

*

KHDev

  • *****
  • 89
  • Releasing stuff and learning on the way!
    • KH Web Development
  • osDate Version: osDateEvo v1.2
Re: Visitor cannot view profile even if allowed to
« Reply #6 on: May 06, 2017, 11:44:33 PM »

It is most likely caused by :

Code: [Select]
include_once( 'nickpicgallery.php' ); (line 55 - showprofile.php)
which includes the sessioninc.php file also.

Committing it out in nickpicgallery.php causes 2 errors likely due to $_SESSION['UserId'] not been present for the ban/hot list checks..

*

Pharg

  • *****
  • 2,886
    • OsDateFourm
  • osDate Version: osDateEvo v1.2
Re: Visitor cannot view profile even if allowed to
« Reply #7 on: May 07, 2017, 01:05:30 AM »
Hi alexchiu,

I changed the nickpicgallery.php and the showprofile.php so you won't get any errors and you will be able to view the profiles.
« Last Edit: August 21, 2017, 11:03:59 PM by Pharg »
Regards,
Pharg ( Phill )

REMEMBER: ALWAYS BACKUP BEFORE YOU MAKE ANY CHANGES!!

osDateEvo v1.2 | PHP: 5.3.42 & PHP: 5.6.18 | MySQL: 5.5.35

*

heebeha

  • ***
  • 102
  • Me
Re: Visitor cannot view profile even if allowed to
« Reply #8 on: May 07, 2017, 08:39:16 PM »
Where did you set it so visitors can view all profiles?  I cant find the setting in my admin control panel.  I am also using freshdate.


Strange.  Visitor must registor before viewing profile but I allow them to.  Want to know what I did wrong.  If no solution I will have to change the codes on profile page.

*

alexchiu

  • *
  • 43
  • Sup nigga
  • osDate Version: osDate Evo v1.2
Re: Visitor cannot view profile even if allowed to
« Reply #9 on: May 08, 2017, 04:56:53 AM »
You have to click on membership management.  There you check radio buttons on top.  And set each level accordingly.

*

heebeha

  • ***
  • 102
  • Me
Re: Visitor cannot view profile even if allowed to
« Reply #10 on: May 08, 2017, 03:51:22 PM »
There is no place in membership levels to set if visitors or any other level can access profiles without logging in. 

*

alexchiu

  • *
  • 43
  • Sup nigga
  • osDate Version: osDate Evo v1.2
Re: Visitor cannot view profile even if allowed to
« Reply #11 on: May 08, 2017, 05:46:24 PM »
Thats not true.  there is.  It was somewere at the bottom.  Trust me.  Its there.

*

alexchiu

  • *
  • 43
  • Sup nigga
  • osDate Version: osDate Evo v1.2
Re: Visitor cannot view profile even if allowed to
« Reply #12 on: May 08, 2017, 05:49:21 PM »
Fresh date still has some bug on profile page.  Now I can access profile pages without login.  But with freshdate I cannot see the photos.  Just detail info of the member.  So instead of freshdate profilepage. i am using thedefault profile page template fo now.

*

heebeha

  • ***
  • 102
  • Me
Re: Visitor cannot view profile even if allowed to
« Reply #13 on: May 08, 2017, 06:24:52 PM »
Use the files that Pharg sent you.  I used them and it works to show profiles to everyone now.   But there is no setting in the admin control panel to allow everyone to view profiles whether they are logged in or not.

but the files work

*

Pharg

  • *****
  • 2,886
    • OsDateFourm
  • osDate Version: osDateEvo v1.2
Re: Visitor cannot view profile even if allowed to
« Reply #14 on: May 08, 2017, 10:16:41 PM »
Fresh date still has some bug on profile page.  Now I can access profile pages without login.  But with freshdate I cannot see the photos.  Just detail info of the member.  So instead of freshdate profilepage. i am using thedefault profile page template fo now.

Hi alexchui,

There is no bug in the FreshDate template, you need to download the attachments above I posted and use them, it will allow the visitors to view the profiles.
Regards,
Pharg ( Phill )

REMEMBER: ALWAYS BACKUP BEFORE YOU MAKE ANY CHANGES!!

osDateEvo v1.2 | PHP: 5.3.42 & PHP: 5.6.18 | MySQL: 5.5.35