PhotoPost Photo Gallery Sales PhotoPost Sales Toll Free Phone Number
Mon-Fri 9am-4pm EST
  PhotoPost Photo Sharing Photo Gallery    Visualize community tm
| | | | | | | | |

Go Back   PhotoPost Community > PhotoPost Support > PhotoPost Pro Support Forums > Photopost Pro Bug Reports

Photopost Pro Bug Reports Post post installation PhotoPost Pro problems here.

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
Old October 10th, 2005, 12:37 PM   #1 (permalink)
Senior Member
 
Johnny Doomo's Avatar
 
Join Date: Mar 2003
Posts: 854
Unregistered profile link giving script error

In reply to this thread: More problems with allowing unregistered to upload

I did. The original member.php file from 5.2 had the same problem. So I tried adding the code you specified before to the new member file. It fixed the part that when you click on a profile link for an unregisted user it now gives the right error message, but it made it so either the admin or maybe even all other user profile links become script errors.
Johnny Doomo is offline   Reply With Quote
Old October 10th, 2005, 03:38 PM   #2 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 68,070
// If not for someone else, then for me...
if ( $uid == 0 ) $uid = $User['userid'];

This is right in that file for people logged in to show there's instead however your probally talking for unregistered user's

Might I suggest this in showgallery.php

$gallery['profilelink'][$itemcnt] = "{$Globals['maindir']}/member.php?uid=$tuserid";

possibly be something like this

Code:
Content visible to verified customers only.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old October 11th, 2005, 04:16 PM   #3 (permalink)
Senior Member
 
Johnny Doomo's Avatar
 
Join Date: Mar 2003
Posts: 854
Nope, doesn't seem to work. When viewing images in showgallery.php and you click on "Unregistered" under the thumbnail it goes back to the same cat.
I can live with that, but "Unregistered" also appears in the members gallery as a user. The user "Unregistered" anyways. When you click on the username "Unregistered" in the member gallery it gives the script error.

It also gives the error when you click "Unregistered" as the poster that appears on the showphoto.php page.
Johnny Doomo is offline   Reply With Quote
Old October 11th, 2005, 04:31 PM   #4 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 68,070
If $tuserid is 0 the profilelink does not appear thats what the code posted above does
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old October 12th, 2005, 04:26 PM   #5 (permalink)
Senior Member
 
Johnny Doomo's Avatar
 
Join Date: Mar 2003
Posts: 854
The problem from before was that if the unregistered users profile didn't show it would give a script error. I didn't want the script error so that's when you told me to add this to the langauge file:

$Globals['pp_lang']['notmember'] = "Unregistered User's do not have a profile.";

but it looks like you may have removed what else was needed from that thread to get that code to work. I basically just don't want it to ever link to the unregistered users profile and want it to give that message posted above from the langauge file. What code would be needed to do that for 5.2?
Johnny Doomo is offline   Reply With Quote
Old October 12th, 2005, 04:54 PM   #6 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 68,070
Well I can not comment on what Michael decides is a bug or not.

However the fix I posted in this thread absolutely removes any link from an unregistered usergallery in showgallery.php. You might need to do something similar in showmembers.php as well

Easiest way around the issue is simply not providing a clickable link if the userid is not greater than 0

in showmembers.php around line 287

Code:
Content visible to verified customers only.
replace with

Code:
Content visible to verified customers only.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
PP Profile display Forum Profile link pengrus Photopost Pro How Do I...? 7 February 14th, 2006 11:18 AM
[VB 3.5.0] Link to user gallery in profile? blizzedout Photopost Pro Installation & Upgrades 13 October 27th, 2005 06:26 PM
Link to users vB Profile mjm Photopost Pro How Do I...? 3 July 28th, 2005 10:40 AM
PM option, Profile show up under unregistered member memobug ReviewPost Bug Reports 0 March 22nd, 2005 04:37 PM
Link to personal galleries in IPB profile? sbdiva General Discussion 2 June 22nd, 2004 09:37 AM


All times are GMT -5. The time now is 09:40 AM.

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