[BLOCK] Site Has Been Around For

Support for IntegraMOD 140

Moderator: Integra Moderator

[BLOCK] Site Has Been Around For

PostAuthor: evolver » Mon May 15, 2006 2:07 pm

Another small mod... <img>

Well, at least this is a MOD on phpBB...
I call this a BLOCK on IntegraMOD

[size=99px]###########################################################MOD Title: Site Has Been Around For........MOD Author: Wilson (wilson@wvundergroundmetal.com)MOD Description: This MOD tells the user that you've had your                                 site running down to the year, month, and day.MOD Version: 1.0.0Installation Level: Easy, Very EasyInstallation Time: 1 Minute (If That)Files to edit: 1##       templates/subSilver/overall_header.tpl###########################################################Notes:#        You can edit this hack to say just about anything you want as well as the font color.#       Add the date you started your site in this line where the * are.       document.write(DateEstablished(**,**,****));       Example: * document.write(DateEstablished(09,14,2005)); *#############################################################Open: templates/suBsilver/overall_header.tpl#All the way at the bottom find:###     <br>##After, Add: ##<SCRIPT>function DateEstablished(startmonth, startdate, startyear) {sdate=startdate;smonth=startmonth-1;syear=startyear;var DaysInMonth = new Array(31,28,31,30,31,30,31,31,30,31,30,31);today = new Date()var thisyear = today.getFullYear();var thismonth = today.getMonth();var thisdate = today.getDate();mstart = new Date(syear,(smonth==12?1:smonth+1),1);days1 = (mstart - new Date(syear,smonth,sdate))/(24*60*60*1000)-1;mend = new Date(thisyear,thismonth,1);days2 = (new Date(thisyear,thismonth,thisdate) - mend)/(24*60*60*1000)+1;dayst = days1 + days2;if (dayst >= DaysInMonth[smonth])  {AddOneMonth = 1; dayst -= DaysInMonth[smonth]; }else AddOneMonth = 0;ydiff1 = thisyear-mstart.getFullYear();mdiff1 = thismonth-mstart.getMonth()+AddOneMonth;if (mdiff1 >11) { mdiff1=0; ydiff1++; }if (mdiff1 < 0) { mdiff1 = mdiff1 + 12; ydiff1--; }temp = (ydiff1==0?"":(ydiff1==1?ydiff1+" year and ":ydiff1 + " years, "));temp += (mdiff1==0?"0 months, and ":(mdiff1==1?mdiff1+" month, and ":mdiff1+" months, and "));temp += (dayst==0?"no days":(dayst==1 ? " 1 day." : dayst + " days." ));return temp;}</script><center><SCRIPT>document.write("<font>");document.write("<font>");document.write("<font>");document.write("This Site Has Been Around for ");document.write("<font>");document.write(DateEstablished(**,**,****)); document.write("</font>");document.write("</font>");document.write("</font>");document.write("</font>");document.write("</font>");</script>         <br><br>    ###########################################################################Save and Close all Files[/code]

But there's no need to follow these instructions!
Just take the javascript and put it on a portal-block (HTML, ofcourse)
It's really that easy, there's no need to change any code on your files at all!!!

[b]IMPORTANT]
Dont forget to add the date you started your site in this line where the * are:
document.write(DateEstablished(**,**,****));
[size=99px]
Last edited by evolver on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
ImageAlways remember you're unique, just like everyone else.
We are born naked, wet and hungry. Then things get worse.
Don't take life too seriously, you won't get out alive.
User avatar
evolver
Sr Integra Member
Sr Integra Member
 
Posts: 420
Likes: 0 post
Liked in: 0 post
Joined: Mon Mar 27, 2006 1:46 pm
Cash on hand: 0.00
Location: Oostende

Re: [BLOCK] Site Has Been Around For

PostAuthor: doswald » Fri May 26, 2006 4:20 am

Nice one <img>
Last edited by doswald on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
One of the best ways to educate our hearts is to look at our interaction with other people, because our relationships with others are fundamentally a reflection of our relationship with ourselves.
--Stephen R. Covey First Things First--
User avatar
doswald
Integra Member
Integra Member
 
Posts: 165
Likes: 0 post
Liked in: 0 post
Joined: Tue May 09, 2006 9:33 pm
Cash on hand: 0.00


Return to IntegraMOD 140

Who is online

Registered users: App360MonitorBot, Bing [Bot]