1
Welcome, Guest. Please login or register.
November 22, 2008, 09:12:28 AM
Home Help Search Login Register
News: iJoomla Search and Archive for Joomla 1.5

+  iJoomla Forum
|-+  iJoomla Magazine
| |-+  Troubleshooting
| | |-+  Quote & text align
« previous next »
Pages: [1] Print
Author Topic: Quote & text align  (Read 3265 times)
BigStef
customers
Newbie
*
Posts: 2


View Profile Email
« on: December 14, 2007, 06:08:28 PM »

i,
I'm using iJoomla Magazine here : http://www.finc.nc.
I'm using quote in text and it works well except the fact that my text is justify align and quotes are left align. This is what I want, but the text become left align where I put the quote (see image joined). Is there anything to do to avoid this ? thanks by advance...
Logged
RicardoCorai
customers
Hero Member
*
Posts: 2264


View Profile WWW
« Reply #1 on: December 17, 2007, 03:57:06 AM »

Hi BigStef,
Edit your mosmagazine.php and find this (line 312 aprox.):
Code:
function quote($text, $pos="", $class=""){
  global $mosConfig_live_site, $mosConfig_absolute_path;

$config=$mosConfig_absolute_path."/administrator/components/com_magazine/magazine.config.php";
@include( $config);
if($pos == "")
//angek: magazine-53: removed align="right" from quotes_bottom
 $pos = "left";
$html =$text.' <div class="'.$_CONFIG['css_article_quote1'].'" style="float:'.str_replace("align=","",$pos).';">
 <div class="bl"><div class="br"><div class="tl"><div class="tr">
 <img src="'.$mosConfig_live_site.'/components/com_magazine/layouts/images/quotes_top.gif" alt="Quotation" align="left">
 '.
 $text
 .' <img src="'.$mosConfig_live_site.'/components/com_magazine/layouts/images/quotes_bottom.gif" alt="Quotation">
  <br />
  </div></div></div></div>
 </div>';

return $html;
}
Change with this:
Code:
function quote($text, $pos="", $class=""){
  global $mosConfig_live_site, $mosConfig_absolute_path;

$config=$mosConfig_absolute_path."/administrator/components/com_magazine/magazine.config.php";
@include( $config);
if($pos == "")
//angek: magazine-53: removed align="right" from quotes_bottom
 $pos = "left";
$html =$text.' <div class="'.$_CONFIG['css_article_quote1'].'" style="float:'.str_replace("align=","",$pos).';">
 <div class="bl"><div class="br"><div class="tl"><div class="tr">
 <img src="'.$mosConfig_live_site.'/components/com_magazine/layouts/images/quotes_top.gif" alt="Quotation" align="left">
 <div align="justify">
 '.
 $text
 .' </div><img src="'.$mosConfig_live_site.'/components/com_magazine/layouts/images/quotes_bottom.gif" alt="Quotation">
  <br />
  </div></div></div></div>
 </div>';

return $html;
}
Save the changes and let me know if it works.
Regards,
Logged

Ricardo Corai
Moderator
www.planetacms.com
BigStef
customers
Newbie
*
Posts: 2


View Profile Email
« Reply #2 on: December 17, 2007, 11:27:10 AM »

Hi Ricardocorai,
big thanks for ansewring. :-)
The problem is still here after I have change the code (and clean my cache, never know :-))
You can see the problem on this page :
http://www.finc.nc/index.php?option=com_content&task=view&id=219&Itemid=63&ed=10
Any other suggestion ?
Have a nice day...
Logged
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