DISQUS

Fun with WordPress: Fun with Theme Widgets

  • Ryan · 1 year ago
    Thanks Andrew :)

    I might adapt this for a new theme I'm creating.
  • Andrew Rickmann · 1 year ago
    Ryan, come back and let me know if you do. I would love to see what this could do.
  • Kevin Sandridge · 11 months ago
    Hi - any reason this plugin might not work with WP 2.7? Getting the following error code when I try to activate it:


    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
  • Andrew Rickmann · 11 months ago
    Kevin, that sounds like you are running on PHP 4. I haven't included PHP4 support in this plugin; although, I don't think there is anything in it that wouldn't run on PHP4 except the constructor itself.

    If you amend public function __construct(){

    to read

    function fw_theme_plugins() {

    then that might work. I haven't tested it though.
  • Monika · 1 year ago
    Hi Rick - I know this comment is offtopic but I don't know where I can ask...

    I've sent a ping but I can't see it? Why? Is this the *blog comments powered by.*.... ?

    kindly regards
    Monika
  • Monika · 1 year ago
    oh Ryan .. your name is Ryan not Rick ...your name is Ryan not Rick and I hope you will delete this ..
    it is monday ..sorry :(
  • Andrew Rickmann · 1 year ago
    Actually, It's Andrew. And the reason is that I've turned off trackbacks because, in the whole, people don't see the value in them.
  • Monika · 1 year ago
    oh my dear Andrew

    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 ;)
  • Andrew Rickmann · 1 year ago
    Monika,

    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 :-)
  • Jazzthedog · 12 months ago
    Great plugin!

    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.
  • Bret Holstein · 9 months ago
    I completely agree with your rationale for this plugin. It would make modifying themes and reusing components in different themes a whole lot easier if the theme widgets could be isolated into their own files.

    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?
  • Andrew Rickmann · 9 months ago
    I wouldn't recommend bundling plugins in with themes. Technically it is fine, but if the plugin is updated to cope with a new version of WordPress anyone using the theme would be stuck.
  • Andy · 8 months ago
    I'm getting the Parse error: syntax error, unexpected T_STRING, expecting '(' in error too.
  • Andrew Rickmann · 8 months ago
    Can you paste the entire error in?