Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
The "Make Stickies Bold / Prefix Remove" Hack Details »»
The "Make Stickies Bold / Prefix Remove" Hack
Version: 1.00, by John John is offline
Developer Last Online: Nov 2023 Show Printable Version Email this Page

Version: 2.3.x Rating:
Released: 03-10-2003 Last Update: Never Installs: 31
 
No support by the author.

-/\-/\-/\-/\-/\-/\-/\-/\-/\-/\-
Make Stickies Bold Hack
By Shaolyen
email: John@eovie.com
msn: John@eovie.com
-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-


Introduction
----------------------------
Ok, just a quick one as per the request here:
https://vborg.vbsupport.ru/showthrea...threadid=49935
Nothing special I'm afraid - it simply gets rid of the "Sticky:"
prefix and makes the thread title bold instead.

It has its uses - I've been driven mad by the number of times
I've been asked what a "Sticky" is, at least now they see the bold
text and know it's an important thread.

Sticky behavior is unchanged (they still stay at the top, lol)
----------------------------

A big thanks to Link14716 for pointing out my stupidity!

It's fairly simple, I can't see there being many problems with this one. Tested on vB 2.3.0, fresh install.

Show Your Support

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

Comments
  #2  
Old 03-11-2003, 10:19 AM
Link14716's Avatar
Link14716 Link14716 is offline
 
Join Date: Jun 2002
Location: Georgia, USA
Posts: 2,519
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Why not do this?
Code:
      if ($thread[sticky] == 1) {
		 $thread[title] = "<b>$thread[title]</b>";
      }
Reply With Quote
  #3  
Old 03-11-2003, 10:22 AM
John's Avatar
John John is offline
 
Join Date: Mar 2002
Location: Norwich, UK
Posts: 1,543
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

lol, good point - I'll update instructions.

I always go the long way round
Reply With Quote
  #4  
Old 03-11-2003, 12:30 PM
assassingod's Avatar
assassingod assassingod is offline
 
Join Date: Jul 2002
Posts: 3,337
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Cool hack!

This is a little addition.
You can specify a colour in the Admin CP (vB Options -> Forumdisplay) for stickies (i.e red), and use this code instead:

Then all you have to do is change the colour via admin CP to change its color
Reply With Quote
  #5  
Old 03-11-2003, 01:32 PM
WoodiE WoodiE is offline
 
Join Date: May 2002
Posts: 317
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm running 2.2.8 and this works perfectly! Though i did try assassingod's hack and it not only made it bold, but changed the post icon to the text also. :\

No worries, thank you very much Shaolyen!

-WoodiE
Reply With Quote
  #6  
Old 03-11-2003, 02:58 PM
Shimmy Shimmy is offline
 
Join Date: Sep 2002
Location: Ohio
Posts: 12
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

worked great on 2.3.0

Thanks
Reply With Quote
  #7  
Old 03-11-2003, 04:30 PM
Mr L Mr L is offline
 
Join Date: Jan 2002
Posts: 99
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks for this cool, but small mod!!!

I am no PHP expert at all, but how would it be possible to place a small post-it icon before the thread that is sticky. I have taken the liberty of attaching a gif, if anyone can do this.

Thanks!
Reply With Quote
  #8  
Old 03-11-2003, 04:46 PM
assassingod's Avatar
assassingod assassingod is offline
 
Join Date: Jul 2002
Posts: 3,337
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You'd use this:
Reply With Quote
  #9  
Old 03-11-2003, 09:51 PM
Link14716's Avatar
Link14716 Link14716 is offline
 
Join Date: Jun 2002
Location: Georgia, USA
Posts: 2,519
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Or better yet...
Code:
      if ($thread[sticky] == 1) {
		 $thread[title] = "<b>$thread[title]</b>";
         $thread[typeprefix]=$stickythreadprefix.$thread[typeprefix];
      }
And add the <img> HTML code into the Sticky Prefix in the Admin CP. If you just want the image and not the bolded title, revert the changes this hack makes and then add the HTML into the Sticky Prefix in the Admin CP.
Reply With Quote
  #10  
Old 03-11-2003, 10:04 PM
Mr L Mr L is offline
 
Join Date: Jan 2002
Posts: 99
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks Assassingod, just what I needed!
Reply With Quote
Reply


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 02:23 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.04734 seconds
  • Memory Usage 2,288KB
  • Queries Executed 23 (?)
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
  • (2)bbcode_code
  • (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
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)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