osDate Forum - osDate Dating Script

osDateEvo => osDateEvo Bugs => Topic started by: alexchiu on May 05, 2017, 06:48:48 PM

Title: Visitor cannot view profile even if allowed to
Post by: alexchiu 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.
Title: Re: Visitor cannot view profile even if allowed to
Post by: Pharg 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.
Title: Re: Visitor cannot view profile even if allowed to
Post by: alexchiu on May 06, 2017, 01:05:48 AM
thanks for telling. 
Title: Re: Visitor cannot view profile even if allowed to
Post by: alexchiu on May 06, 2017, 09:51:30 AM
OK I deleted that line and it still won't let me enter without login.
Title: Re: Visitor cannot view profile even if allowed to
Post by: alexchiu 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.
Title: Re: Visitor cannot view profile even if allowed to
Post by: Pharg on May 06, 2017, 10:45:56 PM
Hi alexchiu,

I have FreshDate and have no issues with it.
Title: Re: Visitor cannot view profile even if allowed to
Post by: KHDev 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..
Title: Re: Visitor cannot view profile even if allowed to
Post by: Pharg 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.
Title: Re: Visitor cannot view profile even if allowed to
Post by: heebeha 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.
Title: Re: Visitor cannot view profile even if allowed to
Post by: alexchiu 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.
Title: Re: Visitor cannot view profile even if allowed to
Post by: heebeha 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. 
Title: Re: Visitor cannot view profile even if allowed to
Post by: alexchiu on May 08, 2017, 05:46:24 PM
Thats not true.  there is.  It was somewere at the bottom.  Trust me.  Its there.
Title: Re: Visitor cannot view profile even if allowed to
Post by: alexchiu 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.
Title: Re: Visitor cannot view profile even if allowed to
Post by: heebeha 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
Title: Re: Visitor cannot view profile even if allowed to
Post by: Pharg 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.
Title: Re: Visitor cannot view profile even if allowed to
Post by: KHDev on May 08, 2017, 10:23:10 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.

I have applied the changes in this forum post (to allow visitors to view profiles) and i can see photos fine on profiles (using FreshDate) so not sure why you're experiencing that issue.. 
Title: Re: Visitor cannot view profile even if allowed to
Post by: alexchiu on May 09, 2017, 10:04:42 PM
I dont know why.  anyways my profile pages are default templates.  I also use default searchsimpsh.ptl because I like their bigger size small profile windows.  The rest is all freshdate.  Freshdate is still the best. 
Title: Re: Visitor cannot view profile even if allowed to
Post by: Pharg on May 09, 2017, 10:16:48 PM
Hi alexchiu,

Did you download both attachments in this post and apply them both?

In the Membership Management, is the View profile Photos still ticked?
Title: Re: Visitor cannot view profile even if allowed to
Post by: alexchiu on May 10, 2017, 06:41:13 PM
I downloaded both scripts thank you.  Maybe file is currupt or something.  But Im using default profile page it works fine.
Title: Re: Visitor cannot view profile even if allowed to
Post by: Pharg on May 10, 2017, 08:59:35 PM
Hi alexchiu,

If it's working in the default, it will also work with the FreshDate.

Make sure you clear the temp/template_c/ folders to make sure no old cache files are still in there from the FreshDate.
Title: Re: Visitor cannot view profile even if allowed to
Post by: alexchiu on May 10, 2017, 09:28:05 PM
Oh yeah.  The cache.  OK I will try it later.
Title: Re: Visitor cannot view profile even if allowed to
Post by: nmccainjr on October 16, 2017, 09:50:50 PM
Hello,

I made the changes, but I'm getting this on the top of the screen

Inputarray has 2 params, does not match query: 'select count(*) from osdate_buddy_ban_list where userid = ? and ref_userid = ? and act = ?'
Input array has 2 params, does not match query: 'select count(*) from osdate_buddy_ban_list where userid = ? and ref_userid = ? and act = ?'

Thanks
Norman
Title: Re: Visitor cannot view profile even if allowed to
Post by: Pharg on October 16, 2017, 10:30:07 PM
Hi nmccainjr,

This is happening because it trying to get code from the nickpicgallery.php which doesn't match the code in the
showprofile.php

Let me know if this sorted the issue out or not?

Title: Re: Visitor cannot view profile even if allowed to
Post by: Pharg on October 17, 2017, 07:35:47 AM
Hi nmccainjr,

Sorry I gave you the wrong one, try this nickpicgallery.php

I have also updated the nickpage_userpicgallery.tpl file, please upload this into the default and the default_3_column templates

Please let me know if this sorted the issue out or not on your site?