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)

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


All times are GMT. The time now is 11:44 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.01869 seconds
  • Memory Usage 1,740KB
  • 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
  • (6)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