Jump to content


Moving wp-content directory breaks Tabber Widget


1 reply to this topic

#1 Guest_Roman Edirisinghe_*

Guest_Roman Edirisinghe_*
  • Guests

Posted 14 April 2011 - 11:12 PM

Hello,
I've noticed that changing the location of the wp-content folder breaks this plugin because it's not specifically coded to dynamically pull from WP_PLUGIN_DIR or WP_PLUGIN_URL in the database. It seems you've hard-coded the wp-content url into your plugin, rather than using global constants that are available. Is there some way of working around this? Ordinarily, I would be able to use the following type of example, but for some reason, I can't seem to find the proper handle for your scripts and css.

function deregister_tabber_js(){
wp_deregister_script('tabber_widget-idtabs');
wp_enqueue_script('tabber_widget-idtabs', WP_PLUGIN_URL . '/tabber-widget/js/jquery.idTabs.min.js', array('jquery'),'3.1.1', false );
}
function deregister_tabber_css(){
wp_deregister_style('tabber_widget-tabber-widget-rounded-light');
wp_register_style('tabber_widget-tabber-widget-rounded-light', WP_PLUGIN_URL . '/tabber-widget/templates/rounded-light.css',array(), '3.1.1', false);
wp_enqueue_style('tabber_widget-tabber-widget-rounded-light');
}
add_action( 'wp_print_scripts', 'deregister_tabber_js');
add_action( 'wp_print_styles', 'deregister_tabber_css');
Please see here:
WordPress Codex: Editing wp-config.php and moving wp-content

and

How To Protect The wp-content Folder of WordPress

#2 Josh

Josh

    Ithemes Developer

  • Moderators
  • Others: All Plugins, All Themes, BackupBuddy, Flexx
  • 2,601 posts

Posted 15 April 2011 - 02:14 PM

Hi Roman,

You are correct. The code for tabber-widget is hard to debbug as it was coded a long time ago. I think i have a fix and will be testing it. I will post back here when i know it works. Thanks for the heads up.

Regards

Josh
Hey if you haven't looked at the ithemes and pluginbuddy codex check it out here!
There are some plugin walkthrough videos on our youtube channel check it out!



Reply to this Topic


ATTENTION
If this topic is marked RESOLVED or INFORMATION, or if you are NOT experiencing EXACTLY the same issue, please start a new topic to provide the details of your problem. If the solution provided doesn't work for you, you should start a new topic. If you feel this thread contains relevant information, you may include a link to it in your new topic. To ensure that we can process your support request efficiently, ALWAYS include a link to your site, and/or the page your request is related to. When posting your question or request on the forum, please be as concise and specific as possible. The shorter and more to the point you can make your request, the better.

For BackupBuddy related issues, be sure to include the status log from your most recent backup.

CLICK HERE to start a new topic in the Tabber-Widget Plugin forum.


  


0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users