In IP.Board 2.2+, a feature was added that allowed you to comment on other members' profiles. However (for some reason or another) they decided not to parse smilies in the comments. This quick addition will allow them to be parsed in comments and in the sidebar.



Open sources/action_public/profile.php

Find (in function personal_iframe_comments()):

Code:
            if( $row['login_anonymous']{0} == '1' )
            {
                // Member last logged in anonymous
                
                if( $this->ipsclass->member['mgroup'] != $this->ipsclass->vars['admin_group'] OR $this->ipsclass->vars['disable_admin_anon'] )
                {
                    $row['_last_active'] = $this->ipsclass->lang['private'];
                }
            }

            $row['comment_content'] = $this->ipsclass->txt_wordwrap( $row['comment_content'], '19', ' ' );
Add below:

Code:
            //-----------------------------------------
            // Parse smilies in comments START
            //-----------------------------------------

            $parser = $this->ipsclass->load_class( ROOT_PATH.'sources/handlers/han_parse_bbcode.php', 'parse_bbcode' );
            $parser->parse_smilies  = 1;
            
            $row['comment_content'] = $parser->pre_display_parse( $parser->pre_db_parse( $row['comment_content'] ) );

            //-----------------------------------------
            // Parse smilies in comments END
            //-----------------------------------------
Find (in function personal_build_comments( $member, $new_id=0, $return_msg='' )):

Code:
            if( $row['login_anonymous']{0} == '1' )
            {
                // Member last logged in anonymous
                
                if( $this->ipsclass->member['mgroup'] != $this->ipsclass->vars['admin_group'] OR $this->ipsclass->vars['disable_admin_anon'] )
                {
                    $row['_last_active'] = $this->ipsclass->lang['private'];
                }
            }

            $row['comment_content'] = $this->ipsclass->txt_wordwrap( $row['comment_content'], '19', ' ' );
Add below:

Code:
            //-----------------------------------------
            // Parse smilies in comments START
            //-----------------------------------------

            $parser = $this->ipsclass->load_class( ROOT_PATH.'sources/handlers/han_parse_bbcode.php', 'parse_bbcode' );
            $parser->parse_smilies  = 1;                    
            
            $row['comment_content'] = $parser->pre_display_parse( $parser->pre_db_parse( $row['comment_content'] ) );

            //-----------------------------------------
            // Parse smilies in comments END
            //-----------------------------------------
Then save and reupload the file.