PhotoPost Community

PhotoPost Community (http://www.photopost.com/forum/)
-   Photopost Pro How Do I...? (http://www.photopost.com/forum/photopost-pro-how-do-i/)
-   -   Most Viewed Link (http://www.photopost.com/forum/photopost-pro-how-do-i/123894-most-viewed-link.html)

Get Bent March 20th, 2006 03:50 AM

Most Viewed Link
 
I would like to create a link in my gallery drop down menu on my navbar to my most viewed pics. What would be the url I need to link to?

Also, I would like to create one to take the user to their member gallery. What would the link be to that.

And finally, what would the link need to be to take a user to the proper upload page.

I know i can link directly to the pho files but I have a feeling there is some syntax that needs to follow the links to make it correct.

Can anyone help me out. I know this is simple but I'm a newbie.

Thanks,

Joey

Chuck S March 20th, 2006 09:11 AM

The upload page link would simply be the url to your gallery with uploadphoto.php at the end.

As far as a most viewed url possibly this would do

Code:

Content visible to verified customers only.

Get Bent March 20th, 2006 10:32 AM

Thanks Chuck,

How bout the link to the user's gallery. When I link directly to showgallery.php, the user gets more than just his/her own gallery showing up.

Chuck S March 20th, 2006 10:43 AM

I guess that would matter where your linking it. You would need to find out in whatever script or template your in what variable is the user's userid and put it where I note below in the link

Code:

Content visible to verified customers only.

Get Bent March 20th, 2006 11:36 AM

I'm guessing it's going to be $user

I'm just putting some links in the navbar template.

But when I create the link: /gallery/showgallery.php?cat=500&ppuser=$user

It takes me to the member gallery listing, not the users member gallery.

What am I doing wrong here?

Get Bent March 20th, 2006 11:39 AM

Quote:

Originally Posted by Chuck S
The upload page link would simply be the url to your gallery with uploadphoto.php at the end.

As far as a most viewed url possibly this would do

Code:

Content visible to verified customers only.


Also, this does not take me to a page sorted by most viewed. Images are in random viewed order still.

Chuck S March 20th, 2006 11:49 AM

well there is no way to do it then. I was taking the url from the sort box at bottom but that must require a post command not get

Get Bent March 20th, 2006 12:31 PM

OK I guess I'll have to skip that feature then, what about the answer to post #5?

Chuck S March 20th, 2006 01:34 PM

I can not be sure of that since that deals with your vbulletin but my guess would be maybe this

$bbuserinfo['userid']

Get Bent March 20th, 2006 01:53 PM

Almost.

For those that are looking for this, here is your answer:

http://www.domain.com/gallery/showgallery.php?cat=500&ppuser=$bbuserinfo[userid]


Thanks for your help Chuck.


All times are GMT -5. The time now is 09:00 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