Topic: Forum Age Inside Info Center (Read 3,623 times)
madmax Guest
Re: Forum Age Inside Info Center « Reply #30 on Oct 6, 2008, 11:43pm »
Probably because of how you have the time-zone set up in your profile. That's the only thing that will affect the start date of the forum. It goes off of what you enter into the variable for the start date, and nothing else.
Your welcome, I'm glad you got that straightened out.
Re: Forum Age Inside Info Center « Reply #31 on May 16, 2009, 2:05pm »
Board URL:http://redwallcorsairs.proboards.com
Is this right? Because when I put this in my main footers and I look at the info center, it says: This forum is: NaN years, NaN months, NaN days, NaN hours, NaN minutes, and 2 seconds, old.
http://<script type="text/javascript"> <!-- /* Forum Age Inside Info Center by UnChained */ /* Please leave this header intact. Do not repost. */ /* http://proboardcoding.proboards58.com */
var startMessage= "This forum is: "; // Start message. var endMessage= "old."; // End message. var startDate= "2007 12 26"; // Forum start date.
// Do Not Edit Below. var td=document.getElementsByTagName('td'); if(location.href.match(/com\/?((v?4?5?\index\.cgi)?\??(action=(change.+?|home))?)?(#.+)?$/)){ function showDate(){ for(x=0;x<td.length;x++){ if(td[x].className.match(/catbg/i) && td[x].innerHTML.match(/Forum Statistics/i)){ var aDate= new Date(startDate); var bDate= new Date(); var eTime= bDate-aDate; var xDays= parseInt(eTime/86400000); var xHours= parseInt((eTime-(xDays*86400000))/3600000); var xMin= parseInt((eTime-(xDays*86400000)-(xHours*3600000))/60000); var xSec= bDate.getSeconds(); var xYears= parseInt(xDays/365); var xMonths= parseInt((xDays-(xYears*365))/30); var yDays= parseInt((xDays-(xYears*365)-(xMonths*30))); var zYears= "year"; if(xYears !=1){zYears +="s,"} var zMonths= "month"; if(xMonths !=1){zMonths +="s,"} var zDays="day"; if(yDays !=1){zDays +="s,"} var zHours="hour"; if(xHours !=1){zHours +="s,"} var zMinutes="minute"; if(xMin !=1){zMinutes +="s,"} var zSeconds="second"; if(xSec !=1){zSeconds +="s,"} td[x+2].innerHTML+=startMessage+xYears+" "+zYears+" "+xMonths+" "+zMonths+" "+yDays+" "+zDays+" "+xHours+" "+zHours+" "+xMin+" "+zMinutes+" and "+xSec+" "+zSeconds+" "+endMessage; break; } } } } showDate(); //--> </script>
Design is so simple. That's why it's so complicated. (Paul Rand)
Joined: Feb 2005 Gender: Female Posts: 5,902 Location: NY
Re: Forum Age Inside Info Center « Reply #32 on May 17, 2009, 11:06pm »
Directions say:
Year, is a four digit number. Example: 2007
Month, is the full name of the month, no abbreviations. Example: September
Day, is a two digit number. Example: 06 .....for the 6th day of the month.
If that doesn't work... try moving it around your footer. For example if it's at the top (above all the other codes), move it to the bottom.... if it IS at the bottom then try moving it to the top. If that doesn't work, then just frig this code. lol
Hi I replied to another forum age script and no answer however my problem still exists with this script. Is there a way of coding this in the "Ultimate Info Center v3"?
If you look at where it is it sits outside the box.
Re: Forum Age Inside Info Center « Reply #34 on Nov 4, 2009, 1:03am »
Hello, I was wondering if this code is compatible with the Ultimate Info Center V3 on Proboards Support? If so, how do I go about putting them together, or do I just put them by theirselves as if two completely different codes altogether?
I already have the Ultimate Info Center V3 on my site, and I'd also like for the age of the forum to show, but I need something that is compatible with it. Thanks for any help! =D