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 10-12-2005 05:07 PM

Quote:

Originally Posted by microzott
ok, thanks,
and where i could find it?

You won't find it anywhere atm, that's what I mean by "not released".

Quote:

Originally Posted by Oblivion Knight
I'd be interested in that add-on for 3.5.0 if you wouldn't mind sharing it, Paul?

Okay.

I'll see if I can package it up for release this weekend. :)

Oblivion Knight 10-12-2005 05:26 PM

Quote:

Originally Posted by Paul M
I'll see if I can package it up for release this weekend. :)

Thanks, I'll make sure to send a beer donation your way.. ;)

microzott 10-13-2005 05:21 AM

Quote:

Originally Posted by Paul M
You won't find it anywhere atm, that's what I mean by "not released".

:laugh: :laugh: :laugh: :laugh:

Quote:

Originally Posted by Paul M
I'll see if I can package it up for release this weekend. :)

:bunny: :bunny: :bunny:

many thanks :)

EvilHawk 10-13-2005 04:19 PM

At our site we have usually over 1400+ registered members visits at one today so i we think that it was better to make "[vB 3.5.0] Members who have visited the forum (Today or last 24 hours)." display the visited users in a new page instead of the "What's Going On?" box.

Thank you Paul Marsden for you quality work ! ;)

Tulsa 10-13-2005 10:57 PM

Nevermind, moron loose on the keyboard again.. ;)

Andreas 10-13-2005 11:05 PM

Just curoius:
Why are you checking permissions after doing all the processing instead before?

Paul M 10-13-2005 11:28 PM

Quote:

Originally Posted by KirbyDE
Just curoius:
Why are you checking permissions after doing all the processing instead before?

I'm curious to know what this is about ?

Boofo 10-14-2005 08:26 AM

Quote:

Originally Posted by Paul M
I'm curious to know what this is about ?

I think Kirby is referring to this post, Paul. ;)

https://vborg.vbsupport.ru/showpost....&postcount=324

EvilHawk 10-14-2005 10:39 AM

As i permit to my members to see the visited member number I have allready include the link at the tempate in an if condition
Code:

<if condition="$show['wvt']">
<br /><div><strong><a href="online_today.php?$session[sessionurl]">$whodesc $totaltoday</a></strong></div></if>

the permissions check has been done allready by the product!

KirbyDE has a good point here! ;)
What will happen if someone access direct the page !
Why do all the processing before checking the permissions ?
So i have updated the instructions! Thanx KirbyDe! ;)

Andreas 10-14-2005 10:41 AM

@Paul M
PHP Code:

if ($vbulletin->options['wvt'])
{
    
$groups explode(',',$vbulletin->options['wvtgrps']); 
    if (
in_array($vbulletin->userinfo['usergroupid'],$groups) OR in_array(0,$groups)) 
    {
        
$show['wvt'] = true;
    }
    else 
    {
        
$show['wvt']= false;
    }
}
else
{
    
$show['wvt']= false;


This is the end of your Plugin code.
So you are checking if the display is enabled, and if the User is member of a usergroup that is allowed to view it.
Now, if it turns out that display is disabled or the user ist not allowed to view, you've already done the query and processing ...


All times are GMT. The time now is 11:08 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.01891 seconds
  • Memory Usage 1,749KB
  • 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
  • (1)bbcode_code_printable
  • (1)bbcode_php_printable
  • (7)bbcode_quote_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