![]() |
Template Importer
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 |
Where is everyone today? Xenon makes a hack hours ago, and nobody has replied yet? What is the world coming to!?!?!? =falls over=
Anyway, this hack looks really neat Xenon, although I don't think I'll ever be using anytime soon. *clicks install anyway* ;) |
Great hack ^^ but I'm not installing it lol.
|
LOL guess not many people see a need for it.. if I used templates (coder joke) I would more so already have this installed. :)
|
hey i know this i doable by just set debugmode to on and add templates manually to the global set, but there are always some ppl out there who don't want to change the debug value ;)
|
me clicks install. some good hacks have a lot of templates to add and this hack will simply make your life easier on installing the hacks.
cool Xenon thanks |
Just remove the code from the index.php the stefan ;)
- miSt |
erm, i have absolutley no idea what you want to say?
as this is the second post of you like that today, i have to ask: Are you drunk dean? :p |
No i have a piece of metal in my mouth which is hurting greatly lol ;)
You could change this code in admin/index.php: PHP Code:
- miSt |
it's not the same :)
i know that section, because it's the functionality which gave me the idea ^^ debug mode is always enabled on my testboard ;) |
All times are GMT. The time now is 11:19 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|