Back to vBulletin 3.7 Add-ons

Personal Sticky Threads
Mod Version: 1.0.3c, by Kaelon

This modification is in the archives.
vB Version: 3.7.2 Rating: (5 votes - 4.60 average) Installs: 86
Released: 29 Aug 2008 Last Update: 29 Aug 2008 Downloads: 427
Not Supported DB Changes Uses Plugins Template Edits Code Changes Additional Files  

What are "Personal Sticky Threads"?

Personal Sticky Threads (aka "Personal Stickies") is an Add-on for vBulletin that will allow your users to sticky threads that only they will see as stickied; these "personal stickies" will appear beneath normal sticky threads. This Hack was originally designed by Mephisteus for vBulletin 3.5, and re-released (with his permission) for vBulletin 3.7.x. This hack requires a couple of File Edits, and should be attempted by those who are comfortable editing vBulletin source files. That said, I have included modified detailed instructions that should make installation straight-forward and easy.

Special thanks are owed to Mephisteus, for allowing an updated re-release for vBulletin 3.7, and to john1744 and zendive for improving upon the query alterations. As I typically disclaim with my other Add-ons, I am generally a neophyte at this sort of stuff and I tend to modify hacks and tinker with pre-existing code to get the results that I want. That said, please use this discussion thread as a community-support and mutual learning opportunity.

Finally, if you like this hack and install it, please:


Requirements
  • vBulletin 3.7.x Series
Installation

Installation is straight-forward. Simply download the attached archive, decompress on your local hard drive, and review the Installation.txt file for the specific steps. There are, broadly, four steps:
  1. Import product-personalsticky.xml
  2. Upload the two images into their respective folders
  3. Perform two file edits to forumdisplay.php
  4. Perform four template edits to three templates.
Add-Ons

This modification can be further customized:
  • Limit to Specific Usergroups (iRO Wiki, imported from 1.0.3b)

    Spoiler (click to open)


    After fiddling with it, I figured out a way to limit it to X usergroups:

    Code:
    <if condition="is_member_of($vbulletin->userinfo, 2)">
    Just keep adding group ID's after the first, seperated by commas, like so:

    Code:
    <if condition="is_member_of($vbulletin->userinfo, 2, 6, 32, 14)">

    If you put it around the code for sticking/unsticking a thread, only people in those groups will see that link!

    Code:
    <if condition="is_member_of($vbulletin->userinfo, 2, 6)">
    <tr>
    		<td class="vbmenu_option"><img class="inlineimg" src="$stylevar[imgdir_button]/mysticky.gif" />
    		<if condition="in_array($thread['threadid'], $personalstickys)">
    			<a href="showthread.php?$session[sessionurl]do=unpersonalsticky&amp;t=$threadid">$vbphrase[personal_unsticky]</a>
    		<else />
    			<a href="showthread.php?$session[sessionurl]do=personalsticky&amp;t=$threadid">$vbphrase[personal_sticky]</a>
    		</if>
    		</td>
    	</tr>
    	</if>
    </if>

    Need to add the first if statement then a </if> at the end.

    Keep in mind that if a person you allow to have stickies gets removed from the group, they will still see the stickied threads, they just won't be able to unstick them without using the direct link.

    Edit: co-admin brought up a good point, can you still stick from the URL if you knew it, the answer was yes, so I went back to fiddling. The URL's look like this:

    showthread.php?do=personalsticky&t=1
    showthread.php?do=unpersonalsticky&t=1

    And can be called even if you hide the link.

    Edit the following plugin: Stick/unstick check

    Find:

    Code:
    if ($_REQUEST['do'] == 'personalsticky' )
    replace with:

    Code:
    if ($_REQUEST['do'] == 'personalsticky' AND is_member_of($vbulletin->userinfo, 2))

    Making sure to edit your usergroups.

    If you aren't in the defined groups, and try to manually stick a thread, it just takes you to the thread and nothing happens. I'd love it to go to an error message but I have no idea how.

    Close
Version History
  • 1.0.3c: Updated for vBulletin 3.7.3 (August 28, 2008)

Download

This modification is archived, downloads are still allowed.

File Type: %1$s Personal Sticky Threads 1.0.3c.zip (88.5 KB, 475 downloads)

Screenshots

Click image for larger version
Name:	screenshot1.jpg
Views:	1020
Size:	30.7 KB
ID:	86218   Click image for larger version
Name:	screenshot2.jpg
Views:	1213
Size:	58.4 KB
ID:	86219  

Similar Mods

Tagged Threads: Subscribed Threads behave like Sticky Threads vBulletin 3.5 Add-ons

vblts.ru supports vBulletin®, 2022-2024