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.
Link 'View All' missing by Friends request sent and Pending my approval
ISSUE SUMMARY:
When I am on the All Fiends page I can see 3 sumenu items: View All, Request sent and Pending my approval.
When I click on summenu 'Request sent' the 'View All' submenu is missing. The same with 'Pending my approval'.
Now I changed the code file components/views/friends/view.html.php (see attachment)
removed line 30 -> if($task != 'sent' && $task != 'pending' )
change url at line 40 -> $this->addSubmenuItem('index.php?option=com_invitex&view=resend', JText::_('COM_COMMUNITY_FRIENDS_REQUEST_SENT'));
Now i am using the component Invitex and so I added an extra joomsocial toolbar item for 'Request sent'. Now when I am clicking the menu item 'Request sent' is is going to Invitex, that is perfect. So now I have no problem with the 'View All' not showing, but still, when I was not using Invitex it is a bug I think.
Now I want to remove the submenu 'Pending my approval' and the only possible way is to disable line 41 in file components/views/friends/view.html.php. So maybe there is another solution not to change the code.
Best regards
Dennis
STEPS TO REPLICATE:
1
2
3
4
5
RESULT
EXPECTED RESULT
BROWSER
- 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
This is your customization... and it's a core hack. There is no way to remove "Pending My Approval" than core hack.
Please, be aware that core hacks are not recommended nor supported as they may not working with future JomSocial releases and/or cause issues that will be not supported. Users with core files hack refuse to upgrade their installation to keep those hacks and they are stuck with outdated and unsupported versions.
Invitex is a 3rd party extension for invitation. JomSocial has own invitation system. Using Invitex will replace it but will not hide related menu items in submenus (as they are coded in component core).
Maybe that's something that Invitex developers should also cover with their extension?
- 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