PDA

View Full Version : Login / Registration for guests to view pictures


bennac40
April 13th, 2008, 12:30 PM
I would like to have a login/registration page show up when a guest or a non logged in member visits the gallery intead of the message that says "You do not have permission to view this category"

The registration should be recorded on vBulletin Database.

Thank you.

Chuck S
April 13th, 2008, 01:31 PM
How are things setup?

If you allow in your category permissions for guests to view the categories but in registration options mark then guests can not view images then they should get a register message.

bennac40
April 13th, 2008, 08:31 PM
Ok that worked fine :)

How about making the avatar appear under the Uploaders name on the Photo Details Section, Right under the Medium photo?

Chuck S
April 13th, 2008, 09:31 PM
Do you have a link?

If a user has an avatar it should appear under the user info depending on your forum integration.

Chuck S
April 14th, 2008, 02:46 PM
try this and see if it helps

http://www.photopost.com/forum/showpost.php?p=1196114&postcount=2

bennac40
April 14th, 2008, 05:20 PM
Didnt work when I edited the code. The whole forum became blank:

Here is the original code that I found in vb3.php

if ( $hasav )
{
if ( isset($avpath) )
{
$userprofile[6] = "<img src=\"{$Globals['vbulletin']}/$avpath\" border=\"0\">"; // Avatar
}
elseif ( $vboptions['usefileavatar'] && $hasav == 1 )
{
$userprofile[6] = "<img src=\"{$Globals['vbulletin']}/$vboptions[avatarurl]/avatar{$cuserid}_{$avrev}.gif\" border=\"0\">"; // Avatar
}
elseif ( $hasav == 1 )
{
$userprofile[6] = "<img src=\"{$Globals['vbulletin']}/image.php?u=$cuserid\" border=\"0\">"; // Avatar
}
else
{
$userprofile[6]= null; // Avatar
}
}

$userprofile[7] = $csig; // Signature
}

Chuck S
April 14th, 2008, 08:08 PM
I dont think you edited things correctly if your page became blank that means you misedited. If you make the avatar block as posted in that post it should help

bennac40
April 14th, 2008, 08:42 PM
It worked... my mistake was that I was eliminating
$userprofile[7] = $csig; // Signature
}
from the code.

bennac40
April 14th, 2008, 08:43 PM
Also is it possible to edit the text that shows up when a guest tries to see the picture and it promts him to register.

Chuck S
April 14th, 2008, 08:54 PM
Sure edit your language file english.php and change that string ;)

bennac40
April 14th, 2008, 09:06 PM
cool " Man Your the best " I started to love PhotoPost :p
Its gonna rock my website

Chuck S
April 14th, 2008, 09:08 PM
Glad to help have a good evening.