PhotoPost Community

PhotoPost Community (http://www.photopost.com/forum/)
-   General Discussion (http://www.photopost.com/forum/general-discussion/)
-   -   Login / Registration for guests to view pictures (http://www.photopost.com/forum/general-discussion/136215-login-registration-guests-view-pictures.html)

bennac40 April 13th, 2008 11:30 AM

Login / Registration for guests to view pictures
 
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 12: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 07: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 08: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 01:46 PM

try this and see if it helps

http://www.photopost.com/forum/showp...14&postcount=2

bennac40 April 14th, 2008 04: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 07: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 07:42 PM

It worked... my mistake was that I was eliminating
$userprofile[7] = $csig; // Signature
}
from the code.

bennac40 April 14th, 2008 07: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 07:54 PM

Sure edit your language file english.php and change that string ;)

bennac40 April 14th, 2008 08:06 PM

cool " Man Your the best " I started to love PhotoPost :p
Its gonna rock my website

Chuck S April 14th, 2008 08:08 PM

Glad to help have a good evening.


All times are GMT -5. The time now is 08:37 AM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97