Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.0 > vBulletin 3.0 Full Releases

Reply
 
Thread Tools
Allow BB code in sticky thread titles Details »»
Allow BB code in sticky thread titles
Version: 1.00, by Zzed Zzed is offline
Developer Last Online: Feb 2012 Show Printable Version Email this Page

Version: 3.0.1 Rating:
Released: 09-07-2004 Last Update: Never Installs: 41
 
No support by the author.

Sticky threads have a tendency to be overlooked by the users. So I came up with the idea of allowing BB tags and smilies to be used in the sticky thread titles to make them more noticeable. I made this hack for VB2 about a year or 2 ago, but I neglected to publish it. Another reason why this hack is limited to sticky thread titles is because there are less sticky threads in a forum than there are regular threads, and if this were to be expanded to include regular threads it would be nothing but a can of worms. And also due to the fact that it can only be used in sticky threads, it allows only admins and moderators to use this feature.

This hack is such a simple hack that I am actually embarassed to call it a hack since it actually takes 2 lines of code to do it.

The instructions and a screen shot of the hack are attached to this post.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #22  
Old 10-19-2004, 05:14 AM
neocorteqz's Avatar
neocorteqz neocorteqz is offline
 
Join Date: May 2002
Location: Barefoot Bay Fl
Posts: 473
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

does this restrict the url tags??? cause if you use it, just like the old 2.x hack, it will go to the url instead of the thread. This can be misused.
Reply With Quote
  #23  
Old 10-24-2004, 10:14 PM
Borgs8472 Borgs8472 is offline
 
Join Date: Apr 2004
Posts: 924
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

^ ^
it's a mods only feature, no problem.
Reply With Quote
  #24  
Old 12-05-2004, 01:14 PM
cinq's Avatar
cinq cinq is offline
 
Join Date: Oct 2002
Posts: 1,398
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Zzed, great idea!
But it doesn't show the bbcode parsed titles in many places, like the search, who's online, title in the threaddisplay page, the title on forumhome , print page etc etc.

It only shows on forumdisplay ( which figures since the only code change was there ).

Any plans to cover the rest as well ?
Would be a more complete hack that way

Hope to see updates soon !
Reply With Quote
  #25  
Old 12-25-2004, 10:25 AM
dutchbb dutchbb is offline
 
Join Date: Nov 2003
Posts: 899
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Zzed
I can look into trying to fix this. I'll see what I can come up with over the weekend.
Still would like this Zzed, but don't know how...

It isn't very professional to have these code brackets in a thread...
Reply With Quote
  #26  
Old 12-27-2004, 08:02 PM
Watson's Avatar
Watson Watson is offline
 
Join Date: May 2004
Location: Scotland
Posts: 220
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This been done for 3.0.3 yet, cause I keep getting the code showing up in the topic title within the actual post, and it dont actually work in the topic title
Reply With Quote
  #27  
Old 12-29-2004, 12:43 AM
dcarr dcarr is offline
 
Join Date: Dec 2004
Posts: 52
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It's certainly a great idea, but on my forumhome page...the title is coded for all to see...anybody figure this yet? It'd be a shame to have to dump it.
Reply With Quote
  #28  
Old 01-01-2005, 06:08 PM
ZombieAndy's Avatar
ZombieAndy ZombieAndy is offline
 
Join Date: Oct 2004
Location: UK
Posts: 183
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

so has a fix been made yet to show this on threads and in posts aswell as in the forum?
Reply With Quote
  #29  
Old 01-10-2005, 04:18 PM
kompakt's Avatar
kompakt kompakt is offline
 
Join Date: Dec 2004
Location: FL
Posts: 59
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm waiting on a fix for showing on the rest of the forum too. I have it installed now and its only showing in the forum display like eveyrone else.

Thanks...
Reply With Quote
  #30  
Old 02-01-2005, 02:27 PM
EscortCossie EscortCossie is offline
 
Join Date: Jun 2004
Posts: 28
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Has the fix been published yet?
Reply With Quote
  #31  
Old 02-08-2005, 02:25 PM
kompakt's Avatar
kompakt kompakt is offline
 
Join Date: Dec 2004
Location: FL
Posts: 59
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I fixed it in a few places where I felt it was needed mostly.
  1. To display in the search results
    in /search.php find
    Code:
    // get info from thread
    $thread = process_thread_array($thread, $lastread["$thread[forumid]"]);
    and replace with
    Code:
    // get info from thread
    require_once('./includes/functions_bbcodeparse.php');
    $thread['threadtitle'] = parse_bbcode($thread['threadtitle']);
    $thread = process_thread_array($thread, $lastread["$thread[forumid]"]);
  2. To display on the top navigating bit of the thread
    in /showthread.php find
    Code:
    $navbits[''] = $thread['title'];
    and add above it
    Code:
    require_once('./includes/functions_bbcodeparse.php');
    $thread['title'] = parse_bbcode($thread['title']);
I couldn't figure out how to add it to the post titles :devious: This worked fine for the others though. Not bad for 1st timer

note: this would allow nonsticky's to show in the search results and the navbit but not in the forum dislpay
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 09:39 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05167 seconds
  • Memory Usage 2,306KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (4)bbcode_code
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete