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 ...

Boofo 10-14-2005 10:52 AM

Quote:

Originally Posted by EvilHawk
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! ;)

But you are still doing checks at the end for the display if it shows or not. The queries are still being run for that before you check, right?

EvilHawk 10-14-2005 11:19 AM

The last check is for checking if the product is enabled or not , if paul do the same modification to the product code no querries will be executed!

Boofo 10-14-2005 12:22 PM

Quote:

Originally Posted by EvilHawk
The last check is for checking if the product is enabled or not , if paul do the same modification to the product code no querries will be executed!

But the queries have already run before you check if the product has been enabled, or am I missing something?

JoeWho 10-14-2005 02:27 PM

Hi,

Has this been released for 3.5.0, it's something I'm very interested in.

Bones_3DFC 10-14-2005 02:38 PM

@Joe - officially? I dunno. But I purchased my vBulletin last week and instantly installed this. It works like a charm. Visit my site and add /forum to the address to see it in action.

Slacker 10-14-2005 02:41 PM

Quote:

Originally Posted by JoeWho
Hi,

Has this been released for 3.5.0, it's something I'm very interested in.

Well, considering it says vB Version: 3.5.0 in the information up top there I'd have to say yes.

And yes, it's working perfectly on my 3.5.0 board.

JoeWho 10-14-2005 06:51 PM

Quote:

Originally Posted by Slacker
Well, considering it says vB Version: 3.5.0 in the information up top there I'd have to say yes.

And yes, it's working perfectly on my 3.5.0 board.


Thanks! That was nice of you to reply!

Slacker 10-14-2005 07:08 PM

Quote:

Originally Posted by JoeWho
Thanks! That was nice of you to reply!

I live to give. :D

Paul M 10-14-2005 08:09 PM

Quote:

Originally Posted by KirbyDE
@Paul M
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 ...

Ah, I see what you mean. Well spotted. That's what happens when you add new things at 2am in the morning. It's not a major thing as most people will leave it open to all members anyway. I'll re-arrange it slightly for the next update. :)

knigwhil 10-15-2005 02:20 AM

Installed and it works great. Thanks

WhatChaMissin 10-15-2005 02:32 AM

Short Sweet and Simple!
Jsu the way I like it. Thanks

kewl1uk 10-15-2005 01:36 PM

Installed and working :) Thank you. *clicks install*

jaffaman 10-15-2005 02:55 PM

Ok this is a silly question as i am new to all this i have installed this using the Import Product and done the edit on the FORUMHOME Template all ok if i am not loged in to our site i see the who has visited the forum all ok but when i log in it disappears and i cant see anything in the usergroup manger to change this any ideas???

Flow Fusion 10-15-2005 03:53 PM

Is it possible to install a scroll box for this?

*Installs*

funinthesun 10-15-2005 04:13 PM

Quick and easy to install. Works perfectly :)

Paul M 10-15-2005 04:13 PM

Quote:

Originally Posted by jaffaman
Ok this is a silly question as i am new to all this i have installed this using the Import Product and done the edit on the FORUMHOME Template all ok if i am not loged in to our site i see the who has visited the forum all ok but when i log in it disappears and i cant see anything in the usergroup manger to change this any ideas???

Your primary usergroup does not have access to view it - the groups that have permission are a setting in the ACP.

jaffaman 10-15-2005 04:35 PM

i have looked in the APC Usergroup Manager and cant see where 2 let groups see it or am i looking in the wrong place sorry about this as i am very new to all this lol

JoeWho 10-15-2005 05:43 PM

Quote:

Originally Posted by jaffaman
i have looked in the APC Usergroup Manager and cant see where 2 let groups see it or am i looking in the wrong place sorry about this as i am very new to all this lol

I have looked and looked and looked, and I can't find it either, so don't feel bad... sooner or later someone will let us know where it is at... LOL

Paul M 10-15-2005 06:59 PM

See Post 269

jaffaman 10-15-2005 07:33 PM

Ok cheers works great m8 great help ;-)

nitro 10-16-2005 02:34 AM

Hi Paul Seems to work a treat, thanks. :)

By the way I'v told them over at vbPortal how to make this show in a portal block after installing it. None of your code is posted at all. Just a link to here and the method of how to. ;)

d2sector 10-16-2005 03:51 AM

Can you post howto remove the previous version? As i dont have the download to see what was done to install it.

Paul M 10-16-2005 10:06 AM

Quote:

Originally Posted by nitro
Hi Paul Seems to work a treat, thanks. :)

By the way I'v told them over at vbPortal how to make this show in a portal block after installing it. None of your code is posted at all. Just a link to here and the method of how to. ;)

Okay. :up:

Paul M 10-16-2005 10:07 AM

Quote:

Originally Posted by d2sector
Can you post howto remove the previous version? As i dont have the download to see what was done to install it.

To which previous version are you referring ?

Vampyre 10-16-2005 03:24 PM

Quote:

Originally Posted by d2sector
Can you post howto remove the previous version? As i dont have the download to see what was done to install it.

I was a fan since the previous version for vB3.0.x .
I only need to add the XML, without modifying the template, to get this working.
Nice work, Paul. :)

Ozark 10-16-2005 03:40 PM

I just installed my very first plugin! :rambo:

Thanks Paul!!

lawahdy 10-16-2005 05:18 PM

nothing at all, after installing, is showing on my forums

where did i go wrong..?

you can check my website.. please..

El Barto 10-16-2005 09:03 PM

i finally made it, thank you!!

Paul M 10-16-2005 10:17 PM

Quote:

Originally Posted by lawahdy
you can check my website.. please..

PM me an admin account and I'll check it for you.

Paul M 10-16-2005 10:20 PM

Quote:

Originally Posted by Vampyre
I only need to add the XML, without modifying the template, to get this working.
Nice work, Paul. :)

While that is true, the disable options will not work properly unless you use the newer template code. Of course, if you don't plan to disable it for any usergroup then you don't need to worry. :)


All times are GMT. The time now is 03:30 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.02901 seconds
  • Memory Usage 1,832KB
  • 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
  • (1)bbcode_php_printable
  • (20)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (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