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)
-   -   Tagged Threads: Subscribed Threads behave like Sticky Threads (https://vborg.vbsupport.ru/showthread.php?t=98986)

Chris M 10-22-2005 01:46 PM

Quote:

Originally Posted by teach1st
Installed, but not working as described. Tried two different users, two browsers.

ON EDIT: Working now. "Check Thread Subscription" must be enabled in ACP Thread Display Options.

Ah I didn't check if Thread Subscriptions were needed - I had mine on by default :)

I'll include that in the post, thanks :)

Chris

.Tim 10-22-2005 03:10 PM

Great hack!

TygerTyger 10-22-2005 10:22 PM

Now that is a cool plugin. What a brilliant idea, custom stickies basically.

I have a suggestion/question...would it be possible to choose which subscribed threads were stickied and which weren't? On the basis that if you have a lot of subscribed threads/existing stickies or a combination it will get quite full quickly.

Chris M 10-23-2005 12:16 AM

Currently no, but when I expand upon it I don't see why not :)

Chris

Chris M 10-23-2005 12:29 AM

Onimua pointed out something, as he runs both my Strike through threads plugin and this plugin ;)

If you run both, edit the Subscribed Plugin:
Change the code to:
PHP Code:

if ($thread['issubscribed']) 
{
    if (!
$thread['open'] && !$thread['sticky']) 
    {
        
$threadbit =& $threadbits_sticky;
        
$thread[threadtitle] = '<span style="font-weight: bold; color: #FF0000;">Tagged: </span><span style="text-decoration: line-through; color: #FF0000;">' $thread[threadtitle] . '</span>';
    }
    else
    {
        
$threadbit =& $threadbits_sticky;
        
$thread[threadtitle] = '<span style="color: #FF0000;"><span style="font-weight: bold;">Tagged: </span>' $thread[threadtitle] . '</span>';
    }


Then edit the strikethrough plugin, and change the code to:
PHP Code:

if (!$thread['open'] && !$thread['sticky'] && !$thread['issubscribed']) 
{
$thread[threadtitle] = '<span style="text-decoration: line-through;">' $thread[threadtitle] . '</span>';


This should solve the problem of them clashing :)

Chris

akanevsky 10-27-2005 10:17 PM

Great hack! WIll install LateR

john1744 10-27-2005 10:41 PM

This is absolutely wonderful Chris, my users have been wishing they could self sticky threads forever.

FleaBag 10-27-2005 10:57 PM

Hey Chris, loving this addition! A question though...

BTW, I have 'Sticky' renamed 'FYI'.

Please see attachment. As you'll see FYI is in bold and not hyperlinked, and normal thread highlighting dependant on thread state occurs [in this case, not bold, because there are no new posts]. The word 'Tagged' though is hyperlinked, and I'm assuming the thread is bold by default [in this case I have removed the colour and moved the bold to 'Tagged' only]? Any way to avoid this and have it act like vB's natural way of working? :)

john1744 10-29-2005 04:31 AM

I stripped out the HTML that edited the threads in my xml, it was causing some funky issues in our HTML enabled forums.

However one bug I did note that is serious is threads I have tagged only appear stickied on the pages they are currently resting in. They aren't global forum stickies. I'd rather have that.

Chris M 10-29-2005 10:01 AM

Quote:

Originally Posted by john1744
I stripped out the HTML that edited the threads in my xml, it was causing some funky issues in our HTML enabled forums.

However one bug I did note that is serious is threads I have tagged only appear stickied on the pages they are currently resting in. They aren't global forum stickies. I'd rather have that.

If you mean they are stuck on every page, you need to turn on the vBOptions setting to do so...

If you mean in every forum, then this most likely will require code modification ;)

@FleaBag - I shall investigate it but I am almost certain that to do it to that detail will require code modification ;)

Chris


All times are GMT. The time now is 01:38 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.03048 seconds
  • Memory Usage 1,748KB
  • 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_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete