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

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

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

 
 
LinkBack Thread Tools Display Modes
Old 18.04.2004, 08:56   #1 (permalink)
Baby Mamber
 
Peter's Avatar
 
Join Date: Apr 2004
Location: Roosendaal - Netherlands
Posts: 17
Peter is on a distinguished road
Send a message via ICQ to Peter Send a message via MSN to Peter
Default Archive -> Not all published items are visible

I have put 47 news-items in the archive but it shows only 12 items, what must I chance to see the whole archive.

I have tried in:



Code:

<?php
// $Id: mod_archive.php,v 1.9 2004/04/07 11:56:03 rcastley Exp $
/**
* Archive 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.9 $
**/

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

global $mosConfig_offset;

$count = @$params->count ? intval( $params->count ) : 10;

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

$query = "SELECT MONTH(created) AS created_month, created, id, sectionid, title, YEAR(created) AS created_year

FROM #__content"
. "\nWHERE (state='-1' AND checked_out='0' AND sectionid > '0')"
. "\nGROUP BY created_year DESC, created_month DESC LIMIT $count";
$database->setQuery( $query );
$rows = $database->loadObjectList();

?>
<table cellpadding="1" cellspacing="1" border="0">
<?php foreach ($rows as $row) {
$arrDateTime = explode(" ", $row->created);
$arrDate = explode("-", $arrDateTime[0]);
$arrTime = explode(":", $arrDateTime[1]);
$created_month = strftime ("%m", mktime

($arrTime[0],$arrTime[1],$arrTime[2],$arrDate[1],$arrDate[2],$arrDate[0]) + $mosConfig_offset*60*60);
$month_name = strftime ("%B", mktime

($arrTime[0],$arrTime[1],$arrTime[2],$arrDate[1],$arrDate[2],$arrDate[0]) + $mosConfig_offset*60*60);
$created_year = strftime ("%Y", mktime

($arrTime[0],$arrTime[1],$arrTime[2],$arrDate[1],$arrDate[2],$arrDate[0]) + $mosConfig_offset*60*60);
?>
<tr>
<td valign="top"><img src="<?php echo $mosConfig_live_site;?>/images/M_images/arrow.png" alt=""

/></td>
<td><a href="index.php?option=content&task=archivecategor y&year=<?php echo

$created_year;?>&month=<?php echo $created_month;?>"><?php echo $month_name;?>, <?php echo

$created_year;?></a></td>
</tr>
<?php
}
?>
</table>



I have tried to chance the following rule:

$count = @$params->count ? intval( $params->count ) : 10;

in:

$count = @$params->count ? intval( $params->count ) : 100;

But that didn't work.
__________________
Linux-Gebruikers klik hier
Peter is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Sponsored Links
Old 19.04.2004, 10:01   #2 (permalink)
Expert Mamber
 
visualdensity's Avatar
 
Join Date: Apr 2004
Location: Melbourne
Posts: 385
visualdensity is on a distinguished road
Send a message via ICQ to visualdensity Send a message via MSN to visualdensity
Default Re: Archive

Quote:
$count = @$params->count ? intval( $params->count ) : 10;

in:

$count = @$params->count ? intval( $params->count ) : 100;

But that didn't work.
Hmm... that should work. Strange... are you sure you have all 47 news published?
__________________
"If you cannot win, make the one ahead of you break the record."
| Visualdensity.com |
visualdensity is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old 19.04.2004, 18:37   #3 (permalink)
Baby Mamber
 
Peter's Avatar
 
Join Date: Apr 2004
Location: Roosendaal - Netherlands
Posts: 17
Peter is on a distinguished road
Send a message via ICQ to Peter Send a message via MSN to Peter
Default Re: Archive

Yes, they are all published and then I put them to the Archive
__________________
Linux-Gebruikers klik hier
Peter is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old 20.04.2004, 18:38   #4 (permalink)
Baby Mamber
 
Peter's Avatar
 
Join Date: Apr 2004
Location: Roosendaal - Netherlands
Posts: 17
Peter is on a distinguished road
Send a message via ICQ to Peter Send a message via MSN to Peter
Default Re: Archive -> Not all published items are visible

Nobody else any idea
__________________
Linux-Gebruikers klik hier
Peter is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old 22.06.2004, 17:37   #5 (permalink)
Junior Mamber
 
noobnuggets's Avatar
 
Join Date: Apr 2004
Location: North Carolina, USA
Posts: 45
noobnuggets is on a distinguished road
Default Re: Archive -> Not all published items are visible

Hello,

I do not know if you are still watching this thread, but here goes anyhow.

You can show more archived articles by modifying the settings of the frontpage component. In the admin backend go Components > Front Page > Settings > Parameters. Set the count to the number of archived articles you want to see. The intro parameter will specify how many archive articles are shown completely, and the rest will be displayed as a linked title. My only problem is that users(even registered users) cannot view any of the linked archive articles. It alwasy says that you are unauthorized to view this resource.

I hope this helps you out.
noobnuggets is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old 21.07.2004, 22:49   #6 (permalink)
Baby Mamber
 
Join Date: May 2004
Posts: 10
atibullus is on a distinguished road
Default Re: Archive -> Not all published items are visible

Hello:
I have been looking for a solution to the Archive problem all over the forum, but nothing works.
Please help!!
I have almost 50 items in the archive for the month of July, but when I click on the month of July, I get to see 3 articles with pictures and text, and three titles linking to the whole text. Where are the other 40 something items?
I have tried the solution above, but it does not work.
I would appreciate your help.
Please let me know if you need more information about my system, etc.
Thank you!
atibullus is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old 10.11.2004, 15:01   #7 (permalink)
Baby Mamber
 
Join Date: Nov 2004
Posts: 1
myro is on a distinguished road
Default Re: Archive -> Not all published items are visible

Hi!
I hope it is not to late for hint about this problem.
BTW, sory for my bad english, i'm from Croatia...

About the news archive problem...

Open the /components/com_content/content.html.php
Go to the line 416 and change:

$n = min( count( $rows ), $limit );

into:

$n = max( count( $rows ), $limit );

Iz works fine for me (had the same problem, and now after three top news I can see all other archieved news/links).

I hope it will works...
myro 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

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
Archiving YaNC mailings khiotis Component Development 9 19.06.2004 01:06
Sorting archive module by date tafkar Module 'How Do I' Questions 0 15.04.2004 04:03
How do i automate the archive process caspern Mambo 4.5 'How Do I' Questions 1 14.04.2004 16:37


All times are GMT +2. The time now is 06:03.

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.