-
Website
http://www.wp-fun.co.uk -
Original page
http://www.wp-fun.co.uk/2008/12/06/fun-with-theme-widgets/ -
Subscribe
All Comments -
Community
-
Top Commenters
-
Improving The Web
5 comments · 1 points
-
michaeltwofish
6 comments · 12 points
-
Busby SEO Test
2 comments · 1 points
-
ringmaster
7 comments · 1 points
-
SE7EN (Nice from Thailand)
4 comments · 1 points
-
-
Popular Threads
I might adapt this for a new theme I'm creating.
Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /mnt/local/home/fmblogger/floridamortgageblogger.com/wp-content/plugins/fun-with-theme-widgets/fun_with_theme_widgets.php on line 31
If you amend public function __construct(){
to read
function fw_theme_plugins() {
then that might work. I haven't tested it though.
I've sent a ping but I can't see it? Why? Is this the *blog comments powered by.*.... ?
kindly regards
Monika
it is monday ..sorry :(
it sounds that I'm silly but I'm only confus this day because it is monday, since many years Murphey is the best guest at monday :(
... ok I try to write ... Hi best coder ... (thats better than 2time the false name )
ok you do not accept pings and trackbacks - so there is no chance to create a good network -
I have sent a ping not a trackback ;)
thanks for your answer Andrew ;)
Trackbacks are a nice idea, but in practice I got so much spam and so many one line links that it wasn't worth it.
I am happy for you to add your link in any comments here, especially when you are promoting something I have done :-)
It's a great way of collecting your favorite snippets of code you would normally use and all of a sudden..it's a widget!
A couple of minor issues.
1. I tested this out within a 'child' theme and I had to copy the php file to the 'parent' theme to get it to show up in the GUI.
2. After adding it to the widget section , I could not click on edit to remove it. I had to deactivate the plug.
I can imagine after adding many of these widgets, with the current GUI implementation of widgets in WP 2.7 will become quite painful. Perhaps WP 2.8 will make it better.
Is there any reason why this couldn't be adapted to the functions.php file that comes with a theme? I'm not quite sure how it might be accomplished in practice but I would love to use the features of the plugin without requiring the users of my theme to load the plugin.
Any pointers on where to begin?