View Full Version : Statistics Modifications - Cyb - Forums Online CountUp
Valter
01-09-2009, 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:
1. Import XML file (as product): AdminCP > Plugin System > Manage Products > [Add/Import Product]
2. Template edit:
a) To have counter shown above navbar (like on screenshot):
Replace first "<br />" in "navbar" template with "$cybonlinecountup"
(first "<br />" is located just before "<!-- breadcrumb, login, pm info -->" by default)
b) To have counter shown on some other place:
Put "$cybonlinecountup" in desired template and position
To set options:
Go to: AdminCP > vBulletin Options > Cyb - Forums Online CountUp
Versions:
v1.0 - May 08. 2006.
-Initial Release
v1.1 - May 09. 2006.
-Added ability to move counter to some other place
v1.2 - Aug 04. 2006.
-Release of this hack for vB v3.6
v1.3 - Oct 30. 2006.
-Whole code is now valid XHTML 1.0 Transitional
-Added "Product Version Checking"
-Changed options (removed: opening/closing tags, added: text size, text color, counter position)
-Several changes in code for better compatibility
v1.4 - Nov 21. 2006.
-Added ability to disable hours/minutes/seconds
-Added ability to change font
v1.5 - Feb 13. 2007.
-"Board Started: [startdate]" is shown when you mouse-over div block with counter
-Added option to switch start date format between d,m,y and m,d,y
v1.6 - Apr 09. 2007.
-Fixed bug (some javascript codes stopped working when hack is enabled)
-Expanded look customization ability (CSS now used)
-Counter does not dissapear now on page loading
-Improved compatibility with different browsers
-Some Javascript code cleanup done
v1.7 - May 03. 2008.
-Compatible with vBulletin 3.7
-Minor bugs fixed
v1.8 - Jan 25. 2010.
-Added Years
-Fixed bugs
v1.8.1 - Jan 25. 2010.
-Fixed small bug with phrases
Live DEMO: http://www.bihforum.com
If you like this hack please click INSTALL.
-=Leb=-
01-10-2009, 03:00 PM
I love this one . thx cyb <3
Rene Kriest
01-10-2009, 03:53 PM
This one is really a killer app. I gave it a try and during upgrading to 3.8 I disabled it - members were openly complaining "give us the online timer back pls!"... YEAH! :D
Thanks CYB for making my forum more attracting to my members. :)
COBRAws
01-12-2009, 02:31 PM
it would be great to have the year as well :D
killerkraft
01-12-2009, 08:18 PM
Superb yet simple.
I'm becoming a fan of your work Cyb, eheheheh
KK
DarkFormula
01-13-2009, 02:23 AM
I installed it and have the counter going, but the "Board started" doesn't appear like in your screen shot.
gwerzal
01-16-2009, 12:03 PM
Great little mod
My members will love it
dmknights
01-18-2009, 02:33 PM
Useful Mod
Noonster
01-18-2009, 02:40 PM
Good Hack... can we not make it state how many years instead of just days etc...? I board has been going 5 years thats all...
Thanks
Nantrox
02-08-2009, 09:28 AM
another perfect Mod from cyb and one more time your name in my Add-Ons List.. *installed*
Bounce
02-08-2009, 10:10 AM
I installed it and have the counter going, but the "Board started" doesn't appear like in your screen shot.
Same here but not sure its ment too :confused: think that was an example but could be wrong and would be good to have it there
Bounce
02-08-2009, 10:12 AM
Cyb - off topic so apologises... how did you get the wee clock on your navbar part, now thats pretty cool :up:
cheech47
02-10-2009, 12:35 PM
it would be great to have the year as well :D
yeah good idea :D
zefyx
02-11-2009, 05:00 AM
Mind checking the XHTML validation? Here are the errors:
# Warning Line 167, Column 14: character "<" is the first character of a delimiter but occurred as data.
if (todayy < 1000) {
This message may appear in several cases:
* You tried to include the "<" character in your page: you should escape it as "<"
* You used an unescaped ampersand "&": this may be valid in some contexts, but it is recommended to use "&", which is always safe.
* Another possibility is that you forgot to close quotes in a previous tag.
# Warning Line 183, Column 108: character "&" is the first character of a delimiter but occurred as data.
… "+dhour+" hours, "+dmin+" minutes, & "+dsec+" seconds "+suffix;
This message may appear in several cases:
* You tried to include the "<" character in your page: you should escape it as "<"
* You used an unescaped ampersand "&": this may be valid in some contexts, but it is recommended to use "&", which is always safe.
* Another possibility is that you forgot to close quotes in a previous tag.
# Error Line 186, Column 334: there is no attribute "onload".
…/clear.gif" border="0" alt="" onload="countup();" /> </td> </tr> </table
You have used the attribute named above in your document, but the document type you are using does not support that attribute for this element. This error is often caused by incorrect use of the "Strict" document type with a document that uses frames (e.g. you must use the "Transitional" document type to get the "target" attribute), or by using vendor proprietary extensions such as "marginheight" (this is usually fixed by using CSS to achieve the desired effect instead).
This error may also result if the element itself is not supported in the document type you are using, as an undefined element will have no supported attributes; in this case, see the element-undefined error message for further information.
How to fix: check the spelling and case of the element and attribute, (Remember XHTML is all lower-case) and/or check that they are both allowed in the chosen document type, and/or use CSS instead of this attribute. If you received this error when using the <embed> element to incorporate flash media in a Web page, see the FAQ item on valid flash.
[quote]# Error Line 167, Column 15: XML Parsing Error: StartTag: invalid element name.
if (todayy < 1000) {
# Error Line 183, Column > 80: XML Parsing Error: xmlParseEntityRef: no name.
…nerHTML=prefix+dday+ " days, "+dhour+" hours, "+dmin+" minutes, & "+dsec+" s…
underESTIMATED
02-24-2009, 04:56 PM
When I initially install this, and don't change any of the codes from your end...the mod works.
However, when I edit to match the board built date, I get this:
It's been: NaN Days, NaN Hours, NaN Minutes, And NaN Seconds Since MobileQWERTY.com was created for you!
Now granted the board is freshly created < 48hrs...but still should use all fields.
Please advise: http://mobileqwerty.com/forum
C138 Kaysone
03-01-2009, 10:31 PM
Now this is really good, but hey can you make an update or something where it will allow us to put january instead of 01 for default? but thats if you could :) but its still great, im using it right now
underESTIMATED
03-03-2009, 12:39 AM
When I initially install this, and don't change any of the codes from your end...the mod works.
However, when I edit to match the board built date, I get this:
It's been: NaN Days, NaN Hours, NaN Minutes, And NaN Seconds Since MobileQWERTY.com was created for you!
Now granted the board is freshly created < 48hrs...but still should use all fields.
Please advise: http://mobileqwerty.com/forum
How about helping me out...
Still having an issue when uninstalling...and installing it.
Please advise.
Valter
03-03-2009, 04:33 PM
Try with setting 'Start Date Format' to different value.
Also ensure that date segments are separated by commas.
sbsforum.us
04-28-2009, 04:44 PM
Installed and using.
Thanks
Nice to see how long we've been up!
Uasuforos
04-28-2009, 08:39 PM
Very nice, Thanks
Loki12
04-29-2009, 02:41 AM
I have vbAdvanced installed too.
I've added this hack and it works well on the /forum pages. But on the portal page, it doesn't show and the space between navbar and header is gone. Any ideas how to edit which vbadvanced templates to fix this?
unicorn2433
04-30-2009, 03:29 AM
What Template would I edit if I want it to show in the what is going on box at the bottom of it below how many threads and posts?
Loki12
05-11-2009, 09:28 AM
I have vbAdvanced installed too.
I've added this hack and it works well on the /forum pages. But on the portal page, it doesn't show and the space between navbar and header is gone. Any ideas how to edit which vbadvanced templates to fix this?
Anyone please? I see the same happens on my arcade page.
Loki12
05-11-2009, 01:13 PM
Anyone please? I see the same happens on my arcade page.
Ok I fixed it myself. A break has to be inserted on the vbadvanced and arcade templates, since we have deleted the break from the main navbar in this hack. The counter doesn't work when I insert that code on the portal page, I'll do with the break.
Supramania
05-19-2009, 03:32 AM
Had no effect when I installed it on my site.
I installed the .xml, configured per the AdminCP page.
Loaded up my main page, tried all three of the styles I use.
No change in any of them. I uninstalled until this gets a little more attention, etc.
synseal
06-06-2009, 10:03 AM
Thanks for this hack Cyb, works very well :)
yamahapaul
07-21-2009, 11:41 AM
I like this! But can anybody tell me how and where in the templates I have to look to move it so that its under the 'all times are GMT' please? instead of at the top as I've currently got it-
http://www.midlandsheritage.co.uk/
:o
FazerPaint
07-31-2009, 07:49 AM
I have had this hack installed for well over 6 months now and it works great, was wondering if "years" can be added to the time format, my forum is now up to 439 days.
If it is just a case of modding the xml file, could you tell me how??
Cheers for the great mod !!!
FazerPaint
09-07-2009, 06:50 AM
Can anyone tell me how to do the above ??
New Joe
09-07-2009, 01:24 PM
I installed it and have the counter going, but the "Board started" doesn't appear like in your screen shot.
I have the same problem, is this mod supported?
PlayersBay
12-14-2009, 04:25 AM
Great mod and another vote for adding the years to it. My board is less than 2 months old so I you can take up to 10 months to add that :D Just joking, would be nice if you could add that when you find the time and desire to do so.
To the posters above, the 'board started' is not meant to be there from the start. You need to edit templates if you want that. It's explained in the read me.
Valter
01-24-2010, 08:55 PM
v1.8 - Jan 25. 2010.
-Added Years
-Fixed bugs
To upgrade:
-Import XML, allow overwrite
-Check and update settings
Valter
01-24-2010, 09:04 PM
v1.8.1 - Jan 25. 2010.
-Fixed small bug with phrases
ikorolis
01-26-2010, 05:49 PM
small bug found
VBULLETIN SETTINGS => NO TEXT (Cyb - Forums Online CountUp)
Danyx69
01-26-2010, 07:16 PM
yeah and the text doesnt move right or center .. the text is blocked on left .... sad!
I try this way to:
<table border="0" width="100%" cellpadding="0" cellspacing="0" align="center">
<tr>
<td class="footer-row"><table border="0" cellspacing="0" cellpadding="0" class="footer-table" width="100%">
<tr>
<td class="footer-table-center" width="5" height="3"></td>
<td align="center">$cybonlinecountup</td>
</tr>
</table>
</td>
</tr>
</table>
And he stay in the left side .
I try with <center> and with / to .. same bug .
Dutch_Boy
06-10-2010, 03:33 PM
If tried to center it but nothing work :S Its in my footer. Can you give me the right code so i can center it.
Kind regards,
Dutchboy.
Trieb
06-10-2010, 04:53 PM
If tried to center it but nothing work :S Its in my footer. Can you give me the right code so i can center it.
Kind regards,
Dutchboy.
Just add text-align:center; in the options-box "CSS Style" and you'll be fine.
Dutch_Boy
06-10-2010, 06:58 PM
Just add text-align:center; in the options-box "CSS Style" and you'll be fine.
Can you be a little more clear about how to do this plz :) Im not that good with code and stuff.
Kind regard,
Dutchboy
Trieb
06-10-2010, 07:21 PM
Go to:
AdminCP
vBulletin Options
Cyb - Forums Online CountUp
halfway all options there is a box called CSS Style
make sure the text-align:center;
is in there...if not, add it to center the countup text.
Dutch_Boy
06-10-2010, 07:29 PM
Go to:
AdminCP
vBulletin Options
Cyb - Forums Online CountUp
halfway all options there is a box called CSS Style
make sure the text-align:center;
is in there...if not, add it to center the countup text.
Many many many thanks !! Found it and changed it. Thanks !!! :D
justasiam
07-13-2010, 06:06 PM
I have 2 problems. I am running the latest version on my 3.8.5 vBulletin and there are problems. Look at the attached image.
I do not see the "Phrases" section of the configuration in the ACP
In my ACP | Options, Where "Forum Online CountUp" should be, is a blank. No title at all (See the image I attached).
How do I center the $cybonlinecountup on my page? I try "<center>$cybonlinecountup</center>", but that does not work. I also tried modifying the phrases, but again, No Joy.Ideas?
stardotstar
08-16-2010, 06:53 AM
I too seem to be missing the title of the hack in the vBulletin Options list. I have a blank line in the drop down options right below all the other cyb ones!
Thanks for yet another great mod Cyb!
Any idea why this is?
BTW is there a way of putting the start time in as well as the date:
I started at 0945 on the 8th August 2003 and yet I only have 07,08,2003 in the field - is there a syntax to use 09,45,07,08,2003 or something to put the time in accurately - and does the date format entry follow the format defined below it? or is the entry always mmddyyyy or ddmmyyyy; I hope this makes sense...
basically I don't know if I want it to be 07,08,2003 or 08,07,2003 - but I have date format set as per my region ddmmyyyy.
Cheers again for such great work Cyber!
Will
LOKIN510051
08-31-2010, 04:44 AM
I too seem to be missing the title of the hack in the vBulletin Options list. I have a blank line in the drop down options right below all the other cyb ones!
Thanks for yet another great mod Cyb!
Any idea why this is?
BTW is there a way of putting the start time in as well as the date:
I started at 0945 on the 8th August 2003 and yet I only have 07,08,2003 in the field - is there a syntax to use 09,45,07,08,2003 or something to put the time in accurately - and does the date format entry follow the format defined below it? or is the entry always mmddyyyy or ddmmyyyy; I hope this makes sense...
basically I don't know if I want it to be 07,08,2003 or 08,07,2003 - but I have date format set as per my region ddmmyyyy.
Cheers again for such great work Cyber!
Will
I have the same problem
helpppp
sensimilla
11-23-2010, 02:06 PM
I have the same problem
helpppp
same here, last update screwed the hack on my site.
Diablo-Sat
01-01-2011, 01:30 PM
i also got it installed, dosent show where it is in screenshot and also dosent have a name when you edit settings in vbulletin settings, just blank
stardotstar
08-24-2012, 04:58 AM
Wondering if there is anything like this for vB4.2+ and no response about the above issues - Valter is usually *very* reliable so its a bit weird he is silent on this - it is marked as supported...
Will
4nawadir.com
08-24-2012, 11:24 AM
Good Job <3
I will Test It As Soon As Possible :)
+ Can I Translate It To Arabic ?
5 Starts + MOTM <3
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.