News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

SA Chat

Started by Diego Andrés, July 21, 2010, 10:36:59 PM

Previous topic - Next topic

nend

Settings are not in modification settings, check configuration menu in the admin panel.

Also please note with this revision if you enable group permissions you must edit each one of your permissions for each group so the chat will show for all membergroups you wish the chat to show for.

Once again if your using a custom theme then it may be likely the chat JavaScript code didn't get inserted into the template file. Please check your template files to be sure if the chat installed its code in there.

I would like to mention there has been found a small bug in the method 2-SI Chat uses to send messages to the PHP end of the script. This bug is the cause of various problems with special characters. The JavaScript function is jsubmit in body.js.php and in that function a method was not defined to submit messages to the PHP end so jQuery defaults to get which causes allot of problems with special characters. If you know enough jQuery then you can define the method as POST and this will save allot of problems with special characters.

In that function just add this to the jQuery AJAX call.
type: "post",

楚君

 :D 你們在做什麼???

colej2k

Tried it on RC3 and couldn't see any chat, nothing.  Just tried it on RC4 and still nothing.

Is this a joke  :-\

SA™

http://samods.github.io/SAChatBar/

Xbox Live: smokerthecheese 360 or xbone
My Work
Piano Movers / Delivery service
QuoteMy allies are dead.
I'm 'bout to be too.
Zombies are chasing me.
F*** it, I'm screwed -___-

impreza

An interesting modification, test it
Portal ToTemat.pl - treści w postaci artykułów i filmów tematycznych.

Baloch

Quote from: Baloch on December 23, 2010, 06:25:40 AM
2-SI Chat is not supporting Unicode. Is there any solution?

I am still waiting for the answer :(

nend

Quote from: Baloch on January 06, 2011, 08:53:06 AM
Quote from: Baloch on December 23, 2010, 06:25:40 AM
2-SI Chat is not supporting Unicode. Is there any solution?

I am still waiting for the answer :(
Quote from: nend on December 30, 2010, 11:29:46 PM
I would like to mention there has been found a small bug in the method 2-SI Chat uses to send messages to the PHP end of the script. This bug is the cause of various problems with special characters. The JavaScript function is jsubmit in body.js.php and in that function a method was not defined to submit messages to the PHP end so jQuery defaults to get which causes allot of problems with special characters. If you know enough jQuery then you can define the method as POST and this will save allot of problems with special characters.

In that function just add this to the jQuery AJAX call.
type: "post",

nend

I would also like to note SA is taking over this modification, I have requested the Simple Machines team to transfer this mod over about a week ago I believe, it has been a while but still no action. But in any matter SA will be taking over this modication, I will still stop by when I have time and give help when needed but I don't have enough time lately to continue development and support for this modification.

@SA I will get those files to you today.

SA™

thanks nend i was wondering what was going on lol
http://samods.github.io/SAChatBar/

Xbox Live: smokerthecheese 360 or xbone
My Work
Piano Movers / Delivery service
QuoteMy allies are dead.
I'm 'bout to be too.
Zombies are chasing me.
F*** it, I'm screwed -___-

DirtRider

I could not get this mod to work so I uninstalled it but since then I have been getting the following server error and don't know where to look for this. I have gone through all the files and cannot find any code left after the uninstall


However, examining your page loads more closely revealed the following errors appearing multiple times throughout the load:
[Sat Jan 08 17:22:20 2011] [error] [client xxx.xxx.xxx] File does not exist: /home/triumphtalk/public_html/2sichat, referer: http://triumphtalk.com/
[Sat Jan 08 17:22:31 2011] [error] [client xxx.xxx.xxx] File does not exist: /home/triumphtalk/public_html/2sichat, referer: http://triumphtalk.com/
[Sat Jan 08 17:22:31 2011] [error] [client xxx.xxx.xxx] File does not exist: /home/triumphtalk/public_html/2sichat, referer: http://triumphtalk.com/

http://www.triumphtalk.com

"The real question is not whether machines think but whether men do. "

SA™

your custom theme still has

<script type="text/javascript" src="http://triumphtalk.com/2sichat/index.php?action=body"></script>

and

<script type="text/javascript" src="http://triumphtalk.com/2sichat/index.php?action=head"></script>

http://samods.github.io/SAChatBar/

Xbox Live: smokerthecheese 360 or xbone
My Work
Piano Movers / Delivery service
QuoteMy allies are dead.
I'm 'bout to be too.
Zombies are chasing me.
F*** it, I'm screwed -___-

tesser

Is there any way to change the color of the blue bar to a color of choice ?

As good as this mod is  the color is to much for me.

nend

Quote from: tesser on January 13, 2011, 03:42:50 PM
Is there any way to change the color of the blue bar to a color of choice ?

As good as this mod is  the color is to much for me.

Browse to your forum directory then 2sichat/themes/default/images and replace cbar.png to whatever image you want.

You can also change the style in 2sichat/themes/default/style.css

Hope that helps.

DirtRider

Can anyone help me with this please?

Quote from: DirtRider on January 13, 2011, 01:00:09 AM
I could not get this mod to work so I uninstalled it but since then I have been getting the following server error and don't know where to look for this. I have gone through all the files and cannot find any code left after the uninstall


However, examining your page loads more closely revealed the following errors appearing multiple times throughout the load:
[Sat Jan 08 17:22:20 2011] [error] [client xxx.xxx.xxx] File does not exist: /home/triumphtalk/public_html/2sichat, referer: http://triumphtalk.com/
[Sat Jan 08 17:22:31 2011] [error] [client xxx.xxx.xxx] File does not exist: /home/triumphtalk/public_html/2sichat, referer: http://triumphtalk.com/
[Sat Jan 08 17:22:31 2011] [error] [client xxx.xxx.xxx] File does not exist: /home/triumphtalk/public_html/2sichat, referer: http://triumphtalk.com/


http://www.triumphtalk.com

"The real question is not whether machines think but whether men do. "

nend

Quote from: DirtRider on January 13, 2011, 10:24:10 PM
Can anyone help me with this please?

Quote from: DirtRider on January 13, 2011, 01:00:09 AM
I could not get this mod to work so I uninstalled it but since then I have been getting the following server error and don't know where to look for this. I have gone through all the files and cannot find any code left after the uninstall


However, examining your page loads more closely revealed the following errors appearing multiple times throughout the load:
[Sat Jan 08 17:22:20 2011] [error] [client xxx.xxx.xxx] File does not exist: /home/triumphtalk/public_html/2sichat, referer: http://triumphtalk.com/
[Sat Jan 08 17:22:31 2011] [error] [client xxx.xxx.xxx] File does not exist: /home/triumphtalk/public_html/2sichat, referer: http://triumphtalk.com/
[Sat Jan 08 17:22:31 2011] [error] [client xxx.xxx.xxx] File does not exist: /home/triumphtalk/public_html/2sichat, referer: http://triumphtalk.com/


The mod didn't uninstall all the way, it looks like Aeva pushed the script tags to different positions in the code which caused errors during the uninstall. Please remove the script tags from your index.template.php file. We can't do this for you unless you provide us your index.template.php.

A small note though that will save you headaches with other modules in the future. Next time when uninstalling modules if there are ANY ERRORS you must uninstall all mods you installed after that module before it can be removed. This is a sad truth of the SMF package manager and can not be avoided. After you removed the module you can reinstall the modules you uninstalled.

nend

Want to share these social network links for 2-SI Chat. Manual editing required.

Here are the html links for your template.php for function guest_bar_template and function chat_bar_template. You work them in how you want. also I didn't provide images, don't have any that match the current release theme sorry.

<a href="javascript:void(0)" onclick="javascript:getSocial(\'mailto\');">
<img src="'.$themeurl.'/images/email.png" alt="Email this to a friend" title="Email this to a friend" border="0">
</a>
<a href="javascript:void(0)" onclick="javascript:getSocial(\'digg\');">
<img src="'.$themeurl.'/images/digg.png" alt="Digg" title="Post this to Digg" border="0">
</a>
<a href="javascript:void(0)" onclick="javascript:getSocial(\'googlebuzz\');">
<img src="'.$themeurl.'/images/google-buzz.png" alt="Google Buzz" title="Post this to Google Buzz" border="0">
</a>
<a href="javascript:void(0)" onclick="javascript:getSocial(\'stumbleupon\');">
<img src="'.$themeurl.'/images/stumbleupon.png" alt="StumbleUpon" title="Post this to StumbleUpon" border="0">
</a>
<a href="javascript:void(0)" onclick="javascript:getSocial(\'yahoobuzz\');">
<img src="'.$themeurl.'/images/yahoo-buzz.png" alt="Yahoo Buzz" title="Post this to Yahoo Buzz" border="0">
</a>


Now in body.js.php add these lines to the JavaScript function getSocial.
if (social == \'digg\') {
pupUP("http://digg.com/submit?phase=2&url="+window.location+"&title="+document.documentElement.getElementsByTagName("TITLE")[0].innerHTML);
}
if (social == \'googlebuzz\') {
pupUP("http://www.google.com/buzz/post?url="+window.location+"&title="+document.documentElement.getElementsByTagName("TITLE")[0].innerHTML+"&message="+metadescription);
}
if (social == \'yahoobuzz\') {
pupUP("http://buzz.yahoo.com/submit/?urlsubmission-input="+window.location);
}
if (social == \'stumbleupon\') {
pupUP("http://www.stumbleupon.com/submit?url="+window.location+"&title="+document.documentElement.getElementsByTagName("TITLE")[0].innerHTML);
}
if (social == \'mailto\') {
document.location.href="mailto:?subject="+document.documentElement.getElementsByTagName("TITLE")[0].innerHTML+"&body="+document.documentElement.getElementsByTagName("TITLE")[0].innerHTML+"%0D%0A%0D%0A"+metadescription+"%0D%0A%0D%0ALink%0D%0A"+window.location;
}


Now you have a few extra social networks,  ;D.

*edit

Almost forgot this new part of the code. Add this line before function getSocial in body.js.php. If you don't the description var will be empty.
var metadescription;
var metas = document.getElementsByTagName(\'meta\');
for (var x=0,y=metas.length; x<y; x++) {
if (metas[x].name.toLowerCase() == "description") {
metadescription = metas[x].content;
}
}

DirtRider

Quote from: nend on January 13, 2011, 11:43:06 PM
Quote from: DirtRider on January 13, 2011, 10:24:10 PM
Can anyone help me with this please?

Quote from: DirtRider on January 13, 2011, 01:00:09 AM
I could not get this mod to work so I uninstalled it but since then I have been getting the following server error and don't know where to look for this. I have gone through all the files and cannot find any code left after the uninstall


However, examining your page loads more closely revealed the following errors appearing multiple times throughout the load:
[Sat Jan 08 17:22:20 2011] [error] [client xxx.xxx.xxx] File does not exist: /home/triumphtalk/public_html/2sichat, referer: http://triumphtalk.com/
[Sat Jan 08 17:22:31 2011] [error] [client xxx.xxx.xxx] File does not exist: /home/triumphtalk/public_html/2sichat, referer: http://triumphtalk.com/
[Sat Jan 08 17:22:31 2011] [error] [client xxx.xxx.xxx] File does not exist: /home/triumphtalk/public_html/2sichat, referer: http://triumphtalk.com/


The mod didn't uninstall all the way, it looks like Aeva pushed the script tags to different positions in the code which caused errors during the uninstall. Please remove the script tags from your index.template.php file. We can't do this for you unless you provide us your index.template.php.

A small note though that will save you headaches with other modules in the future. Next time when uninstalling modules if there are ANY ERRORS you must uninstall all mods you installed after that module before it can be removed. This is a sad truth of the SMF package manager and can not be avoided. After you removed the module you can reinstall the modules you uninstalled.

Ok here is my index.template.php. thanks
http://www.triumphtalk.com

"The real question is not whether machines think but whether men do. "

SA™

that file is for the default theme we need the index.template.php from you custom theme

Quote from: SA™ on January 13, 2011, 02:04:40 PM
your custom theme still has

<script type="text/javascript" src="http://triumphtalk.com/2sichat/index.php?action=body"></script>

and

<script type="text/javascript" src="http://triumphtalk.com/2sichat/index.php?action=head"></script>


http://samods.github.io/SAChatBar/

Xbox Live: smokerthecheese 360 or xbone
My Work
Piano Movers / Delivery service
QuoteMy allies are dead.
I'm 'bout to be too.
Zombies are chasing me.
F*** it, I'm screwed -___-

DirtRider

Quote from: SA™ on January 14, 2011, 01:30:53 PM
that file is for the default theme we need the index.template.php from you custom theme

Quote from: SA™ on January 13, 2011, 02:04:40 PM
your custom theme still has

<script type="text/javascript" src="http://triumphtalk.com/2sichat/index.php?action=body"></script>

and

<script type="text/javascript" src="http://triumphtalk.com/2sichat/index.php?action=head"></script>



Ok I have a few themes running so here they are
http://www.triumphtalk.com

"The real question is not whether machines think but whether men do. "

SA™

been a hectic weekend :/
here you go pls back up before adding these just incase
http://samods.github.io/SAChatBar/

Xbox Live: smokerthecheese 360 or xbone
My Work
Piano Movers / Delivery service
QuoteMy allies are dead.
I'm 'bout to be too.
Zombies are chasing me.
F*** it, I'm screwed -___-

Advertisement: