Members: 16,996
Threads: 38,866
Posts: 159,475
Online: 43

Newest Member: Kl_broka@rediffmail.com


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
Old 05.02.2005, 13:20   #1 (permalink)
Senior Mamber
 
hansy51's Avatar
 
Join Date: Apr 2004
Posts: 177
hansy51 is on a distinguished road
Default problem with latest news with images module

hello

I need some help with the latest news with images module. I made it work and it looks fine on firefox but on ie it looks crappy. What should I change that it looks maybe like like on this page ! this is how it should look like

here is how it looks like on my page
http://www.noisenation.pagenburg.de/cms/index.php

How is it possible that it does not look like a list ! So that the title of the content is under the image and in center position ?

Here also the code of the php file
Quote:
<?php
/**
* @version $Id: mod_latestnews.php,v 1.16 2004/09/14 14:20:43 stingrey Exp $
* @package Mambo_4.5.1
* @copyright (C) 2000 - 2004 Miro International Pty Ltd
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL
* Mambo is Free Software
* Modified to display first image in images field of item
* Christian Meichtry (drcorbeille) chris@mambosphere.com
*/

/** ensure this file is being included by a parent file */
defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' );

global $mosConfig_offset, $mosConfig_live_site, $mainframe;

$count = intval( $params->get( 'count', 5 ) );
$catid = trim( $params->get( 'catid' ) );
$secid = trim( $params->get( 'secid' ) );
$show_front = $params->get( 'show_front', 1 );
$moduleclass_sfx = $params->get( 'moduleclass_sfx' );

$imageWidth = intval($params->get('imageWidth', 0)) ;

$now = date( 'Y-m-d H:i:s', time()+$mosConfig_offset*60*60 );

$query = "SELECT a.id, a.title, a.sectionid, a.catid, a.images"
. "\n FROM #__content AS a"
. "\n LEFT JOIN #__content_frontpage AS f ON f.content_id = a.id"
. "\n WHERE ( a.state = '1' AND a.checked_out = '0' AND a.sectionid > '0' )"
. "\n AND ( a.publish_up = '0000-00-00 00:00:00' OR a.publish_up <= '". $now ."' )"
. "\n AND ( a.publish_down = '0000-00-00 00:00:00' OR a.publish_down >= '". $now ."' )"
. ( $catid ? "\n AND ( a.catid IN (". $catid .") )" : '' )
. ( $secid ? "\n AND ( a.sectionid IN (". $secid .") )" : '' )
. ( $show_front == "0" ? "\n AND f.content_id IS NULL" : '' )
. "\n ORDER BY a.created DESC LIMIT $count"
;
$database->setQuery( $query );
$rows = $database->loadObjectList();

// needed to reduce queries used by getItemid
$bs = $mainframe->getBlogSectionCount();
$bc = $mainframe->getBlogCategoryCount();
$gbs = $mainframe->getGlobalBlogSectionCount();

// Output
echo '<ul style="list-style-type:none">';
foreach ( $rows as $row ) {
// get Itemid
$Itemid = $mainframe->getItemid( $row->id, 0, 0, $bs, $bc, $gbs );
// Blank itemid checker for SEF
if ($Itemid == NULL) {

$Itemid = '';
} else {
$Itemid = '&amp;Itemid='. $Itemid;
}

if ($row->images)
{
$width = ($imageWidth > 0) ? ' width="'.$imageWidth.'"' : '' ;
$image = explode("|", $row->images) ;

echo '<a href="'. sefRelToAbs( 'index.php?option=com_content&amp;task=view&amp;id ='. $row->id . $Itemid ) .'"><img src="'.$mosConfig_live_site.'/images/stories/'.$image[0].'" align="center" alt="'.$image[2].'" border="0"'.$width.'/><br>' .$row->title.'</a><br>';
}
else
echo '<li><a href="'. sefRelToAbs( 'index.php?option=com_content&amp;task=view&amp;id ='. $row->id . $Itemid ) .'">'. $row->title .'</a></li>';

}
echo '</ul>';
?>
Thx in advance !

cya
__________________
www.bier-bbg.de

Das etwas andere Bierportal !

Last edited by hansy51; 05.02.2005 at 16:24.
hansy51 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
Old 05.02.2005, 16:25   #2 (permalink)
Senior Mamber
 
hansy51's Avatar
 
Join Date: Apr 2004
Posts: 177
hansy51 is on a distinguished road
Default Re: problem with latest news with images module

okay now I solved the problem that it looked crappy on ie ! But I still want, that the picture and the text is centeres in the module how can i solve this

greetz
__________________
www.bier-bbg.de

Das etwas andere Bierportal !
hansy51 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

BB 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
Ordering Display Latest news module jakob Mambo 4.5 'How Do I' Questions 5 03.04.2006 01:14
Latest news module problem subnet_rx Module 'How Do I' Questions 2 02.12.2004 19:00
Latest news module weavers Mambo 4.5 General Talk 2 25.06.2004 09:10
Latest news 1-2 module properties mambomaster Module 'How Do I' Questions 5 10.06.2004 19:59
Latest News Extended 1-1 Module -> Setting Parameters bjoern Module 'How Do I' Questions 4 28.04.2004 15:26


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

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