The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
VSa - Forums Online CountUp Details »» | |||||||||||||||||||||||||||||||
Info:
This hack will show how long your forums are online. Format is: prefix-days-hours-minutes-seconds-suffix. Prefix or suffix can be blank. Hours/minutes/seconds can be disabled. You can change several parameters in ACP to feet your needs (see screenshots). Installation: Import XML file (as product): AdminCP > Plugin System > Manage Products > [Add/Import Product] To set options: Go to: AdminCP > vBulletin Options > VSa - Forums Online CountUp Versions: v1.0 - May 08. 2006. -Initial Release v1.7 - May 03. 2008. -Latest 3.x version v2.0 - Jan 24. 2010. -Updated for vB 4.x -Added Years to counter -Some Code cleanup -Mod prefix (Cyb) changed to VSa Download Now
Screenshots
Show Your Support
|
2 благодарности(ей) от: | ||
Judith2, sensimilla |
Comments |
#52
|
|||
|
|||
very good, Thanks
|
#53
|
|||
|
|||
Forum seems to show as only 2 years old when it's actually 6 years old. How does it pick up the date? (I think we changed servers around that time if my memory is correct).
|
#54
|
|||
|
|||
You should set it in product options:
https://vborg.vbsupport.ru/attachmen...9&d=1264357387 |
#55
|
|||
|
|||
can this mod be modified to do the following
1) count up in days say for example i enter : 20, November, 2007 i want it to say : Day 1,753 of the New World i want it to count up in days only, can an new mod be done for this method please |
#56
|
||||
|
||||
Any ideas why enabling this mod might erase the description from the Facebook Open Graph meta tags? I see the $thread variable seems to be broken/erased somehow.
If anyone has this installed and Facebook platform enabled do you see an og:description if you view source? |
#57
|
||||
|
||||
This is working great - but my question is, I set the font color to black, but have a dark alternative skin and can't figure out how to have a different font color there. Any help appreciated.
|
#58
|
||||
|
||||
Quote:
Code:
<p style="cursor:default; color: {vb:stylevar secondarycontent_color};" id="vsa_focobj" title="{vb:rawphrase vsa_onlinecountup_boardstarted, {vb:raw vsa_boardstarted}}"> <script language="JavaScript" type="text/javascript"> function VSaFOCSetCountup({vb:raw vsa_datformat}) { da = theday, mo = themonth, yr = theyear; } VSaFOCSetCountup({vb:raw vboptions.vsa_onlinecountup_startdate}); function VSaFOCCount() { prefix = "{vb:if $vboptions[vsa_onlinecountup_prefix], $vbphrase[vsa_onlinecountup_prefix] ,''}"; today = new Date(); todaym = today.getMonth(); todayd = today.getDate(); todayh = today.getHours(); todaymin = today.getMinutes(); todaysec = today.getSeconds(); montharray = new Array("Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"); todayy = today.getYear(); if (todayy < 1000) { todayy += 1900; } todaystring = montharray[todaym]+" "+todayd+", "+todayy+" "+todayh+":"+todaymin+":"+todaysec; paststring = montharray[mo-1]+" "+da+", "+yr; dd = Date.parse(todaystring)-Date.parse(paststring); dyear = todayy - {vb:raw vsa_tyear} - 1; dday = Math.floor(dd/(60*60*1000*24)*1); dhour = Math.floor((dd%(60*60*1000*24))/(60*60*1000)*1); dmin = Math.floor(((dd%(60*60*1000*24))%(60*60*1000))/(60*1000)*1); dsec = Math.floor((((dd%(60*60*1000*24))%(60*60*1000))%(60*1000))/1000*1); dhourd = ""; dmind = ""; dsecd = ""; if (dday>0) { dyearc = ", "; } else { dyearc = " "; } <vb:if condition="$vboptions[vsa_onlinecountup_hours_enable] || $vboptions[vsa_onlinecountup_minutes_enable] || $vboptions[vsa_onlinecountup_seconds_enable]"> dyearc = ", "; </vb:if> if (dday>365) { dday = Math.floor(dday - (dyear * 365.24219)); } if (dday<0) { dday = 365 - (dday * -1); } if (dday>=365) { dyear = dyear + 1; dday = dday - 365; } if (dyear==1) { dyeard = dyear+" {vb:rawphrase year}"+dyearc; } else if (dyear>1){ dyeard = dyear+" {vb:rawphrase years}"+dyearc; } else { dyeard = ""; } if (dday<=0) { ddayd = ""; } else if (dday==1) { ddayd = dday+" {vb:rawphrase day}"; } else { ddayd = dday+" {vb:rawphrase days}"; } <vb:if condition="$vboptions[vsa_onlinecountup_hours_enable]"> if (ddayd) { dhourc = ", "; } else { dhourc = ""; } if (dhour==1) { dhourd = dhourc+dhour+" {vb:rawphrase vsa_onlinecountup_hour}"; } else { dhourd = dhourc+dhour+" {vb:rawphrase hours}"; } </vb:if> <vb:if condition="$vboptions[vsa_onlinecountup_minutes_enable]"> if (dmin==1) { dmind = ", "+dmin+" {vb:rawphrase vsa_onlinecountup_minute}"; } else { dmind = ", "+dmin+" {vb:rawphrase vsa_onlinecountup_minutes}"; } </vb:if> <vb:if condition="$vboptions[vsa_onlinecountup_seconds_enable]"> if (dsec==1) { dsecd = ", "+dsec+" {vb:rawphrase second}"; } else { dsecd = ", "+dsec+" {vb:rawphrase vsa_onlinecountup_seconds}"; } </vb:if> suffix = "{vb:if $vboptions[vsa_onlinecountup_suffix], $vbphrase[vsa_onlinecountup_suffix],''}"; document.getElementById('vsa_focobj').innerHTML = prefix + dyeard + ddayd + dhourd + dmind + dsecd + suffix; setTimeout("VSaFOCCount()",1000); } VSaFOCCount(); </script> <p> |
2 благодарности(ей) от: | ||
Elite_360_, RichieBoy67 |
#59
|
||||
|
||||
Awesome! Thanks ozzy!
|
#60
|
||||
|
||||
Not a problem, glad to help.
|
#61
|
|||
|
|||
For some reason the mod turns the profile pictures on the member.php page to the default unknown file. Any ideas?
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|