vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Stickys and other thread Prefixes as templates... (https://vborg.vbsupport.ru/showthread.php?t=39304)

Dean C 06-01-2002 10:18 AM

Stickys and other thread Prefixes as templates...
 
I have several styles on my board ... and when i customize the HTML in the vbulletin options to give them a nice feel and stand out .. it looks ncie on some styles and ugly on others...

hence the need for my stickys to be templates so i can customize them for that styles needs...

NOTE: I reall need this hack so can some1 plzzzzz make it :D

Thanks in Advance :)

Xenon 06-01-2002 10:50 AM

not tested, but should work:

add template stickytext content: Sticky: or whatever you want

then open forumdisplay.php and find
PHP Code:

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

replace with
PHP Code:

if ($thread[sticky] == 1) {
         
$thread[typeprefix]=gettemplate("stickytext").$thread[typeprefix];
      } 


Dean C 06-01-2002 12:29 PM

IT WORKS !!!

u shud release this to every1 ... its a fantastic hack ...!

Admin 06-01-2002 12:34 PM

An easier approach, without editing any files, is set the prefix to {stickyprefix} in vBulletin Options, then set up a replacement variable for {stickyprefix} in each style. That's how I do it here.

Dean C 06-01-2002 05:24 PM

geez lol... firefly always comes up with the best option lol..

is there anythin u dont kno how to do ! lol

thanks mate ! :D

Xenon 06-02-2002 12:09 PM

grr Chen ;)

btw. What happened to the idea with the minihacks subforum to the requestforum? ^^

gmarik 05-17-2003 08:34 PM

Chen, will you release it as a hack?
Because I don't get what are you speaking about...

filburt1 05-17-2003 08:35 PM

This thread is a year old. Please don't bump such ancient topics.

Xenon 05-18-2003 09:49 AM

@gmarik: that is no hack at all.
it's just the use of replacement variables of vb.

if you don't know how to use them you should read the vb manual.

Boofo 05-18-2003 09:59 AM

Quote:

Yesterday at 04:35 PM filburt1 said this in Post #8
This thread is a year old. Please don't bump such ancient topics.
Oftentimes we don't notice these older threads until someone relies to them. Old or not, they do have some good stuff sometimes. ;)


All times are GMT. The time now is 12:27 PM.

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.01787 seconds
  • Memory Usage 1,731KB
  • 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
  • (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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete