vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Members who have visited the forum (Today or last 24 hours). (https://vborg.vbsupport.ru/showthread.php?t=82769)

Paul M 03-19-2006 01:14 PM

The easiest way would be to edit the sql in the "Members who have visited (2)" plugin.

Change

PHP Code:

WHERE lastactivity " .$cutoff. " ORDER BY username 

to

PHP Code:

WHERE user.usergroupid <> AND lastactivity " .$cutoff. " ORDER BY username 

Assuming that group 8 is your banned group.

Viruseater 03-19-2006 01:43 PM

That worked perfectly. Thank you!

Kirk Y 03-20-2006 04:22 PM

First off, great hack Paul. I've always loved this, ever since it was released for 3.0.x. This is however, the first time I've ever had a problem with it. It was working fine a few days ago, when I installed it, but now, for whatever reason, it's not showing up on my forumhome. I've tried reinstalling the plugin and have checked my settings for it; everything should be working -- but it's not. I did recently install the Plugin Acc., Template Cache, and Template Comp. hacks... could they have had some kind of adverse effect on it?

Paul M 03-20-2006 05:08 PM

I have no idea, since I don't use any of them, but it sounds very much like thay have broken something. Turn them off and see what happens.

Kirk Y 03-20-2006 06:38 PM

I disabled all of them through the Product Manager, but still nothing. Should I try manually removing all the edits? There were a few code modifications needed in admincp/global.php, global.php, and admincp/template.php.

Edit: I'm not sure what I did, I just logged out and then back in... and it was there again. I dunno, perhaps my board is possessed. Thanks for your help though Paul.

EasyTarget 03-20-2006 10:10 PM

hey paul, nice hack.

Is there a way it could be modified to do the same thing but for a subforum? So it'll show who's visited the one subforum in 24 hours (as well as keep the one on forumhome).

Paul M 03-20-2006 10:54 PM

No, vb does not keep any record of such things.

EasyTarget 03-20-2006 11:29 PM

well there's the currently viewing subforum option in vboptions (I have it disabled because I don't want it running in every forum, just in one), so wouldn't there be a way to track it from those users?

BamaStangGuy 03-21-2006 08:19 AM

Just curious but if I remove the guest usergroup from being able to see it is the code still being ran for it or does it not run the code at all? What I am wondering is if I make it so that guests do not see it is it still going to reduce the load on the server?

Paul M 03-21-2006 11:30 AM

It only runs the code for allowed groups - however, the difference in load would be small.


All times are GMT. The time now is 02:31 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.02074 seconds
  • Memory Usage 1,733KB
  • 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_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (3)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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