|
Title: Title before picture Post by: GustyArte on May 12, 2008, 10:00:41 AM Hello, greetings to all the excellent forum.
Excuse my English, I hope to improve. My question is: how do for the title before the image? I want it to be Title - Image - Introduction. I have set: vertical orientation of the article, focused image Thank you Sorry, can move to Ijoomla News Portal, my error to create the topic Title: Re: Title before picture Post by: RicardoCorai on May 13, 2008, 04:13:03 PM Try with this:
Find this code on your news_portal.html.php (line 1050 - 1089 aprox) Code: //create html table for layout Replace for this:$image = '<table cellspacing="0" cellpadding="0" border="0" width="100%" style="vertical-align:top;">'; if ($img_url!='') { if("" == $zone_settings['use_class_image']){ //show image with admin settings $image.=' <tr> <td style="vertical-align:top;" width="100%"> <div align="'.$image_alignment.'"><a href="'.HTML_ijoomla_news::sef_url($read_link,$content['link_url']).'" '.$target_link.'><img src="'.$img_url.'" alt="'.$content['title'].'" class="top_image" align="'.$image_alignment.'" '.$width_th.' '.$height_th.'/></a></div> </td> </tr>'; }else{ //show image with css settings $image.=' <tr> <td style="vertical-align:top;" class="'.$zone_settings['use_class_image'].'"> <div><a href="'.HTML_ijoomla_news::sef_url($read_link,$content['link_url']).'" '.$target_link.'><img src="'.$img_url.'"></a></div> </td> </tr>'; } } if ($title != '') { if("" == $zone_settings['use_class_title']){ //show title with admin settings $image.=' <tr> <td style="vertical-align:top;" width="100%" id="top_title"> <div>'.$bullets_start.'<a href="'.HTML_ijoomla_news::sef_url($read_link,$content['link_url']).'" '.$target_link.'>'.$title.'</a>'.$bullets_end.'</div> </td> </tr>'; }else{ //show title with class settings $image.=' <tr> <td style="vertical-align:top;" class="'.$zone_settings['use_class_title'].'"> <div><a href="'.HTML_ijoomla_news::sef_url($read_link,$content['link_url']).'" '.$target_link.'>'.$title.'</a></div> </td> </tr>'; } } Code: //create html table for layout Save the changes and let me know how works.$image = '<table cellspacing="0" cellpadding="0" border="0" width="100%" style="vertical-align:top;">'; if ($title != '') { if("" == $zone_settings['use_class_title']){ //show title with admin settings $image.=' <tr> <td style="vertical-align:top;" width="100%" id="top_title"> <div>'.$bullets_start.'<a href="'.HTML_ijoomla_news::sef_url($read_link,$content['link_url']).'" '.$target_link.'>'.$title.'</a>'.$bullets_end.'</div> </td> </tr>'; }else{ //show title with class settings $image.=' <tr> <td style="vertical-align:top;" class="'.$zone_settings['use_class_title'].'"> <div><a href="'.HTML_ijoomla_news::sef_url($read_link,$content['link_url']).'" '.$target_link.'>'.$title.'</a></div> </td> </tr>'; } } if ($img_url!='') { if("" == $zone_settings['use_class_image']){ //show image with admin settings $image.=' <tr> <td style="vertical-align:top;" width="100%"> <div align="'.$image_alignment.'"><a href="'.HTML_ijoomla_news::sef_url($read_link,$content['link_url']).'" '.$target_link.'><img src="'.$img_url.'" alt="'.$content['title'].'" class="top_image" align="'.$image_alignment.'" '.$width_th.' '.$height_th.'/></a></div> </td> </tr>'; }else{ //show image with css settings $image.=' <tr> <td style="vertical-align:top;" class="'.$zone_settings['use_class_image'].'"> <div><a href="'.HTML_ijoomla_news::sef_url($read_link,$content['link_url']).'" '.$target_link.'><img src="'.$img_url.'"></a></div> </td> </tr>'; } } Best regards,
Powered by SMF 1.1.2 |
SMF © 2006-2007, Simple Machines LLC
Joomla Bridge by JoomlaHacks.com |