The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Server Time Out ?
Hello,
I have written a small stats script for displaying members details. The problem is that it doesn't show all the members, it seems to cut off after about the first 50. Is there anything that would make the script stop / timeout ? Looking at the stats its taking about 3.5 seconds to display the page and 8 queries. Any clues ? |
#2
|
|||
|
|||
Your stuck in a loop
|
#3
|
||||
|
||||
if it's jsut a littel script, can you please post it, maybe there's just a littl bug in it
|
#4
|
||||
|
||||
sure thanks for the help, I cannot see a loop to be stuck in, but I know nothing compared to you
PHP Code:
Username Usertitle ( not custom title ) Posts Threads Last Post ( both Date / Time and thread id ) Last visit Date / Time Joined Date / Time I am going to add a few more, but before I do I cannot understand why it stops at 50 odd members. Would it help if I adopted the VB style where the number of results a page is used ? Ie only 30 per page ? Thanks for any help given |
#5
|
||||
|
||||
mmm, looking at this code, its erm how can I say crap. just looked at the stats for it.
Mmmm, can anyone give me a lesson in optimising ? How would I remove the queries inside the loop so they are not called everytime ? Could this be why its stopping short of all the members because I'm loading the server too much ? |
#6
|
||||
|
||||
mmm am I a little out of my depth here ??
The script above gives stats of Quote:
PHP Code:
Quote:
Am I correct here ? |
#7
|
||||
|
||||
indeed that could be the problem, but we'll find a way
PHP Code:
a restriction to 30 users per page isn't needed, but wouldn't hurt |
#8
|
||||
|
||||
for your last post before mine:
ohm, the microstats doesn't work if you use mysql_query. the truth is the second is as bad as the first one, just the querycount is wrong because you didn't use $DB_site->query |
#9
|
||||
|
||||
are I see thats why the qury count is so low.
thank you for your script, its giving stats of Page generated in 1.84838998 seconds (5.93% PHP - 94.07% MySQL) with 10 queries. which is an improvement on mine, and now I get 69 members displayed, still not my total ammount of members ? Sorry to be a pain. Should I scrap this and try to modify the code found in user.php in the admin folder ? |
#10
|
||||
|
||||
well what doy wou want to get exactly?
this part Code:
FROM user,post,usergroup,thread WHERE user.lastpost=post.dateline AND user.usergroupid=usergroup.usergroupid AND post.threadid=thread.threadid if you tell exactly what ya want i can maybe optimize that code also aslo as a tip for future: lear to use significant variable names. i don't know what $bob should mean, but $usersinthread would be clear. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|