vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Statistics Modifications - VSa - Forums Online CountUp (https://vborg.vbsupport.ru/showthread.php?t=234043)

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/attachmen...9&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

Quote:

Originally Posted by BGObsession (Post 2476111)
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>


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?


All times are GMT. The time now is 03:46 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.01206 seconds
  • Memory Usage 1,765KB
  • 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
  • (1)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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