Page 1 of 1

Hybrid child-theme on WordPress-Applications not displaying

PostPosted: 01 Feb 2012, 05:21
by DDeJager
When installing chat on a WordPress website, one of the requirements are that the jQuery libraries and an extra css file be included in the head and footer of the HTML.

I did this by putting the following code in my Hybrid child theme's functions.php:

Code: Select all
function chat_style() {
   wp_enqueue_style( 'chat-style', '/arrowchat/external.php?type=css', false, '0.1', 'all' );
}
add_action( 'wp_head', 'chat_style', 1 );

function chat_scripts_enqueue() {
   wp_enqueue_script( 'chat-script-1', '/arrowchat/external.php?type=djs', array( 'jquery', 'jquery-ui-core' ), 0.1 );
   wp_enqueue_script( 'chat-script-2', '/arrowchat/external.php?type=js', array( 'jquery', 'jquery-ui-core' ), 0.1 );
}
add_action( 'wp_footer', 'chat_scripts_enqueue', 8 );


I do this to prevent WordPress from including jQuery more than once, since I enabled other plugins also utilising jQuery. This is to prevent any conflicts and malfunctioning.

Chat works fine with this integration method but Applications aren't being displayed on the toolbar. I double-checked the correct instalation and activation.

In Internet Explorer a javascript error occurs in line 2 of the jQuery library. Now I suspect that it is because the version of jQuery differs from the one included in Arrow Chat.

Am I on the right track and how can I fix this?

Thank you!

PostPosted: 01 Feb 2012, 05:28
by DDeJager
This is the error:

Code: Select all
Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 2.0.50727; FDM; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)
Timestamp: Wed, 1 Feb 2012 13:28:02 UTC


Message: Object doesn't support this property or method
Line: 2
Char: 14776
Code: 0
URI: http://miernes.co.za/wp-includes/js/jquery/jquery.js?ver=1.7.1



Topic Closed

PostPosted: 07 Nov 2012, 12:40
by Staff Bot
This thread has been locked because the last post is greater than six months old. There is a good chance that the information in this thread is outdated. Please open a new topic if you wish to discuss this further.