Startseite Beiträge von Heute Kalender Boardsuche Benutzerliste FAQ Deine Einstellungen ändern Neue Beiträge
Navigation
Go Back   Mambo / Joomla Hosting Talk (MHT/JHT) > Hosting Forums > Mambo/Joomla Templates & Web Design
User Name
Password
Reply
 
Thread Tools Display Modes

  #1  
Old 08-17-2005, 09:26 AM
Deaddog Deaddog is offline
Junior Member
 
Join Date: Aug 2005
Posts: 2
Default Making boxes around each leading story on front page

I'm trying to get a box around all my leading stories and am having a tough time. Here's what I have changed so far in com_content/content.php Version 4.5.2
Can this be done by using just css?

Code:
line 837 // Leading story output if ( $leading ) { echo '<tr>'; echo '<table width="100%" border="1" cellpadding="0" cellspacing="0">'; echo '<td valign="top">'; for ( $z = 0; $z < $leading; $z++ ) { if ( $i >= $total ) { // stops loop if total number of items is less than the number set to display as leading break;

This seems to work on only one leading story if I display two leading stories it makes a box around both stories together. Each story has to have a box, so I'm stuck. Please help.
I've refered to this post in the past:http://www.mambers.com/showthread.ph...=content+boxes
Reply With Quote
  #2  
Old 11-09-2006, 09:44 PM
m4rkym m4rkym is offline
Junior Member
 
Join Date: Nov 2006
Posts: 1
Default

Hi, I guess after over a year you have either sorted it out or givin up, but to help anybod else, this is how I did it in Joomla.
For a preview, look here... http://www.spanishvida.com


Hope it helps.



// Leading story output
if ( $leading ) {
echo '<tr>';
echo '<td valign="top">';
for ( $z = 0; $z < $leading; $z++ ) {
if ( $i >= ($total - $limitstart) ) {
// stops loop if total number of items is less than the number set to display as leading
break;
}
echo '<div> <table width="100%" border="4" bordercolor="#0066FF">
<tr>
<td>';
show( $rows[$i], $params, $gid, $access, $pop );
echo '</td>
</tr>
</table></div>';
$i++;
}
echo '</td>';
echo '</tr>';
}
Reply With Quote
  #3  
Old 11-10-2006, 01:04 PM
Deaddog Deaddog is offline
Junior Member
 
Join Date: Aug 2005
Posts: 2
Default

wow. Thanks for the reply. I did sort of give up on it. Now your post has giving me new hope.
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 04:57 AM.

Home . Members . FAQ . User CP . New Posts . Today's Posts . Media Kit
 
Joomla Top Sites - Your Primary Source of Joomla Traffic
Web Hosting . Mambo Tutorials . Joomla Hosting . Mambo Hosting . Joomla Top Sites . Joomla Advertising . Web Hosting Flash Tutorials . Joomla & Mambo Freelancers . Joomla Template Providers
Powered by vBulletin - Based on design by vbdesigns.de - © 2005 - 2006 by BuyHTTP Internet Services
Top Top
vRewrite 1.5 beta SEOed URLs completed by Tech Help Forum and Chalo Na.