[resolved] I broke the topbar with a facebook like button (3 posts)

  1. nijip
    Posted 4 years ago #


    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?


  2. Bob
    Plugin Author

    Posted 4 years ago #

    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.)


    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.


  3. nijip
    Posted 4 years ago #

    Bob, your a legend. thanks

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WP-TopBar
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic