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 How Do I...?

Photopost Pro How Do I...? Wondering how to do things in PhotoPost?

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
Old July 16th, 2008, 08:56 AM   #1 (permalink)
Member
Verified Customer
 
Join Date: Nov 2005
Location: Montreal, Canada
Posts: 161
recent images link not working if sort is anything but last 7 days

I have a little box on my homepage to sort images:

» Recent Photos
Of last 24 hours
Of last 3 days
Of last 7 days
Of last 30 days
Of last 180 days
Of last 365 days
Of All Time

The link that was given to me on this forum was:

http://www.mysite.com/gallery/showga...mit=last7&cat=

Which would display photos form the last 7 days. If I change 7 for anything else it doesn't seem to work. Why not?
DannyITR is offline   Reply With Quote
Old July 16th, 2008, 09:38 AM   #2 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,689
The links within our program are working fine here as shown

PhotoPost PHP Photo Sharing Gallery with vBulletin Forum Integration

If your hacking your code no doubt this is an issue with whatever hack not being correctly coded as in our software we only have those 4 conditionals coded so anything else you would need to code in those limits in the php file to know what to do.
__________________
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 July 16th, 2008, 02:45 PM   #3 (permalink)
Member
Verified Customer
 
Join Date: Nov 2005
Location: Montreal, Canada
Posts: 161
Quote:
Originally Posted by Chuck S View Post
The links within our program are working fine here as shown

PhotoPost PHP Photo Sharing Gallery with vBulletin Forum Integration

If your hacking your code no doubt this is an issue with whatever hack not being correctly coded as in our software we only have those 4 conditionals coded so anything else you would need to code in those limits in the php file to know what to do.
Thanks Chuck. I found the code in showgallery.php (line 269) that looked like it took care of the sorting and I added a few lines for sort times of 3, 30 and 180 days. It didn't seem to fix the problem though. Are there more modifications required?

bold added by me:
Quote:
else {
if ( $cat == "fav" ) {
list( $tuserid, $tusername, $tmail ) = get_userinfo( "", $User['userid']);
$thecatname = "$tusername {$Globals['pp_lang']['favorites']}";
}
elseif ( $cat == "all" ) {
$thecatname = $Globals['pp_lang']['callimages'];
}
elseif ( $cat == "last1" ) {
$thecatname = $Globals['pp_lang']['clastday'];
}
elseif ( $cat == "last3" ) {
$thecatname = $Globals['pp_lang']['clast3'];
}

elseif ( $cat == "last7" ) {
$thecatname = $Globals['pp_lang']['clast7'];
}
elseif ( $cat == "last14" ) {
$thecatname = $Globals['pp_lang']['clast14'];
}
elseif ( $cat == "last30" ) {
$thecatname = $Globals['pp_lang']['clast30'];
}
elseif ( $cat == "last180" ) {
$thecatname = $Globals['pp_lang']['clast180'];
}
DannyITR is offline   Reply With Quote
Old July 16th, 2008, 03:58 PM   #4 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,689
Not the right place you want to look here

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 July 16th, 2008, 08:39 PM   #5 (permalink)
Member
Verified Customer
 
Join Date: Nov 2005
Location: Montreal, Canada
Posts: 161
Quote:
Originally Posted by Chuck S View Post
Not the right place you want to look here

Code:
Content visible to verified customers only.
Worked like a charm! Thanks.
DannyITR is offline   Reply With Quote
Old July 16th, 2008, 08:48 PM   #6 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,689
Glad to help out
__________________
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 January 21st, 2010, 07:09 PM   #7 (permalink)
Member
Verified Customer
 
Join Date: Nov 2005
Location: Montreal, Canada
Posts: 161
On the most recent version of photopost the links to display recent photos of a certain time period are as follows:

Code:
Content visible to verified customers only.
Where 1 can be changed for the number of days. Seems to work without any file modifications.

Last edited by DannyITR; January 21st, 2010 at 08:55 PM.
DannyITR is offline   Reply With Quote
Old January 21st, 2010, 09:10 PM   #8 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,689
On the most recent version of photopost those links go to search.php and are clearly marked and defined in that file. showgallery.php does not do any searches.
__________________
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 January 21st, 2010, 09:23 PM   #9 (permalink)
Member
Verified Customer
 
Join Date: Nov 2005
Location: Montreal, Canada
Posts: 161
Quote:
Originally Posted by Chuck S View Post
On the most recent version of photopost those links go to search.php and are clearly marked and defined in that file. showgallery.php does not do any searches.
I did notice that on the most recent version, the links go to searches but I was also able to get it working using the code I posted by disecting the code from the sorting box on the showgallery page.

- My Photo Gallery

Could it be that the old method still works?
DannyITR is offline   Reply With Quote
Old January 21st, 2010, 09:25 PM   #10 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,689
lol thats not really the same as the links on the index page now like you originally have posted
__________________
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 January 21st, 2010, 09:38 PM   #11 (permalink)
Member
Verified Customer
 
Join Date: Nov 2005
Location: Montreal, Canada
Posts: 161
Quote:
Originally Posted by Chuck S View Post
lol thats not really the same as the links on the index page now like you originally have posted
Sure it is!

The link I posted just now gives the most recent photo uploads of the last 30 days. I can adjust it to display the last however many days by changing the variable. Sorry to keep posting but I need to know if I'm missing something.
DannyITR is offline   Reply With Quote
Old January 21st, 2010, 10:14 PM   #12 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,689
feel free to post any mods or code changes in the mod corner should you wish.
__________________
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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
No longer working chadi How Do I? - vBulletin 3.6x 7 May 15th, 2008 12:29 PM
Board is not working correctly past few days...please help. candlefind ReviewPost How do I...? 11 August 16th, 2007 06:59 PM
Upgraded vb to 3.0.15 from .6 and now recent images not working lmongello Photopost Pro How Do I...? 4 August 8th, 2006 09:33 AM
Recent 1, 7, 14 days links not working.. Help! alma townsend Photopost Pro How Do I...? 1 June 16th, 2006 09:34 AM
Permission no longer working Fortissimo Photopost Pro Installation & Upgrades 10 January 13th, 2006 09:48 PM


All times are GMT -5. The time now is 02:54 AM.

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