Advertisement:

Author Topic: [SOLVED] do we have a private settings plugin ?  (Read 442 times)

joecoolll

  • Jr. Member
  • **
  • Posts: 85
[SOLVED] do we have a private settings plugin ?
« 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 :)




« Last Edit: July 22, 2018, 04:42:09 pm by joecoolll »

WEBmods

  • Hero Member
  • *****
  • Posts: 845
  • aka patrickFromCroatia | Osclass Dev Services
Re: do we have a private settings plugin ?
« Reply #1 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.

joecoolll

  • Jr. Member
  • **
  • Posts: 85
Re: do we have a private settings plugin ?
« Reply #2 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 ?


joecoolll

  • Jr. Member
  • **
  • Posts: 85
Re: do we have a private settings plugin ?
« Reply #3 on: July 20, 2018, 08:11:27 pm »
i will thank you buddy, i'll do it now