The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
looking to try and figure out how to get a list of posts from a usergroup on the homepage. like a list of the top most recent topics but only collected from a certain usergroup
|
#2
|
||||
|
||||
![]()
use this query:
SELECT thread.*,user.usergroupid,user.username FROM thread LEFT JOIN user ON(thread.postuserid=user.userid) WHERE usergroupid = X ORDER BY dateline DESC LIMIT Y replace X with the usergroup id and Y with the number of threads you want to display |
#3
|
|||
|
|||
![]()
thanks rake! what file should I put this in if say I want the thread listed in the navbar template?
|
#4
|
||||
|
||||
![]()
the navbar appears on most pages, so you'd have to put the code in the global.php file.
|
#5
|
|||
|
|||
![]()
ok so lets say I run my query on global, how do I output my results to the navbar template?
|
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|