View Full Version : Viewing style for recent photos
BlueSoul
Mar-13-2007, 07:09 PM
Hello,
On my site I have a category for my most recent photos. I used the javascript code to set up this category.
Is it possible to force a particular viewing style for the recent photos? I'd like to use the "traditional" style.
Ryan Armbrust
Mar-13-2007, 09:20 PM
<a href="http://www.sniperphotography.com/homepage/templatechange.
mg?TemplateID=7&origin=http://www.sniperphotography.com/popular">
Use the above format to add a link to your recent pics. Replace the Sniper Photography url with your own. Also, where it says "TemplateID=7", the 7 is for thumbnail style. I can not remember what number traditional is. Just add a number till you get it. 1-6 I believe.
Ryan Armbrust
Mar-13-2007, 09:26 PM
<a href="http://www.sniperphotography.com/homepage/templatechange.
mg?TemplateID=7&origin=http://www.sniperphotography.com/popular">
Use the above format to add a link to your recent pics. Replace the Sniper Photography url with your own. Also, where it says "TemplateID=7", the 7 is for thumbnail style. I can not remember what number traditional is. Just add a number till you get it. 1-6 I believe.
Also, make sure you have the following in your Java section.
/*GO TO RECENT GALLERY*/
function showRecent(days)
{
endDate = new Date();
oneDay = 1000*60*60*24;
startDate = new Date(endDate.getTime() - (parseInt(days) * oneDay));
sUrl = "/date/";
sUrl += startDate.getFullYear() + "-" + padDate(startDate.getMonth() + 1) + "-" + padDate(startDate.getDate());
sUrl += "/";
sUrl += endDate.getFullYear() + "-" + padDate(endDate.getMonth() + 1) + "-" + padDate(endDate.getDate());
window.location = sUrl;
}
function padDate(datePart)
{
if (datePart.toString().length != 1)
return datePart
return "0" + datePart;
}
vBulletin v3.5.2, Copyright ©2000-2009, Jelsoft Enterprises Ltd.