The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Finding all sticky posts
I've got a lot of forums and a lot of moderators. Sometimes they forget about a sticky post and it gets out of date and needs to be unstuck.
This sql query will show all sticky posts: SELECT * FROM `vb_thread` WHERE sticky = 1 However, it doesn't give me the information in easily readable format I'm looking for. What I want is a query that will show me:
Thanks in advance. - Kim |
#2
|
|||
|
|||
Pretty simple to do:
PHP Code:
|
Благодарность от: | ||
Kane@airrifle |
#3
|
||||
|
||||
Quote:
I tried that and it gives me the thread.title and the thread.postusername, but not the forum.title. Can it easily be tweaked a bit to list the forum too? |
#4
|
|||
|
|||
It should already list that, try:
PHP Code:
|
#5
|
||||
|
||||
Yes! Thank you. It works as I had hoped. :up:
--------------- Added [DATE]1504196589[/DATE] at [TIME]1504196589[/TIME] --------------- One more question if I may. I added the option to sort by date: PHP Code:
|
#6
|
||||
|
||||
Try this
Code:
SELECT FROM_UNIXTIME(dateline), thread.postusername, thread.title AS threadtitle, forum.title AS forumtitle, forum.forumid FROM vb_thread AS thread INNER JOIN vb_forum AS forum on thread.forumid = forum.forumid WHERE thread.sticky = 1 ORDER BY FROM_UNIXTIME(dateline) |
Благодарность от: | ||
kgroneman |
#7
|
||||
|
||||
Thanks Simon and Dave. You've just made managing sticky posts across a lot of forums a lot easier. I sincerely appreciate the time you've taken to assist me. :up: :up: :up:
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|