Go Back   vb.org Archive > vBulletin Modifications > Archive > Modification Graveyard

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
  #222  
Old 10-19-2009, 11:31 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

There is no requirement to start editing the code, and doing so will most likely break it. Undo your changes.

If you dont have the template hook then you must manually add it. Either do a compare with the default vb template to see where it goes, or look back in this thread for the posts about it (try round about post #189).
Reply With Quote
  #223  
Old 10-19-2009, 07:17 PM
oxygenthief oxygenthief is offline
 
Join Date: Sep 2009
Posts: 10
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have not edited the code. Just copied and pasted from the download. I have done the above, but still cannot get it to work.
I still dont have the forumhome_wgo_pos2 option.

The modified FORUMHOME template now looks like this:
PHP Code:
$stylevar[htmldoctype]
<
html xmlns="http://www.w3.org/1999/xhtml" dir="$stylevar[textdirection]lang="$stylevar[languagecode]">
<
head>
    <!-- 
no cache headers -->
    <
meta http-equiv="Pragma" content="no-cache" />
    <
meta http-equiv="Expires" content="-1" />
    <
meta http-equiv="Cache-Control" content="no-cache" />
    <!-- 
end no cache headers -->
    
$headinclude
    
<title><phrase 1="$vboptions[bbtitle]">$vbphrase[x_powered_by_vbulletin]</phrase></title>
</
head>
<
body>
$header
$navbar

<if condition="$show['guest']">
<!-- 
guest welcome message -->
<
table class="tborder" cellpadding="$stylevar[cellpadding]cellspacing="$stylevar[cellspacing]border="0" width="100%" align="center">
<
tr>
    <
td class="tcat"><phrase 1="$vboptions[bbtitle]">$vbphrase[welcome_to_the_x]</phrase></td>
</
tr>
<
tr>
    <
td class="alt1">
        <
phrase 1="faq.php$session[sessionurl_q]2="register.php$session[sessionurl_q]">$vbphrase[first_visit_message]</phrase>
    </
td>
</
tr>
</
table>
<!-- / 
guest welcome message -->
<
br />
</if>

<!-- 
main -->
<
table class="tborder" cellpadding="$stylevar[cellpadding]cellspacing="$stylevar[cellspacing]border="0" width="100%" align="center">
<
thead>
    <
tr align="center">
      <
td class="thead">&nbsp;</td>
      <
td class="thead" width="100%" align="$stylevar[left]">$vbphrase[forum]</td>
      <
td class="thead">$vbphrase[last_post]</td>
      <
td class="thead">$vbphrase[threads]</td>
      <
td class="thead">$vbphrase[posts]</td>
      <if 
condition="$vboptions['showmoderatorcolumn']">
      <
td class="thead">$vbphrase[moderator]</td>
      </if>
    </
tr>
</
thead>
$forumbits
<tbody>
    <
tr>
        <
td class="tfoot" align="center" colspan="<if condition="$vboptions['showmoderatorcolumn']">6<else />5</if>"><div class="smallfont"><strong>
            <
a href="forumdisplay.php?$session[sessionurl]do=markread" rel="nofollow">$vbphrase[mark_forums_read]</a>
            <if 
condition="$vboptions['forumleaders']">&nbsp; &nbsp;
            <
a href="showgroups.php$session[sessionurl_q]">$vbphrase[view_forum_leaders]</a></if>
        </
strong></div></td>
    </
tr>
</
tbody>
</
table>
$forumhome_markread_script
<!-- /main -->

<
br />
$ad_location[ad_forumhome_afterforums]
<
br />

<!-- 
what's going on box -->
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<thead>
    <tr>
        <td class="tcat" colspan="2">$vbphrase[whats_going_on]</td>
    </tr>
</thead>
$template_hook[forumhome_wgo_pos1]
<if condition="$show['
loggedinusers']">
<!-- logged-in users -->
<tbody>
    <tr>
        <td class="thead" colspan="2">
            <a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('
forumhome_activeusers')"><img id="collapseimg_forumhome_activeusers" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_forumhome_activeusers].gif" alt="" border="0" /></a>
            <a href="online.php$session[sessionurl_q]">$vbphrase[currently_active_users]</a>: $totalonline (<phrase 1="$numberregistered" 2="$numberguest">$vbphrase[x_members_and_y_guests]</phrase>)
        </td>
    </tr>
</tbody>
<tbody id="collapseobj_forumhome_activeusers" style="$vbcollapse[collapseobj_forumhome_activeusers]">
    <tr>
        <td class="alt2"><a href="online.php$session[sessionurl_q]"><img src="$stylevar[imgdir_misc]/whos_online.gif" alt="$vbphrase[view_whos_online]" border="0" /></a></td>
        <td class="alt1" width="100%">
            <div class="smallfont">
                <div style="white-space: nowrap"><phrase 1="$recordusers" 2="$recorddate" 3="$recordtime">$vbphrase[most_users_ever_online_was_x_y_at_z]</phrase></div>
                <div>$activeusers</div>
            </div>
        </td>
    </tr>
</tbody>
<!-- end logged-in users -->
</if>
    </tr>
</tbody>
<!-- end logged-in users -->
</if>
$template_hook[forumhome_wgo_pos2]
<tbody>
    <tr>
$template_hook[forumhome_wgo_pos2]
<tbody>
    <tr>
        <td class="thead" colspan="2">
            <a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('
forumhome_stats')"><img id="collapseimg_forumhome_stats" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_forumhome_stats].gif" alt="" border="0" /></a>
            <phrase 1="$vboptions[bbtitle]">$vbphrase[x_statistics]</phrase>
        </td>
    </tr>
</tbody>
<tbody id="collapseobj_forumhome_stats" style="$vbcollapse[collapseobj_forumhome_stats]">
    <tr>
        <td class="alt2"><img src="$stylevar[imgdir_misc]/stats.gif" alt="<phrase 1="$vboptions[bbtitle]">$vbphrase[x_statistics]</phrase>" border="0" /></td>
        <td class="alt1" width="100%">
        <div class="smallfont">
            <div>
                $vbphrase[threads]: $totalthreads,
                $vbphrase[posts]: $totalposts,
                $vbphrase[members]: $numbermembers<if condition="$show['
activemembers']">,
                    <span title="<phrase 1="$vboptions[activememberdays]">$vbphrase[within_the_last_x_days]</phrase>">$vbphrase[active_members]: $activemembers</span>
                </if>
            </div>
            <div><phrase 1="member.php?$session[sessionurl]u=$newuserid" 2="$newusername">$vbphrase[welcome_to_our_newest_member_x]</phrase></div>
            $template_hook[forumhome_wgo_stats]
        </div>
        </td>
    </tr>
</tbody>
$template_hook[forumhome_wgo_pos3]
<if condition="$show['
birthdays']">
<!-- today'
s birthdays -->
<
tbody>
    <
tr>
        <
td class="thead" colspan="2">
            <
a style="float:$stylevar[right]href="#top" onclick="return toggle_collapse('forumhome_birthdays')"><img id="collapseimg_forumhome_birthdays" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_forumhome_birthdays].gif" alt="" border="0" /></a>
            
$vbphrase[todays_birthdays]
        </
td>
    </
tr>
</
tbody>
<
tbody id="collapseobj_forumhome_birthdays" style="$vbcollapse[collapseobj_forumhome_birthdays]">
    <
tr>
        <
td class="alt2"><a href="calendar.php?$session[sessionurl]do=getday&amp;day=$today&amp;sb=1"><img src="$stylevar[imgdir_misc]/birthday.gif" alt="$vbphrase[view_birthdays]border="0" /></a></td>
        <
td class="alt1" width="100%"><div class="smallfont">$birthdays</div></td>
    </
tr>
</
tbody>
<!-- 
end today's birthdays -->
</if>
$template_hook[forumhome_wgo_pos4]
<if condition="$show['
upcomingevents']">
<tbody>
    <tr>
        <td class="thead" colspan="2">
            <a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('
forumhome_events')"><img id="collapseimg_forumhome_events" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_forumhome_events].gif" alt="" border="0" /></a>
            <if condition="$show['
todaysevents']">$vbphrase[todays_events]<else /><phrase 1="$vboptions[showevents]">$vbphrase[upcoming_events_for_the_next_x_days]</phrase></if>
        </td>
    </tr>
</tbody>
<tbody id="collapseobj_forumhome_events" style="$vbcollapse[collapseobj_forumhome_events]">
    <tr>
        <td class="alt2"><a href="calendar.php$session[sessionurl_q]"><img src="$stylevar[imgdir_misc]/calendar.gif" alt="$vbphrase[calendar]" border="0" /></a></td>
        <td class="alt1" width="100%"><div class="smallfont">$upcomingevents</div></td>
    </tr>
</tbody>
</if>
$template_hook[forumhome_wgo_pos5]
</table>
<br />
<!-- end what'
s going on box -->

<!-- 
icons and login code -->
<
table cellpadding="0" cellspacing="2" border="0" width="100%">
<
tr valign="bottom">
    <
td>
        <
table cellpadding="2" cellspacing="0" border="0">
        <
tr>
            <
td><img src="$stylevar[imgdir_statusicon]/forum_new.gif" alt="$vbphrase[contains_new_posts]border="0" /></td>
            <
td class="smallfont">&nbsp$vbphrase[forum_contains_new_posts]</td>
        </
tr>
        <
tr>
            <
td><img src="$stylevar[imgdir_statusicon]/forum_old.gif" alt="$vbphrase[contains_no_new_posts]border="0" /></td>
            <
td class="smallfont">&nbsp$vbphrase[forum_contains_no_new_posts]</td>
        </
tr>
        <if 
condition="$vboptions['showlocks']">
        <
tr>
            <
td><img src="$stylevar[imgdir_statusicon]/forum_old_lock.gif" alt="$vbphrase[a_closed_forum]border="0" /></td>
            <
td class="smallfont">&nbsp$vbphrase[forum_is_closed_for_posting]</td>
        </
tr>
        </if>
        </
table>
    </
td>
    <if 
condition="!$show['guest']">
        <!-- 
member logout -->
        <
td align="$stylevar[right]"><a href="login.php?$session[sessionurl]do=logout&amp;logouthash=$bbuserinfo[logouthash]"  onclick="return log_out('$vbphrase[sure_you_want_to_log_out]')"><phrase 1="$bbuserinfo[username]">$vbphrase[log_out_x]</phrase></a></td>
        <!-- 
end member logout -->
    </if>
</
tr>
</
table>
<!-- / 
icons and login code -->

$footer
</body>
</
html
I'm still unsure what I have done wrong, and apologise for being a pain.
Cheers
Reply With Quote
  #224  
Old 10-19-2009, 08:37 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

TBH, I dont know what you have done, or what you are doing.

Quote:
Originally Posted by oxygenthief View Post
I have not edited the code. Just copied and pasted from the download.
Copied and pasted what ? where ?

The information you posted was this ;

Quote:
ok had a look through the code and had a try at entering it. I have the settings as:
Product - vBulletin
Hook Location - forumhome_start
Title - Who has visited
Execution Order - 5
What does this mean exactly if you havent been editing code ?

Quote:
I still dont have the forumhome_wgo_pos2 option.
The template you posted has it in twice ! - a bit of a mess.

Code:
				<div>$activeusers</div>
			</div>
		</td>
	</tr>
</tbody>
<!-- end logged-in users -->
</if>
	</tr>
</tbody>
<!-- end logged-in users -->
</if>
$template_hook[forumhome_wgo_pos2]
<tbody>
	<tr>
$template_hook[forumhome_wgo_pos2]
<tbody>
	<tr>
As best I can tell, the stuff in red should not be there.
Reply With Quote
  #225  
Old 10-19-2009, 08:54 PM
oxygenthief oxygenthief is offline
 
Join Date: Sep 2009
Posts: 10
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Paul M View Post
TBH, I dont know what you have done, or what you are doing.


Copied and pasted what ? where ?

The information you posted was this ;



What does this mean exactly if you havent been editing code ?
This is the options I selected when I added the plugin, through the plugin manager.

I have deleted the text you have highlighted in red and still nothing.

I'm assuming that when the text is added into the template, that then activates the forumhome_wgo_pos2 option which I select as the hook location?

If so, I'm still not getting the forumhome_wgo_pos2 option in the hook locations.

Cheers
Reply With Quote
  #226  
Old 10-19-2009, 10:27 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

You dont add anything in the plugin manager, unless you are creating your own.

The instructions are quite clear ;

Quote:
unzip the XML and import into vB using the ACP Product Manager
This is all you do.
Reply With Quote
  #227  
Old 10-19-2009, 10:44 PM
oxygenthief oxygenthief is offline
 
Join Date: Sep 2009
Posts: 10
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok
Thats what I tried first yesterday. I have just tried again:

This is what I'm doing:
User CP> Plugins and products> Manage products> Add/import products

I have unzipped the file and placed it into 'EITHER upload the XML file from your computer' section. When I click import I'm then given the 'No file uploaded and no local file found.' message.

Am I doing the correct procedure?

Cheers
Reply With Quote
  #228  
Old 10-20-2009, 09:45 PM
oxygenthief oxygenthief is offline
 
Join Date: Sep 2009
Posts: 10
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Can any one help?
Cheers,
Reply With Quote
  #229  
Old 10-20-2009, 10:04 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 oxygenthief View Post
I have unzipped the file and placed it into 'EITHER upload the XML file from your computer' section. When I click import I'm then given the 'No file uploaded and no local file found.' message.
Depends on what you mean by "placed it" into that section.

You must click on the "Browse" button next to that section, and navigate to the unzipped file, then click on Import.

If that gives the error you mention then you have a server issue uploading files, which I cannot help with.

Im now going away on holiday, so I wont see this thread again for over a week.
Reply With Quote
  #230  
Old 10-21-2009, 03:01 AM
SamirDarji SamirDarji is offline
 
Join Date: Apr 2004
Posts: 645
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

To install any plugin that has an xml file.

Download the xml file.

Go to your admincp-->Plugins & Products-->Manage Products-->[Add/Import Product]

Then use the first option "EITHER upload the XML file from your computer" and use the "Browse" button to find the xml file you downloaded. Once the file is properly selected, click on Import. Then proceed to configure the plugin and then check its operation.
Reply With Quote
  #231  
Old 10-22-2009, 02:35 PM
YISRAEL YISRAEL is offline
 
Join Date: Feb 2009
Posts: 7
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Familiar but thank you
Reply With Quote
Reply

Thread Tools

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 10:46 AM.


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.05796 seconds
  • Memory Usage 2,401KB
  • 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)bbcode_php
  • (6)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
  • (1)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