AjaxChat Integration (latest version 3.2.1)

Started by .HuNTeR., August 27, 2008, 12:59:06 AM

Previous topic - Next topic

mrtrc266

Quote from: johncccccc on April 28, 2009, 11:03:40 PM
Quote from: mrtrc266 on April 28, 2009, 02:25:23 PM
@ john, I will try to replicate the error and get a fix
 


 

ok thanks, I got this error with other mods installed and with no other mods installed (this mod is the only mod installed)

EXACT ERROR:
8: Undefined index: enableChatBelowPM
File: /home/reque4/public_html/Themes/default/Login.template.php (eval?)
Line: 221

also in files
File: /home/reque4/public_html/Themes/default/Display.template.php (eval?)
Line: 221

File: /home/reque4/public_html/Themes/default/MessageIndex.template.php (eval?)
Line: 221

There are probably more files, it always seems to be line 221 on all the files, strange, but a good place to start looking lol..

ok, thanks again :)

This Mod doesn't edit any of those files.

Those (eval?) errors are generally errors with the template. Try disabling your eval and see if you can get the correct error.

http://sleepy-arcade.ath.cx/sleepy/index.php?topic=612.msg2981#msg2981

Be sure to change you prefix if it's not smf_

genusis

I think i figured my error out< in php.ini the time zone needs to be set before the chat and stuff can find the time it need until my host sets it my chat will not work..... =.= They need to change that in smf so you can choose your forums own time zone..
hello I am Genusis
this is my site
http://spirean.com

ɔɔɔɔɔɔuɥoɾ

#1622
Quote from: mrtrc266 on April 29, 2009, 09:41:02 AM


This Mod doesn't edit any of those files.

Those (eval?) errors are generally errors with the template. Try disabling your eval and see if you can get the correct error.

http://sleepy-arcade.ath.cx/sleepy/index.php?topic=612.msg2981#msg2981

Be sure to change you prefix if it's not smf_

ok I ran the query whihc disabled the (eval) but the errors still occur, but without the (eval) now


This time the error:

8: Undefined index: enableChatBelowPM
File: Themes/SteelV/index.template.php
Line: 221


SMF 2.0 RC5

   
Webhost to New Webhost file transfer service, PM me - Fast transfers

genusis

Quote from: johncccccc on April 29, 2009, 11:54:28 AM
Quote from: mrtrc266 on April 29, 2009, 09:41:02 AM


This Mod doesn't edit any of those files.

Those (eval?) errors are generally errors with the template. Try disabling your eval and see if you can get the correct error.

http://sleepy-arcade.ath.cx/sleepy/index.php?topic=612.msg2981#msg2981

Be sure to change you prefix if it's not smf_

ok I ran the query whihc disabled the (eval) but the errors still occur, but without the (eval) now


This time the error:

8: Undefined index: enableChatBelowPM
File: /home/reque4/public_html/Themes/SteelV/index.template.php
Line: 221


are you trying this on a fresh installation of SMF or an old one where you removed all the mods? because if you removed mods and there where errors then it will cause problems.
other that that you migth want to reinstall SMF then try to reintegrate the ajaxchat.
hello I am Genusis
this is my site
http://spirean.com

ɔɔɔɔɔɔuɥoɾ

I re- installed the whole forum, erased everything (except database, of course) and reinstalled freshm then installed that mod only, errors still exist.


SMF 2.0 RC5

   
Webhost to New Webhost file transfer service, PM me - Fast transfers

astarmathsandphysics

I moved server recently and now the chat mod doesnt work. I get this error message


Warning: AJAXChat::require(/home/studentf/public_html/chat/lib/config.php) [ajaxchat.require]: failed to open stream: No such file or directory in /home/studentf/public_html/chat/lib/class/AJAXChat.php on line 50

Fatal error: AJAXChat::require() [function.require]: Failed opening required '/home/studentf/public_html/chat/lib/config.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/studentf/public_html/chat/lib/class/AJAXChat.php on line 50

Any ideas? Am using 1.1.7 and must choose a suitable time to upgrade with lots of testing because I have some essential mods.

OntarioAquariaClub

Can someone post attachments for all files that needed editing. I have tried and tried and cannot get to work. Thanks in advance.

Picard1595

Hmm, I can't get the css the put the chat box at the bottom near the stats instead of the top. Anyone want to help?

Pitbull_NL

I get a connection error 500 in the chat

its maybe a litle thing but what must i do to get it working ?

Thanks Pit

mrtrc266

Quote from: OntarioAquariaClub on April 29, 2009, 11:41:25 PM
Can someone post attachments for all files that needed editing. I have tried and tried and cannot get to work. Thanks in advance.

Throw the Mod in a Package Parser, that will show you all the edits

mrtrc266

Quote from: Pitbull_NL on April 30, 2009, 09:05:32 AM
I get a connection error 500 in the chat

its maybe a litle thing but what must i do to get it working ?

Thanks Pit

Please read THIS

mrtrc266

Quote from: astarmathsandphysics on April 29, 2009, 06:07:31 PM
I moved server recently and now the chat mod doesnt work. I get this error message

Am using 1.1.7 and must choose a suitable time to upgrade with lots of testing because I have some essential mods.

Should atlease upgrade to 1.1.8 all Mods that you currently have will not be effected. It was released do to security issues.

mrtrc266

Quote from: Picard1595 on April 30, 2009, 01:51:36 AM
Hmm, I can't get the css the put the chat box at the bottom near the stats instead of the top. Anyone want to help?

The location of the Chat will be this bit of code in your index.template.php file


//shoutBox
if (!empty($modSettings['enableShoutBox'])){
if (allowedTo('shout_access')){
// We'll have to use the cookie to remember the shoutBox header...
if ($context['user']['is_guest'])
$options['sb_collapsed'] = !empty($_COOKIE['sb_collapsed']);

echo '
<script language="JavaScript" type="text/javascript">
var sb_current_header = ', empty($options['sb_collapsed']) ? 'false' : 'true', ';

function ajax_shoutBox_collapse(mode)
{';

if ($context['user']['is_guest'])
echo '
document.cookie = "sb_collapsed=" + (mode ? 1 : 0);';
else
echo '
smf_setThemeOption("sb_collapsed", mode ? 1 : 0, null, "', $context['session_id'], '");';

echo '
document.getElementById("ajax_shoutbox_collapse").src = smf_images_url + (mode ? "/expand.gif" : "/collapse.gif");

document.getElementById("ShoutBox").style.display = mode ? "none" : "";

sb_current_header = mode;
}
</script>';

if (!empty($modSettings['anyPageShoutBox']) || isset($context['chat_isHome'])){
echo'
<div class="tborder" style="margin: 10px 0 10px 0;">
<div class="catbg" style="padding: 5px 15px 5px 10px;margin:0 auto;">
<a rel="nofollow" href="#" onclick="ajax_shoutBox_collapse(!sb_current_header)"><img id="ajax_shoutbox_collapse" src="', $settings['images_url'], empty($options['sb_collapsed']) ? '/collapse.gif' : '/expand.gif','" alt="*" style="margin-right: 5px;"  /></a>', $txt['shoutBox'], '
</div>
<div id="ShoutBox"', empty($options['sb_collapsed']) ? '' : ' style="display: none;"', '>
', getShoutBoxContent() ,'
</div>
</div>';
}
}
}

Pitbull_NL

Quote from: mrtrc266 on April 30, 2009, 10:48:50 AM
Quote from: Pitbull_NL on April 30, 2009, 09:05:32 AM
I get a connection error 500 in the chat

its maybe a litle thing but what must i do to get it working ?

Thanks Pit

Please read THIS

Thank you mate it works now
all files where ok but the index.php i had to change to cmod 755 it whas 666
so thanks again for your fast replay on this

Pittbull

Praatwurst

I installed the chat+shout succesfully. The chat works really good, but when I enable the shoutbox function, it appears, but it doesn't work at all. I don't get any errors.

Could somebody help me with it?


And is it possible to have the shoutbox in a Simple Portal block?

Picard1595

Quote from: mrtrc266 on April 30, 2009, 10:52:57 AM
Quote from: Picard1595 on April 30, 2009, 01:51:36 AM
Hmm, I can't get the css the put the chat box at the bottom near the stats instead of the top. Anyone want to help?

The location of the Chat will be this bit of code in your index.template.php file


//shoutBox
if (!empty($modSettings['enableShoutBox'])){
if (allowedTo('shout_access')){
// We'll have to use the cookie to remember the shoutBox header...
if ($context['user']['is_guest'])
$options['sb_collapsed'] = !empty($_COOKIE['sb_collapsed']);

echo '
<script language="JavaScript" type="text/javascript">
var sb_current_header = ', empty($options['sb_collapsed']) ? 'false' : 'true', ';

function ajax_shoutBox_collapse(mode)
{';

if ($context['user']['is_guest'])
echo '
document.cookie = "sb_collapsed=" + (mode ? 1 : 0);';
else
echo '
smf_setThemeOption("sb_collapsed", mode ? 1 : 0, null, "', $context['session_id'], '");';

echo '
document.getElementById("ajax_shoutbox_collapse").src = smf_images_url + (mode ? "/expand.gif" : "/collapse.gif");

document.getElementById("ShoutBox").style.display = mode ? "none" : "";

sb_current_header = mode;
}
</script>';

if (!empty($modSettings['anyPageShoutBox']) || isset($context['chat_isHome'])){
echo'
<div class="tborder" style="margin: 10px 0 10px 0;">
<div class="catbg" style="padding: 5px 15px 5px 10px;margin:0 auto;">
<a rel="nofollow" href="#" onclick="ajax_shoutBox_collapse(!sb_current_header)"><img id="ajax_shoutbox_collapse" src="', $settings['images_url'], empty($options['sb_collapsed']) ? '/collapse.gif' : '/expand.gif','" alt="*" style="margin-right: 5px;"  /></a>', $txt['shoutBox'], '
</div>
<div id="ShoutBox"', empty($options['sb_collapsed']) ? '' : ' style="display: none;"', '>
', getShoutBoxContent() ,'
</div>
</div>';
}
}
}


Is there a way to make it go on the right hand side of the theme instead of near the bottom or top.

mrtrc266

Quote from: Praatwurst on April 30, 2009, 12:00:56 PM
I installed the chat+shout succesfully. The chat works really good, but when I enable the shoutbox function, it appears, but it doesn't work at all. I don't get any errors.

Could somebody help me with it?


And is it possible to have the shoutbox in a Simple Portal block?

Try to CHMOD yourforum/shoutbox/index.php to 775

Read the last few pages of this thread to find alternatives to the shoutbox on your portal page.

Also I found something about your last request which looks pretty cool Make You're Chat Bot Smarter  :D 

mrtrc266

Quote from: Picard1595 on April 30, 2009, 12:12:52 PM
Quote from: mrtrc266 on April 30, 2009, 10:52:57 AM
Quote from: Picard1595 on April 30, 2009, 01:51:36 AM

Is there a way to make it go on the right hand side of the theme instead of near the bottom or top.

Top or bottom would be the best bet, you might have to tweak the shoutbox.css, shoutbox.html and index.template.php quite a bit to have it on the side somewhere.

Picard1595

Thanks for all the help guys :)

Praatwurst

Quote from: mrtrc266 on April 30, 2009, 12:17:49 PM
Quote from: Praatwurst on April 30, 2009, 12:00:56 PM
I installed the chat+shout succesfully. The chat works really good, but when I enable the shoutbox function, it appears, but it doesn't work at all. I don't get any errors.

Could somebody help me with it?


And is it possible to have the shoutbox in a Simple Portal block?

Try to CHMOD yourforum/shoutbox/index.php to 775

Read the last few pages of this thread to find alternatives to the shoutbox on your portal page.

Also I found something about your last request which looks pretty cool Make You're Chat Bot Smarter  :D 
The CHMOD doesn't work, I still get this:



Thanks for the smart-bot thing, trying to get it working now  :D

Advertisement: