#93 Bold tag in action commands

1.94
pending
1
2014-08-16
2014-05-01
Jordan T
No

When using the /me command you cannot use something like

/me <b>bold text</b>

the result will be

<b>bold text

while Italics, and Underline works fine.

Discussion

  • Jordan T
    Jordan T
    2014-05-02

    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') ) // Ensure we grab the first part of the message
                {
                    $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 = "<a onClick=\"window.parent.userClick('".special_char($User,$Latin1,1)."',false,'".special_char($U,$Latin1,1)."'); return false\" title='".L_USE_NAME."' onMouseOver=\"window.status='".L_USE_NAME1."'; return true\" CLASS=\"sender\">".$colorname_tag."<b>".special_char($User,$Latin1,0)."</b>".$colorname_endtag."</a>";
                    $Message = str_replace('*'.stripslashes($U), '', $Message);
                } 
                else 
                {
                    $User = "<a onClick=\"window.parent.userClick('".special_char($User,$Latin1,1)."',false,'".special_char($U,$Latin1,1)."'); return false\" title='".L_USE_NAME."' onMouseOver=\"window.status='".L_USE_NAME1."'; return true\" 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:58 WAS uses the action command
    

    instead of the ugly

    01:53:59 [WAS] *WAS growls.
    

    Which makes no sense.

     
    Last edit: Jordan T 2014-05-02


Anonymous


Cancel   Add attachments