View Full Version : Nonmember redirecting for profile gallery
adolobe
12-19-2005, 01:38 AM
Hello,
Is their away to block a nonmember from viewing a members gallery full sized pictures.
For example,
When a non member views say John Does profile i want the members to see the gallery thumbnails as always but if a nonmember clicks on the thumbnail to view the fullsize image or clicks Browse More I want to direct the viewer to the login or sing up screen that says "Sorry! This area is for official members only. Please login or signup for our free membership."
Thanks
natio :: phpFox
12-19-2005, 05:56 PM
Hi, yes this can be done.
You need to open up "/inc/template/new/profile_gallery.php"
Then look for this:
Content visible to registered users only.
Right above that add this:
Content visible to registered users only.
With the protect(); function added it should now re-direct to the members login area. Give it a try and get back to me how it goes.
adolobe
12-19-2005, 06:25 PM
Thanks a million worked like a charm
hexonxonx
12-19-2005, 06:45 PM
That's a great idea since it will save on loads of bandwidth!
Is this still possible with version 1.1?
I'm unable to find the code -->
Content visible to registered users only.
In the file --> profile_gallery.php
any input? I would prefer to make the gallery private, in other words even for the preview picture in the profile....you would have to be registered, is this possible, if so how? thanks!
Purefan :: phpFox
10-30-2006, 07:22 PM
well basically you can use the protect(); in any page in the script after the include of the phpfox_loader so you can give a try by adding it after anything that looks like
require(
include(
typically those are around line 40 or so...
I understand the "protect" function! However, I'm unable to find the correct gallery file, were I could add the function.
Do you know the correct file, so that I can protect the gallery...and it is open only for members?
bizzyblogz
10-31-2006, 06:57 PM
Content visible to registered users only.
Okay Purefan.... for us dummies could you tell us in this code where to place the protect?
I...we would sure appreciate it :wink:
Content visible to registered users only.
I know that the following code (below) will bring up the gallery in the profile sections, however; I'm looking for a way that members see the gallery thumbnails as always but if a nonmember clicks on the thumbnail to view the fullsize image or clicks Browse More I want to direct the viewer to the login or sing up screen that says "Sorry! This area is for official members only. Please login or signup for our free membership."
Drew made a suggestion before, but it does not seem to work in version 1.1.
Can anyone help?
Content visible to registered users only.
vBulletin® v3.6.10, Copyright ©2000-2009, Jelsoft Enterprises Ltd.