1
Roby73
Birthday
  • 2012/9/13 21:35

  • Roby73

  • Friend of XOOPS

  • Posts: 262

  • Since: 2011/6/15


In admin/main.php the code not working properly, pagenav don't work

if($itemsCount 0) {
60     $class '';
61     //$items = $hBdUsersBirthday->getItems($start, $limit, 'birthday_lastname');
62     
63     $tblItems 
= array();
64     //$critere = new Criteria($this->keyName, 0 ,'<>');
65     $critere = new Criteria('birthday_id','<>');
66     $critere->setLimit($limit);
67     $critere->setStart($start);
68     $critere->setSort('birthday_lastname');
69     // $critere->setOrder($order);
70     // $tblItems = $this->getObjects($critere, $idAsKey);
71     
72     
73     
74     $items 
$hBdUsersBirthday->getObjects($start$limit'birthday_lastname');


I try this:

if($itemsCount 0) {
            
$class '';
            
$criteria=new Criteria('birthday_id','<>');
            
$criteria->setLimit($limit);
                    
$criteria->setStart($start);
                    
$criteria->setSort('birthday_lastname');
            
//$items = $hBdUsersBirthday->getItems($start, $limit, 'birthday_lastname');
                      
$items $hBdUsersBirthday->getObjects($criteriatrue);

2
zyspec
Re: Birthday
  • 2012/9/13 21:58

  • zyspec

  • Module Developer

  • Posts: 1095

  • Since: 2004/9/21


Which version of the Birthday module are you using?

I'm not sure there's enough of the code 'snippit' above to fix the problem you're having...

Clearly the 'original' code above used to set $items has an issue unless they've overloaded the getObjects method in the hBdUsersBirthday object.

3
Roby73
Re: Birthday
  • 2012/9/13 23:02

  • Roby73

  • Friend of XOOPS

  • Posts: 262

  • Since: 2011/6/15


I try last version in Code Svn...

4
zyspec
Re: Birthday
  • 2012/9/14 1:52

  • zyspec

  • Module Developer

  • Posts: 1095

  • Since: 2004/9/21


How many birthday's do you have entered?

What is the value you have set in the module Preferences for "Items per page"?

Have you turned on debug in System Preferences to see if there are any errors? Make sure you look at the SQL errors too, not just the PHP errors.

It looks to me like if these are the only changes you've made that it should work.

5
Roby73
Re: Birthday
  • 2012/9/14 2:02

  • Roby73

  • Friend of XOOPS

  • Posts: 262

  • Since: 2011/6/15


With original code don't work pagenav... i am set to 15 items for page, but view all birthday's (i am total 90 items). clicking on the page number view always all.


Login

Who's Online

337 user(s) are online (226 user(s) are browsing Support Forums)


Members: 0


Guests: 337


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits