Support Forum
Hmm, I'm not exactly sure where that line of code is. I've noticed that there is a function called wp_footer() in footer.php that is being called that triggers all the javascript for the plugins - namely in my case, iblog4 and simple:press. When removed, none of the javascript for either of them are triggered, as there is also a javascript call from simple:press.
<script src="http://www.chokinghazard-guild.com/wordpress/wp-content/plugins/simple-press/forum/editor/sp-text-editor.js?ver=3.3.1" type="text/javascript">
Where is the above code located? The same script could be in the same file?
Well you need to find the call that loads the script for the this 'jquery-ui.custom.js' file.
Most commonly it would either be as a 'script' tag in the theme header.php file or as part of a function call in the theme's functions.php file. More rarely it is in neither and then it has to be hunted down!
If you are unable to find it at all, then you can always resort to zipping up your wp theme folder and sending it to us and we can try and locate it for you.
YELLOW
SWORDFISH
|
You need to try and make the following changes which should enable the forum to work OK but you will also need to check the rest of your site as I can not test that of course. But we should be able to resolve things if there are any further issues.
The file you need to edit is: /core/inits/init_sidebar_ui.php
At the very top you will find this code:
add_action('wp_footer', 'sidebarui_js'); function sidebarui_js(){ wp_register_script('accordion', CORE_JS.'/jquery-ui.custom.js', 'jquery', '1.0', true); wp_print_scripts('accordion'); }
Try changing that block to the following code please:
add_action('wp_footer', 'sidebarui_js'); function sidebarui_js(){ // wp_register_script('accordion', CORE_JS.'/jquery-ui.custom.js', 'jquery', '1.0', true); // wp_print_scripts('accordion'); wp_enqueue_script('jquery-ui-core'); wp_enqueue_script('jquery-ui-accordion'); wp_enqueue_script('jquery-ui-draggable'); wp_enqueue_script('jquery-ui-sortable'); }
and then test of course!
YELLOW
SWORDFISH
|