News:

Join the Facebook Fan Page.

Main Menu

SA Chat

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

Previous topic - Next topic

SA™

in sachat/body.js.php

document.onmousedown=selectmouse;

replace with

//document.onmousedown=selectmouse;

that will disable the mouse moving it


QuoteIs there any chance of maybe implementing a minimize button too?

if i knew how i would but so far every attempts ive made at this has faild miserably
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 -___-

nend

Quote from: chadon on February 11, 2012, 06:02:02 PM
I didn't find anything wrong in the server's error logs but I had no problem installing the mod in a different forum on the same server, both running with SMF 2.0.2 so it has to do with a conflict with a mod.

Here is the list of mods I have one the forum giving me troubles that are not installed in the forum where SA Chat is functional. If i am not the only one having problems we can find wich one is giving us troubles.

Topic Descriptions
Smush.it!
Simple .htaccess Cache Mod
nCode Image Resizer
Curve mobile mod
Treasury
Enhancements to purge inactive members
Single Category
Related Topics
Bookmarks
Member NotePad
Birthday Posts
SMF Arcade
BlogBridger
vBulletin Style Meta Tags
Off-Topic BBC Tag

If I would have to take a educated guess I would say more than likely it is a mod that uses JavaScript. Here I will update your list and take out mods that i know are ok with the mod. Then we have to troubleshoot the rest.

Updated List

Topic Descriptions
Smush.it!
Simple .htaccess Cache Mod
nCode Image Resizer
Curve mobile mod
Treasury
Enhancements to purge inactive members
Single Category
Bookmarks
Member NotePad
Birthday Posts
BlogBridger
vBulletin Style Meta Tags
Off-Topic BBC Tag


I would take off more but I haven't tried any of these mods to see which one it would be. Maybe this will work, on the forum that the chat works install and uninstall each mod on the list until you find which one is causing the problems. After we know which one it is we can take steps into troubleshooting the conflict.

@SA, minimize implementation and bottom chat windows will have to be implemented at the JavaScript and Template levels. However a few new functions will have to be written into the JavaScript to achieve this. Along with this would have to include a cache system sort of like the one that tracks window positions and a template rewrite.

IMHO it will probably be easiest to start with a new template with its own JavaScript file. In index.php you can see if this file exist for the template and include it, if the file doesn't exist then load the default JavaScript. This would keep the compatibility for older themes in the system.

Like on this line
// If we are loading the main javascript lets get it ready based on the user
      if ($_REQUEST['action'] == 'body') {
require_once('body.js.php');
initLink();
initGadgets();
initchat();
initCleanup();
}


We can do something like this
// If we are loading the main javascript lets get it ready based on the user
      if ($_REQUEST['action'] == 'body') {
if (is_file($themedir.'body.js.php')) {require_once($themedir.'body.js.php');} else {require_once('body.js.php');}
initLink();
initGadgets();
initchat();
initCleanup();
}



There are other ways also to do this also. Since the theme is loaded first we can set a global in the theme with the location to it's custom JavaScript file. If it does not have one then the variable will be left blank to support older themes.

Basically I am requesting this as a feature request to support other JavaScript options. Once this or global varible or some similar system is implemented I will get started on the theme that works the traditional Facebook way that people are asking about. However this may take me some time, it is hard to get a chance to get on the computer and get to coding away.

SA™

i woulda put it down to this mod but havent had time to test it yet

nCode Image Resizer

there is also a conflict with the fancybox mod for s,e reason this mod doesnt like the latest version of jquery

Quotenew template with its own JavaScript
i was considering this as the templates that come with the mod could be better i was actualy trying to do the minimise thing js side but couldent figar it out :P googling doesnt realy help me eaither unless tere is a decent example i can understand

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 -___-

chadon

Quote from: SA™ on February 12, 2012, 01:30:17 PM
i woulda put it down to this mod but havent had time to test it yet

nCode Image Resizer
I tried to uninstall this mod but it didn't change anything.

QuoteIf I would have to take a educated guess I would say more than likely it is a mod that uses JavaScript. Here I will update your list and take out mods that i know are ok with the mod. Then we have to troubleshoot the rest.
I will try to uninstall the other mods one by one later to see if it helps and I will let you know if I find the right one.

Thank you guys for your help.  :)

Heardy

Quote from: SA™ on February 11, 2012, 11:51:39 PM
in sachat/body.js.php

document.onmousedown=selectmouse;

replace with

//document.onmousedown=selectmouse;

that will disable the mouse moving it


QuoteIs there any chance of maybe implementing a minimize button too?

if i knew how i would but so far every attempts ive made at this has faild miserably

This stops it being moved but is there any way to get it like the Facebook chat so it just appears at the bottom then the next conversation appears next to it?
Mindless Junk - A haven for forumers.

SA™

you can ajust the poistion here in sachat/themes/yourtheme/style.css

.msg_win{
   width: 225px;
   height: 300px;
   position: fixed;
   left: 100px;
   top: 30px;
   text-align: left;
}
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 -___-

kohkikker

Are your help me?

How to config  POPUP automatic ?



SA™

Quote from: kohkikker on February 12, 2012, 10:50:45 PM
Are your help me?

How to config  POPUP automatic ?




what
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 -___-

PS4DEV

Quote from: SA™ on February 13, 2012, 04:30:45 PM
Quote from: kohkikker on February 12, 2012, 10:50:45 PM
Are your help me?

How to config  POPUP automatic ?




what

Maybe he wants to have the chat list (#friends) opened all the time, so you don´t have to click on "Who´s Online" ? Could that be ?

PS4DEV

Sorry for double post, but i got a problem with your application, i cant write to anyone :/
i get these 2 problems:


$("#" + fobj.id).viewportOffset is not a function

var dpos = $('#'+fobj.id).viewportOffset();


and:


dobj is undefined

dobj.style.zIndex = zdex;


can you solve that for me please ?

SA™

what other mods have you got installed that uses jquery?
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 -___-

PS4DEV

Well i installed these mods:
1.     ENotify
2.    FancyBox 4 SMF
3.     LGF MOD
4.     SA CHAT

I myself used also some jquery on the index.template.php
i have a mootools navigation menu and  jscroller( which is needed for LGF Mod)

SA™

there is a issue with FancyBox 4 SMF

see if this this tip helps you
http://www.sa-smf.com/community/index.php?topic=1500.msg8989#msg8989
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 -___-

PS4DEV

Quote from: SA™ on February 19, 2012, 05:21:42 PM
there is a issue with FancyBox 4 SMF

see if this this tip helps you
http://www.sa-smf.com/community/index.php?topic=1500.msg8989#msg8989

well if i replace that, all other jquery on my site doesn´t work anymore :/

vinzbomb

Hi i use the SA chat bar, and works like a charm, til yesterday, it disappears
i cannot see it anymore, i did much mod installs last days, i've tried to uninstall and install again, doens't shows up !!!!
It installs, but cannot see it anymore !!!

Thnks for reply

vinzbomb

Btw i did a update to the last version yesterday !!! Since that it doesn't show up !!!!

vinzbomb

Quote from: SA™ on July 21, 2010, 10:36:59 PM
Link to Mod




SA Chat Bar
MySpace/Facebook style chat bar for Simple Machines Forum.



If you like this mod please donate by clicking here.



SA Chat bar software integrates with SMF and works with SMF without working within SMF. This is done by loading the SMF cookie from the browser and verifying it against data saved in the database. This way of working allows SA Chat to run inside and outside of SMF and throughout your website as long as the user is logged into SMF.

The integration codes can be put into any html code. One in the head and one in the body. The install script however installs the JavaScript codes by default in the default theme, but you can add these codes into whatever template you like SMF or not.

More information and troubleshooting.
Video Demostrations
SA Chat Installation Trouble Shooter
SA Chat tips & tricks

License
You are allowed to use and modified SA Chat on your website, however you are not allowed to distribute SA Chat without permission. Any user who offers download of SA Chat without permission will have proper actions taken against them. This includes a take down notice to their host and maybe legal actions. Currently there are two places you may be able to get SA Chat the SMF Site(http://www.simplemachines.org) and the SA Mod Site(http://sa-mods.info). If you downloaded this file from any other source besides the sources mention please report the site you downloaded this mod at http://sa-mods.info.

As of revision 10 makes use of jQuery JavaScript Library v1.4.2 - http://jquery.com/, Copyright 2010, John Resig. Dual licensed under the MIT or GPL Version 2 licenses - http://jquery.org/license. Which also includes Sizzle.js - http://sizzlejs.com/, Copyright 2010, The Dojo Foundation. Released under the MIT, BSD, and GPL Licenses.

As of revision 16 makes use of jQuery viewportOffset v0.3 - http://benalman.com/projects/jquery-misc-plugins/, Copyright 2010 "Cowboy" Ben Alman. Dual licensed under the MIT and GPL licenses - http://benalman.com/about/license/.

As of revision 17 makes use of jQuery Translate plugin v1.3.2 - http://code.google.com/p/jquery-translate/, Copyright 2009 Balazs Endresz. Dual licensed under the MIT and GPL licenses.

SA Chat default theme images courtesy of BittBox - http://www.bittbox.com/category/freebies/

All other code is copyright 2011 SA Mods/sa-mods.info
Special Thanks
Nend (origanal developer)
Al Capwn (beta testing)

Translations needed
sachat/themes/default/languages/english.php
$txt['home'] = 'Home';
$txt['msgs'] = 'Messages';
$txt['myspace'] = 'MySpace';
$txt['twitter'] = 'Tweet';
$txt['facebook'] = 'Facebook';
$txt['whos_on'] = 'Who's Online';
$txt['guest_msg'] = 'Welcome, Guest. Please <a class="white" href="'.$boardurl.'/index.php?action=login">login</a> or <a class="white" href="'.$boardurl.'/index.php?action=register">register.</a>';
$txt['load_warning'] = 'The chat is not availible due to high server load.';


/Themes/default/language/
$txt['2sichat_mn_heart'] = 'Main heartbeat';
$txt['2sichat_mn_heart_sub'] = 'In ms<br />Example: 30000 = 30 seconds<br />Note: Setting too low may cause database load problems.<hr />';
$txt['2sichat_cw_h_enable'] = 'Enable chat window heartbeat';
$txt['2sichat_cw_h_e_sub'] = 'Have a seperate heartbeat for each chat window';
$txt['2sichat_cw_heart'] = 'Chat window heartbeat';
$txt['2sichat_cw_heart_sub'] = 'In ms<br />Example: 15000 = 15 seconds<br />Note: Setting too low may cause database load problems.<hr />';
$txt['2sichat_purge'] = 'Purge read messages';
$txt['2sichat_purge_sub'] = 'Purge read messages after how many days?<hr />';
$txt['2sichat_purge_all'] = 'Purge all messages';
$txt['2sichat_purge_a_sub'] = '<span style="color:red">Warning! this will delete all chat messages.<br />This will also reset the auto increment.</span><hr />';
$txt['2sichat_gad_trans'] = 'Enable Page Translator';
$txt['2sichat_gad_lang'] = 'Language Code';
$txt['2sichat_gad_lang_sub'] = 'The Page language translator needs a language code to work.<br />This should be your websites default language.<hr />';
$txt['2sichat_ico_home'] = 'Enable Home Icon';
$txt['2sichat_ico_pm'] = 'Enable PM Icon';
$txt['2sichat_ico_myspace'] = 'Enable Myspace Icon';
$txt['2sichat_ico_twit'] = 'Enable Twitter Icon';
$txt['2sichat_ico_fb'] = 'Enable Facebook Icon<hr />';
$txt['2sichat'] = 'SA Chat';
$txt['twosichatConfig'] = 'Config';
$txt['twosichatGadget'] = 'Gadgets';
$txt['2sichat_admin'] = 'SA Chat Admin';
$txt['2sichat_config'] = 'SA Chat Config';
$txt['2sichat_config_des'] = 'Here you can edit the main settings for SA Chat';
$txt['2sichat_gadgets'] = 'SA Chat Gadgets';
$txt['2sichat_gadgets_des'] = 'Add custom gadgets to SA Chat';
$txt['2sichat_gad_add'] = 'Add Gadget';
$txt['2sichat_title'] = 'Title';
$txt['2sichat_url'] = 'URL/Gadget Code';
$txt['2sichat_width'] = 'Width';
$txt['2sichat_height'] = 'Height';
$txt['2sichat_vis'] = 'Visibility';
$txt['2sichat_vis0'] = 'Hidden';
$txt['2sichat_vis1'] = 'Members';
$txt['2sichat_vis2'] = 'Guest';
$txt['2sichat_vis3'] = 'All';
$txt['2sichat_ord'] = 'Order';
$txt['2sichat_preview'] = 'Preview';
$txt['2sichat_edit'] = 'Edit';
$txt['2sichat_delete'] = 'Delete';
$txt['2sichat_link'] = 'Link';
$txt['2sichat_list_type'] = 'Show Everyone Online';
$txt['2sichat_list_t_sub'] = 'Shows everyone online instead of buddies only.<hr />';
$txt['2sichat_dis_list'] = 'Disable chat list';
$txt['2sichat_dis_l_sub'] = 'Removes the Who\'s Online list.<hr />';
$txt['2sichat_disable'] = 'Disable SA Chat';
$txt['2sichat_disable_sub'] = 'Disable SA Chat and all features.<hr />';
$txt['2sichat_dis_bar'] = 'Disable Bar';
$txt['2sichat_dis_b_sub'] = 'Disable chat bar leaving features.<hr />';
$txt['2sichat_load_chk'] = 'Enable load checking';
$txt['2sichat_max_load'] = 'Highest load level';
$txt['2sichat_max_l_sub'] = 'Goes by server load average';
$txt['2sichat_load_dis_list'] = 'On high load disable chat list';
$txt['2sichat_load_dis_chat'] = 'On high load disable SA Chat';
$txt['2sichat_load_dis_bar'] = 'On high load disable bar';
$txt['2sichat_live_online'] = 'Update Online List Live';
$txt['2sichat_simple_bbc'] = 'Enable Simple BBC<hr />';
$txt['2sichat_permissions'] = 'Enable group permissions';
$txt['2sichat_permissions_sub'] = 'Enable group permissions that you can modify in the permission manager in SMF.<br />Note: The settings here overide permission settings.<hr />';


hi,

this mod worked fine until i update the theme blackstorm & sa chat bar, that's latest modifications i've made.

It doesn't show up anymore, i did almost everything i could try in settings and by uninstall and reinstall,  CHKMOD stills the same

When i uninstall and réinstall the settings from SA CHAT were not removed !!!!!?


So i tried the install a new fresh forum to test the latest version of mods, and problem is the same, doesn't show up anymore

So that's not cool since i used SA CHAT on my international forum with translation api. now i'm loosing visitors since yesterday i doesn't work

THANKS FOR FUTURE HELP!!!

wedderweelde

First i want to say thank you for this mode
but i have one problem maybe it is noticed
install works fine chat also works fine
i use IE 9 and when I turn on the chat my scrolbar is not working
and when i turn it off scrolbar works fine
so when the chat is on I can only scroll down with my mouse
is there a fix for this ?

SA™

not tested  this in ie9 yet as i dont have it installed on this pc not sure why it would affect the scroll bar realy i have to wait till next week when i get my pc back to do more testing
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 -___-

vinzbomb

Quote from: SA™ on February 22, 2012, 03:54:54 PM
not tested  this in ie9 yet as i dont have it installed on this pc not sure why it would affect the scroll bar realy i have to wait till next week when i get my pc back to do more testing

i can already say i doesn't work anymore on latest smf version with latest simpleportal, and with latest theme blackstorm, even with a new fresh install, doens't show up !!!!

Who is guilty ?!!  the portal, the theme, the forum version ?!!, I don't know, but is doens't work and show up anymore

thanks to help me somebody

Advertisement: