Osclass forums

Development => Plugins => Topic started by: joecoolll on July 20, 2018, 02:49:13 pm

Title: [SOLVED] do we have a private settings plugin ?
Post by: joecoolll on July 20, 2018, 02:49:13 pm
hi there ... i'v done a search but no joy, so do we have a plugin that will allow members to make their profile private to guests ? or even private to only certain members ?


I can code a bit but no where near making a plugin, i don't have time to learn and my illness is a factor of, so i can pay if someone wants to make one if there isn't one.





thank you :)




Title: Re: do we have a private settings plugin ?
Post by: patrickFromCroatia on July 20, 2018, 03:07:24 pm
Hello,

In your theme's user-public-profile.php file, you can use code like this to restrict guests from viewing public profile:

Code: [Select]
<?php
if(!osc_is_web_user_logged_in()) {
    
osc_redirect_to(osc_user_login_url());
    exit;
}
?>

If you need to restrict for certain users, or even give a user the ability to choose who cannot access his profile, contact me at mail on the left sidebar.

Regards.
Title: Re: do we have a private settings plugin ?
Post by: joecoolll on July 20, 2018, 06:00:25 pm
Hello,

In your theme's user-public-profile.php file, you can use code like this to restrict guests from viewing public profile:

Code: [Select]
<?php
if(!osc_is_web_user_logged_in()) {
    
osc_redirect_to(osc_user_login_url());
    exit;
}
?>

If you need to restrict for certain users, or even give a user the ability to choose who cannot access his profile, contact me at mail on the left sidebar.

Regards.

hi

"or even give a user the ability to choose who cannot access his profile,"   i want this, so i'll mail you ... mail on the left side bar ? where is that sorry ?

Title: Re: do we have a private settings plugin ?
Post by: joecoolll on July 20, 2018, 08:11:27 pm
i will thank you buddy, i'll do it now