Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 09-10-2002, 08:23 AM
TECK's Avatar
TECK TECK is offline
 
Join Date: Nov 2001
Location: Canada
Posts: 4,182
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default specific style for only one forumid?

what i try to acomplish to use a specifuc html style for a unique forum only, for example forumid 3. so instead of using the classic forumdisplay_threadslist template for example, i want to use a new one. there is always my hard way:
create a new template and use a if condition for the forumid to select the specific template...

i'm not good at all with multiple style integration. can you recommend me what is the best aproach?
Reply With Quote
  #2  
Old 09-10-2002, 11:53 AM
Logician's Avatar
Logician Logician is offline
 
Join Date: Nov 2001
Location: inside vb code
Posts: 4,449
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

<a href="https://vborg.vbsupport.ru/showthread.php?s=&threadid=43325" target="_blank">Advanced Templates</a> can help.. After the installation, edit your relevant template and use this format:
[[($forum[forumid]==X)]]
Your specific template for forum X
[[/($forum[forumid]==X)]]
[[($forum[forumid]!=X)]]
Your normal template for other forums
[[/($forum[forumid]!=X)]]

I didnt test it out but I believe it will work..
Reply With Quote
  #3  
Old 09-10-2002, 11:54 AM
Admin's Avatar
Admin Admin is offline
Coder
 
Join Date: Oct 2023
Location: Server
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Why can't you create a new template set, assign it to a style and use that style in only that forum? Easier than hacking.

Or hack forumdisplay:
Code:
    // there are threads
    eval("\$forumdisplay[threadslist] = \"".gettemplate('forumdisplay_threadslist')."\";");
Change to something like:
Code:
    // there are threads
    eval('$forumdisplay[threadslist] = "'.gettemplate(iif($foruminfo['forumid'] == 3, 'forumdisplay_threadslist_specialversion', 'forumdisplay_threadslist')).'";');
Reply With Quote
  #4  
Old 09-10-2002, 08:40 PM
TECK's Avatar
TECK TECK is offline
 
Join Date: Nov 2001
Location: Canada
Posts: 4,182
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

that's exacly what i needed chen. thanks! i was gonna do it this way, hacking the gettemplate.
however, i want to learn to create a new template set. anyone knows any links with tutorials? are they available on members area? i could not find them. since styles are part of the default unhacked forums, they should have it included onto the online manual.
Reply With Quote
  #5  
Old 09-10-2002, 08:50 PM
TECK's Avatar
TECK TECK is offline
 
Join Date: Nov 2001
Location: Canada
Posts: 4,182
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ok i created a new style and looked through it.. it adds all templates. cn i just create my own set? with the 3 templates? without replacement set, etc? and put there only the templataes that i'm interested to have them modified? thanks.

also a little detail:
2.2.7|||Master vBulletin Style Set!!!master!!!|||None|||None|||43|||479|||

vBulletin Style Set and master are separated by 3 exclamation marks? can you explain to me what should i replace the "master" word with? ty.
Reply With Quote
  #6  
Old 09-11-2002, 05:20 PM
Dean C's Avatar
Dean C Dean C is offline
 
Join Date: Jan 2002
Location: England
Posts: 9,071
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

^ no way in hell this is nakkid....
Reply With Quote
  #7  
Old 09-12-2002, 04:03 AM
TECK's Avatar
TECK TECK is offline
 
Join Date: Nov 2001
Location: Canada
Posts: 4,182
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

coding is not the same as making template style. i never did one.
so i'm a newbie creating template styles...
Reply With Quote
  #8  
Old 09-12-2002, 05:37 PM
Dean C's Avatar
Dean C Dean C is offline
 
Join Date: Jan 2002
Location: England
Posts: 9,071
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

oh i see lol.... i still find it hard to believe with all your hacks etc that you are a newbie at making styles etc...

- Mist
Reply With Quote
  #9  
Old 09-17-2002, 12:53 AM
TECK's Avatar
TECK TECK is offline
 
Join Date: Nov 2001
Location: Canada
Posts: 4,182
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by FireFly
Why can't you create a new template set, assign it to a style and use that style in only that forum? Easier than hacking.

Or hack forumdisplay:
Code:
    // there are threads
    eval("\$forumdisplay[threadslist] = \"".gettemplate('forumdisplay_threadslist')."\";");
Change to something like:
Code:
    // there are threads
    eval('$forumdisplay[threadslist] = "'.gettemplate(iif($foruminfo['forumid'] == 3, 'forumdisplay_threadslist_specialversion', 'forumdisplay_threadslist')).'";');
this should aplay also for the child forums if my forumid is a parent forum, right firefly?
or should i use an array just to make sure...?
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 01:14 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.06671 seconds
  • Memory Usage 2,243KB
  • Queries Executed 13 (?)
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
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (4)bbcode_code
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (9)post_thanks_box
  • (9)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (9)post_thanks_postbit_info
  • (9)postbit
  • (9)postbit_onlinestatus
  • (9)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_postinfo_query
  • fetch_postinfo
  • 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
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete