Results 1 to 1 of 1
Hybrid View
-
13th Jan 2008, 01:33 AM #1OPMember
[TUT]Parse emoticons in comments
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', ' ' );
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 //-----------------------------------------
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', ' ' );
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 //-----------------------------------------
Lease Reviewed by Lease on . [TUT]Parse emoticons in comments 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()): if( $row{0} == '1' ) { Rating: 5Extremely helpful article about hiding your identity here
Sponsored Links
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
how to parse url?
By Cometolearn in forum Web Development AreaReplies: 7Last Post: 29th Apr 2012, 09:58 AM -
[comments.php] - disable commenting on posts/pages but show comments?
By Darlos in forum WordpressReplies: 1Last Post: 1st Mar 2012, 11:40 AM -
lighttpd parse error
By Mutikasa in forum Server ManagementReplies: 1Last Post: 15th Feb 2012, 05:20 AM -
No Parse Tag
By soft2050 in forum Feedback and SuggestionsReplies: 0Last Post: 12th Nov 2011, 08:26 AM -
Getting a parse error (OOP) PHP
By timtamboy63 in forum Web Development AreaReplies: 2Last Post: 23rd Jul 2010, 04:11 AM
themaCreator - create posts from...
Version 3.53 released. Open older version (or...