Support

Home Forums Roles and Permissions Add-ons (EE3) Transferring or copying ownership of questions/question groups

Transferring or copying ownership of questions/question groups

Posted: December 15, 2014 at 8:29 pm


Angus Russell

December 15, 2014 at 8:29 pm

We are updating our capabilities and just upgraded to R&P Pro; prior to this we created all events for our instructors.

Now, we want them to be doing this. However, all the questions and questions groups are now with a different login. If we now create logins for each instructor, and set them up as Event Mgrs, how can we transfer those questions to them?

Or do we have to copy them across logins?

We have a standard set of questions we use for all events, with slight variations, so being able to copy them across the multiple event mgrs would be hugely useful.

Thanks


Angus Russell

December 15, 2014 at 8:31 pm

It may be easier to transfer entire events over that have been created under an admin login, to the event mgr login.

Just looking for ways to save time & effort 🙂

Many thanks


Tony

  • Support Staff

December 16, 2014 at 5:11 am

So just to be 100% sure, you want the questions created by you main log in account to be accessible to all of the accounts used to create/edit events?


Angus Russell

December 16, 2014 at 8:38 am

Correct.

All our events are sports events, and the vast majority of basic information is the same.

Especially things like the questions needed when creating an account, and the disclaimer, these are common to almost every event. Then each event may have a handful of specific questions.

Thanks


Josh

  • Support Staff

December 17, 2014 at 12:43 pm

Hi Angus,

It sounds like a simpler solution would be to allow all the event managers to have access to the same group of questions, which can be done by targeting some PHP at the filter that handles the grouping of questions per event manager. This code will override it:

The above code can be placed within a custom snippets plugin.


Angus Russell

December 17, 2014 at 8:16 pm

Magic, thanks Josh.

I followed the instructions here https://eventespresso.com/wiki/create-site-specific-plugin-wordpress-site/

about creating a custom snippet plugin, created a php file in the wp-content/plugins folder pasted the code into and then your code, kept the code checker on

owever when I check in my WP dashboard I can’t find the plugin in the plugin menu, nor does it appear in the dropdown for the editor – any ideas what I’ve missed?

WP4.01 EE 3.1.36.6.P

Thanks


Angus Russell

December 18, 2014 at 4:38 am

OK, no problem, it’s there now!

So, with this custom snippet plugin – is this how I should add any amendments I make to plugin code, and if so how do I ensure that these take priority over the original plugin?

Many thanks


Tony

  • Support Staff

December 18, 2014 at 7:23 am

Hi Angus,

It depends on what your are trying to edit and where that code is hooked into.

Some functions are ‘pluggable‘ and can be easily overridden by declaring that function first, plugins load alphabetically so if overriding functions you need to ensure your custom plugin loads before EE.

Hooks can be removed and new ones added at a higher priority than the original.

We provide simple ways to override functions with your own version by adding a custom_functions.php file to wp-content/uploads/espresso/ which will lead before the core functions.

Templates can be placed within wp-content/uploads/espresso/templates/ to override the default ones.

Note – this all applies to EE3 and not EE4.

The support post ‘Transferring or copying ownership of questions/question groups’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso