Fixed this. It was do to me adding the /he and /she commands like old PHPMyChat.
If anyone is interested in making the Action Command actually useful here is my code for messagesL.php which changes the format of a action so it is a real action. Since currently all the action command does is add your name and a asterisk, using the asterisk makes the name useless as asterisks denote the action already. So technically you're spending more time writing "/me" then just "*"
This version removes brackets from the user name and makes it appear in book-form, as if a block of description text.
Search for the first line of this code to apply he mod.
elseif($User == stripslashes($U))
{
# Action Mod by WASasquatch
if ( stristr($Message, '<FONT'))//Ensurewegrabthefirstpartofthemessage{$key =1;$mParts =explode('>', $Message);
}
else // Ensure we grab the first part of the message
{
$key = 0;
$mParts = preg_split('/\s+/', $Message);
}
if ( isset($mParts) && stristr($mParts[$key], '*'.$User) )
{
$User = "<aonClick=\"window.parent.userClick('".special_char($User,$Latin1,1)."',false,'".special_char($U,$Latin1,1)."');returnfalse\"title='".L_USE_NAME."'onMouseOver=\"window.status='".L_USE_NAME1."';returntrue\"CLASS=\"sender\">".$colorname_tag."<b>".special_char($User,$Latin1,0)."</b>".$colorname_endtag."</a>";
$Message = str_replace('*'.stripslashes($U), '', $Message);
}
else
{
$User = "<aonClick=\"window.parent.userClick('".special_char($User,$Latin1,1)."',false,'".special_char($U,$Latin1,1)."');returnfalse\"title='".L_USE_NAME."'onMouseOver=\"window.status='".L_USE_NAME1."';returntrue\"CLASS=\"sender\">".$colorname_tag."[".special_char($User,$Latin1,0)."]".$colorname_endtag."</a>";
}
# End Action Mod
}
The result will be something like, with the name still accessible as a link to use for whispers.
01:59:58WASusestheactioncommand
instead of the ugly
01:53:59[WAS]*WASgrowls.
Which makes no sense.
Last edit: Jordan T 2014-05-02
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Fixed this. It was do to me adding the /he and /she commands like old PHPMyChat.
If anyone is interested in making the Action Command actually useful here is my code for messagesL.php which changes the format of a action so it is a real action. Since currently all the action command does is add your name and a asterisk, using the asterisk makes the name useless as asterisks denote the action already. So technically you're spending more time writing "/me" then just "*"
This version removes brackets from the user name and makes it appear in book-form, as if a block of description text.
Search for the first line of this code to apply he mod.
The result will be something like, with the name still accessible as a link to use for whispers.
instead of the ugly
Which makes no sense.
Last edit: Jordan T 2014-05-02