What does this Plugin do?
“MyCustomWidgets” provides a powerful alternative to the wordpress standard “text”-widget-template. After activating this plugin you will be able to create own widgets and to include them into your wordpress theme by using the wordpress administration interface. Inside of your CustomWidgets you can use html- and php-code. By using filters (which you can define freely as well) you can define where your CustomWidgets should show up.
UPDATE: It is now possible to place “CustomWidgets” outside of the sidebar by using custom tags.
Update: The plugin was tested up to WP 3.0!
Where can I download it?
Current Version: MyCustomWidget 2.0.5 – » download latest version
Why is there so much text below?
Because the author of another cool widget hates cool plugins that are badly documented. ![]()
In addition to that, there have been some questions how to use the plugin. Therefore I added this documentation. If you have a question about the plugin please first make sure you refer to the latest version of the plugin and the question is not answered on this page or in the comments section of the plugin homepage.
Table of Content
Introduction
Motivation
While building up my WordPress blog I changed the code of my sidebar several times. Whenever I used a new plugin that should offers content in a sidebar I had to change the coding again. When WordPress offers the ability of widgets I liked to use this functionality as well. Unfortunatelly this would have meant to loose all changes I had made in the past. Of course there is the WordPress build-in text-widgets and several plugins that you can use to create own widgets. Nevertheless I was not happy with these solutions because:
- I’d like to put php- and html-code in my widgets
- I’d like to define own names for my widgets (Who want’s to use widgets like „Text Widget 1“ to „Text Widget 99“?)
- I’d like to use filters because not all widgets should be available on all pages
Back in 2007 I decided to write a small plugin that allows me to put these additions in small widget-pieces. Long story short: I improved this pugin and decided to release it under GNU Public Licence (GPL).
Features
- Define own widgets through powerfull widget-configuration-panel
- Define filters through plugin-option-page
- Deinstallation routine to delete all data that has been created by this plugin
- Backup routine for widget data and plugin options
- Preview functionality for all CustomWidgets
- Debugging functionality to locate coding errors (beta-version)
- apply_filter-functionality can now be activated within CustomWidgets
- Widgets are also available through custom tags such as <!–MyWidget–> and can therefore be used outside of the sidebar as well (apply filter)
- Dublicate/copy existing widgets
Concept of MyCustomWidget
Technically MyCustomWidget executes code inside of <?php ?> tags by just wrapping your whole text into ?> <?php tags and hand it over to the PHP eval() function. By that no parsing of your code needs to be done by the plugin itself. It is not recommended to use the plugin in WordPress installations with untrusted users.
All widget-data is stored in the wordpress option table.
Registering Widgets with WP 2.8
In general a widget has to be registered/announced before it can be added to a sidebar. With WP 2.8 the concept of creating and registering widgets changed. Instead of registering a single function that generates the widget content, the developer of a widget has to declare a class (that extends a predefined class of WP2.8) that represents the widget.
While WP 2.7.X added the widget to a sidebar, WP 2.8 generates an new instance of the widget-class whenever a widget is added to a sidebar. This means: Within WP 2.8 the same kind of widget can be added several times.
If you take a look at the Widget “MCW 2.0 Addon” (the code is located in file my_custom_widget_addon.php) you will find a pure WP2.8-Widget as it has to be (according to the WP-developers).
Unfortunatelly it was not possible (yet/for me) to re-implement all functionalities of MCW 1.9 by using this new technique (e.g. Backup, Preview, making widgets available outside of a sidebar, downward compatibility).
That’s why the plugin just generates the class definitions on-the-fly whenever the widgets are saved. The result is stored in file my_custom_widget_classes.php.
Other plugins
Nowadays there are a lot of similar plugins around which are doing similar work as this plugin. If MyCustomWidgets functionality does miss some feature you are desperatly seeking, you may want to take a look on one of the various WordPress plugin databases or drop a feature request.
Tutorial
Creating a simple widget:
Installation
Requirements
You need the following software to be installed on your webserver in order to run the Exec-PHP plugin:
- A running installation of WordPress 2.0 or higher
- A WordPress theme that allows to use widgets.*
- The MyCustomWidget plugin
* If your theme does not support widgets yet, you can adjust your theme like described here »
Installing the Plugin
If you have ever installed a WordPress plugin, then installation will be pretty easy:
- Download the MyCustomWidget plugin archive and extract the files.
- Copy the mycustomwidget directory into
/wp-content/plugins/ - Activate the plugin through the ‘Plugins’ menu of WordPress
Upgrade from previous versions
Usually if not specifically mentioned on this page you can upgrade from a previous version of this plugin by simply deactivating the plugin through the ‘Plugins’ menu of WordPress, replacing the content of /wp-content/plugins/mycustomwidget and reactivating the plugin again. An upgrade should not migrate settings of an older plugin version.
Deactivating the Plugin
Deactivating the plugin will cause your CustomWidgets to disappear. Don’t panic! Your widget content will not be erased until you deinstalled the plugin.
Uninstalling the Plugin
For uninstalling the plugin you should start the deinstallation routine on the plugin-option screen and simply delete the MyCustomWidget directory from the /wp-content/plugins/directory afterwards. You even don’t need to deactivate the plugin in the WordPress admin menu.
Usage
Using MyCustomWidget
With MyCustomWidget you can create widgets that contain php and html-code. All other features are listed in the correspondend section written above. The following section will descripe how to use these features.
Configuration
The plugin comes with its own option menu that is accessible through ‘Options / My Custom Widget’s. The option menu is only accessible for users that do have the ‘edit_plugins’ capability. This is usually only assigned to the Blog Administrator. If you have disabled Javascript you will not see or only see parts of the Plugin Option menu.
The option menu is divided into four parts:
- the filter section
- the miscellaneous
- the layout section and
- the administration section
Filter Section
In this section you can define filters which you can use in your CustomWidgets.
You will have to define at least one filter to make your widget visible. Therefore several default values have been defined. The most important filter should be ‘all’.
The whole filter-handling is quite easy. A filter is defined by a name and a php-code snipped which can be interpreted as a bool-value (true or false). Please visit the official WordPress-side (Conditional Tags) if you want to know which values can be entered here. If you have added a new filter the filter will be available for all CustomWidgets immediately.
If you are new to PHP and you do not even know what I am writing you should use the default filters and leave this section as it is.
Miscellaneous Section
In this section you can define several default values that will be used by the plugin. Currently there are 4 options available:
With release 1.1 I added information which should explain the options that are available. These information become visible when you click on the small question sign on the very left.
The addition HTML-code option will give you access to an additional code-box. All code in this area will be interpreted as pure html code. This box is a legacy from a former version of this plugin. If you do not have to you should deactivate this option. I think I will delete this additional code-box within one of the next releases. The other options are improvements suggested by wordpress-users.
To save any changes in this section you will have to press the save-all-button which is situated under the layout section.
Layout Section
In this section you can define several layout parameters. As always I added a short description of the functionality inside the plugin. Therefore I think these options are self-explanatory.
Administration Section
In this section you can Reset the default plugin settings, create or restore a backup and start the deinstallation routine. Due to the fact that these buttons should be used very carefully there is an additional checkbox which should be ticked to commit any actions.
A backup will create a new database record in the WordPress option-table.
Create CustomWidget
To create an own CustomWidget is quite easy. Just proceed as follows…
Create/Change Widget
First you should ask yourself what the widget should do.
- What should be the widgets name?
- Do you want to add HTML or PHP code?
- Where should the widget be available?
1. The widgets name should be unique. If the widget has the same name as another existing one the custom or the other widget will not be shown. The plugin checks wether the name is unique regarding other widgets created with MyCustomWidgets. (I did not want do force a prefix like “mcw_”. Nevertheless you should think about that and use a name which is not used by another plugin-specific widget.
2. You can use both: HTML and PHP code. You can even combine both kinds by using the normal php-tags <?php and ?>. If a code works somewhere else on your side it should works within your CustomWidget as well. Just choose if your code should be interpreted as HTML or PHP-code.
3. Not all widgets should show up on each page. Below the code area all available filters are listed. If you do not know what these filters will mean or if you need to create your own filters you should visit the filter section of the plugin option page. Please keep in mind: You have to create the filter first and tick it afterwards. You can tick several filters. The widget will be displayed if one (or more) of the selected filters is true.
Preview Widget
Once you created and saved the plugin you will be able to start the preview by clicking on the lens-symbol.
The widget-code and the widget-content will show up on the very bottom. Please be aware that the stylesheets that are used inside of the admin panel is different to the one used on your WordPress blog. Therefore the layout can be different.
Debugging mode (beta)
The debugging mode works as follows: It splits the widget code into HTML- and PHP-pieces and lists this code. As a matter of fact if-statement that include html-code will not interpreted correctly. Therefore the debugging-mode is not a all-in-one device suitable for every purpose. To start the debugging mode you will have to tick the debugging-checkbox and click on the preview icon (the lens) afterwards.
Assign Widget
Once you saved the widget a new widget entry will appear under Presentation –> Widgets. Just add the widget to your sidebar via Drag’n'Drop.
About Security
By using this plugin a user can use the full PHP API and WordPress API. There are no restrictions to execute only certain subsets of functionality. Allowing your users to create or change CustomWidgets will mean to allow executing PHP code and will expose your WordPress installation in specific and your server installation in general. By that a user can easily take over your blog and your server. If in doubt do not install this plugin as long as there are no additional security features available.
Troubleshooting
Incompatibilities to other Plugins or Themes
Currently there are no known incompatibilities to other plugins or themes.
Limitations
Most likely the debugging functionality will not work if you are using if-statements. Apart from this there are no known issues.
Reporting Bugs
You can post bug reports to the comments. Before doing this make sure your PHP script is running properly in a separate file. If it does, assure that you did not hit the “Globals” issue. If you still think it’s a bug, keep in mind that WordPress’ commenting system is not build to write unescaped code, so better convert it to the correct XHTML entities before commenting here, point to the code using an external link or get in contact with me by email (wordpress@this-domain-name.de).
Test to assert Plugin functionality
Following is a list of tests that were made by the author of the EXEC-PHP-Plugin to assert his plugins functionality. On the left side the PHP code taken directly from the tests is written. On the right side the live output generated by the Exec-PHP plugin is shown. If you view this documentation as a static HTML file obviously the PHP code isn’t executed and will look messy. Because of the content of this test, this page will not verify as XHTML. If you think, your favorite PHP plugin is better than this one, try out all the tests below and see if this works correctly.
| # | Code | Output |
|---|---|---|
| 1 |
|
|
| 2 |
|
a?>1 |
| 3 |
|
b?>1 |
| 4 |
|
a?>2 |
| 5 |
|
b?>2 |
| 6 |
|
|
| 7 |
|
a?>3 |
| 8 |
|
b?>3 |
| 9 |
|
a?>4 |
| 10 |
|
b?>4 |
| 11 |
|
c1″;?> |
| 12 |
|
d1′;?> |
| 13 |
|
c’;?>2 |
| 14 |
|
d”;?>3 |
| 15 |
|
impressive ’string’ ” handling” |
| 16 |
|
Handle THIS! |
FAQ – Frequently Asked Questions
Why does the plugin fail with an eval() error when executing my code?
If you experience a PHP error message like ‘Parse error: syntax error, unexpected '?' in /www/htdocs/wp-content/plugins/mycustomwidget/my_custom_widget.php(504) : eval()'d code on line 1 ‘ then it’s time to repair your PHP code. If you are unsure where your code breaks you can use the debugging functionality or run it in a separate file to punch out all bugs and afterwards copy the code into your article or widget.
How can I just print out PHP code and don’t execute it?
If you just want to print out code and don’t want to execute it, e.g. like it is done here on this page, you have to make sure to convert your code to the correct XHTML representation. To do so you have to escape your whole code or at least change your tags from <?php ?> to <?php ?>.
How can I include PHP files?
If you want to include a php-file you should be aware of the fact that each relative path will start in the root directory of this plugin which is ‘/wp-content/plugins/mycustomwidget/’.
instead of using a relative path you should use a statement like
<?php require_once(get_option(‘home’). ‘/example.php’); ?>
How can I support this plugin?
First of all you can rate this plugin on wordpress.com. But of course you can also make a donation.
Whole site crashes because of error in my_custom_widget_classes.php
If you receive an error such as Parse error: syntax error, unexpected T_STRING, expecting ‘{’ in /wp-content/plugins/mycustomwidget/my_custom_widget_classes.php on line 10 there was an error
during the generation of the widget-specific classes. This might happen when you use prohibited characters in your widget name. Please delete the content of my_custom_widget_classes.php and rename you CustomWidget. Of course you should contact me (e.g. by leaving a comment). Usually I try to catch all prohibited characters.
Donation
Oops, looks like it stripped the code – it’s the first example using ‘posts list with offset’
-b
Hi Ben.
I don’t think I really understood what your widget tries to do or what the problem is. Maybe you can send me the coding via email.
Nevertheless: This sounds like a very common issueregarding multible loops. If you use a loop inside of your widget the loop that should work for the content area will be affected as well.
You might want to take a look at this post: http://wordpress.org/support/topic/263448
Hi Janek,
Thanks for getting back to me – that post might be the answer, I’ll check it out and get back to you.
Cheers,
Ben
Hallo, hatte viel Freue mit dem Addon, welches ich in einer MU-Installation verwendet. Nach dem Update auf die letzte Version kann ich nur die MCPlugins eines Blogs speichern, die der anderen Blogs verschwinden. Wenn ich dann im anderen Blog in MCPlugins Save all verwende, verschwinden jene vom ersten Blog. Was habe ich falsch gemacht???
Konnte das Problem mittlerweile selbst fixen. Auf Wunsch schicke ich gerne den modifizierten Code. Jedenfalls herzlichen Dank!
Hallo Hannes,
Sorry, dass ich keine Zeit gefunden habe mir das Problem anzuschauen. Wenn du mir den modifizierten Code zuschickst, bin ich aber gerne bereit ihn mir anzugucken und mit aufzunehmen. So waerst du auch bei zukuenftigen Updates auf der sicheren Seite. Meine e-Mail Adresse findest du im Impressum (>> Link)
Danke schon einmal
Janek
Hi,
kann man den generieren Widgetcode auch irgendwie “exportieren”. Das wäre nämlich klass, um das Plugin quasi als Widget Generator für eigene Widgets zu nutzen. Man könte damit dann sozusagen eigene Widgets erstellen, exportieren und auch auf anderen Seiten einsetzen, ohne das Plugin immer wieder zu installieren.
Ist das irgendwie machbar?
Hallo Michael,
prinzipiell wäre das sicherlich möglich. Das Grundgerüst wird ja bereits generiert und ist im Plugin-Folder unter my_custom_widget_classes.php zu finden. Allerdings wird der eigentliche Inhalt des Widgets in der Datenbank gespeichert und das Coding des Pflegedialogs wird aus dem Plugin selbst heraus generiert.
Aber: Das Widget selbst müsste in jedem Fall registriert werden. So oder so benötigst du also ein Plugin. Der Mehrwert eines solchen Standalone-Widgets wäre also schon recht begrenzt (Vom Aufwand ein solches Plugin generisch zu erzeugen mal ganz abgesehen…)
Hi there
I am currently unable to create a widget with this plugin as when I click the Edit Widget pencil icon, nothing happens!
Why would this be happening?
Please help.
Kind Regards,
Aaron
Good question. Did you install any new plugins recently? The problem sounds like an issue with the javascript coding. Could you try to deativate javascript on the plugin’s setting page?
Hi Janek,
Love the plugin. I use it all the time.
However, I ran into a problem when I recently moved a WordPress website from a subdomain to the main domain (www.).
For whatever reason the plugin, when installed, shows up without any interactivity (none of the buttons are there). The odd thing is I’ve verified that the files are indeed there and file permissions are set properly.
Using Firebug the code where the buttons occur is oddly faded (I’ve never seen this before). I took a screenshot:
http://dl.dropbox.com/u/571229/ga-mycustom-screen.jpg
I’m quite perplexed and have tried uninstalling/reinstalling the plugin several times to no avail.
Any help would be greatly appreciated.
Thanks,
Mike
Okay, I will take a look at it this weekend. Hopefully I will be able to reproduce it. I guess you are using the most current WordPress version…?
Hi,
I installed this plugin on a development site then decided I didn’t want to use it. I deactivated it and then deleted it. Unfortunately, the widget I attempted to create is still present in the admin panel of my site. I tried going into the database and eliminating it that way but “no success”. I’d really like to get rid of it as it will cause confusion for my client. How come it didn’t go away when I deleted the plugin and how do I get rid of it?!!?? Thanks in advance for the help!
Hi Adrienne,
that sounds pretty weird. Usually deactivating the plugin should be enough to deactivate all the widgets… And deleting the complete mycustomwidget-folder should have done the trick anyway.
To remove the plugin completely (including the corresponding entries in the database) you should
- use the “Deinstall”-button available in the plugin’s setting section.
- deactivate the plugin
- remove the plugins source files
If you follow these instructions there is no chance that the widget you created still appears.
@Mike: I was not able to reproduce the error. The faded coding implies that the are is hidden. Can you give me any more details? Which browser version do you use? which other plugins do you use? there might also be a caused by the stylesheet of your theme…
Janek,
I lost all my Custom Widgets when upgrading to 2.0.4… They where still there in the MCW control pane – but unfortunately where gone in WPs’ widget control panel an in the sidebars concerned. Thankfully I had a copy of 2.0.3 on my localhost an was able to reinstall it on my live system – my widgets instantly re-appeard. Good luck…
Hi Harki,
I think I know what causes the problem. Saving the widgets in the MCW control pane should have done the job. (a specific file has to be regenerated after the upgrade).
Could you do me the favor and try this out (Just click on “Save All” in the MCW control pane)? Since there will not be any changes on database level, your widgets should be totally save (as you already experienced).
Thanks – Janek
So I did – and it worked just perfectly. Upgrade to 2.0.4 -> Widgets gone, clicked “Save all” in the MCW control pane -> Widgets resurrected from Hades.
Thank you very much for your quick and polite help.
Awesome plugin. Thanks!!
I was looking at building some widgets into the theme I made, but this will do what I wanted to do with much less effort on my part.
Thank you!
Hi Janek, Awesome plugin, little problem hoping you can help, When I have registered a sidebar with “before widget” and “after widget” this plugin seems to ignore this and simply not wrap the widget in anything when trying to use the widget I created. Any Suggestions?
Hi Ben,
usually it should work. but you have to make sure that you enter something as the widget’s title. The plugin works as follows:
title=[blank] –> no “before/after widget” is used
title=[space] –> “before/after widget” is used, but no “before/after title”
title=”name” –> “before/after widget” and “before/after title” is used
Let me know if you still have a problem.
Janek
Hi can a wigetize a non wigetized plugin.
At the moment I have a print page plugin that I have to put a link into the sidebar for and it wold be much better as a widget I just drop in where I want it. Itse cleaner for the theme also.
Marshall
Hi Marshall,
You could use this plugin to create a customwidget that contains the code you would like to add to your sidebar. However: since you already have a plugin it would be more suitable to create such a widget within your own plugin.
You might want to take a closer look at http://codex.wordpress.org/Widgets_API
…or you simply copy (and adapt) this code to your plugin’s sourcefile
Hi Janek, really liking this plugin it’s perfect for a new site!
perhaps this may not be related to your plugin, but something else I could do.. when I use the custom tag in the_content (in a post or such like) it’s wrapping my widget code in <p> tags which I don’t want – it’s breaking the CSS. though I don’t know why as the first <p> tag should auto close before the custom div code
On the WP forums I found an answer was to add this:
but, I don’t know if this is the answer
and even if it is where to put it? should it go in plugin code as a mod or can I add it in my functions file..
or indeed any other suggestions not to get the custom tag code to autowrap
TIA
Hi Janek,
I’m working on a WordPress site and was hoping to use the My Custom Widgets plugin to duplicate a widget called Global Translator, so I can use it on more than one sidebar. I can’t see how I go about duplicating an existing widget though?
Can you point me in the right direction?
Thanks,
Myles
Hi Myles,
in order to use this feature you will have to activate it first. Once you set the flag “Use Copy Feature” in the settings section (
/wp-admin/options-general.php?page=my_custom_widget_functions.php) to “yes” a new dropdown menu will appear on the widget edit page.However, with the current wordpress version you should be able to use a widget several times. That is why the copy-feature was deactivated by default.
Hope that helps…
Janek
Hi Janek,
I’ve selected the “copy” option and saved settings, but can’t see any drop down menu on the widgets page.
It just lists all my widgets, plus one called MCW 2.0 Addon. I’ve upgraded to WordPress 3.0 but haven’t noticed any change in how it handles the widgets. Widgets like search and archive etc., I can use on multiple sidebars, but any additional widgets I’ve installed will disappear from the list when I drag and drop to a sidebar.
a handy plugin..thanks
Hi Janek,
Thanks for the excellent plugin!
I’m trying to create widgets that call certain posts. This code is working with the_title, but when I replace it with the_content, I get a PHP error.
Here’s the code:
$recent = new
WP_Query("p=32"); while($recent->have_posts()) : $recent->the_post();?> <?php
the_title(); ?> <?php endwhile;
And the error:
Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 40961 bytes) in my_custom_widget_functions.php on line 809
I’m running WP 3.0 with the most recent version of your plugin. I have Make MCW-Tags Available and Apply Filter/Tag on Widget activated with “the_content”.
Having a strange issue. I have two wordpresses set up side by side on one domain. One is /preview/ and the other is /members/.
They both use MCW plugin. It is working fine in /preview/ but in /members/ when I save a widget (exact copy of working widget in /preview/) and reload the “?page=my_custom_widget_functions.php” page, the widget and corresponding database entry is blank. I cannot get the widget to save. It writes to the classes.php file but the code is getting stripped out of the widgets in the database.
Just bizarre to me that it works on one side but not the other. Any ideas?
This widget is what I was looking for but in WP3.0 in network activated mode the widgets seem to get forgotten. I add them, test the pages and they are there. I come back later and the mycustom widgets are no longer available as widgets and have disappeared from my sidebar.
@Myles: The way how WordPress handles widgets changed after WP 2.7.1. If your other widgets cannot be used on multiple sidebars this means that the corresponding plugins are not up to date (I would recommend to search for an update or contact the developer and ask him to add the multiple-sidebar-feature).
The dropdown I was talking about should appear underneath each CustomWidget within
/wp-admin/themes.php?page=my_custom_widget_functions.php. (The copy feature does not work with all widgets and has not been maintained since WP 2.7.1)@Jenn: Sounds like a problem with your webserver. The plugin tried to allocate 40961 of the allowed 67108864 bytes (equals 0.06% of the capacity). You could try to increase the allowed memory size. Does this problem only occur when you use this coding?
I do not get a message like that. So I cannot reproduce the error.
@Mike and PSPerkins: Looks like you 2 are facing the same problem. I never tested the plugin on a multiblog installation. But looks like I have to take a closer look. Unfortunately I do not know (yet) when I will have time to do that.
If you guys find a solution for the problem, just send me a mail and I will add it to the coding.
Problem can’t seem to figure out the reason.
If MCW is active this works (both work if MCW id deactive):
the_tags();
the_content();
this does not:
the_content();
the_tags();
… any ideas?
If I’m trying to use PHP within a widget, how do I use a WP function and assign its output to a variable? I’m trying to do something like:
$footerNav = wp_nav_menu();
echo $footerNav;
But it seems to be processing the wp_nav_menu() call right away, not outputting its contents to the $footerNav variable. I could also be calling it incorrectly, as it’s been a LONG time since I flexed my PHP brain.
Hi Bob.
Please take a look at the function reference of wp_nav_menu(). You will see that this function does not return any value but displays the navigation menu directly as you already found out.
You could try to use something like:
Hope this helps…
Thank you very much! That did end up working for me. Slowly getting some PHP back…
love what your widget does. im a bit of a rookie and am having some issue with how to do what i am looking for. i need to have a different widget for 6 different pages on my site in the main side bar. i need to place in each widget a different vimeo album. can you advise me on the basic steps to set this up? i would be happy to make a donation for your product and additionally for your assistance.
thank you in advance for any help
Been using your great widgets on a number of sites for a long time and I am grateful for all the work you put into building and maintaining this plugin (even though it makes me lazier than I should be at times when I should register a custom widget of my own I sometimes opt to use your plugin instead).
Anyways, I was wondering if the backups that are created when you backup all widgets at once are stored with some kind of unique identifier in wp_options table that I could safely delete them?
What I am getting at is that I’d like to clear them from the “inactive widgets” bar as I have made 3 backups by clicking the button and now my inactive widgets bar has 3 versions of each mcw widget for some reason unknown to me at this time.
It looks like when I click backup, it creates a new inactive widget each time. Any idea why this is happening, or how to “dump” them properly if possible? Do I have to click each one and manually delete it in my widgets screen (ugh) ?
Thanks so much for your time.
BTW – my previous issue was resolved – the widgets not saving. It was so simple it was a “doh” moment: I resintalled wordpress from the admin screen and it fixed it. Apparently a previous install had gotten interrupted or buggered in some way. Thinking maybe it was load.php but can’t remember specifically. The re–install fixed my issue.
This thing is just awesome. I’m using it for widget development at my new blog and while any PHP/HTML enabler would work, this thing has these cool, little quirks that make it so much more fun. Excellent work.
hi!,
I’m getting this error in one of the two nodes I have WP serving same site trough load balancing.
PHP Parse error: syntax error, unexpected $end in /var/www/html/wp-content/plugins/mycustomwidget/my_custom_widget_functions.php(811) : eval()’d code on line 70
–
Both servers are the same. same OS, same httpd, same php, same DocumentRoot files.
Both use same DB backend.
I tried what said under “Whole site crashes because of error in my_custom_widget_classes.php”, but no success.
Thanks in advance for any help …
For some reason, all of the buttons stopped working on the actual interface, so I can’t add new widgets or save anything. The pencil icon still opens the editing form but save does not work, it JUST started happening what do i do!
When I click the edit icon (pencil) on the Edit My Custom Widgets page, no editor opens. This is on WP 3.1.0. I have only just inherited administration of the site, so I do not know what version it was originally installed on. I’ve tried it on Chrome and Firefox both.
Sorry, it’s version 2.0.3 on WP 3.1.1 that I have installed.
Update to 2.0.5 fixed it!
Hello would you mind letting me know which webhost you’re working with? I’ve loaded your blog in 3 completely different browsers and I must say this blog loads a lot faster then most. Can you suggest a good hosting provider at a honest price? Thanks a lot, I appreciate it!
Found a bit of a problem for multisite WP configs. Only one domain/site under a domain mapped multisite config can use MCW. (Using the current version 2.0.5 of MCW.) Whichever domain has last edited a widget is the only one custom widgets will work for. Those widgets will show up on the widget list of the other domains, and any widgets they had become unavailable. I tried setting up all widgets on a “master” site, but they won’t work on the others.
Thanks!
I just wanted to let you know this plug in has been a life saver for me. Being able to just code my own widget has saved me so much time and grief looking through the millions of plugins. Thank you so very very much.
Hi, I love your plugin. Especially because I can assign other widget to pages as well.
. I use to show a login plugin. Now I want to use a slideshow widget, but don’t know how. How can I get the exact code? I don’t remember how I came up with .
Stupid thing is: I forgot how it works
Excellent weblog right here! Also your website so much up fast! What host are you the use of? Can I get your affiliate hyperlink in your host? I want my website loaded up as fast as yours lol.
Hey there. I have a strange problem with your plugin in combination with the latest WordPress release (3.3) in multisite mode:
Every once in a while when I’m in the admin backend and have MyCustomWidget enabled it throws me back into the admin area of the multisite “network site” (i.e. Blog# 1). The problem seems to effect the links in the admin bar.
My solution – so far – is to go to the plugins selection and disable MyCustomWidgets. Then I have to click any link in the admin area and then I can reenable the plugin without any further problems (for some time).
Are you still actively developing the plugin?