Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Add-ons
External VBTemplate Details »»
External VBTemplate
Version: 1.00, by civil78 civil78 is offline
Developer Last Online: Nov 2021 Show Printable Version Email this Page

Category: Miscellaneous Hacks - Version: 4.x.x Rating:
Released: 10-13-2013 Last Update: 10-13-2013 Installs: 5
Uses Plugins
Translations  
No support by the author.

This module is targeting developers/web designers and it provides the feature to load vbulleitn templates directly from external files.

The main problem when you make changes into templates (if you don?t work directly on browser window) is that you have to copy/paste always the code from the external web editor to vbulletin template editor.

This module provides an easy way to change the template by loading an external file into the template. Developer can change directly the template from the external web editor and for example using ftp to save the file into the server. So there is no need to copy/paste the code.

These templates works like vbulletin editor and the <vb:>, {vb:} tags can used. All the template code parsed as well as vbulletin does. The only feature that it's "missing", is that there no ?bad code? checking. But developers with a lot of experience doesn?t need that.

You can add two type of tags, import and overwrite.

With import tag you can partly import multiple external template files into specific places of an existing template.

For example add this on template :

HTML Code:
<div>Template Code ? </div>
<vbimport>./localpath/import1.html</vbimport> 
<div>Template Code ? </div>
<vbimport>www.example.com/path/import2.html</vbimport>
<div>Template Code ? </div>
With overwrite tag you can replace the whole template with the code that included on the file. You can keep also the existing code, its doesn?t matter.

For example add this on template :

HTML Code:
<div>Template Code ? </div>
<vboverwrite>./localpath/import1.html</vboverwrite> 
<div>Template Code ? </div>
Other Features :
  • Option to activate/deactivate product.
  • Option to change the import and overwrite tag names.
  • Option to hide tags when the product isn?t activated.
  • Option to prevent file cashing when you load files from a domain.

Important Notice

This module is only for developing proposes. At the end of developing, I suggest to copy the final code into the template system. Also I don?t suggest to use this module on a live site, this may increase a little bit the server load, because it parses every time the external templates files.

Download Now

File Type: xml product-extvbtmp.xml (8.5 KB, 24 views)

Screenshots

File Type: png extmp_settings.png (53.5 KB, 0 views)
File Type: png extmp_import.png (32.2 KB, 0 views)
File Type: png extmp_overwrite.png (35.2 KB, 0 views)

Show Your Support

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

Comments
  #2  
Old 02-10-2015, 08:56 PM
Dr.CustUmz's Avatar
Dr.CustUmz Dr.CustUmz is offline
 
Join Date: Aug 2013
Location: USA
Posts: 647
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I am trying to make this work in vB3 i have tried a few things with no success. Is there a funtion i have to word differently or anything to make this compatible cause all the results i get look similar to this image


after looking over the plugin source, i still dont see how this wouldnt work with vb3 the only thing that catches my eye that wouldnt work is the display:none for the headinclude_css template, other than that im lost.

but this is something i would love to have on my site

also tried changing the hook locations, and i manged to get an echo to appear, but still no success =(
Attached Images
File Type: jpg Capture.jpg (13.6 KB, 0 views)
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:34 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.03750 seconds
  • Memory Usage 2,227KB
  • Queries Executed 16 (?)
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_html
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (2)post_thanks_box
  • (2)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (2)post_thanks_postbit_info
  • (1)postbit
  • (5)postbit_attachment
  • (2)postbit_onlinestatus
  • (2)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
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete