problem about widgets-Collection of common programming errors


  • Simon
    windows-7 boot widgets desktop-gadget
    I have a Desktop Widget called Horloger (third party not official Microsoft) (I believe the term Widget is no longer used, and they are now called Gadgets) which would autostart on booting up my PC, and display itself on the desktop. However on the few previous occasions thats I have started my computer it has failed to show.Instead a dialogue box is produced which saysAn unexpected error occurred while reading (C:\Users\Simon\AppData\Roaming\Amine_Dries\Horloger\Settings.cnf)I press OK, and ano

  • hornj
    plugins widgets sidebar plugin-wp-e-commerce
    I’ve recently been trying to create a ‘Popular Products’ widget for for WP e-Commerce. Since there isn’t built-in functionality, I referred to Dave Mackintosh’s post here and gave it a shot.Still no success. But since there’s a shortcode, I decided to use the ‘Shortcodes in Widgets’ plugin and place the shortcode in a text widget. It works now, but the issue now is the product list appears outside the widget area, just floating in the sidebar.

  • Meigo Al Dozary
    php widgets sidebar
    I tried to add a custom page to my WordPress template. That part is good. What I´m stuck with is a common sidebar that appears although I registered a custom sidebar for it. I am calling the sidebar…<?php get_sidebar(‘dfth’); ?>And registering sidebar (below there is default sidebars registered also)function web2feel_widgets_init() {register_sidebar( array(‘name’ => __( ‘Sidebar’, ‘web2feel’ ),’id’ => ‘sidebar-1′,’before_widget’ => ‘<aside id=”%1$s” class=”widget %2$s”>’,’

  • Thomas McDonald
    widgets javascript text
    Wordpress has a Text Widget (at least the theme I’m using does, and I think they all do?)In this widget I can add text or HTML. If I add HTML I can include JavaScript. This works fine (I’m hosting my own site).I want to add some text to the Widget using a script. However;document.write(“Whatever”)writes the text onto the actual web page.What command do I use to write text into the Text Widget only.Many thanks for any help!

  • David Icke
    widgets sidebar
    This question already has an answer here:Hooking Into Widget Output Loop2 answersI can’t provide you with any code since I not really know where to start.I like to add some programmatically created widgets (or just html) after the 1st Widget inside my sidebar. Right now I have it that I have to include this widgets before all others, that was pretty easy of course.

  • twigmac
    plugins plugin-development widgets css stylesheet
    I’m developing a WordPress widget following Dave Clements tutorial. It works well. Now I want to add some styles to it. I want the styles to be in an extra css file which will be loaded during runtime. I’m calling this functionfunction myprefix_add_my_stylesheet() {wp_register_style( ‘myprefix-style’, plugins_url(‘mystyle.css’, __FILE__) );wp_enqueue_style( ‘myprefix-style’ ); }right before (see Dave’s tutorial) “// Widget output //” using the following statement.add_action( ‘wp_enqueue_scripts’

  • toscho
    widgets
    How can I add the widget manually in the code ?

  • Django Reinhardt
    webapp-rec email api widgets
    we’re just doing to some research into email inviters. We currently use Plaxo. It’s a simple system that allows people to select contacts from their Email Address Book and then allows them to send invites via our system to their friends.It looks like their website has changed, however, and I was wondering if they no longer publicly offer this service. If not, does any other company offer a similar service for free?Thanks.

  • Ieyasu Sawada

  • toto_tico
    categories widgets archives custom-post-type-archives wp-get-archives
    Please read the whole question before assuming this question is repeated. After one day of trying plugins and tutorials, I am convinced that there is no straightforward method of achieving what I am trying.Basically I am building a site that has different components: Blog, News and Gallery, they are all items in the menu. I am trying to have different archive widgets for all of them. So, when I go to News I can see my Archive Widget that just organizes information for News. The same for Blog or

  • Goldentoa11
    widgets wp-editor
    I’ve been working on developing a plugin that adds a widget that allows you to edit the content with a wysiwyg editor. I want to use the default wordpress editor by calling wp_editor(). I’ve seen people say you can’t do this, and sure enough, it crashes when you try to update the widget content. Can anyone explain why wp_editor() can’t be used in widgets? I’m hoping to figure out how to get around that once I know why it doesn’t work. However, Chrome doesn’t spit out any errors in the console, s

  • eldarerathis
    widgets home-screen-folders
    I have a number of widgets that I really like, but my Droid takes an awful long time to draw the home screen, even using the Zeam launcher replacement.Can I use folders on my home screen to hold widgets (and keep them handy) and will that improve my performance any?

  • Anil Selim Sürmeli
    12.10 kde4 widgets plasma
    After I installed Ubuntu 12.10 to my PC, I decided to use it with KDE and downloaded all KDE components. It was perfect until today. However, just after I set some network options, Plasma started to give an error and behaved crazy. Now All widgets on my desktop are giving an error like “This object could not be created for the following reason: Could not find requested component: , The minimize,maximize and quit buttons are disappeared with its own bar and I cannot change Desktop Effects. I trie

  • Webnet
    widgets javascript
    Whether I’m using a WordPress default theme or a custom one, I see the JS error: Uncaught TypeError: Object [object Object] has no method ‘wpColorPicker’ when I click “Customize” on the theme. I’ve also noticed that on the widgets page nothing is draggable. I believe these issues may be related as I just moved this site to a new server. I’ve verified all files are chmod 755. I’m a bit unfamiliar with the inner workings of WordPress. Is there a debug mode or something I can enable?I recogni

  • user1752759
    php functions widgets javascript
    How do I place the following javaScript in the <head> section of the WordPress Widgets API menu screen?<script type=”text/javascript”>jQuery(window).load(function() {jQuery(“#logocheckbox”).change(function() {jQuery(“#logocheckboxdiv”).fadeToggle(“slow”);});}); </script>

  • Angus Russell
    widgets
    I’m trying to get my head around writing custom widgets with options. I’ve been following a few tutorials and have been trying to understand as I go. I’ve got a widget that works perfectly in the Widgets manager, but on the front end I get Undefined variable: image_path. I can’t track down what I’ve done wrong and would definitely appreciate another set of eyes.Widget code:/* Image Link Widget ===================================================== */ class ImageLinkWidget extends WP_Widget {funct

  • Jukov
    widgets sidebar
    If I use a custom widgetized area (for example footer) where there is only a limited number of spots for widgets (by design), can I limit the number of widgets the user may include in that specific widgetized area? It doesn’t matter if the solution is at the backend or the front end. Thank you.

  • dashaluna
    functions widgets
    Hopefully, this is an easy question – I’m just a bit confused.I’ve got a custom widget with the usual structure:class My_Widget extends WP_Widget {function My_Widget() {// widget actual processes}function form($instance) {// outputs the options form on admin}function update($new_instance, $old_instance) {// processes widget options to be saved}function widget($args, $instance) {// outputs the content of the widget} } register_widget(‘My_Widget’);I’s like to add my own custom function to it, so I

  • kaiser
    plugins functions widgets sidebar
    I’ve created a custom widget and placed it in functions.php. You can see the widget here:http://pastebin.com/3uWpeaFx(I’ve also created a similar widget that grabs a random image; it’s included with the pastebin.)The widget allows users to plug in up to ten blocks of text/HTML, stores them in an array in JS, and displays one at random using JS.These are super simple widgets that are based on the default text widget that ships with WP. (I’m no PHP expert, so there’s probably a more elegant way to

  • hakre
    3.0 plugin-development widgets
    I’ve posted a bug-report about this a few months ago (on WordPress trac (Widget Instance Form Update Bug)) and I thought I’d try writing about it here too. Maybe someone has a better solution to this issue than me.Basically the problem is that if you drop a widget into a sidebar, the widget form doesn’t get updated until you manually press save (or reload the page).This makes unusable all the code from the form() function that relies on the widget instance ID to do something (until you press the

  • user31806
    widgets jquery ajax
    I have live score website and it is not wordpress based i build a widget for pure php websites but now i want to offer the widget to wordpress users problem is when i tried the widget i get three errors and to be honest i am not wordpress expert so i hope to be helped here . this is my link for users:<div id=”widget-container” class=”my_widget” name=’15’ width=”800px”></div> <script src=”http://skormix.com/mywidget/widget.js” type=”text/javascript”></script>and here is th

  • Count Zero
    widgets jquery-ui
    This code will give me the widget ID if the widget is moved at all after the initial placement.jQuery(‘div.widgets-sortables’).on(‘sortstop’,function(event,ui){ console.log(ui.item[0].id);});On the first drop it is undefined as I suspect that the DOM has not been rebuilt. This is when I need it. In the end I need some javascript to fire when a widget is newly created and I need the specific widget ID for form manipulation. This isn’t a new request…seen it before. Never a complete sol

  • Hafiz
    widgets add-action wp-head jquery-ui
    How Can I add some js files from a plugin to a specific location with add_actionI am Using this widget: http://www.designchemical.com/blog/index.php/wordpress-plugins/wordpress-plugin-jquery-vertical-accordion-menu-widget/It is adding its file here:After<script type=’text/javascript’ src=’http://new.dajewelers.com/wp-includes/js/l10n.js? ver=20101110′></script><script type=’text/javascript’ src=’http://new.dajewelers.com/wp- includes/js/jquery/jquery.js?ver=1.4.4′><

  • toscho
    widgets errors
    I’m getting this message on a WP 3.2.1 install with PHP version 5.2.17Notice: Undefined index: filter in /home/netstewp/public_html/wp-includes/default-widgets.php on line 382Any idea why?

  • MANnDAaR
    widgets
    I’m working on flickr Wp-widget. Here is code to fetch flickr pics.class imperia_flickr extends WP_Widget {function imperia_flickr() {$widget_ops = array(‘description’ => ‘This Flickr widget populates photos from a Flickr ID.’ );parent::WP_Widget(false, __(‘imperia – Flickr’, ‘imperiathemes’),$widget_ops); }function widget($args, $instance) { extract( $args );$id = $instance[‘id’];$number = $instance[‘number’];echo $before_widget;echo $before_title; ?><div class=”flickr-icon”>&

  • Jeremy
    widgets bug bug-tracking
    I am developing a widget for cached feeds. The widget itself works exactly as I want but I noticed that if I were to delete the widget and then add a new one (or simply just add a new one) on the first save I get an undefined variable error. This is in the admin Appearence->widgets section.Notice: Undefined index: cached_feed1450-3 in D:\Sites\test.dev\wordpress\wp-admin\includes\ajax-actions.php on line 1578It looks to me that this may be a WordPress issue since that line is:if ( $form = $wp_re

  • Joshua Lynch
    plugins widgets rss events simplepie
    I have a feed from an events calendar that once put in the WordPress RSS widget displays the feed items in reverse chronological order. So the events that are farthest in the future display first, and the events that are coming up soon are displaying last.We are only displaying the title from the feed (the event name) and the pubdate from the feed (which is the date of the event).Does anyone know of a way using SimplePie, a plugin or editing the default RSS widget’s output (without modifying cor

Web site is in building