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

beanflying

My turn for a question or request for a mod. More and more of my users are using Tablets for browsing and chatting but as the chat pop ups get in the way of the forum they have asked about a method to enable them to move the chat windows around.

so incorporate ongesturetap or alternatively onclick? on the header to enable dragging of these?
Owner of many many shiny toys.

Realinfo

Quote from: SA™ on April 18, 2011, 12:13:39 PM
you can try this

in sources/sachathooks.php

find
$buffer = str_replace('</head>', '<script type="text/javascript" src="'.$boardurl.'/sachat/index.php?action=head"></script>
</head>', $buffer);

$buffer = str_replace('<body>', '<body>
<script type="text/javascript" src="'.$boardurl.'/sachat/index.php?action=body"></script>', $buffer);


replace with
if(!isset($_GET['action'])){
$buffer = str_replace('</head>', '<script type="text/javascript" src="'.$boardurl.'/sachat/index.php?action=head"></script>
</head>', $buffer);

$buffer = str_replace('<body>', '<body>
<script type="text/javascript" src="'.$boardurl.'/sachat/index.php?action=body"></script>', $buffer);
}



why i don't get this lines in my file

SA™

thats for an old version of the mod so no you wont find that code
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 -___-

SA™

Quote from: Realinfo on August 21, 2012, 09:06:19 AM
Can we put bar in Block of simple Portal?
if yes
how?

im not sure i havent tryed this but you can try and use

global $context;
$context['html_headers'] .= SAChat_showBar('head');
echo SAChat_showBar('body');


in a php block?
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 -___-

beanflying

Oops sorry for the bum steer I a heap of stuff on the go :)

That code didn't work on Simple Portal BTW.
Owner of many many shiny toys.

Realinfo

Quote from: SA™ on August 22, 2012, 07:49:26 AM
Quote from: Realinfo on August 21, 2012, 09:06:19 AM
Can we put bar in Block of simple Portal?
if yes
how?

im not sure i havent tryed this but you can try and use

global $context;
$context['html_headers'] .= SAChat_showBar('head');
echo SAChat_showBar('body');


in a php block?

Syntax error in block code. Please check the code.

I got this When i try to add code in php block of Simple portal

Realinfo

Quote from: beanflying on August 22, 2012, 07:56:45 AM
Oops sorry for the bum steer I a heap of stuff on the go :)

That code didn't work on Simple Portal BTW.

You mean no way to put Sa chat bar in simple portal blocks

Realinfo

Load Checking
like
Enable load checking
On high load disable SA Chat
On high load disable chat list
On high load disable bar
Highest load level

are not working for we I can't "tick" any of them also can't write in "Highest load level "

SA™

Quote from: Realinfo on August 22, 2012, 09:07:30 AM
Load Checking
like
Enable load checking
On high load disable SA Chat
On high load disable chat list
On high load disable bar
Highest load level

are not working for we I can't "tick" any of them also can't write in "Highest load level "

this is not avliable on windows servers
it should say some stuff on that page in red pls look and tell me what it says?

Quote from: Realinfo on August 22, 2012, 08:44:00 AM
Quote from: SA™ on August 22, 2012, 07:49:26 AM
Quote from: Realinfo on August 21, 2012, 09:06:19 AM
Can we put bar in Block of simple Portal?
if yes
how?

im not sure i havent tryed this but you can try and use

global $context;
$context['html_headers'] .= SAChat_showBar('head');
echo SAChat_showBar('body');


in a php block?

Syntax error in block code. Please check the code.

I got this When i try to add code in php block of Simple portal

maybe this?

global $modSettings, $boardurl;

if(empty($modSettings['2sichat_theme']))
    $modSettings['2sichat_theme'] = 'default';

$saTheme = $modSettings['2sichat_theme'];

echo '<script type="text/javascript" src="'.$boardurl.'/sachat/index.php?action=head&amp;theme=',$saTheme,'"></script>';
echo '<script type="text/javascript" src="'.$boardurl.'/sachat/index.php?action=body&amp;theme=',$saTheme,'"></script>';


i have never tryed to add it to a sp block so this maybe a hit and miss i dont have a test site right now so i cant realy test these
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 -___-

Realinfo

By this global $modSettings, $boardurl;

if(empty($modSettings['2sichat_theme']))
    $modSettings['2sichat_theme'] = 'default';

$saTheme = $modSettings['2sichat_theme'];

echo '<script type="text/javascript" src="'.$boardurl.'/sachat/index.php?action=head&amp;theme=',$saTheme,'"></script>';
echo '<script type="text/javascript" src="'.$boardurl.'/sachat/index.php?action=body&amp;theme=',$saTheme,'"></script>';


SA Chat bar is started coming on Portal page.........

But it's not inside the block...........

May see at http://realinfo.tv/

Realinfo

My server is Linux
and nothing in red, but I just click on any box of Load Checking
like
Enable load checking
On high load disable SA Chat
On high load disable chat list
On high load disable bar
Highest load level

Realinfo

1. What's Main heartbeat and Chat window heartbeat?

2. What change will occur if we change its value?

SA™

#632
Quote from: Realinfo on August 22, 2012, 08:50:29 PM
1. What's Main heartbeat and Chat window heartbeat?

2. What change will occur if we change its value?

how often it fetches new messages

new beta 5 version added
fixed undefined server errors this could another possible reson for the bar not shoing on some servers
themes now can use there own body.js.php file this will help with theme making [newer theme may come with minimised feature]

on a side note the source for this mod is now avlible here
https://github.com/SAMods/SAChatBar
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 -___-

Realinfo

Can member for forum can disable it for himself............. is there any such option as some members just don't want while many others like it...............

LexusFTW

When I have the chat enabled, the scroll bar doesn't work.  If I disable it through config, the scroll bar works again.  I also have simple portal installed. IE9.

GREAT MOD BTW!!

SA™

Quote from: LexusFTW on August 23, 2012, 02:47:50 PM
When I have the chat enabled, the scroll bar doesn't work.  If I disable it through config, the scroll bar works again.  I also have simple portal installed. IE9.

GREAT MOD BTW!!

ie has always had issues with this mod i dont use ie myself cos it suks but i will install ie9 soon cos im gonna overhaul the themes

Quote from: Realinfo on August 23, 2012, 12:00:57 PM
Can member for forum can disable it for himself............. is there any such option as some members just don't want while many others like it...............

in this topic im sure there is some code todo this if not ill add this option to rc1

your find it here https://github.com/SAMods/SAChatBar before i add it to the mod site
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: SA™ on August 23, 2012, 03:18:58 PM
your find it here https://github.com/SAMods/SAChatBar before i add it to the mod site

Forked, I will be following the development.  ;D

beanflying

Nice work,

Minimized would be a great option. Either that or what about a pull down menu option off the header? Not sure how the users online would look on a big forum would be the killer if it is set to open chat rather than just buddies.

One thing if you could include it would be the Google + social media integration. It has been on my list to try and hack some of this mod http://custom.simplemachines.org/mods/index.php?mod=3103 into place to the SA Chat bar.
Owner of many many shiny toys.

Realinfo

#chat_containter{
   background: url(./images/cbar.png) repeat-x;
   padding-left: 10px;
   padding-top: 2px;
   width: 205px;
   height: 25px;
   position: fixed;
   bottom: 0px;
   right: 0px;
   text-align: left;
   z-Index: 10000;
I made change in style.css and it works in Firefox and Chrome
But IE still Bar is 100%

and tell how member can disable it for himself

SA™

Quoteand tell how member can disable it for himself

sure install the dev build
https://github.com/SAMods/SAChatBar/downloads
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: