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)

Corndog235 08-12-2008 12:45 AM

Thanks for the 3.7 port :)

Paul M 08-12-2008 01:49 PM

Quote:

Originally Posted by SABRSox (Post 1596605)
In the style options, there are alternating colors for tables. Normally I override that by changing the div class to something like "alt3" or whatever name I choose, but I can't find a place to force a div class on this product.

Everything this displays is done via its own templates, just edit them as required.

dianna 08-13-2008 04:10 PM

Sweet thanks!!!

Sym0n 08-19-2008 09:57 AM

Quote:

Originally Posted by Ash Ketchum (Post 1594176)
I recently had a buch of bots attack my forum, and the counter went WAY up there... Is there any way to reset this through the mod or SQL Query?

I've had the same thing. I know this mod doesn't use the same record in datastore as 'Most users ever online'.

Paul can you let me know which table and record your mod is storing it's information in please, specifically the 'Most members online in a day'?

*Edit - Scrap that. I'm thick lol. It is the same 'maxloggedin' record in the datastore table, just at the end.

Thanks

Sy

Gatorade 08-19-2008 10:24 AM

Just awesome thank you!

Jhonnyf 08-20-2008 12:45 AM

how to restar the counter?

thank you

Paul M 08-20-2008 11:06 PM

No easy way.

Jhonnyf 08-20-2008 11:33 PM

Quote:

Originally Posted by Paul M (Post 1603372)
No easy way.

not a simple SQL sentence?

Sym0n 08-21-2008 06:36 AM

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

Paul M 08-21-2008 09:03 AM

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.

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

Paul M 08-27-2008 11:07 AM

From the main post ;

Quote:

Note: it is not possible for this hack to count guests.

sherwood 08-27-2008 02:34 PM

Oh right sorry I must not of read that part. Anyway thanks for the mod!

daxxer 08-29-2008 07:43 PM

Is there any way to have your mod at the bottom but do away with the Currently Active Users and just have yours? If I turn the show active users off in the cp, your's goes away as well.

Paul M 08-30-2008 10:15 AM

Its possible if you edit the forumhome template.

Change ;

Code:

<!-- end logged-in users -->
</if>

to

Code:

</if>
<!-- end logged-in users -->


kottemann 08-30-2008 03:35 PM

Thanks for this

daxxer 08-30-2008 04:24 PM

thanks!

daxxer 08-30-2008 04:41 PM

didn't work for me? Is there something else I'm missing?

Also, what does rolling mean? Is it constantly rollling or cutoff at some point and then roll?

Paul M 08-30-2008 06:18 PM

Quote:

Originally Posted by daxxer (Post 1610681)
didn't work for me? Is there something else I'm missing?

I think I must have been on another planet when I posted that, wrong template - ive corrected the post now. :)


Quote:

Originally Posted by daxxer (Post 1610681)
Also, what does rolling mean? Is it constantly rollling or cutoff at some point and then roll?

It means its always the previous 24 hours, from the moment you display the page.

daxxer 08-30-2008 09:11 PM

It still doesn't work for me but no worries, I'll just leave it along with your mod.

raviteja542 09-01-2008 04:18 PM

good one dude

yamahapaul 09-02-2008 05:02 AM

Installed thanks :up:

Flying Girl 09-05-2008 06:40 AM

Hello,

Thanks a lot. It is great. but please help me. How to put ( small image ) between the nick names ?

Dominiek 09-08-2008 01:19 PM

Installed on 3.7.2. Works like a charm out of the box :up:

hn74 09-08-2008 07:41 PM

thanks a lot .. :)

Makc666 09-10-2008 10:47 AM

Paul M, in you product files for 3.7 you forgot to "fix" version numbers for language phrases.

Like this:
Code:

                <phrasetype name="GLOBAL" fieldname="global">
                        <phrase name="wvt_no_visitors" date="1152000000" username="Paul M" version="4.32"><![CDATA[There are no visitors to list at this moment.]]></phrase>

You have to change it to 3.7.003 for example as when users like me are making translations and click "Find Updated Phrases" then will get messages like this one:

Code:

wpt_posted_today_24 (GLOBAL)
Default Phrase Updated in Members who have Posted 4.32 by Paul M
Your Custom Phrase Last Edited in Members who have Posted 3.7.002 by Makc666

I found this one affected:

Status Crow 09-10-2008 01:25 PM

Quick install, instant value. Thanks so much for this!

Paul M 09-10-2008 07:19 PM

Quote:

Originally Posted by Makc666 (Post 1618868)
Paul M, in you product files for 3.7 you forgot to "fix" version numbers for language phrases.

No. I didnt. They were left that way on purpose.

Quote:

Originally Posted by Makc666 (Post 1618868)
You have to change it to 3.7.003 for example as when users like me are making translations and click "Find Updated Phrases" then will get messages like this one:

I dont have to change them, nor am I going to. They are left as they were because thats when they were added.

Bellinis 09-12-2008 08:51 AM

I've been searching all over, but I can't seem to find where I can remove the comma's and spaces between the listed usernames.

Anyone? :)

Paul M 09-12-2008 03:23 PM

Why would you want to ?

Makc666 09-12-2008 08:25 PM

Quote:

Originally Posted by Paul M (Post 1619335)
I dont have to change them, nor am I going to. They are left as they were because thats when they were added.

Paul M, I never talked in ordered tone :) English is not my native language, so I sometimes use not entirely correct phrases.
I wanted to say then that it seems to me that it would be appropriate to correct version in phrases.

I didn't want to offend you! :)

I now trying to understand why such things happening with translation during the upgrade of the forum.


All times are GMT. The time now is 02:00 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.01698 seconds
  • Memory Usage 1,828KB
  • 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
  • (6)bbcode_code_printable
  • (13)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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