PhotoPost Community

PhotoPost Community (http://www.photopost.com/forum/)
-   Photopost Pro How Do I...? (http://www.photopost.com/forum/photopost-pro-how-do-i/)
-   -   Link User Name to Gallery Profile (http://www.photopost.com/forum/photopost-pro-how-do-i/123393-link-user-name-gallery-profile.html)

bugman February 27th, 2006 06:41 PM

Link User Name to Gallery Profile
 
Under the thumbnails in the Recent Photos and category indexes, i want the user name to be hyperlinked with a link to their gallery profile. (also trying to do this with the photo title text under the thumb too, see my other post)

In the features.tmpl i tried adding

Code:

Content visible to verified customers only.
before

Code:

Content visible to verified customers only.
but the userid is blank. So apparently it's not being pulled from wherever features.tmpl pulls it's data. (hey i'm getting this PHP stuff a little more every day)

any ideas? also, do you think this adds more resources?

Chuck S February 28th, 2006 10:24 AM

You would need to edit display_gallery function in pp-inc.php and define the userid

Code:

Content visible to verified customers only.
You can then use $puserid[$x] as the variable for userid there ;)

bugman March 1st, 2006 09:47 AM

so all I do is go to pp_inc and drop those 2 lines of code in under the gallery_view section?

Chuck - what if I want the user name to be a hyperlink to the user's member gallery, not their profile ?

Chuck S March 1st, 2006 10:18 AM

well in features.tmpl maybe a link like so

Code:

Content visible to verified customers only.

bugman March 1st, 2006 10:13 PM

well, i tried putting the $puserid code you gave into pp_inc.php in the display_gallery section but i guess it didn't do anything. i put that link and the user id is still blank.

i wish this was a default feature, but anyway i don't know how to get this to work still. anymore pointers?

Chuck S March 2nd, 2006 07:14 AM

No more pointers than given. If you define $puserid[$x] in pp-inc.php as stated you will be able to use it in the features.tmpl

bugman March 4th, 2006 12:26 PM

How about this
 
Chuck,

Since the link is also defined in the Comments PAL as such:
Code:

Content visible to verified customers only.
Then can't we do the same thing for the Recent Photos in the Gallery?

Also, can we do this so it shows up when viewing the gallery categories as well?


All times are GMT -5. The time now is 12:20 PM.

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