Notice

The forum is in read only mode.

Support Forum

Welcome! Support Forums have been reactivated
Welcome the Technical Support section. Help us in assisting you by providing us with a concise and descriptive elaboration of your issues. Be specific and if possible, provide us with a step-by-step instruction in replicating your problem.

Hide Super user preventing to be friends from search

10 years 3 months ago
Licenses:
JomSocial Expired

Hi,

I would like to hide and prevent users of community to find super user. Prevent them to link display the super user or any other user like administrator and technical users too.

How can we achieve that? I tried Privacy for Site Administrators set to "no" but it doesn't match my needs.

Best

10 years 3 months ago
Licenses:

- Instead of saying: 'it's not working', explain the problem in detail.
- Screenshots with the URL visible in them and the problem marked are more than welcome.
- Tell us how to replicate the problem, we can't fix it if we can't find it.
- Make sure that your site/server meets JomSocial System Requirements
- Make sure to setup JomSocial Cron Job
- Always provide us with access details to the backend and ftp. We need it to debug problems.
- If you have a similar problem, but a solution you found isn't working, open a new thread instead of 'merging' with an existing one.

- Use the "Thank You" feature on any post that helped you
10 years 3 months ago
Licenses:
JomSocial Expired

Michal,

I tried your code but on advanced search the super user is still showing up

10 years 3 months ago
Licenses:

Hi, Alain.

My code was for Top Members module.

First you should try:

"First try to Backend -> Components -> JomSocial -> Configuration -> Privacy -> box Privacy for Site Administrators set NO."

If that doesn't work then my code should be used for members list - just update this thread if backend settings doens't work for you.


- Instead of saying: 'it's not working', explain the problem in detail.
- Screenshots with the URL visible in them and the problem marked are more than welcome.
- Tell us how to replicate the problem, we can't fix it if we can't find it.
- Make sure that your site/server meets JomSocial System Requirements
- Make sure to setup JomSocial Cron Job
- Always provide us with access details to the backend and ftp. We need it to debug problems.
- If you have a similar problem, but a solution you found isn't working, open a new thread instead of 'merging' with an existing one.

- Use the "Thank You" feature on any post that helped you
10 years 3 months ago
Licenses:
JomSocial Expired

The modification in backend was my first try to hide the super user. So after I tried your code within topmembers. Both in jomsocial template in /mod_topmembers/tmpl/default.php and in my template templates/yoo_infinite/html/mod_topmembers/default.php
I didn't forgot to replace my super user id number and also cleared and purged cache

10 years 3 months ago
Licenses:

Hi, Alain.

Again - my code was ONLY FOR MODULE - if you want to hide administrator (or any other user with certain ID) you'll need to customize:

ROOT/components/com_community/templates/default/people.browse.php

And put <?php if($user->id != 86) { ?>

Before: <?php foreach( $data as $row ) : ?> (line 173)

Then <?php } ?> after <?php endforeach; ?> (line 267).


- Instead of saying: 'it's not working', explain the problem in detail.
- Screenshots with the URL visible in them and the problem marked are more than welcome.
- Tell us how to replicate the problem, we can't fix it if we can't find it.
- Make sure that your site/server meets JomSocial System Requirements
- Make sure to setup JomSocial Cron Job
- Always provide us with access details to the backend and ftp. We need it to debug problems.
- If you have a similar problem, but a solution you found isn't working, open a new thread instead of 'merging' with an existing one.

- Use the "Thank You" feature on any post that helped you
The following user(s) said Thank You: Alain
Moderators: Piotr Garasiński
Powered by Kunena Forum

Join 180,000 websites creating Amazing communities

JomSocial is the most complete, easy-to-use addon that turns Joomla CMS into a
full -fledged, social networking site

TRY NOW BUY NOW