View Single Post
Old 28.02.2005, 10:54   #5 (permalink)
MrSleep
Baby Mamber
 
Join Date: Nov 2004
Posts: 9
MrSleep is on a distinguished road
Default Re: adding an inmage/banner between content item

Find this code in components/com_content/content.php (mambo version 4.5.2.1):
Code:
if ( $leading ) {
			echo '<tr>';
			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;
				}
				echo '<div>';
				show( $rows[$i], $params, $gid, $access, $pop, $option, $ItemidCount );
				echo '</div>';
				$i++;
			}
			echo '</td>';
			echo '</tr>';
			
		}
then replace by this code:
Code:
if ( $leading ) {
			echo '<tr>';
			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;
				}
				echo '<div>';
				show( $rows[$i], $params, $gid, $access, $pop, $option, $ItemidCount );
				echo '</div>';
				$i++;
			}
			echo '<br>';
			mosLoadModules( 'banner', -1 ); // insert banners or images here
			echo '</td>';
			echo '</tr>';
			
		}
MrSleep is offline