SoCal
« Forum Age Inside Info Center »

Welcome Guest. Please Login or Register.
Dec 9, 2009, 3:20am




SoCal :: SoCal Codes :: ProBoards Codes :: Forum Age Inside Info Center
« Page 3 of 3 Jump to page   Go    [Search This Thread][Send Topic To Friend] [Print]
 AuthorTopic: 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.  ;)
Link to Post - Back to Top  IP: Logged
lockheart
[image]
member is offline





Joined: Apr 2008
Gender: Female
Posts: 2
 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>
« Last Edit: May 16, 2009, 2:06pm by lockheart »Link to Post - Back to Top  IP: Logged
TygrTat
[image]
member is offline

[avatar]

Design is so simple.  That's why it's so complicated. (Paul Rand)


[homepage]

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



« Last Edit: May 17, 2009, 11:08pm by TygrTat »Link to Post - Back to Top  IP: Logged

[image]

[image]

I'm busy with school... but I'll pop in every now and again.

micrografix
[image]
member is offline





Joined: Sept 2009
Gender: Male
Posts: 4
 Re: Forum Age Inside Info Center
« Reply #33 on Oct 1, 2009, 6:11pm »

Board URL: http://needfullthings.proboards.com/index.cgi

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.
Link to Post - Back to Top  IP: Logged
rosepetals
[image]
member is offline





Joined: Apr 2009
Gender: Female
Posts: 2
 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
Link to Post - Back to Top  IP: Logged
rosepetals
[image]
member is offline





Joined: Apr 2009
Gender: Female
Posts: 2
 Re: Forum Age Inside Info Center
« Reply #35 on Nov 6, 2009, 8:40pm »

does anyone know? =D
Link to Post - Back to Top  IP: Logged
« Page 3 of 3 Jump to page   Go    [Search This Thread][Send Topic To Friend] [Print]

Click Here To Make This Board Ad-Free


This Board Hosted For FREE By ProBoards
Get Your Own Free Message Boards & Free Forums!