vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Member Archives (https://vborg.vbsupport.ru/forumdisplay.php?f=202)
-   -   92 queries in forum index (https://vborg.vbsupport.ru/showthread.php?t=43404)

Erwin 09-11-2002 07:33 PM

If I can see your ?explain=1 then I can hack into your board. :) 2.2.6 and up have disabled this function because of security issues. As TECK said, remember to upgrade. And well done - 33 is very reasonable indeed. :)

hidjra 09-12-2002 12:37 AM

thanx for all the help guys :squareeyed: . Now i seem to have the same problem with my showthread file, there are 59 queries, and for some reason these 2 queries are repeated for about 20 times, there must be a loop somewhere, i just can't figure out where;

- Query: SELECT usergroupid FROM user WHERE userid=4518
- Query: SELECT moderatorid FROM moderator WHERE userid='4518' LIMIT 1

can someone please help me :ermm:

hidjra

g-force2k2 09-12-2002 01:53 AM

PHP Code:

$DB_site->query_first("
  SELECT user.usergroupid AS usergroupid, moderator.moderatorid AS moderatorid
  FROM user
  LEFT JOIN moderator ON moderator.userid = user.userid
  WHERE user.userid='
$bbuserinfo[userid]'"); 

I haven't tested this but it should work :) regards...

g-force2k2

hidjra 09-12-2002 07:32 AM

Quote:

Originally posted by g-force2k2
PHP Code:

$DB_site->query_first("
  SELECT user.usergroupid AS usergroupid, moderator.moderatorid AS moderatorid
  FROM user
  LEFT JOIN moderator ON moderator.userid = user.userid
  WHERE user.userid='
$bbuserinfo[userid]'"); 

I haven't tested this but it should work :) regards...

g-force2k2

thnx g-force, but where should i put this? :surprised:

hidjra

g-force2k2 09-12-2002 05:25 PM

just put it in place of the other two queries where ever they appear together... regards...

g-force2k2


All times are GMT. The time now is 05:54 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.01069 seconds
  • Memory Usage 1,727KB
  • 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)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)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