Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
general-topic
Unable to delete/move topic and posts
Avatar
Karthik Subramanian
Member
Free Members
sp_UserOfflineSmall Offline
Mar 16, 2012 - 2:14 am

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?

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Mar 16, 2012 - 5:47 am

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.

andy-signature.png
YELLOW
SWORDFISH
Avatar
Karthik Subramanian
Member
Free Members
sp_UserOfflineSmall Offline
Mar 16, 2012 - 6:40 am

Cheers Swordfish.  I've been literally trying all day (whenever I had free time during work :P) to find the code snippet but couldn't. To what e-mail do I send the zip file to? 

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Mar 16, 2012 - 6:49 am

you can use support at simple-press dot com

andy-signature.png
YELLOW
SWORDFISH
Avatar
Karthik Subramanian
Member
Free Members
sp_UserOfflineSmall Offline
Mar 16, 2012 - 7:01 am

Yellow Swordfish said
you can use support at simple-press dot com

The zip file is sent. Thanks again guys, much appreciated.

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Mar 16, 2012 - 8:14 am

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!

andy-signature.png
YELLOW
SWORDFISH
Avatar
Karthik Subramanian
Member
Free Members
sp_UserOfflineSmall Offline
Mar 16, 2012 - 11:15 am

Works like a charm! Thanks guys for all the help! Time to add a couple of the plugins and change the stylesheets etc. 😀

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Mar 16, 2012 - 11:32 am

excellent! As I say - just watch the rest of the site. The code we changed controls some sort of accordion feature/drag and sort feature? on the sidebar (apparently) so just make sure that is still working and if so - then we are good.

andy-signature.png
YELLOW
SWORDFISH
Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
Top Posters:
Mr Papa: 19448
Ike: 2086
Brandon: 864
kvr28: 804
jim: 650
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 619
Members: 17361
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10127
Posts: 79625