Osclass forums
Support forums => Plugins => Plugin Payments => Topic started 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 :)
-
@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:
<div class="paginate" >
<?php for($i = 0 ; $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>
-
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
-
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
-
Where should i do this? in menu.php? i can't find what you said to do
-
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:
<div class="paginate">
<?php for($i = 0 ; $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.;-)