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

Paul M 11-15-2008 10:00 PM

Members who have visited today.
 
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.


jerx 11-17-2008 08:06 AM

Thank you! Just updated this mod. Old version was removed automatically and new was installed without loosing any data.

Edit: The vbadvanced module stops working with this update. The reason is that it uses a different hook location (forum_start instead of global_start). I have changed it to global_start again and the module works. Is it ok to do so?

Paul M 11-17-2008 09:43 AM

Not really a good idea, it means the code runs on every vb page visited, even though its only ever used/displayed on the Forum Home. I would have thought fixing the VBA module would be better.

PitchouneN64ngc 11-25-2008 05:59 PM

Thanks for this update, but I've found a little bug in the 'forumhome_start' hook.

The code for displaying the 'Most Ever Members' line is defined and set after the eval of the template, and the part of code is useless. I've edited it to place the eval code after all (before the last } ).

Another thing: in the same piece of code, you have this:

PHP Code:

    if ($vbulletin->options['wvtmost'])
    { 
        [...]

        if (
$vbulletin->options['wvtmost'])
        {
            [...]
        }
    } 

Maybe you can remove one condition ;)

kylek 11-26-2008 12:24 AM

Thank you, glad to see old favorites for 3.8!!

Medtech 11-26-2008 03:44 AM

Definately glad to see this one! thanks and works like a charm

Paul M 11-26-2008 08:51 AM

Quote:

Originally Posted by PitchouneN64ngc (Post 1672867)
Thanks for this update, but I've found a little bug in the 'forumhome_start' hook.

The code for displaying the 'Most Ever Members' line is defined and set after the eval of the template, and the part of code is useless. I've edited it to place the eval code after all (before the last } ).

Another thing: in the same piece of code, you have this:

PHP Code:

    if ($vbulletin->options['wvtmost'])
    { 
        [...]

        if (
$vbulletin->options['wvtmost'])
        {
            [...]
        }
    } 

Maybe you can remove one condition ;)

Yes, I know about the most users bug - it was spotted in another of my mods the other day - it affects a number of them and I wont have time to fix them all for a few days.

Thanks for pointing it out tho. :)

jerx 11-27-2008 07:40 AM

Ignore my post. I forget too quickly lately.

beishe8 11-27-2008 04:59 PM

Could not install because this error message:
Quote:

The following dependencies were not met:
This product is not compatible with version 3.8.0 Beta 4 of vBulletin. (Compatible starting with 3.6.0 / Incompatible with 3.6.99 and greater)

Paul M 11-27-2008 05:10 PM

You cannot possibly get that message if you downloaded it from this thread.

beishe8 11-28-2008 08:16 AM

Quote:

Originally Posted by Paul M (Post 1674140)
You cannot possibly get that message if you downloaded it from this thread.

True.
I downloaded and unzipped a 2007 version.

Thanks Paul!

HabbStar 11-30-2008 04:02 PM

What template would i have to edit to change the image that displays to the left of this mod (at the moment it's the same as 'Users Online'

Paul M 11-30-2008 05:53 PM

Display_Visitors

jerx 12-01-2008 10:13 AM

As I already wrote, I had problems editing posts. I received a maxloggedin error message, when guest tracking mod was active. I contacted another user, who installed your member tracking mod and had the same error. He said that he "solved" it by commenting out
Code:

$vbulletin->datastore->do_fetch('maxloggedin',$errors);
in members who have visited plugin, but he doesn' t know why the problem occured.

I did the same and I don' t seem to receive the error message any more. But since there must be good reason for adding the code, I wanted to ask, if this is a harmless work around for our problem or if we need to find a better solution.

Edit: Correction, I still received the error. Now I commented it out in the guest tracking plugin.
Edit2: Commenting it out in guest tracking makes the most users ever online count (members and guests) and "most guests online over 24 hours" count not working correctly. The values do not get stored any more, so that it always displays the current count with the current time. I use the original code again.

WoodiE 12-08-2008 10:31 AM

I'm running 3.8 beta 1 and this version does not work with it. I was running a 3.7 version of this mod and it worked w/o issue.

Paul M 12-09-2008 12:11 PM

Sorry but you need to be more specific than "does not work" since it works fine for me.

Alien 12-09-2008 07:47 PM

This has since been corrected, yes? :)

https://vborg.vbsupport.ru/showpost....22&postcount=7

Paul M 12-10-2008 09:23 AM

As it says :)

Quote:

History:

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

Alien 12-11-2008 01:46 AM

Damnit, juggling 2 new twins is playing with my eyesight. ;)

Sorry about the lame question!

WoodiE 12-12-2008 09:07 PM

Quote:

Originally Posted by Paul M (Post 1681609)
Sorry but you need to be more specific than "does not work" since it works fine for me.

Doesn't work as doesn't show up on the forum index page, no data, no table, nothing it's as if I didn't even install it.

Could because I'm running 3.8 beta 1 dunno, either way I just want back to 3.7 version of this mod and it's working fine. I'll wait until vB 3.8 goes final and then try this version again.

Paul M 12-12-2008 09:33 PM

Most likely you are using a customised forumhome template, missing the template hook.

chooky 12-15-2008 06:42 AM

I cant see it also, How I can insert the template hook ?

Paul M 12-15-2008 01:12 PM

Copy them from the standard template, or just revert your custom version.

chooky 12-15-2008 02:15 PM

thanks for your help, now it works fine.

steve1966 01-08-2009 05:36 PM

thanks

King Justice 01-10-2009 01:08 AM

This script isn't working for vB 3.8?
Why?..why isn't it showing?

King Justice 01-10-2009 01:15 AM

Quote:

Originally Posted by Paul M (Post 1685860)
Copy them from the standard template, or just revert your custom version.

What IS the custom template hook?? And where to put it??

King Justice 01-10-2009 06:53 PM

Still need help please.. :o !

Paul M 01-10-2009 07:15 PM

Template hooks are a standard part of vb templates.

For example, this is part of the standard Forumhome template, showing the template hook used by this mod.

Code:

<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>
$template_hook[forumhome_wgo_pos2]
<tbody>
        <tr>
                <td class="thead" colspan="2">
                        <a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse


I cannot support non standard set-ups.

King Justice 01-10-2009 11:12 PM

What do you mean? I don't know how to get this plugin working..
It worked before I upgraded to 3.8 and now that I upgraded to 3.8 and upgraded the plugin the plugin isn't showing...nor is my new one that displays members who have registered today.

Paul please help me get this working.
What do I need to add/edit and where?...

jupiter5 01-11-2009 02:04 PM

Quote:

Originally Posted by King Justice (Post 1707916)
What do you mean? I don't know how to get this plugin working..
It worked before I upgraded to 3.8 and now that I upgraded to 3.8 and upgraded the plugin the plugin isn't showing...nor is my new one that displays members who have registered today.

Paul please help me get this working.
What do I need to add/edit and where?...


Same problem I have. There is no visited member names even if I reinstall it.

jupiter5 01-11-2009 02:29 PM

I converted my Forumhome style to original. It appeared again.

bntmofeid 01-11-2009 03:20 PM

thanks

King Justice 01-11-2009 10:34 PM

Quote:

Originally Posted by jupiter5 (Post 1708586)
Same problem I have. There is no visited member names even if I reinstall it.

You just have to put this template hook somewhere in forumhome, it really doesn't matter where, as long as it's in the what's going on section:
$template_hook[forumhome_wgo_pos2]

:)

Paul M 01-11-2009 11:12 PM

It does matter where you put it, otherwise it may not display properly.

topmedic 01-12-2009 09:00 PM

I have the following modes on " What's Going On?"

Members currently using Flashchat:
Total guests that have visited the forum today:
Total members that have visited the forum today:

... in that order.

Is it possible for me to rearrange them so they appear like below?

Total members that have visited the forum today:
Total guests that have visited the forum today:
Members currently using Flashchat:

Thanks.

Paul M 01-13-2009 09:24 AM

You would need to play with execution orders and possible the hooks used.

yotsume 01-13-2009 06:20 PM

With your 3.8x version of this mod you seem to have removed a option you had in previous version to run the code on all pages. When you removed this it seems that other importnat mods no longer work. For instance there is a vba mod that calls your mod so we can see who has visited today in a nice vba block. This no longer works.

Can you offer a way to get this fixed? It is found here: VBA Members who have visited

I have also asked the developer of that mod to try and update. Can he is you removed the run code on all pages option???

Code Option
(You removed this option?) Change this if you want this modifications code to run on all vb pages, not just the forum homepage. Run Code on all pages

Paul M 01-13-2009 10:01 PM

Yes, that has been removed. I dont use VBA so I cant help you.

yotsume 01-13-2009 10:23 PM

Any chance you can sneak that option back in for the 1000s of us that use VBA please! :D


All times are GMT. The time now is 06:21 AM.

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.01589 seconds
  • Memory Usage 1,829KB
  • 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
  • (2)bbcode_code_printable
  • (2)bbcode_php_printable
  • (8)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)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