Go Back   vb.org Archive > vBulletin Modifications > vBulletin 3.8 Modifications > vBulletin 3.8 Add-ons

Reply
 
Thread Tools
vBTemplates - Custom templates anywhere Details »»
vBTemplates - Custom templates anywhere
Version: 1.00, by davidw davidw is offline
Developer Last Online: Nov 2023 Show Printable Version Email this Page

Category: Integration with vBulletin - Version: 3.8.1 Rating:
Released: 03-09-2009 Last Update: Never Installs: 27
Uses Plugins Template Edits
 
No support by the author.

For a lot of people who are in need of a quick custom template and don't have that much time - such as for testing purposes - or if you are new to vbulletin and are unsure how to do much of anything, this would be a lifesaver for a few out there. This takes the guesswork on what to do and where to go.

It was a really easy hack (took me very little time to write it) - and very easy to install.

Step 1:
Install the product.
Admincp => Plugins & Products => Manage Products => Add/Import Product [ product-davidw_vbtemplates.xml ]

Step 2:
Add your custom template
Admincp => Styles & Templates => Style Manager => Edit Templates => Open up vbtpldw Templates => Open up whichever template you want to use => Put in your template code

Step 3:
Find wherever you want to place your new custom template (header, navbar, footer) and place $vbtpldw_## with the ## being the number of the template you just saved. You might have to add the template name to vbadvanced per vbadvanced's global options.

That's it! I've provided up to 10 custom templates. Need more? Let me know.

Download Now

File Type: zip vbtemplates.zip (1.4 KB, 190 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 03-10-2009, 12:13 AM
rob01 rob01 is offline
 
Join Date: Sep 2008
Location: Mexico
Posts: 410
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i dont get it :S.. for what is this? .. do you have some screenshots?
Reply With Quote
  #3  
Old 03-10-2009, 01:55 AM
davidw's Avatar
davidw davidw is offline
 
Join Date: Jul 2005
Location: Arkansas
Posts: 2,815
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

No screenshots are really needed.
Say for example you want to add a box of images - and - you want to have specific text for a specific style in your footer.
You can add your box of images in $vbtpldw_01 and your specific text in $vbtpldw_02 and only include those two variables where you need them in your footer.
Code:
$ad_location[ad_footer_start]

$vbtpldw_01
$vbtpldw_02
<br />

$spacer_close
Say as an additional example, your second style has something you want similar, but rather than putting the text in there, add what you want to $vbtpldw_03 and just put the variable in the second style's footer.
Code:
$ad_location[ad_footer_start]

$vbtpldw_01
$vbtpldw_03
<br />

$spacer_close
Btw, this isn't far from what I have on my own site. I'm using $vbtpldw_02 on my site rather than 01 and 02 or 01 and 03.

I am not using 01 on my site currently as I have other footer information in there and have that "not in play" at the moment.

Hope that helps
Reply With Quote
  #4  
Old 03-10-2009, 08:28 AM
MARCO1's Avatar
MARCO1 MARCO1 is offline
 
Join Date: Jun 2008
Posts: 872
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Good David Installed
Reply With Quote
  #5  
Old 03-10-2009, 01:14 PM
Daniel_HBK Daniel_HBK is offline
 
Join Date: Feb 2006
Location: Egypt
Posts: 141
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

is it like that :- https://vborg.vbsupport.ru/showthread.php?t=199869 ?
Reply With Quote
  #6  
Old 03-10-2009, 01:32 PM
davidw's Avatar
davidw davidw is offline
 
Join Date: Jul 2005
Location: Arkansas
Posts: 2,815
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

No, totally different. This is for inserting custom templates into different locations of your site (forumhome template, navbar template, header, footer, etc.) That way those locations are much cleaner and you can put them in more than one place. You can put an image in one template and and put that variable scattered wherever you want.
Reply With Quote
  #7  
Old 03-10-2009, 06:42 PM
Jasem's Avatar
Jasem Jasem is offline
 
Join Date: Feb 2006
Location: www.menokia.com
Posts: 594
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Good work, thank you

installed
Reply With Quote
  #8  
Old 03-11-2009, 02:04 AM
lpetrich's Avatar
lpetrich lpetrich is offline
 
Join Date: Mar 2008
Location: Lebanon, OR
Posts: 61
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have a problem. I'm trying to move some navbars in some old themes to a custom template, but that custom template does not seem to "know" anything about vBulletin-API contents. It thus shows what a guest would see rather than what a member would see. Is there any simple way to fix that?
Reply With Quote
  #9  
Old 03-11-2009, 10:46 AM
davidw's Avatar
davidw davidw is offline
 
Join Date: Jul 2005
Location: Arkansas
Posts: 2,815
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Can you give me an example of where this is happening (is this going on a non-vb page) and what kind of code you are trying to use? PM me if you need to.
Reply With Quote
  #10  
Old 03-11-2009, 11:08 AM
lpetrich's Avatar
lpetrich lpetrich is offline
 
Join Date: Mar 2008
Location: Lebanon, OR
Posts: 61
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It's code like this:
HTML Code:
Everybody should be able to see this text.
<if condition="$show['member']">Only members should be able to see this text.</if>
I can make the first sentence get rendered but not the second sentence, even when viewing it as a member.
Reply With Quote
Reply

Thread Tools

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 11:51 PM.


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.06154 seconds
  • Memory Usage 2,309KB
  • Queries Executed 24 (?)
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
  • (2)bbcode_code
  • (1)bbcode_html
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (1)postbit_attachment
  • (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_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_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete