I've just updated the WordPress Theme Toolkit to make it compatible with the upcoming WordPress 2.0
WordPress Theme Toolkit is a theme addon that allows designers to create an admin menu, integrated within WordPress' admin area, as easily as editing 3 lines in a file. Version 1.0 (initial release) of the Theme Toolkit was causing WordPress 2.0 to die, whining about some function shipped with a theme that could not be declared twice. Doh.
To upgrade, simply get version 1.1 and replace all your existing "themetoolkit.php" in all theme directories using it.
- themetoolkit.txt (download and save as .php)
- themetoolkit.php (highlighted code, copy and paste in a blank file, but do not download as is)
Of course, this newer version of the Theme Toolkit is downwards compatible with WordPress 1.5x. Theme authors should update their theme package files as soon as possible. Theme users are advised to upgrade too.
It's possible that once you've installed WordPress 2.0 and the newest Theme Toolkit, you still see the "cannot redeclare function" error : blame WordPress' new cache system :) Hit the "Refresh" button of your browser and you will be hopefully done.
Shorter URL
Want to share or tweet this post? Please use this short URL: http://ozh.in/af
That's cool. Unfortunately I've gone and rewritten the admin panel for Regulus so it works in wordpress 2, however I'm sure this will be handy for other people.
That's great… I was waiting for it for my new theme. As i already asked to you any plan to make it internationalized having toolkit strings localizable and the variable text too ?
An waht about having other 2 controls one to make section headers for the panel and one for textarea ?
I know i'm never satisfied ;)
opps textaread is already present.. sorry :)
on a 2.0 installation if i have a function in function.php that use a value of the option array it get nothing, if i print the same option with an echo direclty in the theme tha value show up. If i use error_reporting(E_ALL); i got this:
Notice: Undefined variable: mytheme in F:\40annibuttati\wp-content\themes\forty-years\functions.php on line 75
Where the line refer to a simple line that state:
$type = $mytheme->option['header_type'];
Obniuosly i've the header_type value assigned infact if in a file of the theme i do:
echo $mytheme->option['header_type'];
The value show up. Any idea?
Steve » aren't you missing a "global $mytheme" somewhere ? Also, be sure *not* to use "mytheme" as a name for your toolkit. You don't want it to conflict with another potential theme using the same name.
Yeah you right.. just my dumbness :) Sorry :)
I'm using somehting different than mythem in real usage, that was just a test. Thanksfor the help and sorry for the noise :)
Love this theme, sweet theme. I use Mac OS X and when I switched this theme, mt browser keeps crashing. Has anyone noticed that?
BTW: it browser that crashes is the Safari browser. It is stable in FF 1.5.
What is it like in IE?
Nothing particular with any browser I could use under Windows and Linux. And there's is really nothing weird that should bug with Safari. As stated, this theme is very minimalist :)
I figured it out. It seems that the "Extended Live Archives" Plugin was making it crash. For some reason it worked fine using the K2 Beta Theme. Hmmm…
Perhaps this is a question for the WP forum but I am wondering why my categories are not in alphabetical order? Is there a way to make WP 2 RC1 sort categories in alphabetical order? BTW: thanks for a great theme.
I notice a little bug, I'm using 'option_variable' => 'Option Title ## optionnal explanations' to let people put some code that will be then evaluated with the eval() function. It's all ok but for the followin text:
mdv_recent_comments(10, 7, ", ", true, 0);
If i save the variable got the right value but when the value show up again in the admin panel it get truncated this way:
mdv_recent_comments(10, 7,
Obvoiously the problem is in the '. THe same done on a textarea work with no problem
Would be nice have the simple filed text have an optional paramter for size.
Steve » I wanted to keep things as simple as possible. Adding support for width, section titles and so on was starting to be a bit overkill. I mean, if it's harder to figure out how to build the admin menu, than to write everything yourself without using the Toolkit, where's the point ? :)
heheheheeh yes you are right :) But your system is so fast that even if someone knoow ho w to do stuff will use it.
What about the problem of quote?
[…] WordPress Theme Toolkit Upgrade « planetOzh (tags: wordpress) […]
[…] Más info | aqui –> […]