PDA

View Full Version : Require users to be registered to view images?


skidpics
March 20th, 2008, 11:06 AM
My Require users to be registered to view images? functions appears not to be working anymore. I have it set to yes, but guests still can view the images..

Where do I need to look to see what the problem is..

Chuck S
March 20th, 2008, 11:50 AM
Please provide a link as this should work fine if set.

skidpics
March 20th, 2008, 11:53 AM
http://skidpics.com

login details as pm'd before

Chuck S
March 20th, 2008, 12:01 PM
sorry I do not keep logins etc you would need to resend

skidpics
March 20th, 2008, 12:40 PM
I pm'd it to you.. I can't recall any changed I made that would effect this issue.

Thanks for checking it out..

Chuck S
March 20th, 2008, 01:14 PM
It is a conflict with a file modification you did ;)


if ( ($User['username'] == "" || $User['username'] == $Globals['pp_lang']['unreg']) && $Globals['reqregister'] == "yes" )



remember your modification you did in your integration file change guests to this language string as noted.


$User['username'] = $Globals['pp_lang']['unreg'];


NOT GUESTS

skidpics
March 20th, 2008, 01:27 PM
We changed it to if ($User['username'] == "" ) $User['username'] = "Guest";


Unless there is a fix to this problem, I will just reupload the default file.

thanks for helping me with this!

Chuck S
March 20th, 2008, 01:33 PM
I just posted an alterate suggestion before ;) I guess you did not get what I was saying.



if ($User['username'] == "" ) $User['username'] = $Globals['pp_lang']['unreg'];

skidpics
March 20th, 2008, 04:45 PM
Thanks! I was reading between the lines. works like a charm! Have a great weekend and Happy Easter!

Chuck S
March 20th, 2008, 05:22 PM
You too,