View Full Version : Statistics Modifications - VSa - Forums Online CountUp
Valter
01-23-2010, 10:00 PM
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
Mrquarter2
01-24-2010, 04:33 PM
Very nice. Installed.
dmknights
01-24-2010, 04:48 PM
im so glad more & more vb 4.0 mods are coming out
Installed
Thank you
adigaorg
01-24-2010, 04:52 PM
thanks
inttalled
kisanjong
01-24-2010, 05:09 PM
Thanks - Installed - 5*
steve1966
01-24-2010, 05:18 PM
thanks
War.Frog
01-24-2010, 05:21 PM
Great mod. I take it this just assumes a midnight start on the entered date?
princeedward
01-24-2010, 05:24 PM
thanks...nice... any way or chance to make it smallfont and a bit near from above?
RedHacker
01-24-2010, 06:49 PM
Hello.. Can to display this...?
Site Startup Date: xx/xx/xxxx
Site Age: 150 days 25 hours 8 minutes 35 seconds
The numbers are random
Valter
01-24-2010, 06:59 PM
Separate date parameters with commas.
RedHacker
01-24-2010, 07:00 PM
Hello.. Can to display this...?
Site Startup Date: xx/xx/xxxx
Site Age: 150 days 25 hours 8 minutes 35 seconds
The numbers are random
OK I find...
I enable prefix with custom phrase...
The letters can be bolt...?
War.Frog
01-24-2010, 07:05 PM
Separate date parameters with commas.
Do you mean dd,mm,yyyy,hh,mm,ss ?
Valter
01-24-2010, 07:15 PM
Do you mean dd,mm,yyyy,hh,mm,ss ?
Day, month, year.
Or month, day, year... depending on format you select in 3rd option.
https://vborg.vbsupport.ru/attachment.php?attachmentid=110949&d=1264357387
Juggernaut
01-24-2010, 08:08 PM
I wish I could have this in spanish :D
protow
01-24-2010, 08:10 PM
Nice. i was looking for this on vb4 thanks and installed
Valter
01-24-2010, 08:20 PM
It's easy to translate this.
There are only few phrases used by mod, which are easy to find and translate through Phrase Manager.
RedHacker
01-24-2010, 10:20 PM
For the Bold Text...?
snotek
01-24-2010, 10:53 PM
Both this and the Cyb Online Count Up need to process YEARS also. We use this mod to display how long the forums have existed, and showing 2920 days just doesn't work out.
I have modified the code to enable years but it would be nice to support this out of the box once days hits 365.
Valter
01-25-2010, 08:19 AM
Latest version has years too.
Dr.osamA
01-25-2010, 08:22 AM
Thanks - Installed - 5*
________
FERRARI F399 HISTORY (http://www.ferrari-wiki.com/wiki/Ferrari_F399)
Robru
01-25-2010, 10:02 AM
Thank you, nice mod :)
VNVIP
01-25-2010, 10:36 AM
Great! *click install*
johnrizz
01-25-2010, 07:22 PM
I would like too move this too the top of the forum, above the navbar maybe! can this be done like in Cyb Online Count Up? Thnks for the hack btw!
murekhalir
01-27-2010, 01:08 AM
hope this isn't stupid - is this intensive on the site?
Valter
01-27-2010, 08:32 AM
Nope. It's Javascript-based, so no db queries etc...
ToNetU
01-27-2010, 03:21 PM
is it possible to move this anywhere else, for example below forum logo!
CheeSie
01-31-2010, 10:54 AM
3 Years, NaN Days, NaN Hours, NaN Minutes, NaN Seconds Since Forums came online
this is what I'm getting.. Help?
Rickpwns
01-31-2010, 11:09 AM
Awesome!
Very special :)
Installed ^^
Numenorean7
01-31-2010, 06:50 PM
Nice mod, that's a great idea !
underESTIMATED
02-23-2010, 12:12 AM
3 Years, NaN Days, NaN Hours, NaN Minutes, NaN Seconds Since Forums came online
this is what I'm getting.. Help?
+1
4.02 Installed.
saghir
02-23-2010, 01:01 AM
...................................
saghir
02-23-2010, 01:03 AM
Yes Thanx mod ,
its working Now !!!
5 * working
Can i cahnge its Fount ???
wayne.richards@
03-13-2010, 05:53 PM
Top Mod, How Do You Make It Bold Txt?
-=Leb=-
03-16-2010, 09:14 PM
Installed and nominated
global.php
// Deprecated as of release 4.0.2, replaced by global_bootstrap_init_start
($hook = vBulletinHook::fetch_hook('global_start')) ? eval($hook) : false;
plugin 'global_start': change this to 'global_bootstrap_complete'!
and why global and not 'forumhome_complete' ?! which is much faster and resource-saving!
Nice, always fun to see how old your community is. Thanks :D
Bansheebob
05-10-2010, 08:55 PM
You make the coolest mods, two thumbs up Thanks.
nice installed
can i move it to head of site? how?
COL NIL SATIS
05-16-2010, 08:07 PM
Installed....love it
lubbie
08-31-2010, 02:04 PM
Installed. How can i get a space or separating line before the text?
gagan007
09-03-2010, 08:52 AM
neat and very simple....thanks a ton Valter.
MaI
persianpros
10-27-2010, 07:04 AM
Persian Translation :cool:
By Persian Prince
mavigul
12-07-2010, 05:04 PM
thanx
dai-kun
12-08-2010, 05:40 AM
Thanks, but there's a conflict with this and vbadvance dynamics. Turning this on removes a few of the subnavs when viewing vba pages.
algarvio
01-09-2011, 09:17 PM
tanks very good
BCP Hung
05-23-2011, 02:14 AM
This mods not got a bug when using CKEditor in vBulletin 4.1.4, CKEditor not working with it !
Valter, please update men !
VBIran
05-24-2011, 04:08 PM
Not working with CKE Editor
Scyther
11-16-2011, 09:37 AM
Thanks....marked installed...
Luca_ITA
12-23-2011, 10:38 PM
Working fine on 4.1.9
josantos
04-09-2012, 10:50 AM
very good, Thanks ;)
g00gl3r
08-20-2012, 08:16 PM
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).
Valter
08-21-2012, 06:16 AM
You should set it in product options:
https://vborg.vbsupport.ru/attachment.php?attachmentid=110949&d=1264357387
TheSupportForum
09-07-2012, 09:10 AM
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
BirdOPrey5
01-03-2014, 02:24 AM
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?
BGObsession
01-23-2014, 01:51 AM
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.
ozzy47
01-24-2014, 12:07 AM
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.
To make it use the same color as the rest of the WGO area, try changing the vsa_onlinecountup_main template to this:
<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))%(6 0*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>
BGObsession
01-24-2014, 12:25 AM
Awesome! Thanks ozzy!
ozzy47
01-24-2014, 12:25 AM
Not a problem, glad to help. :)
Voltstriker
10-26-2014, 12:32 PM
For some reason the mod turns the profile pictures on the member.php page to the default unknown file. Any ideas?
akz645
01-08-2016, 02:07 PM
Works on vBulletin 4.2.3 :)
Evidence:
https://vborg.vbsupport.ru/external/2016/01/14.png
For some reason the mod turns the profile pictures on the member.php page to the default unknown file. Any ideas?
I don't get that problem.
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?
Did you ever manage to fix it?
I checked the page source on one of my threads and the og:description still appears after installing this mod.
https://vborg.vbsupport.ru/external/2016/01/15.png
setishock
01-17-2016, 08:14 PM
Isn't there a time and date stamp in the DB that shows when it was created? If so would that not be better than guessing when your forum went live?
akz645
01-17-2016, 10:42 PM
Isn't there a time and date stamp in the DB that shows when it was created? If so would that not be better than guessing when your forum went live?
That doesn't necessarily mean that's when your forum went live.
Sometimes people are implementing plugins and whatnot and therefore keep the website closed. Hence, usually people keep a note when they consider their forum to have gone 'live'.
I'd say:
- When you created your first thread.
OR
- When you first joined/created your account (installed vBulletin). -> http://i.imgur.com/3avOhAn.png -> vBulletin keeps a track of when you installed it/ when you created the first account.
That's probably when you should say you went live IMO.
oldfan
04-03-2023, 01:26 AM
Works on 4.2.5. php 7.2
V8Owner
08-22-2023, 01:36 AM
Is there anyway that this can be made for VBulletin 5?
vBulletin® v3.8.12 by vBS, Copyright ©2000-2024, vBulletin Solutions Inc.