vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Forum Home Enhancements - Members who have visited today. (https://vborg.vbsupport.ru/showthread.php?t=196458)

robdawg 09-08-2009 06:57 PM

I know I posted this before, but I need to know the answer.

The most members online over 24 hours was XXXX

How do I reset the the XXXX value to 0?

Thanks.

Paul M 09-08-2009 08:57 PM

There is no method to do this.

You could try messing directly with the datastore, but thats not something id advise unless you really know what you are doing. Other than that, you would need to run some code to reset it.

robdawg 09-08-2009 10:28 PM

If you can tell me the table name and what column to search on, I can find and update that row to change it back to 0.

Thanks.

Paul M 09-09-2009 10:23 AM

Im afraid its not that simple, which is why I said you really need to know what you are doing.

The data is stored in the Datastore (table), as part of a serialised array, in the maxloggedin row.

robdawg 09-09-2009 03:55 PM

Change this line in the manage plugin area in the admin:
Code:

if ($totaltoday > intval($vbulletin->maxloggedin['maxvisitors']))
To the following:
Code:

if ($totaltoday < intval($vbulletin->maxloggedin['maxvisitors']))
Let the page run once and then changed it back. haha. Ghetto work around, I know but it reset a bad count to the current number which is what I wanted.

Smitty 09-09-2009 04:17 PM

Nice script change! Thanks for sharing!

I had to change mine once in the database when a hoard of spiders practically doubled the count. I didn't want members wondering about the number being a real number. I don't mind playing around in a database, but your script change would have been about as quick and easy.

I'll backup what Paul said: "You could try messing directly with the datastore, but thats not something id advise unless you really know what you are doing." If you're not comfortable diving into a database and understand its relational schema, you better watch out. You can easily hose the whole database.

Paul M 09-09-2009 05:25 PM

Quote:

Originally Posted by robdawg (Post 1882123)
Change this line in the manage plugin area in the admin:
Code:

if ($totaltoday > intval($vbulletin->maxloggedin['maxvisitors']))
To the following:
Code:

if ($totaltoday < intval($vbulletin->maxloggedin['maxvisitors']))
Let the page run once and then changed it back. haha. Ghetto work around, I know but it reset a bad count to the current number which is what I wanted.

Yep, that was option 2. :)
Quote:

Originally Posted by Paul M (Post 1881769)
You could try messing directly with the datastore, but thats not something id advise unless you really know what you are doing. Other than that, you would need to run some code to reset it.


cuphongle 09-17-2009 05:10 PM

Quote:

Originally Posted by ouch (Post 1798718)
Yes this works well, ok here's were you need to put the hook, go to your adminCP, on the left under styles&templates click style manager. Make sure you choose the correct skin to work with so if your running a custom skin click that! Next from the drop down box that shows all style items choose edit templates, navigate to forum home templates. Then click forum home ...........find the code as shown below and drop your hook intel exactly below 'end logged in users'.

Code:

        </tr>
</tbody>
<!-- end logged-in users -->
$template_hook[forumhome_wgo_pos2]
</if>
<tbody>
        <tr>

I hope this helps someone out there.:up:


it sure did
thanks

princeedward 09-21-2009 08:56 AM

great and thanks Paul...my vb3.8.4 is updated...;):up:

Simon Lloyd 09-21-2009 02:56 PM

Paul, im using the 3.7 version on a 3.8.4, it works perfect (or at least seems to) do i need to upgrade to this one?


All times are GMT. The time now is 01:07 AM.

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.01285 seconds
  • Memory Usage 1,741KB
  • 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
  • (5)bbcode_code_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (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