Advertisement:

Author Topic: Bug with pagination!  (Read 1854 times)

lexosc

  • Sr. Member
  • ****
  • Posts: 344
Bug with pagination!
« on: June 11, 2014, 06:12:38 am »
Pagination doesn't show when in user menu you can see only 5 listings! please fix it :)

frosticek

  • Hero Member
  • *****
  • Posts: 3948
Re: Bug with pagination!
« Reply #1 on: June 11, 2014, 02:38:02 pm »
@alexgr
This is by default from 3.0.0 osclass version  ;)
There is no pagination.

But you can try to add to user-items.php following code:
Code: [Select]
                    <div class="paginate" >
                    <?php for($i $i osc_list_total_pages() ; $i++) {
                        if(
$i == osc_list_page()) {  _e('Page: ''elena');
                            
printf('<a class="searchPaginationSelected" href="%s">%d</a>'osc_user_list_items_url($i), ($i 1));
                        } else { 
                            
printf('<a class="searchPaginationNonSelected" href="%s">%d</a>'osc_user_list_items_url($i), ($i 1));
                        }
                    } 
?>

                    </div>

lexosc

  • Sr. Member
  • ****
  • Posts: 344
Re: Bug with pagination!
« Reply #2 on: June 11, 2014, 07:26:04 pm »
in my theme there is code for pagination in user items and it is working when you are in dashboard items but not when in payment people can see only 5 ads

andrenalin

  • Newbie
  • *
  • Posts: 48
Re: Bug with pagination!
« Reply #3 on: October 26, 2014, 08:18:00 pm »
same problem ... OS 3.4.3 Payment 2.0.0

uncomment div pagination and change 1 line
items per page to 0

now you get all items

lexosc

  • Sr. Member
  • ****
  • Posts: 344
Re: Bug with pagination!
« Reply #4 on: November 05, 2014, 01:53:34 am »
Where should i do this? in menu.php? i can't find what you said to do

Yellowtown

  • Newbie
  • *
  • Posts: 11
Re: Bug with pagination!
« Reply #5 on: December 16, 2014, 04:02:06 am »
Hi. I have osclass 3.4.3 . Payment plugin 2.0.0

 I had the same problem in the plugin on "Listings payment status" with pagination and the url links. I tryied to solve and now, works for me.  --->

I changed some variables names and i deleted '-page' after 'payment-user-menu'. I did that on user/menu.php:

Code: [Select]
<div class="paginate">
   
    <?php for($i $i $total_pages $i++) {
        if(
$i == $page) {
            
printf('<a class="searchPaginationSelected" href="%s">%d</a>'osc_route_url('payment-user-menu', array('iPage' => $i)), ($i 1));
        } else {
            
printf('<a class="searchPaginationNonSelected" href="%s">%d</a>'osc_route_url('payment-user-menu', array('iPage' => $i)), ($i 1));
        }
    } 
?>

    </div>

I hope works for you.;-)
« Last Edit: December 16, 2014, 04:12:39 am by Yellowtown »