*

atba

  • ****
  • 187 posts
Public profile
« on: January 26, 2019, 12:17:44 PM »
Hello! Tell me how to change the number of user ads displayed in the public profile?

*

MB Themes

Re: Public profile
« Reply #1 on: January 26, 2019, 03:24:31 PM »
@atba
Osclass does not have such setting and it's impossible to change it.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

atba

  • ****
  • 187 posts
Re: Public profile
« Reply #2 on: January 26, 2019, 11:42:05 PM »
in other templates there is an opportunity, but you do not ..... perfectly

*

MB Themes

Re: Public profile
« Reply #3 on: January 27, 2019, 08:55:50 AM »
There is no opportunity by default. You would have to create new query to do it... perfectly
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

siken

  • ****
  • 136 posts
Re: Public profile
« Reply #4 on: January 29, 2019, 03:26:07 PM »
Hello! Tell me how to change the number of user ads displayed in the public profile?


Add this code to the end of functions.php:

Code: [Select]
<?php
function cust_change_user_items_publicProfile_amount() {
    
    
$section osc_get_osclass_section(); 
    if (
osc_get_osclass_location() == "user" && ($section == "items" || $section == "pub_profile")) Params::setParam('itemsPerPage'24);
}

osc_add_hook('init''cust_change_user_items_publicProfile_amount');
?>

You can change the number in itemsPerPage...

*

MB Themes

Re: Public profile
« Reply #5 on: January 29, 2019, 03:39:37 PM »
@alexandromt
Thanks for tip ;)
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

Daniel Walles

  • ***
  • 48 posts
Re: Public profile
« Reply #6 on: January 29, 2019, 07:14:16 PM »
Hello! Tell me how to change the number of user ads displayed in the public profile?


Add this code to the end of functions.php:

Code: [Select]
<?php
function cust_change_user_items_publicProfile_amount() {
    
    
$section osc_get_osclass_section(); 
    if (
osc_get_osclass_location() == "user" && ($section == "items" || $section == "pub_profile")) Params::setParam('itemsPerPage'24);
}

osc_add_hook('init''cust_change_user_items_publicProfile_amount');
?>

You can change the number in itemsPerPage...

We all appreciate!

*

atba

  • ****
  • 187 posts
Re: Public profile
« Reply #7 on: January 29, 2019, 11:30:54 PM »
Thank you !