![]() |
When using other Templates than the default (ie german templates) than it is usefull to copy this set to a new one before altering them.
File to edit: ./admin/template.php Around line 235 add the following Code before Code:
// ###################### Start Modify ####################### Code:
// ###################### Start copyset ####################### Code:
makelinkcode("copy","template.php?s=$session[sessionhash]&action=copyset&templateset=$templateset[templatesetid]"). Code:
makelinkcode("collapse groups","template.php?s=$session[sessionhash]&action=modify&expandset=$templateset[templatesetid]"). |
Nice one! Was planning on making this one myself, but won't bother anymore ;)
Another extra cp-feature I had in mind was 'add template to all template sets' which will add your new template to all sets in one click And I'm working on a template compare utitility which will check two the same template of two different template sets against eachother and lists the differences of the $var variables. But first I've to release the vbextern hack :D |
Thanks man that's a great hack, would this work for RC2?
|
Quote:
But the chance, that it does, looks great. Don?t think, this part of the skript has changed. |
Yes, this works in RC2. It will also work if you have Kier's alternate template admin hack installed. For this, simply add the code in step 2 of this mod to the ktemplate.php file instead - around line 140 in between:
PHP Code:
PHP Code:
|
That is not working in RC3
Any help SteveK :o Thanks :rolleyes: |
I'll test once I update to RC3 and let you know what I find out.
|
I didn't have any problem. You didn't, by chance, change:
PHP Code:
PHP Code:
|
Thanks SteveK
It is working now ;) |
Hotte or whom ever likes a challenge...
This is a very useful hack for me, love it... Now :D would you be so kind as to create another. Enabling one to make a copy of individual templates. Like a drop down box that would list the template set's then a copy to button or what ever it takes. Sort of like the drop down that move's the template to another set. |
All times are GMT. The time now is 05:24 PM. |
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:
|