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 do I remove sub navigation links?

10 years 8 months ago
  • Danny's Avatar
    Topic Author
  • Danny
  • Offline
  • Fresh Boarder
  • Posts: 1
  • Thank you received: 1
Licenses:
JomSocial Active Socialize Expired

I'd like to remove the "Member Albums" link on all Photos pages and the "All Videos" link on all Videos page.
How do i achieve this?

10 years 8 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 8 months ago
  • Danny's Avatar
    Topic Author
  • Danny
  • Offline
  • Fresh Boarder
  • Posts: 1
  • Thank you received: 1
Licenses:
JomSocial Active Socialize Expired

Thanks, I 've looked at the forum post you linked, but It didn't help me to find the lines I need to edit, or comment to achieve what I want.

10 years 8 months ago
Licenses:

HI, Danny.

Oh, I meant my post www.jomsocial.com/forum/photos-videos/31...n-upload-page#153696

1. You must know that this could be done via core hack only
2. You need to hack this file: ROOT/components/com_community/views/photos/view.html.php
3. Comment line 1494

As for videos:

ROOT/components/com_community/views/videos.view.html.php line 1203 and comment this:

$this->addSubmenuItem(
                    'index.php?option=com_community&view=videos&task=display',
                    JText::_('COM_COMMUNITY_VIDEOS_ALL_DESC'), '' , false , '' , 'joms-right'
                );


- 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 8 months ago
  • Danny's Avatar
    Topic Author
  • Danny
  • Offline
  • Fresh Boarder
  • Posts: 1
  • Thank you received: 1
Licenses:
JomSocial Active Socialize Expired

Thanks again!
Eventually I found the code that had to be commented.

Here is the documentation for it, so anyone else needs it can find it:

1. Core Hacks to remove subnavigation links

1.1 Removing the "All Videos" links on Videos pages

location: components/com_community/views/videos/view.html.php
type: php comments

commented code:
// $this->addSubmenuItem(
// 'index.php?option=com_community&view=videos&task=display',
// JText::_('COM_COMMUNITY_VIDEOS_ALL_DESC'), '' , false , '' , 'joms-right'
// );

1.2 Removing the "Member Albums" links on Photos pages

location: components/com_community/views/photos/view.html.php
type: php comments

commented all lines of code containing "COM_COMMUNITY_PHOTOS_ALL_PHOTOS"

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