swinggraphics
Forum Replies Created
-
For the custom redirect URL, I imagine this is something you would want to set on a per petition basis rather than having one custom redirect URL that applies to all petitions. Or would a site-wide redirect for all petitions work?
I hadn’t thought of setting it on a per-petition basis, but that’s a great option! In my particular case for this client, we just want to send them to our Actions page, which lists all the available petitions. It won’t matter which petition they just signed on to.
Cheers.
I searched the plugin files for ‘site_url’. To fix the confirmation page, make these changes (plugin version 1.7):
includes/public-utils.php:
change line 319 to
<meta http-equiv="refresh" content="10;' . home_url('/') . '">
change line 347 to
<p><a href="' . home_url('/') . '">' . get_bloginfo( "name" ) . ' ?</a></p>
includes/admin.php:
change line 115 to
$confirmation_url = home_url() . '/?dkspeakupconfirm=' . $confirmation_code;
It would be really nice to be able to specify the redirect url with an option in the admin. We’d like to send visitors back to the page with other petitions, rather than the home page.
Thanks for an awesome plugin!
Kudos! I noticed one of the recent updates fixed that. Rock on.
It would be nice to have a set of allowed tags (and attributes), rather than blocking all. For example, parts of events for my current client need to be italic or superscript.
At the very least, EM should strip out the tags, rather than rendering then in plain text. For example, what I get now is “40<sup>th</sup> Anniversary Benefit”. [sic]
It would be nice to be able to hook into or filter the output to add/change text. For example, I want to use h2 tags for the title instead of h3, and I would like to add a note like “Please include your Country,” above the address field. Maybe if the html was separate separate from public.php, the plugin could check the theme directory before loading a default template.
Still, I’m building a site for an environmental org, and an email petition was absolutely required, so this is saving me a ton of trouble as it is. So thanks!
This happens even on a clean install with all other plugins disabled.
Hmmmm…seems if I leave the Twitter message blank, it’s okay. Guess I’ll hide that field with CSS…
I just installed the plugin, created a petition. The petition shortcode doesn’t work, and Email Petitions list blank, like semih44. Settings are default (display 20 rows). The shortcode it gave me was [emailpetition id=”0″]. I’m guessing it shouldn’t have produced “0” as an id. ??
I tried creating another one. Same thing. Made a change (removed Twitter text) and clicked Update. See resulting blank screen with cryptic message here: https://www.swinggraphics.com/Petitions-screenshot.png
Mark resolved.
Well, not sure what’s different now, but it’s all working again.
If I reassign the Events Page under Event List/Archives, the calendar will display on that page, but all other page still return a 404 (even the page where it used to be assigned, even tho EM shouldn’t have anything to do with it now). The only way it seems to be happy is by assigning the event list to the Events page that EM itself created upon install. Yet still, if I add the [events_calendar] shortcode to the page where I want the calendar, I get a 404.
It was a bug. But I had purchased Views, which comes with support thru their website. For this client project, it was worth the expedited support. @brucepearsoon was great! It took some time, but he fixed it. Public update coming soon, I’m sure. ??
Okay, I figured out how to do this. Add this to functions.php:
function custom_events_list_grouped( $args=array(), $format='' ) { $content = em_get_events_list_grouped( $args, $format ); return do_shortcode( $content ); } add_shortcode( 'events_list_grouped', 'custom_events_list_grouped' );
This overrides EM’s shortcode.
I was hoping to find something on this topic, too. This is my particular use case:
[events_list_grouped mode="monthly" scope="2-months" category="hikes"] [toggle title="#_EVENTNAME" subtitle="#_EVENTDATES (#_EVENTTIMES)"] #_EVENTEXCERPT<br/><a href="#_EVENTURL">Full event info ></a> [/toggle][/events_list_grouped]
Is there an action hook so I can add
do_shortcode( $content )
toevents_list_grouped
after it replaces placeholders?‘Edit recurring events’ – perfect. recurring/recurrent, same/same. As long as we get ‘reschedule’ out of there.
Looking forward to EM’s future! Cheers.
This is the “Default location balloon format” I am using:
<strong>#_LOCATIONNAME</strong><br/>#_LOCATIONADDRESS<br/>#_LOCATIONTOWN, #_LOCATIONSTATE #_LOCATIONPOSTCODE<br/><a href="https://maps.google.com/maps?daddr=#_LOCATIONADDRESS%2C+#_LOCATIONTOWN%2C+#_LOCATIONSTATE+#_LOCATIONPOSTCODE" rel="nofollow" target="_blank">Get driving directions ?</a>
Is there a way to escape spaces from #_LOCATIONADDRESS so the URL is properly formatted?
Also, agelonwl said “you can check out the EM templates.” Specifically, that info is here: https://wp-events-plugin.com/documentation/using-template-files/