Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
VSa - Forums Online CountUp Details »»
VSa - Forums Online CountUp
Version: 2.0, by Valter Valter is offline
Developer Last Online: Nov 2023 Show Printable Version Email this Page

Category: Statistics Modifications - Version: 4.x.x Rating:
Released: 01-23-2010 Last Update: 01-23-2010 Installs: 366
Uses Plugins Auto-Templates
 
No support by the author.

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

File Type: zip VSa - Forums Online CountUp v2.0.zip (3.0 KB, 1303 views)

Screenshots

File Type: jpg acp.jpg (149.1 KB, 0 views)
File Type: jpg counter.jpg (46.5 KB, 0 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
2 благодарности(ей) от:
Judith2, sensimilla

Comments
  #52  
Old 04-09-2012, 10:50 AM
josantos josantos is offline
 
Join Date: Oct 2009
Posts: 40
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

very good, Thanks
Reply With Quote
  #53  
Old 08-20-2012, 08:16 PM
g00gl3r g00gl3r is offline
 
Join Date: Sep 2005
Posts: 174
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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).
Reply With Quote
  #54  
Old 08-21-2012, 06:16 AM
Valter Valter is offline
 
Join Date: Aug 2005
Location: Sarajevo
Posts: 2,432
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You should set it in product options:
https://vborg.vbsupport.ru/attachmen...9&d=1264357387
Reply With Quote
  #55  
Old 09-07-2012, 09:10 AM
TheSupportForum TheSupportForum is offline
 
Join Date: Jan 2007
Posts: 1,158
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #56  
Old 01-03-2014, 02:24 AM
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
Senior Member
 
Join Date: Jun 2008
Location: New York
Posts: 10,610
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #57  
Old 01-23-2014, 01:51 AM
BGObsession's Avatar
BGObsession BGObsession is offline
 
Join Date: Apr 2009
Posts: 199
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #58  
Old 01-24-2014, 12:07 AM
ozzy47's Avatar
ozzy47 ozzy47 is offline
 
Join Date: Jul 2009
Location: USA
Posts: 10,929
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by BGObsession View Post
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:

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]&nbsp;,''}";
			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 = ",&nbsp;";
			} else {
				dyearc = "&nbsp;";
			}

			<vb:if condition="$vboptions[vsa_onlinecountup_hours_enable] || $vboptions[vsa_onlinecountup_minutes_enable] || $vboptions[vsa_onlinecountup_seconds_enable]">
			dyearc = ",&nbsp;";
			</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+"&nbsp;{vb:rawphrase year}"+dyearc;
			} else if (dyear>1){
				dyeard = dyear+"&nbsp;{vb:rawphrase years}"+dyearc;
			} else {
				dyeard = "";
			}

			if (dday<=0) {
				ddayd = "";
			} else if (dday==1) {
				ddayd = dday+"&nbsp;{vb:rawphrase day}";
			} else {
				ddayd = dday+"&nbsp;{vb:rawphrase days}";
			}

			<vb:if condition="$vboptions[vsa_onlinecountup_hours_enable]">
			if (ddayd) {
				dhourc = ",&nbsp;";
			} else {
				dhourc = "";
			}
			if (dhour==1) {
				dhourd = dhourc+dhour+"&nbsp;{vb:rawphrase vsa_onlinecountup_hour}";
			} else {
				dhourd = dhourc+dhour+"&nbsp;{vb:rawphrase hours}";
			}
			</vb:if>

			<vb:if condition="$vboptions[vsa_onlinecountup_minutes_enable]">
			if (dmin==1) {
				dmind = ",&nbsp;"+dmin+"&nbsp;{vb:rawphrase vsa_onlinecountup_minute}";
			} else {
				dmind = ",&nbsp;"+dmin+"&nbsp;{vb:rawphrase vsa_onlinecountup_minutes}";
			}
			</vb:if>

			<vb:if condition="$vboptions[vsa_onlinecountup_seconds_enable]">
			if (dsec==1) {
				dsecd = ",&nbsp;"+dsec+"&nbsp;{vb:rawphrase second}";
			} else {
				dsecd = ",&nbsp;"+dsec+"&nbsp;{vb:rawphrase vsa_onlinecountup_seconds}";
			}
			</vb:if>

			suffix = "{vb:if $vboptions[vsa_onlinecountup_suffix], &nbsp;$vbphrase[vsa_onlinecountup_suffix],''}";

			document.getElementById('vsa_focobj').innerHTML = prefix + dyeard + ddayd + dhourd + dmind + dsecd + suffix;
			setTimeout("VSaFOCCount()",1000);
		}
		VSaFOCCount();
	</script>
	<p>
Reply With Quote
2 благодарности(ей) от:
Elite_360_, RichieBoy67
  #59  
Old 01-24-2014, 12:25 AM
BGObsession's Avatar
BGObsession BGObsession is offline
 
Join Date: Apr 2009
Posts: 199
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Awesome! Thanks ozzy!
Reply With Quote
  #60  
Old 01-24-2014, 12:25 AM
ozzy47's Avatar
ozzy47 ozzy47 is offline
 
Join Date: Jul 2009
Location: USA
Posts: 10,929
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Not a problem, glad to help.
Reply With Quote
  #61  
Old 10-26-2014, 12:32 PM
Voltstriker Voltstriker is offline
 
Join Date: Jul 2012
Posts: 2
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

For some reason the mod turns the profile pictures on the member.php page to the default unknown file. Any ideas?
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 09:20 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05538 seconds
  • Memory Usage 2,352KB
  • Queries Executed 26 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_code
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (11)post_thanks_box
  • (4)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (2)post_thanks_postbit
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (3)postbit_attachment
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete