![]() |
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 |
Pretty simple to do:
PHP Code:
|
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? |
It should already list that, try:
PHP Code:
|
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:
|
Try this
Code:
SELECT FROM_UNIXTIME(dateline), thread.postusername, thread.title AS threadtitle, forum.title AS forumtitle, forum.forumid |
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:
|
All times are GMT. The time now is 10:28 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|