 | |  | | | Photopost Pro How Do I...? Wondering how to do things in PhotoPost? |
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?
|
| |
July 16th, 2008, 09:38 AM
|
#2 (permalink)
| | Photopost Developer Verified Customer
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. |
| |
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 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'];
} | |
| |
July 16th, 2008, 03:58 PM
|
#4 (permalink)
| | Photopost Developer Verified Customer
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.
|
| |
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 Not the right place you want to look here Code: Content visible to verified customers only.
| Worked like a charm! Thanks.
|
| |
July 16th, 2008, 08:48 PM
|
#6 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,689
|
Glad to help out
|
| |
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.
|
| |
January 21st, 2010, 09:10 PM
|
#8 (permalink)
| | Photopost Developer Verified Customer
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.
|
| |
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 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?
|
| |
January 21st, 2010, 09:25 PM
|
#10 (permalink)
| | Photopost Developer Verified Customer
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 |
| |
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 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.
|
| |
January 21st, 2010, 10:14 PM
|
#12 (permalink)
| | Photopost Developer Verified Customer
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.
|
| | |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | | | | Thread Tools | | | | Display Modes | Rate This Thread | Linear Mode | |
Posting Rules
| You may not post new threads You may not post replies You may not post attachments You may not edit your posts HTML code is Off | | | All times are GMT -5. The time now is 02:54 AM. | |