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 01-01-2005, 09:42 PM
n_wattam n_wattam is offline
 
Join Date: Nov 2004
Posts: 39
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Templates. Need Help Really Bad??

my brain is on the point of overload.... :ermm:

I was to be able to create a template, and want this template to say contain a table for aguments sake.

Now i know how to create a template, but how do i get to display it on my forum...

Please Help!!!!
Reply With Quote
  #2  
Old 01-01-2005, 10:33 PM
boo.3 boo.3 is offline
 
Join Date: Nov 2004
Posts: 232
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Admin CP - Style Manager - Click Arrow by style u want - then theres a box on the top right scroll UP and you'll see it
Reply With Quote
  #3  
Old 01-01-2005, 10:55 PM
SFishy SFishy is offline
 
Join Date: Nov 2001
Location: NY
Posts: 188
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Do you want your custom template to appear inside another templates, or on it's own page?
Reply With Quote
  #4  
Old 01-01-2005, 10:55 PM
SVTBlackLight01's Avatar
SVTBlackLight01 SVTBlackLight01 is offline
 
Join Date: Jan 2003
Location: Texas
Posts: 504
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by boo.3
Admin CP - Style Manager - Click Arrow by style u want - then theres a box on the top right scroll UP and you'll see it
That's how you create the template. To call it on a page, use this (assuming the rest of ther page is coded).

PHP Code:
eval('print_output("' fetch_template('template_name') . '");'); 
Also, take a look at this thread.

https://vborg.vbsupport.ru/showthread.php?t=62164
Reply With Quote
  #5  
Old 01-01-2005, 11:02 PM
SVTBlackLight01's Avatar
SVTBlackLight01 SVTBlackLight01 is offline
 
Join Date: Jan 2003
Location: Texas
Posts: 504
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by SFishy
Do you want your custom template to appear inside another templates, or on it's own page?
Good point. It will make a difference.
Reply With Quote
  #6  
Old 01-01-2005, 11:41 PM
n_wattam n_wattam is offline
 
Join Date: Nov 2004
Posts: 39
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok going to start again, cos i am totally lost now..

What i want to do is have my own custom template, this template will display a box, and also the results of a verible inside the box.

I have created the template, called 'advertisement_notice' but what i dont know now what to do is display this template, and how to set the verible up, so i can change the value of it a will by using the options menu

Thanks again
Reply With Quote
  #7  
Old 01-02-2005, 12:18 AM
SVTBlackLight01's Avatar
SVTBlackLight01 SVTBlackLight01 is offline
 
Join Date: Jan 2003
Location: Texas
Posts: 504
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Check out these two threads.

https://vborg.vbsupport.ru/showthread.php?t=59939

https://vborg.vbsupport.ru/showthread.php?t=62164

They should answer all your questions.
Reply With Quote
  #8  
Old 01-02-2005, 12:20 AM
n_wattam n_wattam is offline
 
Join Date: Nov 2004
Posts: 39
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by SVTBlackLight01
Check out these two threads.

https://vborg.vbsupport.ru/showthread.php?t=59939

https://vborg.vbsupport.ru/showthread.php?t=62164

They should answer all your questions.

Checked them out, but they only show you how to call a template form you own fresh page or an exisiting, one, but i want to call a template from an exisiting template.. :ermm:
Reply With Quote
  #9  
Old 01-02-2005, 02:42 AM
darnoldy darnoldy is offline
 
Join Date: Dec 2004
Posts: 234
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by n_wattam
I have created the template, called 'advertisement_notice'
okay, that's step 1

Step 2: Find the template called "phpinclude_start" and add this line:
Code:
eval( '$advertisement_notice = "' .fetch_template ('advertisement_notice' ) . '";' );
Step 3: put the variable $advertisement_notice into the template you want.

--don
Reply With Quote
  #10  
Old 01-02-2005, 08:03 AM
n_wattam n_wattam is offline
 
Join Date: Nov 2004
Posts: 39
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

At last...

That works great cheers.... :nervous:

If i want to diplay a customable verible in my tempate, would i just put the verible name in the template then create a Vbulletin Option verible
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 02:41 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04480 seconds
  • Memory Usage 2,253KB
  • 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
  • (1)bbcode_code
  • (1)bbcode_php
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)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