Osclass Support Forums

Osclass theme support => Veronika Osclass Responsive Theme => Topic started by: atba on January 26, 2019, 12:17:44 PM

Title: Public profile
Post by: atba on January 26, 2019, 12:17:44 PM
Hello! Tell me how to change the number of user ads displayed in the public profile?
Title: Re: Public profile
Post by: MB Themes on January 26, 2019, 03:24:31 PM
@atba
Osclass does not have such setting and it's impossible to change it.
Title: Re: Public profile
Post by: atba on January 26, 2019, 11:42:05 PM
in other templates there is an opportunity, but you do not ..... perfectly
Title: Re: Public profile
Post by: MB Themes 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
Title: Re: Public profile
Post by: siken 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...
Title: Re: Public profile
Post by: MB Themes on January 29, 2019, 03:39:37 PM
@alexandromt
Thanks for tip ;)
Title: Re: Public profile
Post by: Daniel Walles 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!
Title: Re: Public profile
Post by: atba on January 29, 2019, 11:30:54 PM
Thank you !