Welcome, Guest. Please login or register.
September 07, 2008, 11:17:40 AM
Home Help Search Login Register
News: New DigiStore Versions for Joomla 1.0 and 1.5

+  iJoomla Forum
|-+  iJoomla News Portal
| |-+  Support Questions
| | |-+  Title before picture
« previous next »
Pages: [1] Print
Author Topic: Title before picture  (Read 243 times)
GustyArte
Newbie
*
Posts: 1


View Profile Email
« 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
« Last Edit: May 12, 2008, 10:09:46 AM by GustyArte » Logged
RicardoCorai
customers
Hero Member
*
Posts: 1856


View Profile WWW
« Reply #1 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
$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>';
}
}
Replace for this:
Code:
//create html table for layout
$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>';
}
}
Save the changes and let me know how works.
Best regards,
Logged

Ricardo Corai
Moderator
www.planetacms.com
Pages: [1] Print 
« previous next »
Jump to:  


Login with username, password and session length

Powered by SMF 1.1.2 | SMF © 2006-2007, Simple Machines LLC
Joomla Bridge by JoomlaHacks.com
Theme Globe by Eponnox