Samsarin PHP Widget 1.2

This new version of Samsarin PHP Widget increases the number of widgets available from 9 to 25. Enjoy!

Comments

Add a Comment
  1. Thank you!

  2. Thank You, it’s wonderful. Downloading now

  3. Thanks!

    It is a very useful widget…

    :)

  4. I noticed my widget selection page has a different look now that I’ve enabled the plugin - fonts have changed slightly in the sidebar widget selection section , things are bold that aren’t supposed to be bold, such as:

    How many Samsarin PHP widgets would you like?

  5. Hi Chris,

    Been a big fan of Samsarin for my blog. No I’t trying to use it on another site running on Wordpress 2.2.1. I can activate Samsarin but I dont get any PHP widgets to drag and drop.

    It asks me to choose number of widgets. But nothing works. Except when I chose 25 widgets when i get an unusable drag and drop widgets named Samsarin PHP %s.

    Please do help.

  6. Thank you for the plugin! Just what I was looking for!

  7. Hi, im using samarin php widget v1.2 on Mandingo WP Theme, i have a big question, how can i force to remove the bullets in some php widgets, i make the same question in Mandingo Website and nobody response to me, the idea is remove the bullets complety in some PHP Samarin widgets and mantain the bullet in others. please help me

  8. Wonderful Plugin. I just got a question concerning internationalization. Im using the language switcher plugin from http://poplarware.com/languageplugin.html. The Problem is now that I dont know how to change the code in your plugin to get the mo file work. I just want to offer the menu in two languages. Can you give me a hint?

  9. Robert,

    I have not used the languageplugin, but I’ll take a look at it this weekend and follow up with some notes.

  10. It looks like you can use the following form to localize text in the widget:

    < ?php _e("Categories", "text_domain"); ?>
    

    The widget allows all text to be configured by the user when displayed, so there are no changes that should need to be made there. I can see localizing the widget configuration panel in wp-admin. I’ll add that to a list of enhancements to consider for the plugin.

  11. Hello Dear :)
    I’m using your plugin and i’m very happy with it, but there is a little problem i can’t remove/debug.
    on my blog i use samsarin to show the “book of the moment” but if it is not the last plugin in the list, wordpress shows an error with his database.
    I hope you understand what i mean :) is it possible to help me with this?
    Best wishes
    Latita

  12. Latita: What is the database error you’re seeing? When you say it has to be the last plugin in the list, do you mean the last widget in the sidebar?

  13. Hi Cris, thanks for your answer.
    yes, i mean the last widget in the list :blush:
    the error ist following: “Warning: mysql_error(): 7 is not a valid MySQL-Link resource in /var/www/web333/html/blog/wp-includes/wp-db.php on line 215″
    in wp_db.php is in this line the definition what to do when there is an error
    // If there is an error then take note of it..
    if ( mysql_error($this->dbh) )
    {
    $this->print_error();
    return false;
    }

  14. Is the Samsarin PHP Widget plugin not available anymore? The link doesn’t work and I’d really like to try it. Thank you.

  15. newideal: Thanks for pointing out that it was missing. I recently upgraded wordpress and in the process neglected to move the PHP widget plugin into the new install. It is now back in place and should download for you.

  16. Hi Chris,

    Thank you for your great plugin! I have been using it for some time and I love it.

    Today I upgraded my WP version to 2.5 and many things broke, including your plugin. I think it conflicts with the new WP version. Are you planning on a new release to make it compatible?

    Thanks. Cheers,

    Diego
    http://www.profesorblog.com

  17. [...] 简单的插件介绍,这个插件叫Samsarin PHP Widget。 [...]

  18. Hi - thanks for the widget. FYI, I’m running WP 2.5 and 1.2 of your widget.

    Looks like I can’t use double quotes in my php in your widget?? Maybe I’m missing something. I did so, code looked fine, but page wouldn’t display and I ended up having to delete the row in the wp_options table in database to get it working again.

    Example:
    <?php
    $b = get_bookmarks();
    foreach ($b as $mark) {
    print ”.’test’.print_r($mark, true).”;
    }
    ?>

    If the ‘test’ above is changed to “test” everything breaks.

    Any help would be appreciated!

  19. I believe I can see why it would break because the double quotes in the serialized php code in the database will mess up the array:

    a:1:{i:1;a:2:{s:5:”title”;s:0:”";s:4:”body”;s:111:”<?php
    $b = get_bookmarks();
    foreach ($b as $mark) {
    print ”.’test’.print_r($mark, true).”;
    }
    ?>”;}}

  20. FYI, just tested on execPHP widget and it does not have this problem.

  21. Hey There,

    Thanks for the great widget.

    I do have a very odd problem though, and I was wondering if anyone experienced something like this.

    I am using 2 instances of the widget.. One below another one.

    The bottom of the two had some slightly more complex code,, and in copying and pasting I may have created some sort of an error in the code.

    When I was about to go check out what is wrong with the code (I think I am looping to a no end through a dumb 5 line file) the instance of the widget with that code does not exist.

    I mean, the blog dashboard indicates that I have two of the widgets in use,, the blog front end indicates that the second widget is in use,,, but in the panel,, I can’t access it. It simply doesn’t show as if I am using it. Because of this I can’t remove it to start from scratch with it,, nor I can make any changes,,,

    HELP?

  22. Oh,, I just realized that this also broke my widgets section of the dashboard… :s,,, partially..

  23. Hi Kris,

    Depending on how severe the problem is on your site, you may want to disable the Samsarin PHP Widget in the admin console while we work to resolve the issue.

    I’ll send you an email shortly with the next steps to take to resolve this issue.

    Thanks,
    Chris

  24. thanks for the plugin,
    I used it for many months with WP2.1-2.3 under K2 sucessfully,
    now I had to upgrade to WP2.5.1 and switched to the Wordpress sidebar Widgets (instead of the K2 SBM).
    The plugin installs fine and I can use ONE instance of the widget with PHP code, however, I could not find a way to add a second or third Samsarin PHP widget.
    I always says “1″ inside the widget, and when I ADD it, there is now more…

    thanks four any pointers,
    karl.

  25. Hi Karl,

    I haven’t yet updated the Samsarin PHP widget to allow the 2.5.x style of multiple adds. For now, you should be able to go to the bottom of the widget page, find “How many Samsarin PHP widgets would you like?” section and increase the number there.

    Please do let me know if that doesn’t resolve your problem. I’m planning to look at how to modify the widget to use the new 2.5.x style addition - while still supporting the old style addition - sometime this week.

    Thanks,
    Chris

  26. [...] go to Kris for help in testing this [...]

  27. Chris,

    thank you for your fast and helpfull reply:
    yes, this worked, I have four instances of the widget in my sidebar (hosting php code for the “zelig dropdown pages” plugin). I dont know how I could have not seen this option, but I work on a small screen, maybe this is why…-)))

    thanks again for the plugin, after some googling it is the only one which makes it possible to integrate php in the sidebar of WP 2.5.1 sucessfully.

    I also ownloaded your brand new version 1.3.2 and can confirm it works with WP 2.5.1.

  28. Hi Karl,

    Thank you for your follow up. I’m glad to hear the plugin is working for you!

    Thanks,
    Chris

  29. Comments? Add them here: Samsarin PHP Widget.