The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
How to exclude admin from top 10
I though that the hidden status would do it but I noticed that
the administrator is in the top 10 list. is there any way to exclude the admins from the top posters list? |
#2
|
|||
|
|||
I take this as a no?
|
#3
|
||||
|
||||
What top posters list?
|
#4
|
|||
|
|||
just add the condition to your query
WHERE usergroupid <> # Where # is the usergroup id for admin. |
#5
|
|||
|
|||
Wow! great
so here on my forum I have this: Congratulations to JohnBee with 4878 posts! so I would put this condition where? in a template of one of my .php files? |
#6
|
||||
|
||||
anwser WetWired's question..
|
#7
|
|||
|
|||
Ah.
This one, its so small I though it came by default with vBulletin :lick: // Top Poster (Template Mod Style) // Original: Lesane // vB3 Re-Make: assassingod (ffdcsite) Code:
Step one: Open up the 'phpinclude_start' template and at the bottom, add: if (THIS_SCRIPT == "index") { $topposter = $DB_site->query_first(" SELECT username,posts,userid FROM " . TABLE_PREFIX . "user ORDER BY posts DESC LIMIT 1 "); } Step 2: Now in the FORUMHOME template, add anywhere you want: <br /> <b>Top Poster:</b> <a href="member.php?$session[sessionurl]u=$topposter[userid]">$topposter[username]</a> (With $topposter[posts] posts!) |
#8
|
|||
|
|||
PHP Code:
|
#9
|
|||
|
|||
Awesome! it work beautifully!
thanks! .thumbsup. |
#10
|
|||
|
|||
How could I add a date range to this hack ? Anyone ? Help ...
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|