• Resolved meylodie

    (@meylodie)


    Hello,

    here is the website: http://openrocks.citrotux.org/agenda/

    I have been able to submit an event only by switching theme to twenty fifteen (didn’t try any other officiel themes), and then I switched back to Reponsive P2 child theme. I tried to post an even using Firefox 48.0, then Chromium Browser 51.0.2704.79 : when pressing the “Submit” button nothing would happen.

    I also tried with just the “P2” WP theme, and it didn’t work either.

    Is there a way that we could make them work together right?

    Something else also bothers me badly : this is a multisite and I need to be logged in as first administrator suscribed to the main site, in order to be able to access to the “Events Made Easy Frontend Submit” setup. I have also created a user for myself with another nick having administration privileges, to be just connected to this one sub site : but when logged in with this login, even though I’m administrator of this one website, I can’t see the “Events Made Easy Frontend Submit” setup section. How is that possible?

    Thanks for your help, best regards,
    Mélodie

    https://wordpress.org/plugins/events-made-easy-frontend-submit/

Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Author Franky

    (@liedekef)

    Concerning the multisite, could you try if this change works:

    https://plugins.trac.wordpress.org/changeset/1474148/

    After that, disable/enable the plugin networkwide (if desired).

    I’m checking the theme issue now.

    Plugin Author Franky

    (@liedekef)

    For the theme: P2 is an old theme, not really up-to-date.
    Now, it seems it doesn’t like if the form is called “new-post”. So change the template (form.php) and the css (style.css) and give your form another name/id. Should work then.

    Thread Starter meylodie

    (@meylodie)

    Hello,

    If I get it right, now from lines 84 to 97 I got:

    if ($networkwide) {
             //   $old_blog = $wpdb->blogid;
                // Get all blog ids
                $blogids = $wpdb->get_col("SELECT blog_id FROM {$wpdb->blogs}");
                foreach ($blogids as $blog_id) {
                   switch_to_blog($blog_id);
                   call_user_func($pfunction, $networkwide);
                   restore_current_blog();
                }
               // switch_to_blog($old_blog);
                return;
             }
          }
          call_user_func($pfunction, $networkwide);

    Is that right? And while I was at it, I also posted at the P2 theme page about the present issue:
    https://wordpress.org/support/topic/p2-and-responsive-p2-doesnt-like-events-made-easy-frontend-submit-plugin

    Thread Starter meylodie

    (@meylodie)

    So change the template (form.php) and the css (style.css) and give your form another name/id.

    then should I still change the emefs.php file? And to be sure : I assume you are talking about the form.php and style.css located in the templates plugin sub-directory?

    Looking into it now…

    Thread Starter meylodie

    (@meylodie)

    Hello,

    That worked! I kept the changes done as you told me and as I have understood it (above code block), and changed the string “new_post” to “newpost” in the form.php and style.css and I have finally been able to add an event with the submit button!

    Here the test event:
    http://openrocks.citrotux.org/events/6/test-nouveau-code/

    (it’s here temporarily, both other 2 events were added successfully using temporary other themes).

    Many thanks to you!

    Thread Starter meylodie

    (@meylodie)

    Hello,

    About the access to setup, the change does not make it work better.

    Here are two pictures, one with the orange theme is with my full administration rights account (full admin on the multisite):
    http://meets.free.fr/images/Events-1st-Admin-in-multisite.png

    the other one shows what I can access with only the administrations rights in the sub site:
    http://meets.free.fr/images/Events-Admin-in-subsite.png

    It seems strange to me that I could not be allowed, as administrator of the sub site, to access to the setup of the plugin (which by the way, is active only on this sub site and not on the rest of the network).

    Thanks again for your insight.

    Plugin Author Franky

    (@liedekef)

    In your initial post concerning the multisite, you talked about the settings for the frontend submit plugin, not the main EME plugin. The change I provided is for the frontend submit plugin too, but your screenshot is about EME.
    Btw: for the main EME plugin, if you want to access the settings you need to have the capability “activate_plugins” in your subsite.

    Thread Starter meylodie

    (@meylodie)

    The change I provided is for the frontend submit plugin too, but your screenshot is about EME.

    oh ok, I had not realized.

    you need to have the capability “activate_plugins” in your subsite.

    I don’t see how I can do that, unless I gain privilege as super admin for the whole network on my citrotux.org install? Isn’t there another method?

    Thank you again. 🙂

    Plugin Author Franky

    (@liedekef)

    Well, go in the subsite as super-admin and go in the EME settings page. There you have a tab called “Access”, change in there the permissions to your liking.

    Thread Starter meylodie

    (@meylodie)

    I just tried that, but I guess I’ll have to leave them default options alone as I don’t know what they do exactly. When I’ll have more time available I might go check the documentation deeper, for now I’ll be happy with what I have. 🙂
    (Which was not that obvious to find in the first place, given the incredible number of calendar and events plugins available out there!).

    Many thanks to you!

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Submit button does not work with the "Responsive P2" child theme’ is closed to new replies.