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.

How to remove block user icon?

10 years 7 months ago
Licenses:
JomSocial Active

Hi how do I remove the joms-dropdown > Block (icon) when visiting other people's profile? I dont want to have that option available nor visible

I tried removing this by doing "display:none", but that also removed my own dropdown icon on my profile page.

Any advice would be greatly appreciated.

Thank You

10 years 7 months ago
Licenses:

Hi, Christian.

Copy this file:

ROOT/components/com_community/templates/jomsocial/layouts/profile/focus.php

to:

ROOT/templates/your-template/html/com_community/layouts/profile (if you don't have those folders - feel free to create them)

Then edit file in line 322 and remove this:

<?php if ($isBlocked) { ?>
                    <li><a href="javascript:" onclick="joms.api.userUnblock('<?php echo $profile->id; ?>');"><?php echo JText::_('COM_COMMUNITY_UNBLOCK_USER'); ?></a></li>
                <?php } else { ?>
                    <li><a href="javascript:" onclick="joms.api.userBlock('<?php echo $profile->id; ?>');"><?php echo JText::_('COM_COMMUNITY_BLOCK_USER'); ?></a></li>
                <?php } ?>

From now on "Block user" option will be gone :)


- 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 7 months ago
Licenses:
JomSocial Active

Hi,
Thanks for the reply,

It works but the icon is still appearing on the cover photo prntscr.com/adiesp

How can I remove that on someones elses profile without removing it on my own profile?

Thank You

10 years 7 months ago
Licenses:
JomSocial Active

Hi nevermind I found the solution

Changed

<?php if ($loggedIn) { ?>
        <div class="joms-focus__button--options--desktop">
            <a href="javascript:" data-ui-object="joms-dropdown-button">
                <svg viewBox="0 0 16 16" class="joms-icon">
                    <use xlink:href="<?php echo CRoute::getURI(); ?>#joms-icon-cog"></use>
                </svg>
            </a>
            <!-- No need to populate menus as it is cloned from mobile version. -->
            <ul class="joms-dropdown"></ul>
        </div>
        <?php } ?>

TO ($isMine)

did the trick :)

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