![]() |
Sticky Post Modification
Quote:
|
Sticky Post modification for vBulletin 3.0.0 Gold
------------------------------------------------- Credits ------- Author: Souren Abeghyan Web Page: forum.armkb.com Contact: <use contact form on web page> Date: 4 April 2004 Description ----------- By adding this modification you will be able to stick/unstick first post in each thread. It is useful when your thread is multipage and you want to have the very first post on the top when browsing thread pages. This modification will work only for Linear Display Mode. You can stick/unstick it from Thread Tools - Stick/Unstick First Post. Modified Parts -------------- Templates: postbit SHOWTHREAD Files: functions_showthread.php postings.php showthread.php Database: added one column in 'thread' table to hold sticky post flag. |
Hmm, good idea. :)
|
How many queries does this add?
|
superb hack.. could come in very handy.
|
just count the queries in the file yo.
Open it, click edit>find>"query",click,click... 2 queries, 1 simple query, and 1 query with a large series of joins in showthread.php Woot. |
Ravenheart
I choose only one post, actually first one for now. So the large query involves only one row. |
Quote:
|
Quote:
|
Quote:
|
Quote:
|
Quote:
|
Quote:
UPDATE thread SET stickypost = 1; and this to unstuck all threads UPDATE thread SET stickypost = -1; If you wish default option to be "sticky post" you may modify your database with the following query in "Execute Query" in case you've already installed this hack: ALTER TABLE thread MODIFY stickypost INTEGER(10) NOT NULL DEFAULT 1; and this in case you haven't installed this hack yet: ALTER TABLE thread ADD stickypost INTEGER(10) NOT NULL DEFAULT 1; Hope this helps. |
hm.. I have a small problem..
I wonder why I get a blank screen after I set it to sticky the frist post? I don't see a redirect mesage.. but I checked and I ddi add the phase.. |
just be great if stiky threads have it on already... i mean if you sticky thread so first post in it sticky as well ;)
|
same problem as Skyline_GT.... anyone support that hack???!!! :(
|
All times are GMT. The time now is 03:14 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|