Members: 16,996
Threads: 38,846
Posts: 159,391
Online: 15

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 10.06.2005, 12:39   #1 (permalink)
Junior Mamber
 
Join Date: May 2005
Posts: 36
greatvai is on a distinguished road
Default modulo per gestire notizie brevi

Mi servirebbe un modulo per gestire notizie brevi, più che altro dei trafiletti di poche righe, mettendo i titoli in home page da cui, cliccando, si possa accedere al testo della notizia.
Usando il modulo LATEST NEWS ENHANCED mi da un errore che non riesco a risolvere, mentre del modulo standard di mambo 4.5.2 non ci capisco granchè (il php e mambo sono a me sconosciuti).
Qualcuno saprebbe indicarmi un modulo che mi permetta di mettere news in home page in modo chiaro e senza grossi problemi?

Grazie...
greatvai is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
Old 10.06.2005, 20:33   #2 (permalink)
Senior Mamber
 
k0rs4r0's Avatar
 
Join Date: Mar 2005
Location: napoli
Posts: 241
k0rs4r0 will become famous soon enough
Default Re: modulo per gestire notizie brevi

io ho trovato questo non ricordo dove.. te lo allego. Devi sostituirlo al modulo latest news. Oltre al titolo ti appaiono un paio di righe introduttive. E' assai bellino

E queste sono le istruzioni:
Quote:

modified latest news module by mambosolutions January 2004
************************************************** ********

disclaimer:

I offer no warranty or support for this script, use at your own risk.

************************************************** ********

This hack displays the latest news with linked titles, the first few words of the intro text and a 'Read More...' link.

Simply backup the orginal mod_latest_news.php and use this one instead.

also:

To limit Latest News to a certain category, edit the module and in the parameters section enter catid=x where x is the number of the category you want. You can also contol the number of items listed by using count=n in where n is the number of items you want.
A me funziona.. però non ricordo se l'ho modificato. Prova
__________________
---->miniDesign
---->Mambo Chat
k0rs4r0 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 13.06.2005, 12:13   #3 (permalink)
Junior Mamber
 
Join Date: May 2005
Posts: 36
greatvai is on a distinguished road
Default Re: modulo per gestire notizie brevi

Ti ringrazio, probabilmente sbaglio qualcosa perchè non me lo fa nemmeno installare...devo considerarlo come un modulo?
greatvai is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 13.06.2005, 15:01   #4 (permalink)
Junior Mamber
 
Join Date: May 2005
Posts: 36
greatvai is on a distinguished road
Default Re: modulo per gestire notizie brevi

Niente da fare, ho provato a fare esattamente come dice lui, ma non mi visualizza nessun cambiamento....
greatvai is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 17.06.2005, 22:04   #5 (permalink)
gin
Elite Mamber
 
gin's Avatar
 
Join Date: Sep 2004
Location: Reggio Calabria (Italy)
Posts: 1,990
gin has a spectacular aura about
Default Riferimento: Re: modulo per gestire notizie brevi

Quote:
Originally Posted by greatvai
non me lo fa nemmeno installare...devo considerarlo come un modulo?
Infatti non si installa!
Nelle istruzioni che ti ha indicato k0rs4r0 si legge:
Quote:
Simply backup the orginal mod_latest_news.php and use this one instead.
ossia devi semplicemente rimpiazzare il file mod_latest_news.php che trovi dentro il tuo file compresso all'interno della cartella modules del tuo sito.
Fammi sapere se hai risolto.

Ciao,
Giorgio
__________________

gin is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 18.06.2005, 16:44   #6 (permalink)
Senior Mamber
 
k0rs4r0's Avatar
 
Join Date: Mar 2005
Location: napoli
Posts: 241
k0rs4r0 will become famous soon enough
Default Re: modulo per gestire notizie brevi

Greatvai,
a me funziona perfettamente sulla 4.5.2

Faccio copia-incolla dal file che ho sul server
Code:
<?php
// $Id: mod_latestnews.php,v 1.14 2003/12/17 22:22:39 eddieajau Exp $
/**
* Latest News Module
* @package Mambo Open Source
* @Copyright (C) 2000 - 2003 Miro International Pty Ltd
* @ All rights reserved
* @ Mambo Open Source is Free Software
* @ Released under GNU/GPL License : http://www.gnu.org/copyleft/gpl.html
* @version $Revision: 1.14 $
* modifiaction by John Lyons info@mambosolutions.com / added read more link+ intro text
**/

defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' );

global $mosConfig_offset;

$count = @$params->count ? intval( $params->count ) : 5;
$catid = @$params->catid ? intval( $params->catid ) : 0;

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

// set up the query, the '#__' is converted into the table prefix
// set all content items:
// - not on the front page :: mask=0
// - pubslished :: state=1
// - checked out :: checked_out = 0
// - not in a menu :: sectionid > 0
// - between the publish_up and publish_down dates

$query = "SELECT f.content_id, a.id, a.title, a.sectionid, a.catid, a.introtext"
   . "\nFROM #__content AS a"
   . "\nLEFT JOIN #__content_frontpage AS f ON f.content_id = a.id"
   . "\nWHERE (f.content_id IS NULL AND 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='$catid'" : '')
   . "\nORDER BY a.created DESC LIMIT $count";
// initialise the query in the $database connector
// this translates the '#__' prefix into the real database prefix

$database->setQuery( $query );

// retrieve the list of returned records as an array of objects

$rows = $database->loadObjectList();

// cycle through the returned rows displaying them in a table
// with links to the content item
// escaping in and out of php is now permitted
// added Itemid linking to url
?>
<table cellpadding="1" cellspacing="1" border="0">

<?php foreach ($rows as $row) {
// limit output to 16 characters and strip tags hack *added by John Lyons 2003
$row->introtext = strip_tags($row->introtext);      //get rid of ALL tags
$str_array = explode(' ', ($row->introtext), 17);
$size = count($str_array);
while ($size > 16)
{
      $size--;
      array_pop($str_array);
}
$outstr = implode(' ', $str_array);
//END  limit output to 16 characters and strip tags



?>
   <tr>
      <td valign="top"><img src="<?php echo $mosConfig_live_site;?>/images/M_images/arrow.png" alt="" /></td>
      <td><a href="<?php echo sefRelToAbs("index.php?option=content&amp;task=view&amp;id=$row->id"); ?>"><?php echo $row->title ?></a><br><?php echo $outstr;  ?><br><a href="<?php echo sefRelToAbs("index.php?option=content&amp;task=view&amp;id=$row->id"); ?>"><b>Read More...</b></a><br></td>
   </tr>
<?php
}
?>
</table>
__________________
---->miniDesign
---->Mambo Chat
k0rs4r0 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
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

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
Nuovo modulo notizie ADNKRONOS Alikon Moduli 6 17.05.2005 11:41
Mancato caricamento del modulo mod_rewrite marcopb Problematiche generali 4 21.04.2005 13:55
Modulo cerca e Ultime notizie marco4000 Moduli 3 21.03.2005 01:30
Modulo notizie dalla Gazzetta dello Sport Alikon Annunci 3 16.09.2004 14:51
Novo Módulo - World Time(Horas no Mundo) setup Anúncios 2 20.07.2004 11:45


All times are GMT +2. The time now is 04: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.