[solved] Disable Add as Friend, Message and Route

More
9 years 5 months ago - 8 years 8 months ago #25304 by Buzz50
How can I disable Disable Add as a Friend, Message and Route on the user popup on the map modules?
Last edit: 8 years 8 months ago by nordmograph.

Please Log in or Create an account to join the conversation.

More
9 years 5 months ago #25305 by Buzz50
In addition, the 'Add as a Friend' button shows even for already connected friends; it would be better if it did not.

Please Log in or Create an account to join the conversation.

More
9 years 5 months ago #25306 by nordmograph
Add as friend should depend on your Community Builder settings.
Route can not be disabled.

So you'll have to edit
components/com_geommunity3cb/views/userinfowindow/tmpl/default.php

Copy it to
templates/[your_template]/html/com_geommunity3cb/userinfowindow/default.php
to create a template override of the component . This way changes will be kept over future updates of the component.

Start editing the new file to remove the Add to friend and Route buttons.
You should be able to find these butons easily close to the end of the html
Let me know if you need more help

- Need help? Post the URL of the related page (eventualy as confidential info), it will help solve your issue faster.
- An error, notice or warning? report the exact message including the line number
- If you get a white page , enable error reporting and / or check your server error logs.

Please Log in or Create an account to join the conversation.

More
9 years 5 months ago #25307 by nordmograph

Buzz50 wrote: In addition, the 'Add as a Friend' button shows even for already connected friends; it would be better if it did not.


true

- Need help? Post the URL of the related page (eventualy as confidential info), it will help solve your issue faster.
- An error, notice or warning? report the exact message including the line number
- If you get a white page , enable error reporting and / or check your server error logs.

Please Log in or Create an account to join the conversation.

More
9 years 5 months ago #25313 by Buzz50
Thank you; the solution to remove the buttons worked well

:)

Please Log in or Create an account to join the conversation.

More
8 years 8 months ago #28932 by ByteTotal
Tried to follow the procedure:

Copy it to
templates/[your_template]/html/com_geommunity3cb


but my folder "templates/[your_template]/html"
has no sub-folder "com_geommunity3cb"
How does it work?

Please Log in or Create an account to join the conversation.

Time to create page: 0.411 seconds
Powered by Kunena Forum
Disclaimer: Nordmograph is not affiliated with or endorsed by The Joomla! Project™. Any products and services provided through this site are not supported or warrantied by The Joomla! Project or Open Source Matters, Inc. Use of the Joomla!® name, symbol, logo and related trademarks is permitted under a limited license granted by Open Source Matters, Inc.