![]() |
Yes, you can do that, or just use it as a backup.
Each template is exported to it's own .html file so you can download them, edit them and re-import it. I have not tried the import part - but export works :) --James |
Bang.
|
Excuse. What would be the difference from a phpMyAdmin or backup.php exporting / importing ?
Thanks Firefly. Bye |
Not much really - well for backing up.
phpMyAdmin is also used as an SQL query tool and general database management, whereas backup.php just exports your data to a .sql file - makes it easier when updating forums - plus not everyone has phpMyAdmin installed. James |
Yeap, excellent work. Very useful tool.
|
Excuse again.
What about PHP Code:
:confused: Thnx |
I don't mean to be crude, but OMFG!!!
Firefly and Hooper, I bought vB last year and have been reading the vB forums for over a year. COUNTLESS people have complained about template maintenance with each release. This one feature will save people, at a minimum, hours of work and vB is truly lucky to have you around. I have seen all sorts of hacks around here, but this one really takes the cake. Thanks! |
WOW!!
VERY USEFULL!!!!! Mybe sometimes this tool safes my ass! :D Greetings StarBuG |
Thank you aldamon and StarBuG. :)
Jawelin - huh? |
Want me to see if I can knock up an enhancement so it tar/gzips up the template dir and emails it to you?
--James |
Sure... keep in mind it won't work on all servers though, which is why I didn't put it in in the first place.
|
Might leave it then - save on the confusion :)
--James |
:p
Original (I forgot it, after +30 hacks... :) ) admin/index.php file. Lines 330...334 .... ;) What's it ? Thanks a lot and many compliments for your hard and complete work... (p.s.: on a linux server, it doesn't manage to create the template directory... :eek: ) |
This is a must for the next vB edition. Thanks, Chen!
|
Awesome Chen, thanks for this! :)
|
This hack is just AMAZING O_O
Thank you so much, Chen!! |
My Linux server prevents the export function from working. I also don't own the server. So I made modifications to email the templates. I won't post my entire modification since it is so system specific. Once the zip file is created on a particular system, this code will ship it out.
PHP Code:
|
[QUOTE]Originally posted by FireFly
[...] Why you ask? This could help a lot when upgrading to a new version of vBulletin. Just like you can compare files using programs such as Araxis Merge or Beyone Compare, you can now also compare templates, and easily keep track of changes that were done between versions. After you save all changes to the template files, you use this script again only this time in the opposite directions - restoring the templates back into the system. [...] |
Sure.
That should be it I think, don't forget to backup everything before you do this. :) |
Thank you very much...
Sorry, but didn't understand. Now I have only the 'default' template set: how could I assign all the templates simply adding a new set 'before upgrade' ? Much probably I lack some basic information about templates and sets (and styles ... see here), but where could I read some FAQ or introduction about the VB concept of this matter ? [QUOTE]and then commit every change you find to your live template set (the one you are really using). |
Thank You for this hack, makes my life sooooo much easier :)
|
Great, great utility!
I didn't realize until this evening that blank templates were ignored during importing. Thought others may be interested to know this. (This was probably decided because the writetofile doesn't create null files.) At any rate, I've since changed the logic in my copy so that blank templates are considered like every other template. I won't post any code since it was very clear this was intended. But if you want my changes, just ask. |
Great hack (y)
|
Hi, Chen!
Finally trying to use the 'import' feature after the upgrade, I found a couple of problems: - Filenames (2002-02-02_.... etc.) aren't correctly managed - I got an error in the script while trying to replace one existing template - typo error 'export' instead 'import' in second section near "Choose templates to export selectively?" Thanks a lot. Bye |
Got vbp3.0pr7 and vb2.2.2 and all is working great!
Thanks. again Firefly :p |
ROFL Lucky...
|
Hi,
just want to let you know that I use a similar hack since nearly one year :china: https://vborg.vbsupport.ru/showthrea...threadid=15693 Export/Backup only. Together with Beyond Compare a nice setup to localize and maintain updates to vB. Good news that the idea is improved further ;) cu, -Tom |
I see... but his script doesn't import templates. ;) :)
|
[QUOTE]Originally posted by Jawelin
Hi, Chen! Finally trying to use the 'import' feature after the upgrade, I found a couple of problems: - Filenames (2002-02-02_.... etc.) aren't correctly managed - I got an error in the script while trying to replace one existing template - typo error 'export' instead 'import' in second section near "Choose templates to export selectively?" |
[QUOTE]Originally posted by FireFly
I see... but his script doesn't import templates. ;) :) |
[QUOTE]Originally posted by Jawelin
Hi, Chen! Finally trying to use the 'import' feature after the upgrade, I found a couple of problems: - Filenames (2002-02-02_.... etc.) aren't correctly managed - I got an error in the script while trying to replace one existing template - typo error 'export' instead 'import' in second section near "Choose templates to export selectively?" Thanks a lot. Bye |
Yesterday I used this hack to copy some new templates from one style to an other.
Backup custom templates from one style, import to the other style. Worked fine, no probs. :D |
I've used this a number of times with great results and no problems at all. Also, a tip: Read Bira's post earlier in the thread about changing the extension to .htt
This makes it easy to open your backup file in a browser if you need to for previewing mods, etc. HTH [QUOTE]Originally posted by Jawelin Has anybody tried the import feature ???? :pirate: How does it work with the export-date prefix ? Thanks |
[QUOTE]Originally posted by Stretchr
I've used this a number of times with great results and no problems at all. Also, a tip: Read Bira's post earlier in the thread about changing the extension to .htt |
FireFly, a super hack, thanks for sharing your talent with us.
|
Well .. Installed and backup all my templates..
|
Oh how cool!!! What a nifty little hack. :) I haven't installed many hacks yet (ok so this is my second one) but now I have my templates and stuff all backed up just in case.
Firefly you should get a cookie!!! :) TTFN |
Works perfect - thanks. Now I can install 2.2.4 ;)
|
i always get an error that the directory i want to put the templates in doesn't exist and then an error that it can't be created...:/...any advice?
|
Hi. The same question months ago noone answered... :)
Well. When I run an upgradeXX.php, all templates upgraded are the default ones, not the modified. I.e. if I edited someone for hacks or similar, THEY WILL NOT BE UPDATED to the newer release. Well: how could I manage the differences between the original template branch and the hacked one, to apply these differences by hand for example to the html/htt files coming from this hack ? Thanks for any answer. Bye |
All times are GMT. The time now is 10:36 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:
|