vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   how to do a sticky post? (https://vborg.vbsupport.ru/showthread.php?t=212712)

kevinh 05-02-2009 10:02 PM

how to do a sticky post?
 
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

Quote:

Originally Posted by BlueNinjaGo (Post 1803309)
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/showthrea...t=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

Quote:

Originally Posted by Lynne (Post 1803692)
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.


All times are GMT. The time now is 04:20 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01650 seconds
  • Memory Usage 1,731KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete