Simple Machines Community Forum

SMF Support => SMF 1.1.x Support => Topic started by: DisturbedGoddess on August 03, 2010, 07:16:55 PM

Title: Ajax Chat
Post by: DisturbedGoddess on August 03, 2010, 07:16:55 PM
This is the issue I am having, The chat works but when i go to set it up to show the settings are blank.
http://disturbedzone.com/ajaxchatProblem.jpg
Title: Re: Ajax Chat
Post by: Tyrsson on August 03, 2010, 07:52:45 PM
Verify that the mod strings have been added to

/Themes/default/languages/Modifications.english.php
Title: Re: Ajax Chat
Post by: DisturbedGoddess on August 04, 2010, 05:31:23 PM
Quote from: Tyrsson™ on August 03, 2010, 07:52:45 PM
Verify that the mod strings have been added to

/Themes/default/languages/Modifications.english.php
Yes i modified that and its still showing blank
Title: Re: Ajax Chat
Post by: Tyrsson on August 04, 2010, 08:55:47 PM
Are you by any chance using a custom theme?
Title: Re: Ajax Chat
Post by: DisturbedGoddess on August 04, 2010, 09:47:26 PM
Quote from: Tyrsson™ on August 04, 2010, 08:55:47 PM
Are you by any chance using a custom theme?
Yes and ive modified the theme. I recently had to restart my forums cause i had to chance servers. And my old server lost ALL my files. And I set up the ajax chat EXACTLY the SAME way i did the first time. And the first time i never had any issues with it. And I am using the same theme as well. And the first time it worked but this time its just not working
Title: Re: Ajax Chat
Post by: Tyrsson on August 05, 2010, 06:00:06 PM
Any errors in the forum error log?

Any errors in the server error log that may shed some light on it?

I am pretty sure its a $txt string problem since the page loads. And you are using the 1.1.11 version of smf right?
Title: Re: Ajax Chat
Post by: DisturbedGoddess on August 08, 2010, 02:57:20 AM
Um yeah these are the errors i get

Unable to load the 'Shout.english-utf8' language file.

8: Undefined index: shoutBox
File: /home/disturbe/public_html/forums/Themes/default/Errors.template.php (shout_above sub template - eval?)
Line: 45

8: Undefined index: shoutBox
File: /home/disturbe/public_html/forums/Themes/TeonunLaneti_v1/BoardIndex.template.php (shout_above sub template - eval?)
Line: 45

8: Undefined index: shoutBox
File: /home/disturbe/public_html/forums/Themes/default/languages/Who.english-utf8.php (shout_above sub template - eval?)
Line: 45

8: Undefined index: shoutBox
File: /home/disturbe/public_html/forums/Themes/default/Profile.template.php (shout_above sub template - eval?)
Line: 45

8: Undefined index: shoutBox
File: /home/disturbe/public_html/forums/Themes/default/Memberlist.template.php (shout_above sub template - eval?)
Line: 45

8: Undefined index: shoutBox
File: /home/disturbe/public_html/forums/Themes/default/Login.template.php (shout_above sub template - eval?)
Line: 45

8: Undefined index: shoutBox
File: /home/disturbe/public_html/forums/Themes/default/languages/ModSettings.english-utf8.php (shout_above sub template - eval?)
Line: 45

Title: Re: Ajax Chat
Post by: Tyrsson on August 08, 2010, 07:08:40 AM
This is your problem.

QuoteUnable to load the 'Shout.english-utf8' language file.

Is your site using utf-8? If so create this file.
Title: Re: Ajax Chat
Post by: DisturbedGoddess on August 08, 2010, 08:41:37 PM
Quote from: Tyrsson™ on August 08, 2010, 07:08:40 AM
This is your problem.

QuoteUnable to load the 'Shout.english-utf8' language file.

Is your site using utf-8? If so create this file.
What exactly do I have to do to create it?
Title: Re: Ajax Chat
Post by: Adish - (F.L.A.M.E.R) on August 08, 2010, 08:45:20 PM
Use a text editor like notepad++

Open Shout.english.php and save it as Shout.english-utf8.php

Upload Shout.english-utf8.php in the same directory as Shout.english.php
Title: Re: Ajax Chat
Post by: DisturbedGoddess on August 26, 2010, 04:58:08 AM
Okay sorry ive been busy i've done that and its still blank...
Title: Re: Ajax Chat
Post by: DisturbedGoddess on August 26, 2010, 07:50:05 PM
And even though the file is in the folder im still getting the Unable to load the 'Shout.english-utf8' language file.
Title: Re: Ajax Chat
Post by: Adish - (F.L.A.M.E.R) on August 26, 2010, 08:11:49 PM
Could you please try using repair_settings.php and use the language as english-utf8 fixing all the paths if anything is wrong? Set everything as default?

What is repair_settings.php? (http://docs.simplemachines.org/index.php?topic=663.0)

Also, does this happen in the default theme?
Title: Re: Ajax Chat
Post by: DisturbedGoddess on August 26, 2010, 08:31:48 PM
Umm what exactly do i do here? The language option was already set to english-utf8....

And yes it happens with the default theme
Title: Re: Ajax Chat
Post by: Adish - (F.L.A.M.E.R) on August 26, 2010, 09:54:05 PM
Go to ./Themes/default/languages/Modifications.english-utf8.php

Do you have these entries within it?

//Begin AjaxChat Integration
$txt['chat'] = 'Chat';
$txt['shoutBox'] = 'ShoutBox';
$txt['chat_aUser'] = ' user is in chat';
$txt['chat_users'] = ' users are in chat:';
$txt['chat_no_user'] = 'No user is in chat.';
$txt['enableShoutBox'] = 'Enable the ShoutBox?';
$txt['enableChatButtonNo'] = 'Enable online chat users numbering on chat button?';
$txt['enableChatBelowPM'] = 'Show online users below total logged in time section?';
$txt['anyPageShoutBox'] = 'Check for ShoutBox on any page or uncheck for only in index page:';
$txt['chatPopUp'] = 'Chat in popup page?';
$txt['miniChat'] = 'Integrate shout box and chat room?';
$txt['permissionname_chat_access'] = 'Access to chat';
$txt['permissionhelp_chat_access'] = 'Users can use the chat or can\'t.';
$txt['permissionname_shout_access'] = 'Can shout';
$txt['permissionhelp_shout_access'] = 'Give access to write in shout box.';
$txt['permissionname_shout_view'] = 'View shoutBox';
$txt['permissionhelp_shout_view'] = 'Give access to view the shoutBox';
$txt['permissionname_shout_mod'] = 'Moderate shoutBox';
$txt['permissionhelp_shout_mod'] = 'Give access to moderate the shoutBox.';
$txt['permissionname_chat_mod'] = 'Moderate chat';
$txt['permissionhelp_chat_mod'] = 'Give access to moderate the chat.';
$txt['permissiongroup_chat'] = 'Chat';
//End AjaxChat Integration


If not, add it before the code the ?>
Title: Re: Ajax Chat
Post by: DisturbedGoddess on August 27, 2010, 12:22:15 AM
YES!! Bingo! that was it. Got it working now Thank you
Title: Re: Ajax Chat
Post by: Kill Em All on August 27, 2010, 12:24:38 AM
Good to hear, I'm gonna mark this solved. :)