The Arcive of vBulletin Modifications Site. |
|
|
#1
|
|||
|
|||
|
hi
ive searched here for this script but i find this: 1) some script called top 10 thread starters but it doesnt order the users by their threads number.. it order by the posts number.. and that is not what i want 2) another one create a new table to get the right top 10 thread starters.. any one knows how can iget it without creating any table?? please |
|
#2
|
||||
|
||||
|
i think this query should do it, so try to include it in your script
![]() [sql]SELECT COUNT(threadid) AS threads, username LEFT JOIN user ON(user.userid=thread.postuserid) GROUP BY thread.postuserid ORDER BY threads DESC LIMIT 10[/sql] |
|
#3
|
|||
|
|||
|
one more thing please
im not so good in php & mysql so could u help me with this: PHP Code:
im not sure.. please tell if there is any mistake |
|
#4
|
||||
|
||||
|
no, that wouldn't work, you use the same variablename for three different things...
this would work: PHP Code:
|
|
#5
|
||||
|
||||
|
sorry, little mistake
![]() use this: PHP Code:
|
|
#6
|
||||
|
||||
|
look above
![]() i've forgotten the "FROM thread" part *gg* |
|
#7
|
|||
|
|||
|
ive reached here:
PHP Code:
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/khaleejy/public_html/f/admin/db_mysql.php on line 154 notice: the line 154 has nothing to do with this script!! line 152: unset($accessperm); line 153: line 154: // usergroup defaults line 155: $usergroupdef['canview'] = $permissions['canview']; line 156: $usergroupdef['canpostnew'] = $permissions['canpostnew']; and im getting 1 username and his thread numebr only |
|
#8
|
|||
|
|||
|
do uthink that i have to include: (( WHERE open='1' AND open<>10 )) in the query?
|
|
#9
|
||||
|
||||
|
as i already told you above you can't use this:
PHP Code:
PHP Code:
|
|
#10
|
|||
|
|||
|
sorry.. i thought that you made a type mistake when u wrote "topt" i thought that u missed the "s".. ignore post #9 anyway its working GREAT right now.. thank you very much
|
![]() |
|
|
| X vBulletin 3.8.12 by vBS Debug Information | |
|---|---|
|
|
More Information |
|
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|