Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Add-ons
FAQ Community Calendar Today's Posts Search

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.6.7 Rating:
Released: 06-11-2007 Last Update: Never Installs: 22
Uses Plugins Template Edits
 
No support by the author.

I was playing around a couple days ago trying to add a custom template and wondering why it wouldn't work. I did a little searching and found that in order to make a template and then call it elsewhere there were a few steps you had to go through. No big deal.

But then I thought... 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.

Show Your Support

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

Comments
  #2  
Old 06-12-2007, 11:19 AM
ran_iu_Conan ran_iu_Conan is offline
 
Join Date: Jul 2006
Location: Viet Nam
Posts: 20
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

first post .... *installed*
Reply With Quote
  #3  
Old 06-12-2007, 11:23 AM
TheBlackPoet's Avatar
TheBlackPoet TheBlackPoet is offline
 
Join Date: May 2006
Location: Pasadena, Texas, USA
Posts: 577
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

you da man!!!! thank you for this!! now all i need to do is add my code and link to it.... SWWWEEETT!!!
Reply With Quote
  #4  
Old 06-12-2007, 11:45 AM
Barakat's Avatar
Barakat Barakat is offline
 
Join Date: Nov 2004
Location: Jerusalem
Posts: 571
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

yes nice but i use an externel file to make like those templates edit

installed


http://www.jerusalemgts.com/gti/quran.php

or

http://www.jerusalemgts.com/gti/quran.php?do=abd-nada
Reply With Quote
  #5  
Old 06-12-2007, 12:44 PM
wizardan wizardan is offline
 
Join Date: Jan 2006
Location: America
Posts: 189
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Handy
Installed.
Reply With Quote
  #6  
Old 06-13-2007, 12:56 PM
Hornstar Hornstar is offline
 
Join Date: Jun 2005
Location: Australia
Posts: 2,469
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hey not a bad option for many, nice work.
Reply With Quote
  #7  
Old 06-13-2007, 03:19 PM
AzzidReign's Avatar
AzzidReign AzzidReign is offline
 
Join Date: Apr 2006
Posts: 497
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Awesome! I'll be installing this later on a few of my boards
Reply With Quote
  #8  
Old 06-30-2007, 12:29 PM
redskins_43 redskins_43 is offline
 
Join Date: Feb 2005
Posts: 9
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

do you have somewhere where this shows on a webpage for an example? the above links posted by barakat are not coming up.

what is the difference between this and the forms hack or the custom threads hack at https://vborg.vbsupport.ru/showthread.php?t=128587?

i need something like this very much. and need to decide on what to use for setting up custom fields. pardon the ignorance here.

j
Reply With Quote
  #9  
Old 06-30-2007, 02:02 PM
davidw's Avatar
davidw davidw is offline
 
Join Date: Jul 2005
Location: Arkansas
Posts: 2,815
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The custom thread fields look similar to profile fields. There is a world of difference between this hack and those hacks (forms included) - like comparing apples to oranges. If you need something for custom fields, this would probably not be the hack for you then. It doesn't work like that. However, essentially, you could probably create a form or forms and place them in a custom template if you chose to - then they would work together.

How this works:
Say for example you want to place some content on your site - an image, an iframe, a whole block of code. Normally, and especially if you have multiple styles (2-20 or more), just going in and editing each one's content to change something can become cumbersome. This hack allows you to put all your code in one spot (the template) and then let you call the template wherever. If you have 10 styles, your edit changes 10 styles at once (provided you have the custom template called in each of those styles). This is one example. This is how I am doing it (I have 5-6 styles.
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 06:37 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.07151 seconds
  • Memory Usage 2,278KB
  • Queries Executed 22 (?)
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)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)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
  • (8)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_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