Osclass forums

Support forums => Plugins => Plugin Payments => Topic started by: lexosc on June 11, 2014, 06:12:38 am

Title: Bug with pagination!
Post by: lexosc 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 :)
Title: Re: Bug with pagination!
Post by: frosticek 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>
Title: Re: Bug with pagination!
Post by: lexosc 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
Title: Re: Bug with pagination!
Post by: andrenalin 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
Title: Re: Bug with pagination!
Post by: lexosc 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
Title: Re: Bug with pagination!
Post by: Yellowtown 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.;-)