× Tips, tricks and tutorials for Joomla!
Here you may ask questions which are not related to Joomla! Extensions by Kubik-Rubik.

Tipps, Tricks und Tutorials für Joomla!
Hier können Sie Fragen stellen, die nicht in Zusammenhang zu Joomla! Erweiterungen von Kubik-Rubik stehen.

Hack Kunena - Set write permission - not the visibility

7 years 4 months ago #4929 by Vitja
Hi!

With this hack you can set the permission which user group can write entries in the forum. It is tested with the latest version of Kunena 1.7.1 and Joomla! 1.7 (don't use it in Joomla! 1.5).

I've modified the file post.php (components/com_kunena/funcs/post.php).

The allowed user groups are to entered directly in the file:
// Enter here all groups which are allowed to write an entry - in my case I need Subscriber and of course Super Users
$allowed_user_groups = array('Subscriber', 'Super Users');

Settings for guests are not affected, only registered users are checked.

With this hack you can show the forum for all visitors and limit the rights to write entries to specific groups.

This small hack doesn't check the categories settings, it works globally. You can of course adjust the language string to make the error message clearer.

And don't forget: it's a hack and can be overwritten if you update the component.

Have success!

Kubik-Rubik Joomla! Extensions

Please support my work with a review in the Joomla! Extensions Directory: extensions.joomla.org/profile/profile/details/61997

This message has an attachment file.
Please log in or register to see it.

Please Log in to join the conversation.

7 years 4 months ago #4991 by Vitja
Please login to view the response. Attention: You need a valid subscription to activate an account.

Kubik-Rubik Joomla! Extensions

Please support my work with a review in the Joomla! Extensions Directory: extensions.joomla.org/profile/profile/details/61997

Please Log in to join the conversation.

Time to create page: 0.129 seconds