Invision Community 4: SEO, prepare for v5 and dormant account notifications By Matt November 11, 2024
Fabian169 Posted June 24, 2007 Posted June 24, 2007 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.
bfarber Posted June 25, 2007 Posted June 25, 2007 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.
Fabian169 Posted June 26, 2007 Posted June 26, 2007 sorry, i meant like in subject "after someone writes a new comment" :/I don
Alex Posted June 26, 2007 Posted June 26, 2007 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.
Strange_Will Posted June 27, 2007 Posted June 27, 2007 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:
Fabian169 Posted June 27, 2007 Posted June 27, 2007 Bad idea, it's hard to revert back to BBCode. D:There
Recommended Posts
Archived
This topic is now archived and is closed to further replies.