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.

Allow events creation to admins only or at least from the back end

12 years 1 month ago
  • s's Avatar
    Topic Author
  • s
  • Offline
  • Fresh Boarder
  • Posts: 6
  • Thank you received: 0
Licenses:
JomSocial Expired

Hello,
I want to disable users from creating events. However, it seems that I'm disabling administrators as well. It would be simply fine if I could create an event from the backed but there I see this message:

Note: Event creation is now only available through the front end of JomSocial.

So what would be the proper way to allow administrators to create events?

Thanks!

12 years 1 month ago
Licenses:

Hi.

I'll give you overall instructions. It will be better if you ask professional developer to do customization for you:
www.jomsocial.com/jomsocial-developers

1. You'll need to hide or remove Event button from Postbox. So you'll need to modify this file:
ROOT/components/com_community/templates/default/status.form.php line 254

2. Then you'll need to display create Event button only for certain group (or id maybe?) of users.
Button is here: ROOT/components/com_community/helpers/event.php
(WARNING! Core file hack! Please, make safe copy of edited file. It means also that this file will be overwritten during upgrade, so please make a safe copy of customized file as well)

3. In order to display button only for admins use function described here: docs.joomla.org/JFactory/getUser

Please, notice that we don't support customizations: www.jomsocial.com/support


- 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
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