The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#11
|
|||
|
|||
I don't have that...nope...
if statements don't have anything to do with queries right? I have a lot of custom if statements in functions.php... |
#12
|
||||
|
||||
No, the only thinks that could be generating querys in it are queries ($DB_site->, mysql_query) or calls to other functions that may contain queries.
|
#13
|
|||
|
|||
Then maybe I should look in showthread.php for some sort of call to a function which could be generating loads of queries?
Query: SELECT usergroupid FROM user But what I don't understand is, this is selecting the usergroupid from the user table, any ideas why? |
#14
|
||||
|
||||
I have that query once on a unhacked showthread, I would say that its getting your usergroupid to check your permissions for view the thread or the other functions on the that page.
|
#15
|
|||
|
|||
What's making it come up 10 times then?
|
#16
|
||||
|
||||
How many times do you have: getpermissions in showthread.php? It should be there twice, once in showpost and once in showthread
|
#17
|
|||
|
|||
Well I searched functions.php once again and I found the query in the getpermissions area:
PHP Code:
|
#18
|
|||
|
|||
Quote:
PHP Code:
That code is near the top of showthread.php (there is a getpermissions call in there). It's the download thread hack from logician... |
#19
|
||||
|
||||
That should only add one query at the most to the page.
|
#20
|
|||
|
|||
Could I PM you my showthread.php and functions.php?
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|