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)

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/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?

akz645 01-08-2016 02:07 PM

Works on vBulletin 4.2.3 :)

Evidence:
https://vborg.vbsupport.ru/external/2016/01/14.png

Quote:

Originally Posted by Voltstriker (Post 2520093)
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.

Quote:

Originally Posted by BirdOPrey5 (Post 2471919)
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

Quote:

Originally Posted by setishock (Post 2562841)
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?


All times are GMT. The time now is 05:53 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.01172 seconds
  • Memory Usage 1,792KB
  • 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
  • (4)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
  • (25)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