Joomla! Discussion Forums



It is currently Thu Nov 26, 2009 3:48 pm (All times are UTC )

 


Forum rules

Please submit all new Tips and Tricks to: http://docs.joomla.org/Category:Tips_and_tricks



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
and

respectively). In the opening paragraph tag add
Code:
class="publishedsection" style="white-space: normal; overflow: hidden; text-align: left; line-height:2em;"
or whatever other layout style you feel is best. Then replace every cell tag () by this:
Code:
</span> 


Now your mXcomment links or buttons will have a line break just like the rest of your content in a narrow space, and where you have set mXcomment to display links instead of buttons the links will have the style already built into mXcomment.

Sorry for not simply posting the old and new code; I do not want to affront the very kind developer of mXcomment.

Don't forget to first backup the original code!
_________________
www.joomlaloft.com - my joomla stuff attic


Author Message
Posted: Wed Oct 17, 2007 8:55 am 
Joomla! Explorer
Joomla! Explorer
Offline

Joined: Mon Oct 01, 2007 11:35 am
Posts: 477
) tags with a paragraph (

) tag, and likewise for the closing tags (

This post concerns the issue of content going out of the usual content box width and flowing under the 'left' or 'right' column in (i) templates with narrow width, (ii) 2 content columns, (iii) both a 'left' and a 'right' column, and (iv) mXcomment installed.

This issue can be solved by tackling each of the circumstances (i) to (iv), for example by using a fluid width or wide fixed width template, by reverting to one content column, or by (possibly conditionally) removing the 'left' or 'right' column, but for those who like me insist in having all in all four columns in a narrow space the solution is to change the mXcomment template. Switching off mXcomment would not be a solution for me because it is far too great an extension to do without.

mXcomment comes with three templates. In each of these there is a file "intro.php". In these files the last nested table contains the buttons or links for reviews, comments, rating, related, read more, etc. Because these buttons or links are in a table of one row, the 'line' cannot break when space runs out. Therefore the row continues and pushes the right side of the content box outside of its normal boundaries. To solve this is a matter of converting that table to a paragraph.

This is done by replacing the opening table () and row (
) by a span style tag as follws:
Code:
<span class="publishedsection" style="page-break-inside:avoid;">
Finally, replace every cell closing tag (
Top
  E-mail  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

Quick reply

 



Who is online

Users browsing this forum: generationx, Google Adsense [Bot] and 5 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group