News:

Wondering if this will always be free?  See why free is better.

Main Menu

NChat - No SQL Save BW shoutbox

Started by nvcnvn, April 13, 2011, 11:30:28 AM

Previous topic - Next topic

N i g h t m a r e

#420
All i need to know is, where and how do i input these commands? What File, Before, or After or Do i Completely replace something?


// command /me
$cmd_me = false;
if (substr($msg, 0, 4) == '/me ')
{
$cmd_me = true;
$msg = substr_replace($msg, '', 0, 4);
}
// "search" command
if (substr($msg, 0, 8) == '/google ')
{
$msg = substr_replace($msg, '', 0, 8);
$msg = '<b>'.$txt['tb_to_search'].' &quot;'.$msg.'&quot; '.$txt['tb_using_google'].', <a href="http://lmgtfy.com/?q='.$msg.'" target="_blank">'.$txt['tb_click_here'].'</a>.</b>';
}
// command /action
if (substr($msg, 0, 8) == '/action ')
{
$tb_action = array(
"gets smacked by",
"is 0wnd by",
"is slapped around by",
"gets beat down by",
"is stomped on by",
"is destroyed by",
"gets annihilated by",
"is given a black eye by",
"is given a fat lip by",
"loves being choked by",
"gets pummeled by",
"gets ******-slapped by",
"gets smoked by",
"gets body slammed by",
"is kicked to the curb by",
"is punked by",
"gets pwned by",
"gets humiliated by",
"gets clobbered by",
"is thrown to the mat by",
"gets a piledriver from",
"is beaten to a pulp by",
"gets knocked out by",
"gets crushed",
"is repeatedly punched by",
"is visciously mauled by",
"is shanked by",
);
$rand_keys = array_rand($tb_action, 2);
$tb_action = $tb_action[$rand_keys[0]];

$msg = substr_replace($msg, '', 0, 8);
$recip = "--><span class=\"tb_action\">* $msg";
$msg = "$recip $tb_action $name *</span></span>";
$name = "<!--$name";
}
// command /whisper
if(strlen(strstr($name.' '.$msg,$name.' /whisper'))>1)
{
$whis = 2;
// command /news
if ($user_info['is_admin'] && substr($msg, 0, 6) == '/news ')
{
global $txt;
$name = $sbot;
$msg = substr_replace($msg, '', 0, 6);
$msg = '<span class="tb_news1">'.$txt['tb_announce'].': <span class="tb_news2">'.$msg.'</span></span>';
}
// command /welcome
if (!$user_info['is_guest'] && $msg == '/welcome')
{
$name = $sbot;
$msg = str_replace('/welcome','','<span class=\"tb_welcome\">'.$txt['tb_welcome'].'</span>');
}



Alo, could you take a look at that code and see if it needs fixing?

If i can get this done i really won't have any more questions for this shoutbox thread.

Jade Elizabeth

Hey I am still having issues with the shoutbox, it keeps vanishing...can anyone please help me?

http://stackoverflow.com/questions/17737344/my-shoutbox-vanishes-on-chrome
Once proud Documentation Writer and Help Squad Leader | Check out my new adult coloring career: Color With Jade/Patreon.

Arantor

Moved to the Chat/Shoutboxes category on the mod site.

kamili34

Where I can change color of user nick. Staff have color which is set in ranks but when typical user is green on forum in chat window is grey.

Westwegoman

I get the same message.

Quotenchat/index.php is now unavailable! Please contact admin forum about this issue!

I only get the message when using Safari on an iPhone. Tested in FF on my PC and Chrome on the iPhone and it works fine.

jsx

Is some bug with banned of users when I clicking to ban one user it not banned from system but only that second, who wrote a message under him. Why it happen? Whether it is a bug from NChat or a bug from my forum? Even I uninstalled NChat and I reinstated a clear files, I installed NChat anew and this bug is appearing. I also noticed that isn't work ban when are using IE11, just can't banned a user.

mikk

#426
Quote from: Misa95 on April 05, 2012, 11:45:28 AM
Mute List Manager didn't work. Can anybody help me? Please send me PM who now how to fix it?! Thanks.

Mute List Manager doesn't work for me too...

... and auto scroll doesn't work too.

Jade Elizabeth

Once proud Documentation Writer and Help Squad Leader | Check out my new adult coloring career: Color With Jade/Patreon.

dkstest

The ./nchat/index.php is now unavailable! Please contact admin forum about this issue!

hello to everyone
i have the same message when in the address bar the site have the "www"

when missing the "www" everything is ok.

this happening in any browser

any idea?

thanks

PalPal

encountering errors after uninstalling this mod. :(

acejays98

QuoteFatal error: require_once(): Failed opening required '/home/content/06/10734706/html/trickzones/NChat/NChatBoardIndex.php' (include_path='.:/usr/local/php5_4/lib/php') in /home/content/06/10734706/html/trickzones/Themes/default/BoardIndex.template.php on line 21

this is the issue and how the problem exist when I install the Nchat plugins the error the I mention is gone and my forum index work properly but in a few seconds all members has been disconnected and the browsers says data server data sending failed sounds like that and it happens every time as long as the Nchat is installed when I uninstall it the error exist and my forum index gone!!!

I use SMF Forum version: SMF 2.0.6

Hersfeld

I just installed this Mod on my forum (2.0.8) and i would like to know if it is possible to place it under the forum and not on top of it?

br360

Quote from: Hersfeld on September 01, 2014, 04:30:28 AM
I just installed this Mod on my forum (2.0.8) and i would like to know if it is possible to place it under the forum and not on top of it?

To move it below the forum, take a look at this link- http://www.simplemachines.org/community/index.php?topic=429695.msg3403986#msg3403986

Gwenwyfar

#433
Nice mod! Works great :)
"It is impossible to communicate with one that does not wish to communicate"

Gwenwyfar

Not sure this was mentioned yet, but there's a bug with emotes that if you have two emotes with the same image, one of them will always break.

The broken code looks like this:

<img src="http://domain.com/Smileys/custom/X<img src=" http:="" domain.com="" smileys="" custom="" xxdx.gif'="">

And a suggestion as well: Would be much better if the emotes used the emotes from SMF in the same way, such as same order, not displaying hidden ones, etc, because otherwise the emotes become a mess.

(As for why you'd have two emotes with the same image: Hidden ones with a different code for old users that prefer to type it another way).
"It is impossible to communicate with one that does not wish to communicate"

Jade Elizabeth

I suggested that and no dice unfortunately. Agreed for the same reason: HUGE mess.
Once proud Documentation Writer and Help Squad Leader | Check out my new adult coloring career: Color With Jade/Patreon.

Gwenwyfar

#436
Yeah, I see someone mentioned the other bug a year back too :/

Well, I'm already planning on releasing a new version of this or making a new chat based on this later this year, if I can get this smiley issue solved I'll post the changes needed here, the bug should probably go with some bbc parsing as well (plus the other benefits :P)
"It is impossible to communicate with one that does not wish to communicate"

Jade Elizabeth

Excellent, good job :D.

There seems to be a shortage of secure and working shoutboxes lately.
Once proud Documentation Writer and Help Squad Leader | Check out my new adult coloring career: Color With Jade/Patreon.

Gwenwyfar

Yeah, was troublesome to find a good one. The first one I chose and adjusted, and as I found later, many others, have a crucial problem with the messages (they don't update if more than one window is open with the chat). This one is great on this aspect, at least, and the way it updates the messages.

I will probably make my own from scratch later on, but I'm not that advanced yet, so for now I'll just use the functioning of this one as a base and add some nice stuff in it :)
"It is impossible to communicate with one that does not wish to communicate"

Jade Elizabeth

Mine doesn't even show if you're logged in. It's this one. No one knows why! It's a mystery ha ha.
http://stackoverflow.com/questions/17737344/my-shoutbox-vanishes-on-chrome
Once proud Documentation Writer and Help Squad Leader | Check out my new adult coloring career: Color With Jade/Patreon.

Advertisement: