PDA

View Full Version : how to do a sticky post?


kevinh
05-02-2009, 10:02 PM
Hi,
I know how to make threads sticky, but can someone please tell me how one does the sticky posts which appear at the top of the threads in the mod forums on this site.

I'm using vBulletin 3.7.x

Thanks,
Kevin

BlueNinjaGo
05-02-2009, 10:36 PM
Are you talking about the announcement?

kevinh
05-02-2009, 10:59 PM
Are you talking about the announcement?

Effectively yes. I want to stick a post/announcement at the top of a discussion thread (a thread which shows posts in order of newest first).

BlueNinjaGo
05-02-2009, 11:02 PM
Oh, ok, I'm sorry, I thought you meant the announcement that was above the threads. You're referring to the mod information, correct? (Well, in this site, it's the information about the modifications)

There is a modification here that will tranform your forum into the same thing as it's here.

https://vborg.vbsupport.ru/showthread.php?t=191465&highlight=modification

kevinh
05-03-2009, 01:10 AM
Sorry, I just realised that what the Mods forum on this site uses is not quite what I need. What is used on here (vBulletin.org) is really specific and seems to apply to all new posts in that forum.

As Admin I just want to be able to stick a post in a thread as required (not every thread). Or it could be an announcement at the top of the thread (doesn't have to be a "post").

Lynne
05-03-2009, 02:58 AM
You want to stick a post inside a thread, right? You would have to modify the code quite a bit if you are hoping to be able to just pick one of the posts within the thread and make it 'stick' as the first post. The posts are ordered by the criteria in your User CP when the query to grab them is performed. Usually this is by date ascending or descending. If you want to 'easily' stick a thread at the beginning, you should change the date of the post so it would be the first post in the thread.

kevinh
05-03-2009, 05:59 AM
Thanks Lynne, this isn't something I am going to need to do very often so maybe changing the date of the post is the way to go. However, we order threads by most recent post first, which means I would have to set the date of my post sometime in the future. How could I change the date of a post? presumably it's a database edit?

The other option is to put an announcement above the list of posts in at the top of the thread. I searched the mods for "announcement" but got 500 results, the first few pages of which didn't look very encouraging. Can anyone recall seeing a mod to do this? (insert a message or announcement above the list of posts in a thread)

Lynne
05-03-2009, 03:21 PM
So you want to be able to post something at the top of the thread, but only the top of specific threads. I cannot think of any sort of mod that does that. The quick and not really elegant way to do it would be to put a variable at the top of the showthread template where you want the message and then create a plugin that spits out a message only for specific threadids.

MotoMihalich
07-02-2009, 06:43 AM
So you want to be able to post something at the top of the thread, but only the top of specific threads. I cannot think of any sort of mod that does that.
Great pity. I've seen this working on some other forums and it was quite useful.

Lynne
07-02-2009, 02:31 PM
I didn't say it couldn't be done - I simply said I don't know of a modification that does it. You can probably modify/write a plugin to do this, but you'll have to get in and modify the code yourself.