AjaxChat Integration (latest version 3.2.1)

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

Previous topic - Next topic

Sabre™

@ NaWaR
Look [HERE] to make the edits to your themes BoardIndex.template.php and index.template.php.
For your button, you will need to create an image, name it chat.png and add it to the themes images/english folder.

Here is the code for your button.
     // the [chat] button
     $chatPath = str_replace("index.php", "chat/index.php", $scripturl);
     $num = (empty($modSettings['enableChatButtonNo'])) ? 0 : count(chatOnlineUsers());
echo '<li><a href="', $chatPath, '"', empty($modSettings['chatPopUp']) ? 'target="_blank"' : ' onclick="openWindow(this.href);this.blur();return false;"', ' class="kwick opt6">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/chat.png" alt="' . $txt['chat'] . '" style="margin: 0px 0;" border="0" /><span>' : $txt['chat']), '</span></a></li>';
Do NOT give admin and/or ftp details to just anybody, see if they are trust worthy first!!  Do your homework ;)


NaWaR

#4521
where to use the button code? in the board.template or index.template?
and can't find

         // But, let's always show minutes - Time wasted here: 0 minutes ;).
echo $context['user']['total_time_logged_in']['minutes'], $txt['totalTimeLogged4'], '<br />';
}
echo ' </span>';
}

NaWaR


Parse error: syntax error, unexpected '<' in .../Themes/default/BoardIndex.template.php on line 101

92: // ]]></script>
93:
94: <script language="JavaScript" type="text/javascript" src="', $settings['default_theme_url'], '/fader.js"></script>
95: </td>
96: </tr>
97: </table>';
98: }
99:
100: // Chat box

101: <div><embed src="http://4syr.st.chatango.com/mini" bgcolor="#F5F5DC" width=600 height=150  type=application/x-shockwave-flash  allowScriptAccess='always' allowNetworking='all' allowFullScreen='true'  flashvars="k=1&c=FF0000&n=00008B&f=11&b=0xF5F5DC"/><br><a href="http://chatango.com/signupmini"><img src="http://st.chatango.com/images/s.gif" border=0></a></div>

102:
103:
104:
105:

Arantor

Line 101 should be:

echo '<div><embed src="http://4syr.st.chatango.com/mini" bgcolor="#F5F5DC" width="600" height="150"  type="application/x-shockwave-flash"  allowScriptAccess="always" allowNetworking="all" allowFullScreen="true"  flashvars="k=1&c=FF0000&n=00008B&f=11&b=0xF5F5DC"/><br><a href="http://chatango.com/signupmini"><img src="http://st.chatango.com/images/s.gif" border=0></a></div>';

Sabre™

The code I mentioned, add it in your index.template.php before this line
  // The [calendar]!

Remember, you must make an image, and name it chat.png
Do NOT give admin and/or ftp details to just anybody, see if they are trust worthy first!!  Do your homework ;)


Daegaladh

How to remove this? I've been searching but cant find where is :S

<div id="ShoutBox">
 <div class="tborder" style="margin: 1px 0pt 0pt;">
<div id="ajaxChatContent">



Wtf is that 

It's weird... @_@

Thanks

malcomxar

Hello! nice mod btw!

Is it posible to restrict urls so they can't be sent in the chat?

NaWaR

still have  Template Parse Error!
There was a problem loading the /Themes/extreme61/BoardIndex.template.php template or language file. Please check the syntax and try again - remember, single quotes (') often have to be escaped with a slash (\). To see more specific error information from PHP, try accessing the file directly.

You may want to try to refresh this page or use the default theme.
syntax error, unexpected '<'

on the theme extreme6
but when i change to the default theme forum works.. but for sure without the ban link in post or the ajax chat!

thank you all for all your support and help and thank you for replays

P.S : still waiting for answer how to fix this ?

Sabre™

Do NOT give admin and/or ftp details to just anybody, see if they are trust worthy first!!  Do your homework ;)


NaWaR

thanks man for all your support :) i know i am bothering but what to do i dunno how 2 php!


decibel

Hello all,
My Achat is versie 1.04 for SMF 1.1.10, i can see the chat button on the forum, but if a write down some then i got the error no Achat table for database,
Question, how to made this manualy or witsch file have had tot do it for me?

thank you,
Waterdichte systemen zijn niet berekend op de vindingrijkheid van dwazen.

Sabre™

NaWaR, there is nothing wrong with that template.
I returned your PM.
Do NOT give admin and/or ftp details to just anybody, see if they are trust worthy first!!  Do your homework ;)


Sabre™

Decibel.
Did you manually install the mod?
If I'm reading your post correct, upload the Tables_1.1.X.php from the mod package, to the 'root' of your forum, and execute the file from your browser.
eg. http://your site name here.com/Tables_1.1.X.php
Do NOT give admin and/or ftp details to just anybody, see if they are trust worthy first!!  Do your homework ;)


NaWaR

#4533
wow thank you everything works perfectly .. i love you man and love smf...

thanks alot man .. for all the fast support

but still not chatbox :(

Sabre™

Ok buddy.
Everything is functional, you need to change the test image I used for the chat button(use the psd file within the theme package), and you need to contact your host for the error 500, that is a server side issue, they will be better to explain what is going on if they log the errors. Another option is to switch to a host that has their servers configured to your liking.
I also added an .htaccess file to help with other things.
You need to remove the duplicates in your site eg. themes, templates etc..

Good luck :)
Do NOT give admin and/or ftp details to just anybody, see if they are trust worthy first!!  Do your homework ;)


NaWaR

#4535
it's working thank you so much .. everything

man you are the one  thanks

mrtrc266

Sabre did you add this to his .htaccess? In some cases that gets rid of the 500 error.

RewriteRule ^chat/?$ ./chat/index.php [L,QSA]

Sabre™

After checking, his server does not allow you to add .htaccess
Do NOT give admin and/or ftp details to just anybody, see if they are trust worthy first!!  Do your homework ;)


Sabre™

Quote from: NaWaR on November 09, 2009, 05:55:56 PM
it's working thank you so much .. everything

man you are the one  thanks

My pleasure buddy :)
Please take into consideration the information I offered regarding cleaning the duplicates.
It will make things alot easier for you. Even I got lost when I first entered lol

Good luck mate :)
Do NOT give admin and/or ftp details to just anybody, see if they are trust worthy first!!  Do your homework ;)


NaWaR

You are so gentle...  thank you man for your time "RESPECT"
if there is anything i can do for you.. it won't return your favors but anything for sabre...

Sabre the Kind   :-*

Advertisement: