vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Personal Stickys (https://vborg.vbsupport.ru/showthread.php?t=102535)

Dennis B 12-01-2006 05:38 PM

Yeah it's a pity he's not had time to convert it yet, this is such a cool hack.

VietPirates 12-07-2006 03:47 PM

any update yet? ;)

deeoo 12-07-2006 08:18 PM

Works great for 3.6.4 if you alter 4 things in the readme.txt.

Use the attached readme.txt and replace the one in the mod if you use 3.6.4.

deeoo 12-08-2006 12:14 AM

Update: it's not as flawless as I tought...

IrPr 01-09-2007 06:01 PM

Quote:

Originally Posted by deeoo (Post 1134202)
Update: it's not as flawless as I tought...

What Flaw ?

IrPr 01-09-2007 06:32 PM

Quote:

Originally Posted by IrPr (Post 1154762)
What Flaw ?

Ok i found
You must Edit SHOWTHREAD template
Find
Code:

            <if condition="$show['moderated'] OR $show['deletedthread'] OR $show['paperclip'] OR $show['subscribed'] OR $show['sticky'] OR $show['rexpires']">
Replace with
Code:

            <if condition="$show['moderated'] OR $show['deletedthread'] OR $show['paperclip'] OR $show['subscribed'] OR $show['sticky'] OR $show['rexpires'] OR $personalsticky">

Keyser S?ze 01-09-2007 11:45 PM

going to give this a try tonght, if it has been updated can the updater contact the original maker, maybe it can be rereleased officially

Keyser S?ze 01-12-2007 07:21 PM

Quote:

Originally Posted by IrPr (Post 1154784)
Ok i found
You must Edit SHOWTHREAD template
Find
Code:

            <if condition="$show['moderated'] OR $show['deletedthread'] OR $show['paperclip'] OR $show['subscribed'] OR $show['sticky'] OR $show['rexpires']">
Replace with
Code:

            <if condition="$show['moderated'] OR $show['deletedthread'] OR $show['paperclip'] OR $show['subscribed'] OR $show['sticky'] OR $show['rexpires'] OR $personalsticky">

no where in show thread template is any of this, so im not sure where to put it did u name the wrong template?

Keyser S?ze 04-02-2007 09:23 PM

can anyone help with this hack, trying to make it work in 3.6.5

vb_customer 04-28-2007 09:35 PM

So this doesn't work in 3.6.5 yet?

Keyser S?ze 04-29-2007 02:39 AM

nope sure dont, needs an update for sure

Lionel 05-08-2007 05:32 AM

I've got this to work in 3.60

first in forumdisplay.php you must remove the last bracket in OR threadid IN ($personalstickysq))

and do like (no parenthesis after AND sticky =)

Quote:

AND sticky = 1
OR threadid IN ($personalstickysq)
and then do the change in post 126 but the correct template is threadbit, not showthread

PJSkiboy 06-05-2007 03:30 PM

Quick question, is this mod supposed to show your personal stickies in every forum/subforum you visit or is it simply supposed to sticky those threads in the forum they reside?

Currently the personal stickies are following me around everywhere i go on my forums, lol. Is there a way to make them simply be stickied in the forum they were created in???

I really hope i simply have some code wrong somewhere, lol.

gingery 06-20-2007 02:24 PM

I would really like to have a working version of this hack for 3.6.7.

john1744 09-11-2007 10:13 PM

Actually I just got it working perfectly for 3.6.7

gingery 09-12-2007 12:29 AM

Quote:

Actually I just got it working perfectly for 3.6.7
Can you share the details? :)

yoyoyoyo 09-12-2007 12:33 AM

how many extra queries does this send to the server?

john1744 09-12-2007 01:54 AM

vBulletin 3.6.7 PL1 Instructions

Try out these directions and report back. As far as I remember this is what I did to get it working. (Basically following others ideas and putting them together.)

fixer 09-16-2007 10:11 PM

Quote:

Originally Posted by john1744 (Post 1337375)
vBulletin 3.6.7 PL1 Instructions

Try out these directions and report back. As far as I remember this is what I did to get it working. (Basically following others ideas and putting them together.)

it gives error in vb3.6.8

zendiver 01-19-2008 02:13 AM

Quote:

Originally Posted by fixer (Post 1340434)
it gives error in vb3.6.8

It works, but there is a slight problem within the document. It says:
Code:

==== Find in forumdisplay.php
                $stickies = $db->query_read_slave("
                        SELECT thread.threadid, lastpost, open
                        FROM " . TABLE_PREFIX . "thread AS thread
                        WHERE forumid = $foruminfo[forumid]
                                AND sticky = 1
                                $visiblethreads
==== Replace with
                $stickies = $db->query_read_slave("
                        SELECT thread.threadid, lastpost, open
                        FROM " . TABLE_PREFIX . "thread AS thread
                        WHERE forumid = $foruminfo[forumid]
                                AND (sticky = 1
                                OR threadid IN ($personalstickysq)
                                $visiblethreads

The replacement is missing a closing paranthesis - it needs a double )) after $personalstickysq
It should look like this for the replacement

Code:

==== Replace with
                $stickies = $db->query_read_slave("
                        SELECT thread.threadid, lastpost, open
                        FROM " . TABLE_PREFIX . "thread AS thread
                        WHERE forumid = $foruminfo[forumid]
                                AND (sticky = 1
                                OR threadid IN ($personalstickysq))
                                $visiblethreads

AND there was a step left out that was part of the original installation.

Working on 3.6.8 PL2 - Complete Update Installation Revision is attached!

iRO Wiki 03-25-2008 05:38 PM

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.

ThE LeAdEr 07-17-2008 09:25 PM

Work in 3.7??

Kaelon 09-02-2008 03:40 PM

Quote:

Originally Posted by ThE LeAdEr (Post 1578015)
Work in 3.7??

For those interested, with the original author's permission, I released an update to this hack for vBulletin 3.7.x:

https://vborg.vbsupport.ru/showthread.php?t=189444


All times are GMT. The time now is 01:05 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
  • Page Generation 0.01496 seconds
  • Memory Usage 1,775KB
  • 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
  • (11)bbcode_code_printable
  • (8)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (23)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete