vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Sticky thread prefix (https://vborg.vbsupport.ru/showthread.php?t=44098)

Reverend 09-29-2002 09:21 PM

Sticky thread prefix
 
I've edited my "Prefix for sticky threads" to Important:

Is there a hack available that lets you prefix individual sticky threads
i.e have some that are prefixed with Important: and some that are prefixed with Sticky:

wolfe 09-30-2002 12:50 AM

good idea d00d i could do with this too :D nice one :D

Logician 09-30-2002 07:50 AM

I assume you would want something integrated to Admin CP, but well it's not a 2 min. hack so here is my fast solution: :)

Edit forumdisplay.php, find:
PHP Code:

$thread[typeprefix]=$stickythreadprefix.$thread[typeprefix]; 

Replace it as:
PHP Code:

if ($thread[threadid]==OR $thread[threadid]==OR $thread[threadid]==Z)
{
$thread[typeprefix]='STICKY:'.$thread[typeprefix];}
else
{
$thread[typeprefix]=$stickythreadprefix.$thread[typeprefix];} 

Replace X, Y, Z with the threadid of threads that you want to have "sticky:" prefix.. Others will be prefixed with your admin cp specified prefix..

Enjoy

Erwin 09-30-2002 10:34 AM

There is also another hack available that is called custom prefixes that let's you make up custom prefixes in Admin CP.

g-force2k2 09-30-2002 11:01 AM

yeah Erwin thats true... but does it restrict who can use those prefixs? regards...

g-force2k2

NTLDR 09-30-2002 11:15 AM

Quote:

Originally posted by g-force2k2
but does it restrict who can use those prefixs? regards...
Both Custom Post Prefix hacks restrict who can use them by usergroup :)

I'd go for the latest version by Burns.

Reverend 09-30-2002 11:34 AM

It would be handy if you had an option to give the thread a prefix when making it a sticky.
either by the "edit thread" or "stick/unstick" thread option.

Just a thought. ;)


All times are GMT. The time now is 08:43 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.01121 seconds
  • Memory Usage 1,725KB
  • 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
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete