Go Back   vb.org Archive > vBulletin Modifications > Archive > Modification Graveyard
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Members who have visited today. Details »»
Members who have visited today.
Version: 3.8.002, by Paul M Paul M is offline
Developer Last Online: Nov 2023 Show Printable Version Email this Page

Category: Forum Home Enhancements - Version: 3.8.x Rating:
Released: 11-15-2008 Last Update: 11-25-2008 Installs: 1833
Uses Plugins Auto-Templates
Translations  
No support by the author.

As of 24 Nov 2017 this modification has been withdrawn.

This adds a simple display of all members who have visited the forum - either today (i.e. since the users midnight) or in the last 24 hours.

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

The main features of the 3.8 version are as follows ;

1. It displays the list on the Forum Home.
2. The list view is collapsable, so you just see the number.
3. Invisible users are only displayed to those allowed to see them (with a "*")
4. Users who should display as coloured or bold etc will be displayed correctly (based on the display usergroup).
5. If you 'hover' over a username it will show the time they were last active.
6. The list is in member name order.
7. The ability to turn it on/off is in the ACP Options.
8. The ability to allow only certain usergroups to view the list is an ACP option (include or exclude groups).
9. An option to record and display the Most Ever Members can be enabled.
10. The switch between Visited Today and Rolling 24 Hours is an ACP option.
11. The listing of members can be suppressed (a simple message is displayed instead).
12. The list of names can be set to be always collapsed on initial view.

(Options are in vBulletin Options > Who has visited today)

To install just unzip the XML and import into vB using the ACP Product Manager.

Template Hook

Please note that this modification uses the following template hook in the FORUMHOME template ;

forumhome_wgo_pos2

This must be present in any customised template/style you are using, otherwise this modification will not display.



History:

v3.8.001 : Initial version for vB 3.8.x
v3.8.002 : Fix Most Ever Display Bug.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #182  
Old 09-08-2009, 06:57 PM
robdawg robdawg is offline
 
Join Date: Sep 2005
Location: Orange County, CA
Posts: 66
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #183  
Old 09-08-2009, 08:57 PM
Paul M's Avatar
Paul M Paul M is offline
 
Join Date: Sep 2004
Location: Nottingham, UK
Posts: 23,748
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #184  
Old 09-08-2009, 10:28 PM
robdawg robdawg is offline
 
Join Date: Sep 2005
Location: Orange County, CA
Posts: 66
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #185  
Old 09-09-2009, 10:23 AM
Paul M's Avatar
Paul M Paul M is offline
 
Join Date: Sep 2004
Location: Nottingham, UK
Posts: 23,748
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #186  
Old 09-09-2009, 03:55 PM
robdawg robdawg is offline
 
Join Date: Sep 2005
Location: Orange County, CA
Posts: 66
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #187  
Old 09-09-2009, 04:17 PM
Smitty's Avatar
Smitty Smitty is offline
 
Join Date: Sep 2002
Location: Southern Ohio
Posts: 385
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #188  
Old 09-09-2009, 05:25 PM
Paul M's Avatar
Paul M Paul M is offline
 
Join Date: Sep 2004
Location: Nottingham, UK
Posts: 23,748
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by robdawg View Post
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 View Post
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.
Reply With Quote
  #189  
Old 09-17-2009, 05:10 PM
cuphongle cuphongle is offline
 
Join Date: Jul 2005
Posts: 224
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by ouch View Post
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
Reply With Quote
  #190  
Old 09-21-2009, 08:56 AM
princeedward's Avatar
princeedward princeedward is offline
 
Join Date: Jan 2007
Location: Deutschland
Posts: 901
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

great and thanks Paul...my vb3.8.4 is updated...:up:
Reply With Quote
  #191  
Old 09-21-2009, 02:56 PM
Simon Lloyd's Avatar
Simon Lloyd Simon Lloyd is offline
 
Join Date: Aug 2008
Location: Manchester
Posts: 3,481
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 08:02 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.21981 seconds
  • Memory Usage 2,317KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (5)bbcode_code
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete