Invision Community 4: SEO, prepare for v5 and dormant account notifications Matt November 11, 2024Nov 11
Posted June 24, 200717 yr This makes no sense => why is there no smily-parsing...??? :(They should only be parsed once after someone writes a new topic and get stored in database as html.
June 25, 200717 yr I read thisThey should only be parsed once after someone writes a new topic and get stored in database as html.If you are referring to the profile, it's because it's a comment, and we don't want to parse all the bbcode stuff for the comments.
June 26, 200717 yr Sources/action_public/profile.phpFind: 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: require_once( ROOT_PATH.'sources/handlers/han_parse_bbcode.php' ); $this->postlib->parser = new parse_bbcode(); $this->postlib->parser->ipsclass =& $this->ipsclass; $this->postlib->parser->parse_smilies = 1; $row['comment_content'] = $this->postlib->parser->pre_display_parse( $this->postlib->parser->pre_db_parse( $row['comment_content'] ) );Then save it.
June 27, 200717 yr They should only be parsed once after someone writes a new topic and get stored in database as html.Bad idea, it's hard to revert back to BBCode. D:
Archived
This topic is now archived and is closed to further replies.