• Resolved nijip

    (@nijip)


    Hi.

    Great plugin.. only problem is that i broke it.
    I attempted to copy a facebook like button (jarva script) into the message to see if i could get a like button as part of the top bar.

    It did’t work. My site didn’t work either. i can delete the plugin and everything is ok again, but i can’t edit the message. The plugin page just gives me a black preview and won’t show me any options. I have deleted and re installed but still the same problem.

    Any idea how i can reset the plugin?

    http://wordpress.org/extend/plugins/wp-topbar/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Bob

    (@rfgoetz)

    You’ll need to delete the option from your options table using phpMyadmin (or whatever tool you use.) In the wp options table, look for an option with the name “wptbAdminOptions” and delete that option (NOT the table.)

    OR

    You can edit the plugin and force a reset of the message. Look for the function “getWPTBPluginOptions” in the plugin (wp-topbar.php). Add these lines of code:

    $wptbAdminOptions(‘bar_link’) = ‘http://wordpress.org/extend/plugins/wp-topbar/’;
    $wptbAdminOptions(‘bar_text’) = ‘Get your own TopBar ‘;
    $wptbAdminOptions(‘bar_link_text’) = ‘from the WordPress plugin repository’;

    This should be placed right before the “return $wptbAdminOptions;” line.

    Once you do that, enable the plugin, go to the Admin page. Change the link, text, and link_text via the Admin page. Press Update Settings. That will force the database to update the settings for these three values. Once that is done, remove the three lines of code from the plugin. All should be good.

    Bob

    Thread Starter nijip

    (@nijip)

    Bob, your a legend. thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Plugin: WP-TopBar] I broke the topbar with a facebook like button’ is closed to new replies.