Jump to content


Welcome to the forum:

Welcome to the iThemes, PluginBuddy and WebDesign.com forum. We've created several tutorial video's to help you get you started with using the forum, please check them out!

Also take note of the forum guidelines.


Support hours:

Our moderators actively respond to forum support requests during normal business hours which are Monday-Friday, 8am - 5pm Central Standard Time, typically within one business day. Although some moderators choose to work during the weekends, we can not guarantee immediate attention to your requests. Thanks for understanding.

What is included with support:

Premium support includes theme/plugin issues such as: bugs encountered under normal operation, how to use basic features, basic WordPress help, and basic help with customization (meaning we point you to resources and will help in more depth as time allows). More information.

Moving wp-content directory breaks Tabber Widget


This topic has been archived. This means that you cannot reply to this topic.
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,778 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 codex check it out here!
There are some plugin walkthrough videos on our youtube channel check it out!