Fabian169 Posted June 24, 2007 Share 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. Link to comment Share on other sites More sharing options...
bfarber Posted June 25, 2007 Share Posted June 25, 2007 Smileys are parsed... Link to comment Share on other sites More sharing options...
.Timmy Posted June 25, 2007 Share Posted June 25, 2007 Smileys are parsed... No, they're not in comments. Link to comment Share on other sites More sharing options...
bfarber Posted June 25, 2007 Share 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. Link to comment Share on other sites More sharing options...
Fabian169 Posted June 26, 2007 Share Posted June 26, 2007 sorry, i meant like in subject "after someone writes a new comment" :/I don Link to comment Share on other sites More sharing options...
Alex Posted June 26, 2007 Share 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. Link to comment Share on other sites More sharing options...
Fabian169 Posted June 26, 2007 Share Posted June 26, 2007 awesome, thank you! Link to comment Share on other sites More sharing options...
Strange_Will Posted June 27, 2007 Share 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: Link to comment Share on other sites More sharing options...
Fabian169 Posted June 27, 2007 Share Posted June 27, 2007 Bad idea, it's hard to revert back to BBCode. D:There Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.