Jump to content

  •  

  • Tutorial info Visit support topic

    • Added on: Jan 27 2009 05:02 PM
    • Date Updated: Jan 27 2009 11:23 PM
    • Views: 1626
     


    * * * * *
    1 Ratings

    BBCode & Smilies in Album Description

    Posted by Adriano Faria on Jan 27 2009 05:02 PM
    Open sources/components_public/gallery/category.php and find:

    					$showing = $this->ipsclass->DB->get_num_rows();
    
    					while( $i = $this->ipsclass->DB->fetch_row( $q ) )
    					{
    						$i['imgs_per_row'] = $cat['imgs_per_row'];
    
    						$i['img_new_post'] = ( $this->ipsclass->member['last_visit'] < $i['idate'] ) ? "<{C_ON}>" : "<{C_OFF}>";
    Change to:

    					$showing = $this->ipsclass->DB->get_num_rows();
    
    					   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_bbcode  = 1;
    					   $this->postlib->parser->parse_smilies = 1;
    
    					while( $i = $this->ipsclass->DB->fetch_row( $q ) )
    					{
    						$i['description'] = $this->postlib->parser->pre_display_parse(  $this->postlib->parser->pre_db_parse( $i['description'] ) );
    
    						$i['imgs_per_row'] = $cat['imgs_per_row'];
    
    						$i['img_new_post'] = ( $this->ipsclass->member['last_visit'] < $i['idate'] ) ? "<{C_ON}>" : "<{C_OFF}>";
    Before and after:

    Posted Image


    Powered by Tutorials 1.4.1 © 2012, by Michael McCune