Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases

Reply
 
Thread Tools
Template Importer Details »»
Template Importer
Version: 1.00, by Xenon Xenon is offline
Developer Last Online: Oct 2023 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 08-07-2002 Last Update: Never Installs: 22
 
No support by the author.

Version: 1.0

This miniaddon i've coded last night, for another hack i'm currently working on, but then i thought it might be usefull for quite more users so i release it seperatly.

What it does?
It's a small script you have to run from your Admin-CP. You can enter a filename of a *.tpl-file (Template file formate by me ) and it'll add the Template to the global template set.
As you can see this can be very usefull if you have a lot of template sets and want to add a new hack which comes a long with much templates....

If the template already exists, it'll ask you if the new one should overwrite the old.

Because the Addon adds templates to the global set, you have to rerun it with every template file again after you've done an upgrade.

Personally i made it just for installing new templates that comes within a new hack, it has nothing to do with a backupsystem. If you want to export templates and import them again later you should use this hack by FireFly.

I don't think i would add something to the hack, but feel free to make suggestions

Zipfile contains:
tplimporter.php - the script (upload it to your admin folder)
tplimporter.txt - installation textfile and *.tpl file description
test.tpl - a *.tpl file so you can see how they should look

Enjoy

Show Your Support

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

Comments
  #12  
Old 04-26-2003, 04:59 PM
Chris M's Avatar
Chris M Chris M is offline
 
Join Date: Dec 2001
Location: Northampton, England
Posts: 6,186
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Wow...

This looks great Stefan!

Everyone should use this

Satan
Reply With Quote
  #13  
Old 01-27-2004, 02:39 PM
Fargo's Avatar
Fargo Fargo is offline
 
Join Date: Jan 2004
Location: North Dakota
Posts: 62
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you Xenon - Ive got 6 template sets on my site and several hacks to install (each with several new templates to add) - this is gonna save me a LOT of time. You are a GOD! lol

[edit]

after reading up on this..
The .tpl scheme is fairly easy to work with, but is it possible to use the "new template" style system, where one can simply type in the template name in one box, then the contents of the template into the 2nd box & finally hit a submit button?

The way you have it setup right now will still save quite a bit of time, however, it still takes the time to create a new .tpl file, then read it into the page. Having the 2 box and submit button would save even more time if you install hacks that come with the template data in text files (example: copy & paste title then copy and paste body, then save, etc etc) (like shoutbox, quick reply, tutorial hack).

Just an idea
Reply With Quote
  #14  
Old 01-27-2004, 05:05 PM
Xenon's Avatar
Xenon Xenon is offline
 
Join Date: Oct 2001
Location: Bavaria
Posts: 12,878
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

well, sorry, but i don't work on any vb2 hacks anymore, as i have switched over to vb3 totally
Reply With Quote
  #15  
Old 01-27-2004, 10:01 PM
Fargo's Avatar
Fargo Fargo is offline
 
Join Date: Jan 2004
Location: North Dakota
Posts: 62
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

np Xenon, thanks for the reply
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 02:48 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.04080 seconds
  • Memory Usage 2,236KB
  • Queries Executed 21 (?)
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
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (5)post_thanks_box
  • (5)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (5)post_thanks_postbit_info
  • (4)postbit
  • (5)postbit_onlinestatus
  • (5)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
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete