Members: 16,800
Threads: 38,937
Posts: 160,303
Online: 259

Newest Member: janoosik


Odoo.tv - Outdoor Television


Sedo - Domains kaufen und verkaufen das Projekt mambers.com steht zum Verkauf Besucherstatistiken von mambers.com etracker® Web-Controlling statt Logfile-Analyse

Go Back   Mambers.com > Archive > Mambo 4.5 > Mambo 4.5 'How Do I' Questions

 
 
LinkBack Thread Tools Display Modes
Old 22.02.2005, 17:22   #1 (permalink)
Junior Mamber
 
scorplev's Avatar
 
Join Date: Apr 2004
Posts: 42
scorplev is on a distinguished road
Default adding an image/banner between content item

is there a way to place an image or a banner between content items in the frontpage like so:

Content Title
content content content content content
content content content content content
content content content content content
content content content content content
Read more...

>>Banner / Image here<<

Content Title
content content content content content
content content content content content
content content content content content
content content content content content
Read more...
__________________
Personal web site:
www.akrav.org

Last edited by scorplev : 28.02.2005 at 10:12.
scorplev is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Sponsored Links
Old 23.02.2005, 18:08   #2 (permalink)
Junior Mamber
 
scorplev's Avatar
 
Join Date: Apr 2004
Posts: 42
scorplev is on a distinguished road
Default Re: adding an inmage/banner between content item

Please, This is very important!!!!
__________________
Personal web site:
www.akrav.org
scorplev is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old 27.02.2005, 11:34   #3 (permalink)
Fed
Junior Mamber
 
Join Date: Feb 2005
Location: Italy - Pistoia
Posts: 49
Fed is on a distinguished road
Default Re: adding an inmage/banner between content item

you could insert an image just by the html code of the content

for a banner I think you should make 3 sections, a content section on the top, a banner and then another content section (but maybe there's a simpler way....)
Fed is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old 28.02.2005, 10:11   #4 (permalink)
Junior Mamber
 
scorplev's Avatar
 
Join Date: Apr 2004
Posts: 42
scorplev is on a distinguished road
Default Re: adding an inmage/banner between content item

Quote:
Originally Posted by Fed
you could insert an image just by the html code of the content

for a banner I think you should make 3 sections, a content section on the top, a banner and then another content section (but maybe there's a simpler way....)
Thanks but your first option is not what i'm looking for.
It will only give me a way to place an image into the article's body and not between 2 content "Previews" i think.

maybe your second option will suit.
but i don't know how to implement this.

in the template's index.php there is a line to include the content:
<?php include ("mainbody.php"); ?>

will i have to include other file/s for every different section and beween those "includes" i'll put my banner/image?

if not, how do i do that exactly?
__________________
Personal web site:
www.akrav.org
scorplev is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old 28.02.2005, 10:54   #5 (permalink)
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  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old 28.02.2005, 12:40   #6 (permalink)
Baby Mamber
 
Join Date: Jan 2005
Posts: 5
huub is on a distinguished road
Default Re: adding an inmage/banner between content item

Perhaps mosbanner is an option/solution for you. You can find it at http://www.tobbworld.de (under Downloads/Mambo).

Good luck.
huub is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
 


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
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Next "bug team" bug release appro. date? DevServe Mambo 4.5.1 General Talk 11 05.02.2005 04:12
How to link preview text to the the full story ? scorplev Mambo 4.5 'How Do I' Questions 5 15.09.2004 04:50
Content Structuring Basics for Newbies, MOS 4.5 mamster Mambo 4.5 'How Do I' Questions 9 01.09.2004 04:18
Adding a content item to more than one section/category? mdaniels Mambo 4.5 'How Do I' Questions 0 08.06.2004 17:46


All times are GMT +2. The time now is 00:16.

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.1.0
A vBSkinworks Design
© Copyright 2004-2008 by Arthur Konze Webdesign.