• How do I get this to show up in one of my sidebar text widgets? The php code doesn’t do anything in a text widget. Thanks!

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hi spicycauldron,

    What are sidebar text widgets? Is this a plugin? I’m sure I can tailor my plugin to work with this if you let me know what they are.

    Thanks.

    Thread Starter spicycauldron

    (@spicycauldron)

    Text widgets are just blank to put stuff into, like, say, code from MyBlogLog or last.fm. But I’ve since found the Samsarin plugin that creates special widgets you can put PHP code into… Here:

    https://blog.samsarin.com/samsarin-php-widget

    Now I’ve got a different problem. My username can’t be entered into the config page for the Bookwormr plugin. I can only type in spicycauldro 12 letters and my login name for Bookwormr is 13 letters – thebut I’m just for now going to change to a shorter login name, see if I can get things up and running…

    Thread Starter spicycauldron

    (@spicycauldron)

    Okay, deleted account with 13-letter name and created a new one, but get the following error with the plugin when activated. The error appears on both the admin page for the plugin, and when I try to show the current reading on my home page:

    Warning: curl_setopt() [function.curl-setopt]: CURLOPT_FOLLOWLOCATION cannot be activated when in safe_mode or an open_basedir is set in /home/…/public_html/wp-content/plugins/wp-bookwormr.php on line 25

    (I’ve removed my site directory name after ‘home’ for security).

    Any ideas? I really would love to be able to get this to work, as I think it’s a great idea for a plugin.

    Hi spicycauldron,

    Ok, I’ve fixed the username length parameter and you should be able to use your original username.

    The second problem is a little more complicated. Which version of PHP are you using? I’m guessing that you are hosting your blog on a shared server and the owner of the server is runnning php in safe mode with open_basedir also activated. These settings restrict certain functions such as curl and fopen, unfortunately these are the two methods by which this plugin attempts to get information from bookwormr.

    Here is some info on these PHP settings
    safe_mode

    I’ll investigate further but at the moment it looks like you can’t use this plugin. Are you using any other plugins which get data from a remote location and which work on your setup?

    Thanks for persevering!

    Thread Starter spicycauldron

    (@spicycauldron)

    Hi there, it’s the latest version and yes, I’ve confirmed the host runs in safe mode – I tried a plugin that allowed you to directly use PHP code in text widgets, and with that I got the error on my site where the bookmarkr plugin should show, saying something about safe mode and open_basedir.

    Um… other plugins… Well, if I interpret correctly, you mean stuff that goes elsewhere, gets information and comes back to present it on my site? No, I don’t think so. The last.fm box is from last.fm themselves, so doesn’t involve the blog itself as such.

    Any way round this in the future? I’d like to use bookwormr very much! And thanks!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘No show in text widget’ is closed to new replies.