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=165960)

Sym0n 08-21-2008 09:56 AM

A lot of damage PMSL. At least back this claim up so that I know what I'm meant to of done wrong and can learn.

The original code is taken directly from vb.com, as linked, and adapted to change the value shown by your mod. I informed people to double check it first, I'm not a SQL coder as should be apparent and do not pretend to be, but as it worked for me on my test, and now live, site I figured someone else with more knowledge would be able to take it and clean it up/refine it. But more then anything I thought it might actually help some people with, what looks to be, a common problem.

As far as I can see the only other dates/values that would be reset is the 'Most users ever online' value, which I wanted it to do as both needed resetting.

You state there is no easy way, but then tease people that if they had knowledge and experience that they could do it. So why not just explain how it's done and let people then decide themselves if they have the relevant knowledge or experience to take the task on and make the change(s) properly?

Jhonnyf 08-21-2008 12:48 PM

Quote:

Originally Posted by Sym0n (Post 1603590)
Nope, well saying that depends on what you want to reset. If you wanted to reset the counter to 0 with todays date then yes a simple SQL query on datastore to change the value to 0 with todays date then the following:
Code:

UPDATE datastore SET data = 'a:4:{s:9:"maxonline";i:0;s:13:"maxonlinedate";i:1219276801;s:15:"maxvisitorsdate";i:1219276801;s:11:"maxvisitors";i:0;}
(I think, so double check it before you run it and don't blame me if it wrecks your DB lol)

However if you want to reset the max users online figure with a date in the past you'd need to change that query so that the bits in red fit your criteria. To calculate the date in unix time I've used this online calculator.

Anyway further details, written by someone who has a clue of what they are talking about, can be found HERE.

Sy

Thank you, but Paul have reason:(

Quote:

Originally Posted by Paul M (Post 1603660)
Dont run that query as is, it will cause a lot of damage as it as it doesnt specifically reference the maxloggedin record, but even if it did - running it will wipe out other dates/values stored in that record.

Like I said, there is no easy way. Most things can be done if you have the knowledge and experience.

I thought that this value is inside a custom table and not inside a vBulletin table

But I remembered that one time this counter was restarted alone...

Richard Zenteno 08-21-2008 09:28 PM

Installed..Thanks

DannyITR 08-22-2008 01:36 AM

I know if I change my cookie setting to more than 15 min I can increase my online users. I was wondering if it is possible to display users online in the last 30min, 1hr, 3hrs etc as a method to spike the number but keep the 15 min setting for cookies?

Buffenie 08-23-2008 05:22 PM

Installed. Thank you!
ver. 3.7.2 PL 2

Paul M 08-25-2008 09:14 AM

Quote:

Originally Posted by DannyITR (Post 1604151)
I know if I change my cookie setting to more than 15 min I can increase my online users. I was wondering if it is possible to display users online in the last 30min, 1hr, 3hrs etc as a method to spike the number but keep the 15 min setting for cookies?

Nope, not with this.

Ray2khax 08-25-2008 11:50 AM

Great Mod! Iv been looking for something like this thanks so much :)

CapitanoN6 08-26-2008 10:57 PM

to add visitors?

Paul M 08-27-2008 09:49 AM

Quote:

Originally Posted by CapitanoN6 (Post 1607739)
to add visitors?

Sorry, this post doesnt make much sense to me.

sherwood 08-27-2008 10:27 AM

It works on vb 3.7.3.

Also is there a way to make it show how many guests have been online within 24 hours??


All times are GMT. The time now is 04:59 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.01401 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
  • (1)bbcode_code_printable
  • (4)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