vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   The "Make Stickies Bold / Prefix Remove" Hack (https://vborg.vbsupport.ru/showthread.php?t=49946)

John 03-10-2003 10:00 PM

The "Make Stickies Bold / Prefix Remove" Hack
 
-/\-/\-/\-/\-/\-/\-/\-/\-/\-/\-
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.

Link14716 03-11-2003 10:19 AM

Why not do this? :D
Code:

      if ($thread[sticky] == 1) {
                $thread[title] = "<b>$thread[title]</b>";
      }

:)

John 03-11-2003 10:22 AM

lol, good point - I'll update instructions.

I always go the long way round ;)

assassingod 03-11-2003 12:30 PM

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:D

WoodiE 03-11-2003 01:32 PM

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

Shimmy 03-11-2003 02:58 PM

worked great on 2.3.0

Thanks

Mr L 03-11-2003 04:30 PM

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!

assassingod 03-11-2003 04:46 PM

You'd use this:

Link14716 03-11-2003 09:51 PM

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. :)

Mr L 03-11-2003 10:04 PM

Thanks Assassingod, just what I needed! :D


All times are GMT. The time now is 10:05 AM.

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.01452 seconds
  • Memory Usage 1,728KB
  • 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_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)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