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

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 13.07.2004, 14:02   #1 (permalink)
Mamber
 
hkclubbing's Avatar
 
Join Date: Jun 2004
Location: Hong Kong
Posts: 77
hkclubbing is on a distinguished road
Default Accombo Catergories only allows 10 records

Accombo Catergories only allows 10 records

When I add records is accombo it only shows the first 10 records and page 2 is blank, anyone got any ideas about this?

How do I fix this so all are shown?
hkclubbing is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Sponsored Links
Old 15.07.2004, 14:54   #2 (permalink)
Baby Mamber
 
Join Date: Apr 2004
Posts: 7
javinasty is on a distinguished road
Default Re: Accombo Catergories only allows 10 records

oh!; i´ve got the shame problem.

how to find the solution??
javinasty is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old 28.07.2004, 02:58   #3 (permalink)
Expert Mamber
 
divamissx's Avatar
 
Join Date: Apr 2004
Location: Florida
Posts: 480
divamissx is on a distinguished road
Send a message via MSN to divamissx
Default Re: Accombo Catergories only allows 10 records

I have a client with the same problem. Is this being investigated?
__________________
Divamissx, Software Development Consultant
Increase your Forum Traffic: The Forum Seeders Network
divamissx is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old 29.07.2004, 19:21   #4 (permalink)
Expert Mamber
 
divamissx's Avatar
 
Join Date: Apr 2004
Location: Florida
Posts: 480
divamissx is on a distinguished road
Send a message via MSN to divamissx
Default Re: Accombo Catergories only allows 10 records

I'm guessing it's somewhere in this code but I'm not a php developer so I'm not touching it.

helper.accombo.php:


//************************************************** *****
// Get the total number of records ( Used for pagnation )
//************************************************** *****
$database->setQuery( "SELECT count(*) FROM #__accombo AS a".(count( $where ) ? "\nWHERE " . implode( ' AND ', $where ) : "") );
$total = $database->loadResult();

//************************************************** *****
// Add Join To Where Clause
//************************************************** *****
$where[] = "a.catid=cc.id";
$where[] = "a.contactid=client.id";

//************************************************** *****
// Create query
//************************************************** *****
$query = ( "SELECT a.*, cc.title AS category_title, client.name as contact_name"
. "\nFROM #__accombo AS a, #__categories AS cc, #__accombo_client as client"
. (count( $where ) ? "\nWHERE " . implode( ' AND ', $where ) : "")
. "\nORDER BY a.id DESC"
. "\nLIMIT $limitstart,$limit"
);

//************************************************** *****
// Set The Query
//************************************************** *****
$database->setQuery( $query );

//************************************************** *****
// Run and load the object list
//************************************************** *****
$rows = $database->loadObjectList();

//************************************************** *****
// Check for errors
//************************************************** *****
if ($database->getErrorNum()) {
return $database->getErrorMsg();
}

//************************************************** *****
// Include the page navigation and set pagnation
//************************************************** *****
include_once("includes/pageNavigation.php");
$pageNav = new mosPageNav( $total, $limitstart, $limit );

//************************************************** *****
// Store the setting in an array
//************************************************** *****
$settings["rows"] = $rows;
$settings["pageNav"] = $pageNav;

//************************************************** *****
// Return with no errors
//************************************************** *****
return NULL;

}
__________________
Divamissx, Software Development Consultant
Increase your Forum Traffic: The Forum Seeders Network
divamissx is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old 30.07.2004, 15:46   #5 (permalink)
Baby Mamber
 
Join Date: Jul 2004
Posts: 1
Metaphorically is on a distinguished road
Default Re: Accombo Catergories only allows 10 records

I'm not familiar with the code in question, but I'd look at this line
Code:
. "\nLIMIT $limitstart,$limit"
$limitstart is probably 0 and $limit is probably 10.
If somebody does want to hack at this to fix their own, you can find info on how LIMIT works in a SELECT in the docs at MySQL.com.

HTH
__________________
Late Night PC
Metaphorically is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old 30.07.2004, 16:02   #6 (permalink)
Senior Mamber
 
danialt's Avatar
 
Join Date: Apr 2004
Location: Dortmund
Posts: 155
danialt is on a distinguished road
Default Re: Accombo Catergories only allows 10 records

just an idea;

normally components read $limit from a mosGetParam value

mosGetParam($_REQUEST,"limit",10); and 10 is the default value if no limit is defined in the post or get data transfers.
__________________
Danial Taherzadeh
Mambo Freelance Developer
MyPMS OS, Pro & PonyGallery
danialt is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old 03.08.2004, 02:25   #7 (permalink)
Expert Mamber
 
divamissx's Avatar
 
Join Date: Apr 2004
Location: Florida
Posts: 480
divamissx is on a distinguished road
Send a message via MSN to divamissx
Default Re: Accombo Catergories only allows 10 records

Is this still not resolved?? Does anyone have a fix?
__________________
Divamissx, Software Development Consultant
Increase your Forum Traffic: The Forum Seeders Network
divamissx is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old 12.08.2004, 04:20   #8 (permalink)
Expert Mamber
 
divamissx's Avatar
 
Join Date: Apr 2004
Location: Florida
Posts: 480
divamissx is on a distinguished road
Send a message via MSN to divamissx
Flame Re: Accombo Catergories only allows 10 records

I guess no one has more than 10 items per category. I can't get any more responses on this topic from here or mamboserver forums. My client is really needing this so I guess I have to hack the damn thing.
__________________
Divamissx, Software Development Consultant
Increase your Forum Traffic: The Forum Seeders Network
divamissx is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old 02.10.2004, 02:15   #9 (permalink)
ehk
Baby Mamber
 
Join Date: Oct 2004
Posts: 1
ehk is on a distinguished road
Default Re: Accombo Catergories only allows 10 records

Hi,

There is a small bug in the view.category.frontend.accombo.html.php file. The problem seems to be
$ag_perpage = 20; (near line 31)
This can be easily solved by setting the variable to $ag_perpage = 10;

Have fun, hope this helps

/components/com_accombo/view.category.frontend.accombo.html.php
---snip---

28 //************************************************** **************
29 // Count the number of published records in this category
30 //************************************************** **************
31 if ( !isset($ag_perpage) ) $ag_perpage = 10;

---snip---
ehk 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
Editing Accombo Sleeps Section, HELp! hkclubbing Component 'How Do I' Questions 3 14.03.2005 14:13
MOS database() issue: GROUP BY doesn't return any records wolfsz Component Development 1 09.06.2004 11:33
Accombo andybh Component Development 1 26.05.2004 05:42
AcCombo Fehler Neotop Komponenten 0 05.05.2004 17:26
Accombo Component Problems joosn Component Development 1 19.04.2004 21:27


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

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.