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-11-2003 10:26 PM

There are loads of things you could do with the sticky title.

The hardest part of making a hack like this is finding the code to edit!

Gary King 04-26-2003 12:01 PM

The simple way to do it could be to just make the Sticky prefix: <b>

But of course it won't have a closing tag, but hey, it saves time :p

jamslam 05-05-2003 09:18 PM

Here's just a small addon if you wish to have the sticky prefix with a colored/bold/italic thread title...

In forumdisplay.php find
Code:

      if ($thread[sticky] == 1) {
        $thread[typeprefix]=$stickythreadprefix.$thread[typeprefix];
      }

replace it with...
Code:

      if ($thread[sticky] == 1) {
        $thread[typeprefix]=$thread[typeprefix].$stickythreadprefix;
                $thread[title] = "<font color=red>$thread[title]</font>";
          }

Just in case you were wondering how to do it. You can of course put anything instead of the <font color=red>

remember to use \" for quotes!

gmarik 05-17-2003 07:13 PM

Hey, I wanted to ask you - can I have a prefix to choose from a drop down box, so it add's it to the thread? Can you post the little piece of code here too?

Thanks, Marco

M.C. 05-20-2003 11:45 PM

and small addition! If you want show special icon for sticky thread just do that:

in forumdisplay.php find:

PHP Code:

if ($foruminfo[allowicons] and $thread[pollid]!=0) { 
        
$thread[icon]='<img src="{imagesfolder }/poll.gif" alt="Poll" width="15" height="15" border="0">'
      } 

and below add:

PHP Code:

if ($foruminfo[allowicons] and $thread[sticky] == 1) { 
        
$thread[icon]='<img src="="{imagesfolder }/icons/icon4.gif" alt="Sticky" width="15" height="15" border="0">'
      } 

Don`t foget remove space after {imagefolder }! You can change icon for other if you want ;)

Luck

P.S. my fist kind of hack ;)

SBlueman 07-29-2007 07:06 PM

Is there anything like this for 3.6.5 and above?


All times are GMT. The time now is 11:08 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.02676 seconds
  • Memory Usage 1,724KB
  • 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
  • (2)bbcode_php_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
  • (6)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