1. stephen
  2. JEvents 1.5 (No longer actively supported)
  3. Monday, 25 July 2011
I cant post in the Jevents 2 forum because it for club members only hence the post here.

I downloaded Jevents 2 RC12 yesterday

Firstly great product. I started playing with jevents yesterday and already have it doing almost exactly what I want. I have been using Joomla for only a few days so Jevents must be easy to use.

I have set up a calendar with three categories and I want registered users to be able to create and edit events in only one category. I have this working however registered users can only edit their own events. I would like registered users to be able to edit ANY event in this category.

I have set the following permission under “manage categories” for the required category only

Create Events – Allowed
Edit Events – Allowed
Publish/manage Events – Allowed
Edit Own Events – Allowed

I t seems to me that the Edit Events options would mean ALL events or else why would there be an edit OWN events option as well, Have I misinterpreted how this should work?

Anyway any help would be greatly appreciated.

Thanks
Stephen

My Server Details
PHP Built On Linux cpanel4.per.syra.net.au 2.6.18-194.32.1.el5 #1 SMP Wed Jan 5 17:52:25 EST 2011 x86_64
Database Version 5.0.92-community
Database Collation utf8_general_ci
PHP Version 5.2.8 Web Server Apache/2.2.11 (Unix) mod_ssl/2.2.11 OpenSSL/0.9.8e-fips-rhel5 mod_bwlimited/1.4 mod_perl/2.0.4 Perl/v5.8.8
WebServer to PHP Interface cgi
Joomla! Version Joomla! 1.6.4 Stable [ Onward ] 23-Jun-2011 23:00 GMT
User Agent Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.2.18) Gecko/20110614 Firefox/3.6.18 (.NET CLR 3.5.30729)
geraint
Support Team
Accepted Answer Pending Moderation
0
Votes
Undo
This is a bug - thanks for spotting it.

You can test out the fix - edit the file components/com_jevents/libraries/helper.php and add this code after line 936
		if ($user->id > 0 && $row->catid()>0){
return $user->authorise('core.edit', 'com_jevents.category.'.$row->catid());
}

The block of code will then look like this:
		// must stop anon users from editing any events
else if ($user->id > 0 && $row->created_by() == $user->id)
{
if (JVersion::isCompatible("1.6.0"))
{
$cats = $user->getAuthorisedCategories('com_jevents', 'core.edit');
$cats_own = $user->getAuthorisedCategories('com_jevents', 'core.edit.own');
if (in_array($row->_catid, $cats))
return true;
else if (in_array($row->_catid, $cats_own))
return true;
}
else
{
return true;
}
}
if ($user->id > 0 && $row->catid()>0){
return $user->authorise('core.edit', 'com_jevents.category.'.$row->catid());
}

return false;


Please let me know if this helps.
JEvents Club members can get priority forum support at the Support Forum. As well as access to a variety of custom JEvents addons and benefits. Join the JEvents club today!
Accepted Answer Pending Moderation
0
Votes
Undo
Thanks for the prompt reply.

I have made the changes you suggested and its better but not 100%

I can add an event as userA, then login as userB and now have the icon to edit the event (the pen), this didnt happen before.

I click on the icon and get the screen to edit the event however when I save the event it dissapears off the callendar. In the back end I can see the event but it is mow unpublished.

I noticed this, it may help. If I am logged is a UserA when I click the edit icon for any event that UserA created I get the following four options

Unpublish event
Edit event
Copy and edit event
Delete event

When I am logged in as userB and try to edit an event created by userA i dont get the unpublish option. Not sure if its relavent.

UserA can edit their own event and they appear as expected.

Cheers
Stephen
geraint
Support Team
Accepted Answer Pending Moderation
0
Votes
Undo
You need to allow the users to publish as well as edit in the category - there is a similar bug there too which I have fixed and it will be in the next release.

If you only have a few editor then you could use authorised user mode instead.
JEvents Club members can get priority forum support at the Support Forum. As well as access to a variety of custom JEvents addons and benefits. Join the JEvents club today!
Accepted Answer Pending Moderation
0
Votes
Undo
Thanks for the feedback.

I have allowed the publish/manage permission for that category so yes a bug.
The site is for my Radio control aircarft club and all registered memebrs are able to post to the calendar which is why I really like the feature of being able to grant permissions at the group level not authorised users.

Thnaks for your help. I await the next release

cheers
Stephen
Accepted Answer Pending Moderation
0
Votes
Undo
Just installed com_jevents_2.0_rc14
and still experiencing the following bugs.

When userA edits an event created by userB the event becomes unpublished when the event is saved

There have been some improvements.
UserB now sees the unpublish option which they did not before.
When they save the event and it becomes unpublished they have the option to publish it now, but when they click the publish option we get a 403 error.

User have all permissions at the category level.


Also is it normal when editing events in a popup window to have to refesh the screen to see changes on the calander after exiting the popup.

Getting there!
Cheers
Stephen
geraint
Support Team
Accepted Answer Pending Moderation
0
Votes
Undo
Is userA an event publisher? If not then by editing the event it will need to be approved by a publisher which is why it becomes unpublished
JEvents Club members can get priority forum support at the Support Forum. As well as access to a variety of custom JEvents addons and benefits. Join the JEvents club today!
Accepted Answer Pending Moderation
0
Votes
Undo
Both users have the exact same permissions, they are both members of the same group. Both users can create events in the specific category fine. Both users can unpublish and publish their own events fine.

I have given the group all availalble permissions to the specific category, namely

Create Events Allowed
Edit Events Allowed
Publish/Manage Allowed
Edit own events Allowed


Cheers
Stephen
geraint
Support Team
Accepted Answer Pending Moderation
0
Votes
Undo
"Edit own events Allowed" - this is not one of the permission categories for user groups for JEvents as a whole - just for jevents categories.

Did you set the publishing permissions for the usergroup within the global Jevents permissions. These will take precedence over the category specific permissions.
JEvents Club members can get priority forum support at the Support Forum. As well as access to a variety of custom JEvents addons and benefits. Join the JEvents club today!
Accepted Answer Pending Moderation
0
Votes
Undo
"Edit own events Allowed" - this is not one of the permission categories for user groups for JEvents as a whole - just for jevents categories.

Did you set the publishing permissions for the usergroup within the global Jevents permissions. These will take precedence over the category specific permissions.


thanks for the feedback
I only want this group of users to be able to edit events in the one category which is why I only set the permisions only for the category and not globaly.

Have I misinterpreted how this works?

Cheers
Stephen
geraint
Support Team
Accepted Answer Pending Moderation
0
Votes
Undo
I'm pretty certain the way it works is that you set global permissions and then disable them in the specific category.

The alternative is to use authorised user mode where you can control what each individual can do and in which categories too.
JEvents Club members can get priority forum support at the Support Forum. As well as access to a variety of custom JEvents addons and benefits. Join the JEvents club today!
Accepted Answer Pending Moderation
0
Votes
Undo
I'm pretty certain the way it works is that you set global permissions and then disable them in the specific category.
.


OK I will try this, I dont have too manay categories so wont be a porblem, just need to make sure I disable the relavent permissions for any new categories that are created in future

The alternative is to use authorised user mode where you can control what each individual can do and in which categories too.


I really want to avoid this method as there are too many users and it would become tedious, which is why the concept of giving a group permissions to category really appealed.

Thanks again for the feedback
  • Page :
  • 1


There are no replies made for this post yet.
Be one of the first to reply to this post!

Members Area

Show your support

Unlike many Joomla calendars we do not charge to download JEvents - please show your support for this project by becoming a member of the JEvents Club Club members get access to early releases, exclusive member support forums, and Silver and Gold members can use many exciting JEvents addons

Your membership will ensure that JEvents continues to be the best events calendar for Joomla.