vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=235)
-   -   Statistics Modifications - Cyb - Forums Online CountUp (https://vborg.vbsupport.ru/showthread.php?t=201301)

Valter 01-09-2009 10:00 PM

Cyb - Forums Online CountUp
 
1 Attachment(s)
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

Quote:

Originally Posted by DarkFormula (Post 1710483)
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

Quote:

Originally Posted by COBRAws (Post 1709756)
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:

Quote:

# 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 "&lt;"
* You used an unescaped ampersand "&": this may be valid in some contexts, but it is recommended to use "&amp;", which is always safe.
* Another possibility is that you forgot to close quotes in a previous tag.
Quote:

# Warning Line 183, Column 108: character "&amp;" 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 "&lt;"
* You used an unescaped ampersand "&": this may be valid in some contexts, but it is recommended to use "&amp;", which is always safe.
* Another possibility is that you forgot to close quotes in a previous tag.
[quote]# Error Line 186, Column 334: there is no attribute "onload".

…/clear.gif" border="0" alt="" onload="countup();" />&nbsp;</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) {
Quote:

# 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:
PHP Code:

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

Quote:

Originally Posted by underESTIMATED (Post 1753478)
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:
PHP Code:

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

Quote:

Originally Posted by Loki12 (Post 1800973)
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

Quote:

Originally Posted by Loki12 (Post 1808468)
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

Quote:

Originally Posted by DarkFormula (Post 1710483)
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:

PHP Code:

<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

Quote:

Originally Posted by Dutch_Boy (Post 2051608)
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
Code:

text-align:center;
in the options-box "CSS Style" and you'll be fine.

Dutch_Boy 06-10-2010 06:58 PM

Quote:

Originally Posted by Trieb (Post 2051633)
Just add
Code:

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
Code:

text-align:center;
is in there...if not, add it to center the countup text.

Dutch_Boy 06-10-2010 07:29 PM

Quote:

Originally Posted by Trieb (Post 2051699)
Go to:
AdminCP
vBulletin Options
Cyb - Forums Online CountUp

halfway all options there is a box called CSS Style
make sure the
Code:

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


All times are GMT. The time now is 05:19 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01877 seconds
  • Memory Usage 1,838KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (4)bbcode_code_printable
  • (3)bbcode_php_printable
  • (13)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete