Recent Topics

Feature request: turn off 'Visitor' 'Admin' labels on comments

Started by on Apr 29, 2014 – Contents updated: Apr 29, 2014

Apr 29, 2014 15:53    

Authors are attributed by either 'Visitor' or 'Admin' after a comment. This is sometimes not a very useful thing. I turn it off by editing two lines in the core file _comment.class.php like this:

Code

if( $this->get_author_User() )
    { // Author is a registered user:
      if( $params['after_user'] == '#' ) $params['after_user'] = ''; // this line has been edited
 
      $r = $this->author_User->get_identity_link( $params );
 
      $r = $params['before_user'].$r.$params['after_user'];
    }
    else
    { // Not a registered user, display info recorded at edit time:
      if( $params['after'] == '#' ) $params['after'] = ''; // this line has been edited
 
      if( evo_strlen( $this->author_url ) <= 10 )
      { // URL is too short anyways...
        $params['link_to'] = '';
      }

It would be nice to have this as a switchable option.


Form is loading...

powered by b2evolution free blog software – This forum is powered by b2evolution CMS, a complete engine for your website.