Support

Home Forums Roles & Permissions Roles & Permissions Question

Roles & Permissions Question

Posted: September 1, 2012 at 10:47 am

Viewing 16 reply threads


erostad

    September 1, 2012 at 10:47 am

    I am trying to open up Event management capabilities to the Editor and the Event Espresso Admin roles. For some reason, this is not working for me. I have added the Roles & Permissions Basic plugin and have added the Members Plugin to my administrator area. The Admin user role allows for Event Espresso Management, but I cannot do this with the Editor and Event Espresso Admin roles.

    I am not seeing the minimum page permissions as shows on this page – http://staging.eventespresso.com/wiki/roles-permissions-basic/

    Additionally, I am seeing the following errors on my Event Overview Page:

    Warning: array_key_exists() expects parameter 2 to be array, null given in /home/content/05/9672805/html/wp-content/plugins/espresso-permissions-basic/espresso-permissions.php on line 215

    And these errors on my Venue Manager Page:

    Warning: array_key_exists() expects parameter 2 to be array, null given in /home/content/05/9672805/html/wp-content/plugins/espresso-permissions-basic/espresso-permissions.php on line 215

    Warning: array_key_exists() expects parameter 2 to be array, null given in /home/content/05/9672805/html/wp-content/plugins/espresso-permissions-basic/espresso-permissions.php on line 215

    Does anyone know why I cannot allow my Editors and Event Espresso Admins to have access to Event Management even after making these capabilities active – espresso_event_admin, espresso_event_manager, and espresso_group_admin capabilities?

    Thanks


    Dean

    • Support Staff

    September 3, 2012 at 12:27 am

    Hello Erostad,

    I cannot recreate this error. Can you send login details so I can have look please?

    you can send them here
    http://staging.eventespresso.com/contact/ select the “I am sending long info as required” option in the drop down and fill out the form


    Seth Shoultes

    • Support Staff

    September 3, 2012 at 9:47 am

    Hello Erostad,

    Thanks for sending us your login information. It looks like you are using outdated versions of the Event Espresso plugins and trying to use the latest version of the Event Espresso Permissions addon:
    http://www.screencast.com/t/dBzXuhounb7Q

    Upon deactivating the Event Espresso Permissions addon. Your event listings started working again. I would recommend that you update all of the Event Espresso plugins to the latest versions.


    erostad

      September 3, 2012 at 11:36 am

      Hello – all plugins have been updated but I am still having the problem with gibberish on the Events Manager page. The Roles & Permissions now works. My events page also changed. Before, I had the upcoming event listed first with all previous events listed in order of the most recent date. Now, it is opposite and it shows the upcoming event as the last event -http://www.chinacenter.net/events/

      Here is the code used on that page:

      Upcoming and Past Events

      [EVENT_LIST show_expired="true" show_current="false" order_by="date(end_date)"]

      Do you know how I can fix these problems?

      Thanks,
      Erik


      Dean

      • Support Staff

      September 4, 2012 at 9:11 am

      Hey Erostad,

      We are looking into the cause of this currently. Will get back to you.


      erostad

        September 4, 2012 at 9:21 am

        Ok – thank you.


        Seth Shoultes

        • Support Staff

        September 4, 2012 at 9:59 am

        @Erik it seems you have other roles and permissions plugins installed that may be conflicting with the Event Espresso Permissions addon. So I fixed your site by updating the Event Espresso Permissions code and will add the fix to the next version of Event Espresso.


        erostad

          September 4, 2012 at 10:20 am

          Yes, I have the Members plugin installed. Should I remove that plugin?

          Also, were you able to look into the listing order? Before I updated the EE version, I had gone into the /includes/shortcodes.php file and had changed ASC to DESC for the display $order_by. Where can I do this in the new EE version so that my events show up in order of the most recent events using this code – [EVENT_LIST show_expired="true" show_current="false" order_by="date(end_date)"]

          Thanks


          Chris Reynolds

          • Support Staff

          September 4, 2012 at 4:39 pm

          Before I updated the EE version, I had gone into the /includes/shortcodes.php file and had changed ASC to DESC for the display $order_by. Where can I do this in the new EE version so that my events show up in order of the most recent events using this code – [EVENT_LIST show_expired="true" show_current="false" order_by="date(end_date)"]

          This is going to be addressed in the next update. We’re adding an additional parameter to specify which direction the sort order displays (ASC or DESC).


          erostad

            September 4, 2012 at 7:15 pm

            Ok – when will the update be available and is there anything I can do to change this in the meantime? This site is live and the next event needs to show first instead of last.

            Thanks


            Dean

            • Support Staff

            September 6, 2012 at 2:11 am

            There’s no definite launch date for the next update, but it will be soon, the devs are hard at work on it, and I believe it has gone in for testing already.


            erostad

              September 6, 2012 at 5:02 am

              Thanks Dean – in the meantime is there any way I can easily change that through shortcodes or altering a php file like I was able to do in the last version?


              Dean

              • Support Staff

              September 6, 2012 at 5:54 am

              Easily? Not that I’m aware of, though if you are good with PHP you might be able to have a go at the shortcode.php or even build a new one via custom-shortcode.php


              erostad

                September 6, 2012 at 6:48 am

                Ok – because last time, it was one simple change to the shortcode.php file.


                Seth Shoultes

                • Support Staff

                September 6, 2012 at 12:21 pm

                @erostad

                Try this:
                In the “event-espresso/templates/event_list.php file you can change line #109:

                $sql .= $order_by != 'NULL' ? " ORDER BY " . $order_by . " ASC " : " ORDER BY date(start_date), id ASC ";
                


                erostad

                  September 6, 2012 at 8:09 pm

                  That worked – thank you.


                  erostad

                    September 26, 2012 at 6:44 am

                    How can I change the order from Ascending to Descending after this update? I tried the code listed in this string from earlier this month and it doesn’t work. There was talk about this being a feature in the update. How can I make this change?

                    Thanks

                    Viewing 16 reply threads

                    The support post ‘Roles & Permissions Question’ 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 - Staging Server