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

Reply
 
Thread Tools
Members who have visited the forum (Today or last 24 hours). Details »»
Members who have visited the forum (Today or last 24 hours).
Version: 4.21, by Paul M Paul M is offline
Developer Last Online: Nov 2023 Show Printable Version Email this Page

Version: 3.5.x Rating:
Released: 06-09-2005 Last Update: 05-14-2006 Installs: 1970
 
No support by the author.

This modification is no longer available or supported.

This adds a simple display of all members who have visited the forum - either today (i.e. since midnight) or in the last 24 hours. Please note that it is not possible for this hack to count guests.

The main features of Version 4.xx are basically the same as previous versions ;

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 should 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 hack is now phrased.
8. The ability to turn it on/off is in the ACP Forum Home Options.
9. The ability to allow only certain usergroups to view the list is an ACP option (vBulletin Options > Who has visited today).
10. The switch between Visited Today and Rolling 24 Hours is an ACP option (many seem to miss this actually exists).
11. The listing of members can now be suppressed (a simple message is displayed instead).
12. The list of names can be set to be always collapsed on initial view.

Unzip the XML and import into vB using the ACP Product Manager.

To upgrade from version 4.10 onwards, you need to re-import the product with the overwrite option set to yes. To upgrade from version 4.01/4.02 to version 4.10 onwards, you need to uninstall the product and remove the template code in FORUMHOME - then upload the new product. To upgrade from version 3.xx to version 4.xx you need to delete the existing plugin and remove the template code in FORUMHOME - then upload the new product.

* Add-ons etc *

* An add-on to display a 'Most ever posters' count is available here.

* If you want the WVT display on a seperate page - see this post by EvilHawk - now updated to version 4.21.

* There is also a CMPS module that makes use of this plugin (by tgmorris).


History:

v4.10 : Removed the need to edit the FORUMHOME template.
v4.11 : Hyperlinked display icon to members list. Added vb number formatting to count.
v4.12 : Added ALT tag to above hyperlink.
v4.13 : Fixed problem affecting the most visitors add-on when more than 999 visit in a day.
v4.14 : Added name suppression & always collapsed options.
v4.15 : Updated the install code to only create the index if it doesn't already exist.
v4.16 : Fixed error in new install code (changed DROP to ADD !).
v4.17 : Updated ACP view permission option to take into account secondary groups.
v4.18 : Not publicly released.
v4.19 : Added 'nofollow' attribute to listed usernames.
v4.20 : Minor changes, no update necessary.
v4.21 : Minor changes to settings group, instructions updated.

Show Your Support

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

Comments
  #1012  
Old 08-14-2006, 09:23 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

It uses the template "Display_Visitors".
Reply With Quote
  #1013  
Old 08-14-2006, 11:08 PM
The-Ensemble's Avatar
The-Ensemble The-Ensemble is offline
 
Join Date: Jul 2006
Location: United Kingdom
Posts: 278
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok I've found them thanks.
Having a small problem though on The most members online in one day was 5, 08-06-2006. it displays the names underneath and there is other phrases next to it where do i go to remove the names? I can't find a phrase in phrase manager that goes by the name of $whotoday.

I want to edit these 2 phrases where would i find them to edit the wording?
$whodesc
$whotoday

Thanks
Reply With Quote
  #1014  
Old 08-14-2006, 11:49 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

$whodesc & $whotoday are not phrases, they are variables built by the php code.

Why don't you post exactly what you are trying to do, or change, because "The most members online in one day " is not even part of this mod, it's generated by another (add-on) to this.
Reply With Quote
  #1015  
Old 08-15-2006, 01:01 PM
The-Ensemble's Avatar
The-Ensemble The-Ensemble is offline
 
Join Date: Jul 2006
Location: United Kingdom
Posts: 278
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

OH!
Well i want to add these 2 lines of text in the whats going on box.

The most members online in one day was 5, 08-06-2006. | Number of active users today: 5

I'm a good way there I just need to stop the names showing up under the first one and to be able to change what the text says.
Reply With Quote
  #1016  
Old 08-17-2006, 02:54 AM
Chadi's Avatar
Chadi Chadi is offline
 
Join Date: May 2004
Location: USA
Posts: 2,043
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

How do I edit the timezone?

Members who have visited (2) shows this (plugin)

Code:
if ($show['wvt'])
{
	if ($vbulletin->options['wvt24'])
	{
		$cutoff = TIMENOW - 86400;
		$whodesc = $vbphrase['visited_today_24'];
	}
	else
	{
		$whodesc = $vbphrase['visited_today'];
		$tnow = date('YmdHis',TIMENOW - intval($vbulletin->options['hourdiff'])); 
		$cutoff = TIMENOW - (substr($tnow,8,2)*3600 + substr($tnow,10,2)*60 + substr($tnow,12,2)); 
	}

	$todaysusers = $vbulletin->db->query_read("
		SELECT userid, lastactivity, options, username, user.usergroupid, displaygroupid, 
		groupa.opentag as opentaga, groupa.closetag as closetaga, 
		groupb.opentag as opentagb, groupb.closetag as closetagb
		FROM " . TABLE_PREFIX . "user as user
		LEFT JOIN " . TABLE_PREFIX . "usergroup as groupa ON(user.usergroupid = groupa.usergroupid)
		LEFT JOIN " . TABLE_PREFIX . "usergroup as groupb ON(user.displaygroupid = groupb.usergroupid)
		WHERE lastactivity > " .$cutoff. " ORDER BY username
	"); 
		
	$totaltoday = 0;
	unset ($whotoday);
	while ($today = $vbulletin->db->fetch_array($todaysusers))
	{
		$totaltoday += 1;
		$today['opentag'] = $today['opentaga'] ;
		$today['closetag'] = $today['closetaga'] ;
		if ($today['displaygroupid']) 
		{
			$today['opentag'] = $today['opentagb'] ;
			$today['closetag'] = $today['closetagb'] ;
		}
		$today[visible] = 1 ;
		if ($today['options'] & $vbulletin->bf_misc_useroptions['invisible']) 
		{
			$today['visible'] = 0 ;
			if (($vbulletin->userinfo['permissions']['genericpermissions'] 
			& $vbulletin->bf_ugp_genericpermissions['canseehidden']) 
			OR $today['userid'] == $vbulletin->userinfo['userid'])
			{
				$today['visible'] = 2 ;
			}
		}
		if ($today['visible']) 
		{
			$wrdate = vbdate($vbulletin->options['timeformat'], $today['lastactivity']);
			$whotoday .= "<a href='member.php?u=$today[userid]' title='$wrdate' >";
			if ($today['visible'] == 2) 
			{
				$whotoday .= $today['opentag'].$today['username'].$today['closetag']."</a>*, ";
			}
			else 
			{
				$whotoday .= $today['opentag'].$today['username'].$today['closetag']."</a>, ";
			}
		}
	}
	if ($whotoday)
	{
		$whotoday = substr($whotoday, 0, strlen($whotoday)-2);
	}
	else
	{
		$whotoday = $vbphrase['no_visitors'];
	}
	$search_text = '<!-- end logged-in users -->';
	$vbulletin->templatecache['FORUMHOME'] = str_replace($search_text,
	$search_text.fetch_template('Display_Visitors'),$vbulletin->templatecache['FORUMHOME']);
}
I want the timezone to be Central US (GMT -4:00 if I'm not mistaken). Actually, I would rather
have it "last 24 hrs" if possible without clearing out the list of visited members on the 24th hour
Reply With Quote
  #1017  
Old 08-18-2006, 08:59 PM
The-Ensemble's Avatar
The-Ensemble The-Ensemble is offline
 
Join Date: Jul 2006
Location: United Kingdom
Posts: 278
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

bump
Reply With Quote
  #1018  
Old 08-24-2006, 06:56 PM
mlucek's Avatar
mlucek mlucek is offline
 
Join Date: Feb 2004
Location: Lost Angeles
Posts: 32
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Installed on fresh VB 3.6.0 site and works right outta-the-box !! Took < 1 minute.

Thanks !!
Reply With Quote
  #1019  
Old 08-24-2006, 07:29 PM
jilly jilly is offline
 
Join Date: Jul 2002
Location: central maryland
Posts: 461
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

see screenshot
Weird problem - at a certain point down the who's online and who visited today, the font gets big. I tried uninstalling and reinstalling both hacks, and it doesn't seem to fix it - any idea why my font goes big there, or where to look to check the code?
Reply With Quote
  #1020  
Old 08-24-2006, 09:13 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 way to determine the problem from a screenshot, it would need access to the actual site. I would guess its a weird username or usergroup markup code. Since it happens in your logged in users list, it cannot be related to this mod as such.
Reply With Quote
  #1021  
Old 08-24-2006, 09:36 PM
The-Ensemble's Avatar
The-Ensemble The-Ensemble is offline
 
Join Date: Jul 2006
Location: United Kingdom
Posts: 278
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

So how would i remove the name list from the variable? Is there something in the phpcode i can edit or something?
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 07:09 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.06819 seconds
  • Memory Usage 2,324KB
  • 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
  • (1)bbcode_code
  • (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
  • (3)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