ISSUE SUMMARY:
Once a group has several discussions listed, the 'New Discussion' link and 'View All' link are really far down the page. People can't work out how to post a Discussion, or if they can work it out, they still don't want to have to scroll to find the link! And now the Options menu has become a settings cog they don't guess that that has 'Add Discussion' on it.
1) Please can you let me know how to move 'New Discussion' link and 'View All' link from the bottom of the list of Discussions to the top?
2) Please can you give me the code to add a button on the Group Cover for 'New Discussion'. Sinisa gave the code before on the Beta forum but I can't find it.
Thanks
Hi, Susan.
Please, try my patched file. Just copy it to;
ROOT/templates/your-template/html/com_community/layouts/groups (if you don't have any of those folders, feel free to create them)
Hi, Susan.
For option 1.
HI,
Thanks for this, we'll put it in.
But I have a new idea......maybe you have an easy solution. Our users are struggling to post discussions as some of them don't use the site often.
How about an icon under the Group Status box that is for 'New Discussion' (where you see Status, Event etc). That would be so useful as they wouldn't have to change module or navigate around to post a discussion. Not sure if this is easy for you to tell me how to do :-) If not you post as Feature Request?
An alternative would be for you to tell me how to put the current Add Discussion' link just under the Status box on the Activity Stream? This would make things easier for users.
Thanks for your help
Hi, Susan.
This could be achieved with a small hack :)
So please:
1. Copy this file:
ROOT/components/com_community/templates/jomsocial/layouts/groups/single.php
to:
ROOT/templates/your-template/html/com_community/layouts/groups/ (if you don't have any of those folders, feel free to create them)
2. Edit file and add this right after line 852:
<?php // Create discussion
if ($my->authorise('community.create', 'groups.discussions.' . $group->id)) { ?>
<a href="<?php echo CRoute::_('index.php?option=com_community&view=groups&task=adddiscussion&groupid=' . $group->id); ?>"><?php echo JText::_('COM_COMMUNITY_GROUPS_DISCUSSION_CREATE'); ?></a>
<?php } ?>
You are a genius, thank you! This will make life so much easier for group users. Can you promote your own fixes as 'Feature requests' for the next version....?
Hi, Susan.
Unfortunately I can't push my customizations to source code. All features or layout changes need to be accepted by Sinisa as he is product owner. So the only way to introduce new features is won customization or feature request posted in User Voice...
This hack is really easy to implement - only one line is copied - so I think it will be easy for you to maintain in future.