Discussion:
Regional Author Groups and Permission
David Churchill
2013-08-09 10:17:41 UTC
Permalink
Hi, I need some advice on the best way to approach building an event/booking website with multi author support.

The idea is one website listing lots of regional events. Users can geo-search events based on name, town, city and zip/post code with a distance radius in miles (5,10,25 etc). Then book the event online via PayPal and other payment gateways.

I have all of this working using Events Calendar Pro (Modern Tribe), Geo my WP (free plugin) for the geo-search, WooCommerce and WooTickets for the booking/tickets/payments.

What I am struggling with is how best to setup regional authors. I would ideally like to create regional groups with a main coordinator and a number of event publishers under the each region.

Each publisher will be able to create/publish edit/delete their own events, but not any other publishers (ideally other publishers events need to be hidden in the backend). The coordinators will be able to create/publish and edit/delete their own events and those belonging to the publishers in the same group (so see all events by all publishers in the same regional group). They will be able to publish events on behalf of the publishers, so will need to be able to select the author in the Author drop-down list. There will be a number of regional groups and all the events in each group will need to be hidden from the other groups. Hope this is making sense?

I have looked at a number of group based plugins, but they all appear to work by setting the permissions on a per event (post) based system which will not work as it will rely on publishers setting this very time.

I have also looked at a network/mu install of WordPress and think this is probably the best approach, but Events Calendar Pro currently doesn't support sharing the events back to the main network site — ideally all mu sites will only be used for adding content and not visible by the end user.

There is another event plugin called Events Organiser Pro which does support mu integration and saves all events in the main network sites db but doesn't support WooCommerce.

Another possible idea would be to create front-end templates for publishers so that they can add/edit and view their own events.

So (apologies for long-winded question), but does anybody have any recommendations or suggestions for managing groups and users where their content is ring-fenced/hidden from other groups/users. I'm happy to hack code if this is something that could be done in code.

Thanks in advance,
David
Jonathan Brinley
2013-08-09 14:55:23 UTC
Permalink
Hi, David,

For your purposes, I would definitely discourage using multi-site (see
http://wordpress.tv/2013/08/01/mika-epstein-dont-use-wordpress-multisite/for
many reasons why). But you'll definitely need to write some code to
make all this happen with Events Calendar Pro.

Here's how I would probably go about it:

1. Have a way to assign users to groups (one of the groups plugins you've
tried probably does this reasonably well). You don't really need this to
manage permissions, jut manage the assignment of users to groups.

2. To prevent users from editing events from other groups: Write some code
that hooks into 'user_has_cap'. If the current user isn't in the same group
as the author of the event, remove caps like 'edit_tribe_event',
'delete_tribe_event', etc.

3. To only show events for the current user's group: Add in a
'pre_get_posts' filter in the admin. You'll get a list of users in the
current user's group, and add their IDs to the 'author' query var.

Have a nice day,
Jonathan
Post by David Churchill
Hi, I need some advice on the best way to approach building an
event/booking website with multi author support.
The idea is one website listing lots of regional events. Users can
geo-search events based on name, town, city and zip/post code with a
distance radius in miles (5,10,25 etc). Then book the event online via
PayPal and other payment gateways.
I have all of this working using Events Calendar Pro (Modern Tribe), Geo
my WP (free plugin) for the geo-search, WooCommerce and WooTickets for the
booking/tickets/payments.
What I am struggling with is how best to setup regional authors. I would
ideally like to create regional groups with a main coordinator and a number
of event publishers under the each region.
Each publisher will be able to create/publish edit/delete their own
events, but not any other publishers (ideally other publishers events need
to be hidden in the backend). The coordinators will be able to
create/publish and edit/delete their own events and those belonging to the
publishers in the same group (so see all events by all publishers in the
same regional group). They will be able to publish events on behalf of the
publishers, so will need to be able to select the author in the Author
drop-down list. There will be a number of regional groups and all the
events in each group will need to be hidden from the other groups. Hope
this is making sense?
I have looked at a number of group based plugins, but they all appear to
work by setting the permissions on a per event (post) based system which
will not work as it will rely on publishers setting this very time.
I have also looked at a network/mu install of WordPress and think this is
probably the best approach, but Events Calendar Pro currently doesn't
support sharing the events back to the main network site — ideally all mu
sites will only be used for adding content and not visible by the end user.
There is another event plugin called Events Organiser Pro which does
support mu integration and saves all events in the main network sites db
but doesn't support WooCommerce.
Another possible idea would be to create front-end templates for
publishers so that they can add/edit and view their own events.
So (apologies for long-winded question), but does anybody have any
recommendations or suggestions for managing groups and users where their
content is ring-fenced/hidden from other groups/users. I'm happy to hack
code if this is something that could be done in code.
Thanks in advance,
David
_______________________________________________
wp-hackers mailing list
http://lists.automattic.com/mailman/listinfo/wp-hackers
--
Jonathan M. Brinley

***@gmail.com
http://xplus3.net/
David Churchill
2013-08-11 12:55:33 UTC
Permalink
Hi Jonathan, thanks, will take a closer look at your suggestions.

David
Post by Jonathan Brinley
Hi, David,
For your purposes, I would definitely discourage using multi-site (see
http://wordpress.tv/2013/08/01/mika-epstein-dont-use-wordpress-multisite/for
many reasons why). But you'll definitely need to write some code to
make all this happen with Events Calendar Pro.
1. Have a way to assign users to groups (one of the groups plugins you've
tried probably does this reasonably well). You don't really need this to
manage permissions, jut manage the assignment of users to groups.
2. To prevent users from editing events from other groups: Write some code
that hooks into 'user_has_cap'. If the current user isn't in the same group
as the author of the event, remove caps like 'edit_tribe_event',
'delete_tribe_event', etc.
3. To only show events for the current user's group: Add in a
'pre_get_posts' filter in the admin. You'll get a list of users in the
current user's group, and add their IDs to the 'author' query var.
Have a nice day,
Jonathan
Post by David Churchill
Hi, I need some advice on the best way to approach building an
event/booking website with multi author support.
The idea is one website listing lots of regional events. Users can
geo-search events based on name, town, city and zip/post code with a
distance radius in miles (5,10,25 etc). Then book the event online via
PayPal and other payment gateways.
I have all of this working using Events Calendar Pro (Modern Tribe), Geo
my WP (free plugin) for the geo-search, WooCommerce and WooTickets for the
booking/tickets/payments.
What I am struggling with is how best to setup regional authors. I would
ideally like to create regional groups with a main coordinator and a number
of event publishers under the each region.
Each publisher will be able to create/publish edit/delete their own
events, but not any other publishers (ideally other publishers events need
to be hidden in the backend). The coordinators will be able to
create/publish and edit/delete their own events and those belonging to the
publishers in the same group (so see all events by all publishers in the
same regional group). They will be able to publish events on behalf of the
publishers, so will need to be able to select the author in the Author
drop-down list. There will be a number of regional groups and all the
events in each group will need to be hidden from the other groups. Hope
this is making sense?
I have looked at a number of group based plugins, but they all appear to
work by setting the permissions on a per event (post) based system which
will not work as it will rely on publishers setting this very time.
I have also looked at a network/mu install of WordPress and think this is
probably the best approach, but Events Calendar Pro currently doesn't
support sharing the events back to the main network site — ideally all mu
sites will only be used for adding content and not visible by the end user.
There is another event plugin called Events Organiser Pro which does
support mu integration and saves all events in the main network sites db
but doesn't support WooCommerce.
Another possible idea would be to create front-end templates for
publishers so that they can add/edit and view their own events.
So (apologies for long-winded question), but does anybody have any
recommendations or suggestions for managing groups and users where their
content is ring-fenced/hidden from other groups/users. I'm happy to hack
code if this is something that could be done in code.
Thanks in advance,
David
_______________________________________________
wp-hackers mailing list
http://lists.automattic.com/mailman/listinfo/wp-hackers
--
Jonathan M. Brinley
http://xplus3.net/
_______________________________________________
wp-hackers mailing list
http://lists.automattic.com/mailman/listinfo/wp-hackers
Guus (IFS)
2013-08-11 06:11:02 UTC
Permalink
Why use Wordpress for something like that? Might be easier to build with
some other framework.

----- Original Message -----
From: "David Churchill" <***@mac.com>
To: <wp-***@lists.automattic.com>
Sent: Friday, August 09, 2013 6:17 PM
Subject: [wp-hackers] Regional Author Groups and Permission


Hi, I need some advice on the best way to approach building an event/booking
website with multi author support.

The idea is one website listing lots of regional events. Users can
geo-search events based on name, town, city and zip/post code with a
distance radius in miles (5,10,25 etc). Then book the event online via
PayPal and other payment gateways.

I have all of this working using Events Calendar Pro (Modern Tribe), Geo my
WP (free plugin) for the geo-search, WooCommerce and WooTickets for the
booking/tickets/payments.

What I am struggling with is how best to setup regional authors. I would
ideally like to create regional groups with a main coordinator and a number
of event publishers under the each region.

Each publisher will be able to create/publish edit/delete their own events,
but not any other publishers (ideally other publishers events need to be
hidden in the backend). The coordinators will be able to create/publish and
edit/delete their own events and those belonging to the publishers in the
same group (so see all events by all publishers in the same regional group).
They will be able to publish events on behalf of the publishers, so will
need to be able to select the author in the Author drop-down list. There
will be a number of regional groups and all the events in each group will
need to be hidden from the other groups. Hope this is making sense?

I have looked at a number of group based plugins, but they all appear to
work by setting the permissions on a per event (post) based system which
will not work as it will rely on publishers setting this very time.

I have also looked at a network/mu install of WordPress and think this is
probably the best approach, but Events Calendar Pro currently doesn't
support sharing the events back to the main network site — ideally all mu
sites will only be used for adding content and not visible by the end user.

There is another event plugin called Events Organiser Pro which does support
mu integration and saves all events in the main network sites db but doesn't
support WooCommerce.

Another possible idea would be to create front-end templates for publishers
so that they can add/edit and view their own events.

So (apologies for long-winded question), but does anybody have any
recommendations or suggestions for managing groups and users where their
content is ring-fenced/hidden from other groups/users. I'm happy to hack
code if this is something that could be done in code.

Thanks in advance,
David
David Churchill
2013-08-11 12:56:49 UTC
Permalink
Hi Guus,
Do you have any other framework suggestions?
David
Why use Wordpress for something like that? Might be easier to build with some other framework.
Sent: Friday, August 09, 2013 6:17 PM
Subject: [wp-hackers] Regional Author Groups and Permission
Hi, I need some advice on the best way to approach building an event/booking website with multi author support.
The idea is one website listing lots of regional events. Users can geo-search events based on name, town, city and zip/post code with a distance radius in miles (5,10,25 etc). Then book the event online via PayPal and other payment gateways.
I have all of this working using Events Calendar Pro (Modern Tribe), Geo my WP (free plugin) for the geo-search, WooCommerce and WooTickets for the booking/tickets/payments.
What I am struggling with is how best to setup regional authors. I would ideally like to create regional groups with a main coordinator and a number of event publishers under the each region.
Each publisher will be able to create/publish edit/delete their own events, but not any other publishers (ideally other publishers events need to be hidden in the backend). The coordinators will be able to create/publish and edit/delete their own events and those belonging to the publishers in the same group (so see all events by all publishers in the same regional group). They will be able to publish events on behalf of the publishers, so will need to be able to select the author in the Author drop-down list. There will be a number of regional groups and all the events in each group will need to be hidden from the other groups. Hope this is making sense?
I have looked at a number of group based plugins, but they all appear to work by setting the permissions on a per event (post) based system which will not work as it will rely on publishers setting this very time.
I have also looked at a network/mu install of WordPress and think this is probably the best approach, but Events Calendar Pro currently doesn't support sharing the events back to the main network site — ideally all mu sites will only be used for adding content and not visible by the end user.
There is another event plugin called Events Organiser Pro which does support mu integration and saves all events in the main network sites db but doesn't support WooCommerce.
Another possible idea would be to create front-end templates for publishers so that they can add/edit and view their own events.
So (apologies for long-winded question), but does anybody have any recommendations or suggestions for managing groups and users where their content is ring-fenced/hidden from other groups/users. I'm happy to hack code if this is something that could be done in code.
Thanks in advance,
David
_______________________________________________
wp-hackers mailing list
http://lists.automattic.com/mailman/listinfo/wp-hackers
_______________________________________________
wp-hackers mailing list
http://lists.automattic.com/mailman/listinfo/wp-hackers
Brian Hogg
2013-08-11 13:22:27 UTC
Permalink
Also a note that the Geo my WP plugin seems to be pretty inefficient in it's search, as it stores the lat/lon as varchars:

$gmw_sql = "CREATE TABLE {$wpdb->prefix}places_locator (
`post_id` bigint(30) NOT NULL,
`feature` tinyint NOT NULL default '0',
`post_status` varchar(20) NOT NULL ,
`post_type` varchar(20) default 'post',
`post_title` TEXT,
`lat` varchar(255) NOT NULL ,
`long` varchar(255) NOT NULL ,
...

So to do the geo search it's converting all the varchars to float/decimal on the fly. Something like Geo Mashup might be a better bet as they seem to index things well, or coding something manually yourself (I have some notes on my slideshare: http://www.slideshare.net/bhogg)

---
brianhogg.com
905.966.1778
Post by David Churchill
Hi Guus,
Do you have any other framework suggestions?
David
Why use Wordpress for something like that? Might be easier to build with some other framework.
Sent: Friday, August 09, 2013 6:17 PM
Subject: [wp-hackers] Regional Author Groups and Permission
Hi, I need some advice on the best way to approach building an event/booking website with multi author support.
The idea is one website listing lots of regional events. Users can geo-search events based on name, town, city and zip/post code with a distance radius in miles (5,10,25 etc). Then book the event online via PayPal and other payment gateways.
I have all of this working using Events Calendar Pro (Modern Tribe), Geo my WP (free plugin) for the geo-search, WooCommerce and WooTickets for the booking/tickets/payments.
What I am struggling with is how best to setup regional authors. I would ideally like to create regional groups with a main coordinator and a number of event publishers under the each region.
Each publisher will be able to create/publish edit/delete their own events, but not any other publishers (ideally other publishers events need to be hidden in the backend). The coordinators will be able to create/publish and edit/delete their own events and those belonging to the publishers in the same group (so see all events by all publishers in the same regional group). They will be able to publish events on behalf of the publishers, so will need to be able to select the author in the Author drop-down list. There will be a number of regional groups and all the events in each group will need to be hidden from the other groups. Hope this is making sense?
I have looked at a number of group based plugins, but they all appear to work by setting the permissions on a per event (post) based system which will not work as it will rely on publishers setting this very time.
I have also looked at a network/mu install of WordPress and think this is probably the best approach, but Events Calendar Pro currently doesn't support sharing the events back to the main network site — ideally all mu sites will only be used for adding content and not visible by the end user.
There is another event plugin called Events Organiser Pro which does support mu integration and saves all events in the main network sites db but doesn't support WooCommerce.
Another possible idea would be to create front-end templates for publishers so that they can add/edit and view their own events.
So (apologies for long-winded question), but does anybody have any recommendations or suggestions for managing groups and users where their content is ring-fenced/hidden from other groups/users. I'm happy to hack code if this is something that could be done in code.
Thanks in advance,
David
_______________________________________________
wp-hackers mailing list
http://lists.automattic.com/mailman/listinfo/wp-hackers
_______________________________________________
wp-hackers mailing list
http://lists.automattic.com/mailman/listinfo/wp-hackers
_______________________________________________
wp-hackers mailing list
http://lists.automattic.com/mailman/listinfo/wp-hackers
David Churchill
2013-08-12 09:29:23 UTC
Permalink
Thank Brian,

I looked all the geo plugins and found Geo my WP to be the easiest to use (thinking about the publishers of events), but will recheck Geo Mashup.

Regards,
David
Post by Brian Hogg
$gmw_sql = "CREATE TABLE {$wpdb->prefix}places_locator (
`post_id` bigint(30) NOT NULL,
`feature` tinyint NOT NULL default '0',
`post_status` varchar(20) NOT NULL ,
`post_type` varchar(20) default 'post',
`post_title` TEXT,
`lat` varchar(255) NOT NULL ,
`long` varchar(255) NOT NULL ,
...
So to do the geo search it's converting all the varchars to float/decimal on the fly. Something like Geo Mashup might be a better bet as they seem to index things well, or coding something manually yourself (I have some notes on my slideshare: http://www.slideshare.net/bhogg)
---
brianhogg.com
905.966.1778
Post by David Churchill
Hi Guus,
Do you have any other framework suggestions?
David
Why use Wordpress for something like that? Might be easier to build with some other framework.
Sent: Friday, August 09, 2013 6:17 PM
Subject: [wp-hackers] Regional Author Groups and Permission
Hi, I need some advice on the best way to approach building an event/booking website with multi author support.
The idea is one website listing lots of regional events. Users can geo-search events based on name, town, city and zip/post code with a distance radius in miles (5,10,25 etc). Then book the event online via PayPal and other payment gateways.
I have all of this working using Events Calendar Pro (Modern Tribe), Geo my WP (free plugin) for the geo-search, WooCommerce and WooTickets for the booking/tickets/payments.
What I am struggling with is how best to setup regional authors. I would ideally like to create regional groups with a main coordinator and a number of event publishers under the each region.
Each publisher will be able to create/publish edit/delete their own events, but not any other publishers (ideally other publishers events need to be hidden in the backend). The coordinators will be able to create/publish and edit/delete their own events and those belonging to the publishers in the same group (so see all events by all publishers in the same regional group). They will be able to publish events on behalf of the publishers, so will need to be able to select the author in the Author drop-down list. There will be a number of regional groups and all the events in each group will need to be hidden from the other groups. Hope this is making sense?
I have looked at a number of group based plugins, but they all appear to work by setting the permissions on a per event (post) based system which will not work as it will rely on publishers setting this very time.
I have also looked at a network/mu install of WordPress and think this is probably the best approach, but Events Calendar Pro currently doesn't support sharing the events back to the main network site — ideally all mu sites will only be used for adding content and not visible by the end user.
There is another event plugin called Events Organiser Pro which does support mu integration and saves all events in the main network sites db but doesn't support WooCommerce.
Another possible idea would be to create front-end templates for publishers so that they can add/edit and view their own events.
So (apologies for long-winded question), but does anybody have any recommendations or suggestions for managing groups and users where their content is ring-fenced/hidden from other groups/users. I'm happy to hack code if this is something that could be done in code.
Thanks in advance,
David
_______________________________________________
wp-hackers mailing list
http://lists.automattic.com/mailman/listinfo/wp-hackers
_______________________________________________
wp-hackers mailing list
http://lists.automattic.com/mailman/listinfo/wp-hackers
_______________________________________________
wp-hackers mailing list
http://lists.automattic.com/mailman/listinfo/wp-hackers
_______________________________________________
wp-hackers mailing list
http://lists.automattic.com/mailman/listinfo/wp-hackers
Guus (IFS)
2013-08-12 15:37:30 UTC
Permalink
Hi David,

I developed my own 'developer' framework that is suitable for advanced
custom build database driven websites, but if you want Open Source I would
look into Joomla or Zend or something like that. There are more, but those
are the ones I know a bit.

Wordpress in my opinion is good for simple websites and blogging, but is not
that suitable for advanced web applications,

Guus



----- Original Message -----
From: "David Churchill" <***@mac.com>
To: <wp-***@lists.automattic.com>
Sent: Sunday, August 11, 2013 8:56 PM
Subject: Re: [wp-hackers] Regional Author Groups and Permission


Hi Guus,
Do you have any other framework suggestions?
David
Post by Guus (IFS)
Why use Wordpress for something like that? Might be easier to build with
some other framework.
Sent: Friday, August 09, 2013 6:17 PM
Subject: [wp-hackers] Regional Author Groups and Permission
Hi, I need some advice on the best way to approach building an
event/booking website with multi author support.
The idea is one website listing lots of regional events. Users can
geo-search events based on name, town, city and zip/post code with a
distance radius in miles (5,10,25 etc). Then book the event online via
PayPal and other payment gateways.
I have all of this working using Events Calendar Pro (Modern Tribe), Geo
my WP (free plugin) for the geo-search, WooCommerce and WooTickets for the
booking/tickets/payments.
What I am struggling with is how best to setup regional authors. I would
ideally like to create regional groups with a main coordinator and a
number of event publishers under the each region.
Each publisher will be able to create/publish edit/delete their own
events, but not any other publishers (ideally other publishers events need
to be hidden in the backend). The coordinators will be able to
create/publish and edit/delete their own events and those belonging to the
publishers in the same group (so see all events by all publishers in the
same regional group). They will be able to publish events on behalf of the
publishers, so will need to be able to select the author in the Author
drop-down list. There will be a number of regional groups and all the
events in each group will need to be hidden from the other groups. Hope
this is making sense?
I have looked at a number of group based plugins, but they all appear to
work by setting the permissions on a per event (post) based system which
will not work as it will rely on publishers setting this very time.
I have also looked at a network/mu install of WordPress and think this is
probably the best approach, but Events Calendar Pro currently doesn't
support sharing the events back to the main network site — ideally all mu
sites will only be used for adding content and not visible by the end user.
There is another event plugin called Events Organiser Pro which does
support mu integration and saves all events in the main network sites db
but doesn't support WooCommerce.
Another possible idea would be to create front-end templates for
publishers so that they can add/edit and view their own events.
So (apologies for long-winded question), but does anybody have any
recommendations or suggestions for managing groups and users where their
content is ring-fenced/hidden from other groups/users. I'm happy to hack
code if this is something that could be done in code.
Thanks in advance,
David
_______________________________________________
wp-hackers mailing list
http://lists.automattic.com/mailman/listinfo/wp-hackers
_______________________________________________
wp-hackers mailing list
http://lists.automattic.com/mailman/listinfo/wp-hackers
David Churchill
2013-08-12 15:54:39 UTC
Permalink
Thank Guus,

Used to use Joomla a lot a few years ago, but found it painful to use and clients never liked using it. Will look at Zend, but think I'll try and stick with WordPress if I can as client already uses it and would be easier to pass on if I every leave.

Cheers, Dave
Post by Guus (IFS)
Hi David,
I developed my own 'developer' framework that is suitable for advanced custom build database driven websites, but if you want Open Source I would look into Joomla or Zend or something like that. There are more, but those are the ones I know a bit.
Wordpress in my opinion is good for simple websites and blogging, but is not that suitable for advanced web applications,
Guus
Sent: Sunday, August 11, 2013 8:56 PM
Subject: Re: [wp-hackers] Regional Author Groups and Permission
Hi Guus,
Do you have any other framework suggestions?
David
Why use Wordpress for something like that? Might be easier to build with some other framework.
Sent: Friday, August 09, 2013 6:17 PM
Subject: [wp-hackers] Regional Author Groups and Permission
Hi, I need some advice on the best way to approach building an event/booking website with multi author support.
The idea is one website listing lots of regional events. Users can geo-search events based on name, town, city and zip/post code with a distance radius in miles (5,10,25 etc). Then book the event online via PayPal and other payment gateways.
I have all of this working using Events Calendar Pro (Modern Tribe), Geo my WP (free plugin) for the geo-search, WooCommerce and WooTickets for the booking/tickets/payments.
What I am struggling with is how best to setup regional authors. I would ideally like to create regional groups with a main coordinator and a number of event publishers under the each region.
Each publisher will be able to create/publish edit/delete their own events, but not any other publishers (ideally other publishers events need to be hidden in the backend). The coordinators will be able to create/publish and edit/delete their own events and those belonging to the publishers in the same group (so see all events by all publishers in the same regional group). They will be able to publish events on behalf of the publishers, so will need to be able to select the author in the Author drop-down list. There will be a number of regional groups and all the events in each group will need to be hidden from the other groups. Hope this is making sense?
I have looked at a number of group based plugins, but they all appear to work by setting the permissions on a per event (post) based system which will not work as it will rely on publishers setting this very time.
I have also looked at a network/mu install of WordPress and think this is probably the best approach, but Events Calendar Pro currently doesn't support sharing the events back to the main network site — ideally all mu sites will only be used for adding content and not visible by the end user.
There is another event plugin called Events Organiser Pro which does support mu integration and saves all events in the main network sites db but doesn't support WooCommerce.
Another possible idea would be to create front-end templates for publishers so that they can add/edit and view their own events.
So (apologies for long-winded question), but does anybody have any recommendations or suggestions for managing groups and users where their content is ring-fenced/hidden from other groups/users. I'm happy to hack code if this is something that could be done in code.
Thanks in advance,
David
_______________________________________________
wp-hackers mailing list
http://lists.automattic.com/mailman/listinfo/wp-hackers
_______________________________________________
wp-hackers mailing list
http://lists.automattic.com/mailman/listinfo/wp-hackers
_______________________________________________
wp-hackers mailing list
http://lists.automattic.com/mailman/listinfo/wp-hackers
_______________________________________________
wp-hackers mailing list
http://lists.automattic.com/mailman/listinfo/wp-hackers
Guus (IFS)
2013-08-13 08:19:08 UTC
Permalink
Yes, if they're aldeady using it it may be the best option. But I'm still a
simple web developer that just prefers to write 'simple' php/html and just
submit simple pages :).

----- Original Message -----
From: "David Churchill" <***@mac.com>
To: <wp-***@lists.automattic.com>
Sent: Monday, August 12, 2013 11:54 PM
Subject: Re: [wp-hackers] Regional Author Groups and Permission


Thank Guus,

Used to use Joomla a lot a few years ago, but found it painful to use and
clients never liked using it. Will look at Zend, but think I'll try and
stick with WordPress if I can as client already uses it and would be easier
to pass on if I every leave.

Cheers, Dave
Post by Guus (IFS)
Hi David,
I developed my own 'developer' framework that is suitable for advanced
custom build database driven websites, but if you want Open Source I would
look into Joomla or Zend or something like that. There are more, but those
are the ones I know a bit.
Wordpress in my opinion is good for simple websites and blogging, but is
not that suitable for advanced web applications,
Guus
Sent: Sunday, August 11, 2013 8:56 PM
Subject: Re: [wp-hackers] Regional Author Groups and Permission
Hi Guus,
Do you have any other framework suggestions?
David
Post by Guus (IFS)
Why use Wordpress for something like that? Might be easier to build with
some other framework.
Sent: Friday, August 09, 2013 6:17 PM
Subject: [wp-hackers] Regional Author Groups and Permission
Hi, I need some advice on the best way to approach building an
event/booking website with multi author support.
The idea is one website listing lots of regional events. Users can
geo-search events based on name, town, city and zip/post code with a
distance radius in miles (5,10,25 etc). Then book the event online via
PayPal and other payment gateways.
I have all of this working using Events Calendar Pro (Modern Tribe), Geo
my WP (free plugin) for the geo-search, WooCommerce and WooTickets for
the booking/tickets/payments.
What I am struggling with is how best to setup regional authors. I would
ideally like to create regional groups with a main coordinator and a
number of event publishers under the each region.
Each publisher will be able to create/publish edit/delete their own
events, but not any other publishers (ideally other publishers events
need to be hidden in the backend). The coordinators will be able to
create/publish and edit/delete their own events and those belonging to
the publishers in the same group (so see all events by all publishers in
the same regional group). They will be able to publish events on behalf
of the publishers, so will need to be able to select the author in the
Author drop-down list. There will be a number of regional groups and all
the events in each group will need to be hidden from the other groups.
Hope this is making sense?
I have looked at a number of group based plugins, but they all appear to
work by setting the permissions on a per event (post) based system which
will not work as it will rely on publishers setting this very time.
I have also looked at a network/mu install of WordPress and think this is
probably the best approach, but Events Calendar Pro currently doesn't
support sharing the events back to the main network site — ideally all mu
sites will only be used for adding content and not visible by the end user.
There is another event plugin called Events Organiser Pro which does
support mu integration and saves all events in the main network sites db
but doesn't support WooCommerce.
Another possible idea would be to create front-end templates for
publishers so that they can add/edit and view their own events.
So (apologies for long-winded question), but does anybody have any
recommendations or suggestions for managing groups and users where their
content is ring-fenced/hidden from other groups/users. I'm happy to hack
code if this is something that could be done in code.
Thanks in advance,
David
_______________________________________________
wp-hackers mailing list
http://lists.automattic.com/mailman/listinfo/wp-hackers
_______________________________________________
wp-hackers mailing list
http://lists.automattic.com/mailman/listinfo/wp-hackers
_______________________________________________
wp-hackers mailing list
http://lists.automattic.com/mailman/listinfo/wp-hackers
_______________________________________________
wp-hackers mailing list
http://lists.automattic.com/mailman/listinfo/wp-hackers
Stephen Harris
2013-08-11 18:18:58 UTC
Permalink
Event Organiser Pro doesn't support mu integration with regards to
sharing events across sites (but Event Manager does). At the request of
someone I did add support for ThreeWP broadcast (
http://wordpress.org/plugins/threewp-broadcast/) - but I never say that
anywhere outside of the sourcecode :), and it's not something I actively
support for reasons below. Pro comes with its owns booking management,
so there's no WooCommerce integration.

Personally I think using multisite to 'divide' a site is the wrong
approach to use for the simple reason that multisite is very much
intended for situations where you have completely independent sites
which may share a user base. I think the typical example is usually
WordPress.com - and if that's not similar to what you're trying to
achieve, you'll be going against the grain and probably find you'll end
up with 'hacky' code or low performance or both. Unfortunately it was
not designed to, and cannot in a particularly 'clean' way, share content
between network sites.

I would use pre_get_posts to filter the admin pages so that only users
with the appropriate permissions can view the posts - that is restrict
events to those in regions to which the user belongs. With regards to
editing posts you can use the map_meta_cap (
http://codex.wordpress.org/Function_Reference/map_meta_cap) filter to
essentially allow/disallow a user to edit a post. For example create a
capability 'edit_other_regions_events', and when the user's permission
to edit an event is being determined, check the region of the event's
venue and if the user does not belong to that region add that capability
as a requirement. Or if in your context 'region' is its own taxonomy,
that would work just as well.

If the drop-down selection of the event author needs to be limited
depending on the event's region, that is not impossible, but
considerably more fiddly.

I hope that helps in some way :)
Stephen
Post by Guus (IFS)
----- Original Message -----
Sent: Friday, August 09, 2013 6:17 PM
Subject: [wp-hackers] Regional Author Groups and Permission
Hi, I need some advice on the best way to approach building an event/booking
website with multi author support.
The idea is one website listing lots of regional events. Users can
geo-search events based on name, town, city and zip/post code with a
distance radius in miles (5,10,25 etc). Then book the event online via
PayPal and other payment gateways.
I have all of this working using Events Calendar Pro (Modern Tribe), Geo my
WP (free plugin) for the geo-search, WooCommerce and WooTickets for the
booking/tickets/payments.
What I am struggling with is how best to setup regional authors. I would
ideally like to create regional groups with a main coordinator and a number
of event publishers under the each region.
Each publisher will be able to create/publish edit/delete their own events,
but not any other publishers (ideally other publishers events need to be
hidden in the backend). The coordinators will be able to create/publish and
edit/delete their own events and those belonging to the publishers in the
same group (so see all events by all publishers in the same regional group).
They will be able to publish events on behalf of the publishers, so will
need to be able to select the author in the Author drop-down list. There
will be a number of regional groups and all the events in each group will
need to be hidden from the other groups. Hope this is making sense?
I have looked at a number of group based plugins, but they all appear to
work by setting the permissions on a per event (post) based system which
will not work as it will rely on publishers setting this very time.
I have also looked at a network/mu install of WordPress and think this is
probably the best approach, but Events Calendar Pro currently doesn't
support sharing the events back to the main network site ? ideally all mu
sites will only be used for adding content and not visible by the end user.
There is another event plugin called Events Organiser Pro which does support
mu integration and saves all events in the main network sites db but doesn't
support WooCommerce.
Another possible idea would be to create front-end templates for publishers
so that they can add/edit and view their own events.
So (apologies for long-winded question), but does anybody have any
recommendations or suggestions for managing groups and users where their
content is ring-fenced/hidden from other groups/users. I'm happy to hack
code if this is something that could be done in code.
Thanks in advance,
David
_______________________________________________
wp-hackers mailing list
http://lists.automattic.com/mailman/listinfo/wp-hackers
------------------------------
Subject: Digest Footer
_______________________________________________
wp-hackers mailing list
http://lists.automattic.com/mailman/listinfo/wp-hackers
------------------------------
End of wp-hackers Digest, Vol 103, Issue 14
*******************************************
David Churchill
2013-08-12 09:36:06 UTC
Permalink
Hi Stephen,

Thanks for you suggestions — I agree an MU site is not really a good idea.
Going to look at ways to limit permissions as per several peoples suggestion.
Thanks again to everybody for your help.

David
Event Organiser Pro doesn't support mu integration with regards to sharing events across sites (but Event Manager does). At the request of someone I did add support for ThreeWP broadcast ( http://wordpress.org/plugins/threewp-broadcast/) - but I never say that anywhere outside of the sourcecode :), and it's not something I actively support for reasons below. Pro comes with its owns booking management, so there's no WooCommerce integration.
Personally I think using multisite to 'divide' a site is the wrong approach to use for the simple reason that multisite is very much intended for situations where you have completely independent sites which may share a user base. I think the typical example is usually WordPress.com - and if that's not similar to what you're trying to achieve, you'll be going against the grain and probably find you'll end up with 'hacky' code or low performance or both. Unfortunately it was not designed to, and cannot in a particularly 'clean' way, share content between network sites.
I would use pre_get_posts to filter the admin pages so that only users with the appropriate permissions can view the posts - that is restrict events to those in regions to which the user belongs. With regards to editing posts you can use the map_meta_cap ( http://codex.wordpress.org/Function_Reference/map_meta_cap) filter to essentially allow/disallow a user to edit a post. For example create a capability 'edit_other_regions_events', and when the user's permission to edit an event is being determined, check the region of the event's venue and if the user does not belong to that region add that capability as a requirement. Or if in your context 'region' is its own taxonomy, that would work just as well.
If the drop-down selection of the event author needs to be limited depending on the event's region, that is not impossible, but considerably more fiddly.
I hope that helps in some way :)
Stephen
Post by Guus (IFS)
----- Original Message -----
Sent: Friday, August 09, 2013 6:17 PM
Subject: [wp-hackers] Regional Author Groups and Permission
Hi, I need some advice on the best way to approach building an event/booking
website with multi author support.
The idea is one website listing lots of regional events. Users can
geo-search events based on name, town, city and zip/post code with a
distance radius in miles (5,10,25 etc). Then book the event online via
PayPal and other payment gateways.
I have all of this working using Events Calendar Pro (Modern Tribe), Geo my
WP (free plugin) for the geo-search, WooCommerce and WooTickets for the
booking/tickets/payments.
What I am struggling with is how best to setup regional authors. I would
ideally like to create regional groups with a main coordinator and a number
of event publishers under the each region.
Each publisher will be able to create/publish edit/delete their own events,
but not any other publishers (ideally other publishers events need to be
hidden in the backend). The coordinators will be able to create/publish and
edit/delete their own events and those belonging to the publishers in the
same group (so see all events by all publishers in the same regional group).
They will be able to publish events on behalf of the publishers, so will
need to be able to select the author in the Author drop-down list. There
will be a number of regional groups and all the events in each group will
need to be hidden from the other groups. Hope this is making sense?
I have looked at a number of group based plugins, but they all appear to
work by setting the permissions on a per event (post) based system which
will not work as it will rely on publishers setting this very time.
I have also looked at a network/mu install of WordPress and think this is
probably the best approach, but Events Calendar Pro currently doesn't
support sharing the events back to the main network site ? ideally all mu
sites will only be used for adding content and not visible by the end user.
There is another event plugin called Events Organiser Pro which does support
mu integration and saves all events in the main network sites db but doesn't
support WooCommerce.
Another possible idea would be to create front-end templates for publishers
so that they can add/edit and view their own events.
So (apologies for long-winded question), but does anybody have any
recommendations or suggestions for managing groups and users where their
content is ring-fenced/hidden from other groups/users. I'm happy to hack
code if this is something that could be done in code.
Thanks in advance,
David
_______________________________________________
wp-hackers mailing list
http://lists.automattic.com/mailman/listinfo/wp-hackers
------------------------------
Subject: Digest Footer
_______________________________________________
wp-hackers mailing list
http://lists.automattic.com/mailman/listinfo/wp-hackers
------------------------------
End of wp-hackers Digest, Vol 103, Issue 14
*******************************************
_______________________________________________
wp-hackers mailing list
http://lists.automattic.com/mailman/listinfo/wp-hackers
Loading...