![]() |
UPDATED 28-02-2001
http://kier.3dfrontier.com/images/ktemplate.gif This hack for vB2.0 Beta 2 will allow you to edit a single template set, or all of them at the same time, is dramatically less bandwidth-hungry than the current system, and allows quick searches through the templates by clicking in the <select> element and pressing a key; for example, if you want to find the 'header' template, just click in the select and press 'h' on your keyboard... To install, follow the following instructions: First, open the file forums/admin/adminfunctions.php and find the line Code:
OPTION {COLOR: #51485F; FONT-FAMILY: Verdana, Arial, Helvetica, sans-serif; FONT-SIZE: 10px} Code:
OPTION {FONT-FAMILY: Verdana, Arial, Helvetica, sans-serif; FONT-SIZE: 10px} Next, open the file forums/admin/template.php and find the block of code that looks like this: PHP Code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
19th Feb 2001 Additions: The hack will now auto-select the last template you edited when you return to the list from submitting an edit, or adding a new custom template. Cookie functions can be disabled for users who do not use output_buffering Lots of minor bug fixes (this one actually works ;)) Please note: if you do not have output_buffering=On in your php.ini, you should comment out the '$usecookies' line at the top of ktemplate.php 28th Feb 2001 Additions: I have now restored the original template.php's 'view original' functionality through the use of a little javascript. I have tested the script with browsers going back to Nutscrape 4.6, and they all work fine. Just as an added extra, the hack now tells you how many global and custom templates you have... 28th Feb 2001 Additions: (more ;)) I just modified the code a little so that you can double-click in the menus for a default event: Double-clicking a global template name will activate the 'add' function, giving you the option to create a customized template. Double-clicking a customized/added template will open the edit page for the selected template. Right-clicking a customized template will display the original template of that name. (Right-click functionality is IE only.) |
Very nice...thank you so much!
|
Excellent hack!
--JAmes |
Had to post another thank you for making my job easier....Excellent Hack!
|
A slight enhancement -
This is a new version of the file ktemplate.php, which now gives you the option to specify the size of the <select> items - just open up the code and find the lines at the top of the code that read: PHP Code:
Note: if you set the value to 1, the select menu will become a pop-up menu, rather than a list. |
great hack man!
thanks alot :) |
This is a great hack kier. It certainly speeds up template editing!
Now... if only you could select a default style/template set so that whenever you come into the edit screen it is selected. I've lost count how many times I've overwritten the default one by mistake! :eek: We'll just never be satisfied. :) By the way... I'd like to say thanks to the Jelsoft developers/designers of this template concept. It truly is the dogs bollox! There is nothing you can't change with this system. (although my wife isn't too happy with the amount of time I'm spending playing with it) :p |
Great script! This makes template editing a lot easier, and now when you just edited a template, went to your forum, realized you didn't get it perfect and need to go back the that template you only go to the custom, and not sort through the whole list. Nice job.
Now i'm just wondering why i have 12 header templates. |
Quote:
|
Okay, the hack will now remember which template set you were editing, until you click the [Edit a different template set] link.
Please note that this version of the script requires on of two things to be active: You must either have GZip encoding turned on for your forum, or you must have Code:
output_buffering = On; Once the final version of vB2 is out, I will make the necessary modifications to the script to remove these requirements, but for now, it would require too much messing about with the code to make it worth my while. |
All times are GMT. The time now is 04:43 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:
|