Open aoloe opened 9 years ago
ok it was nicer than i thought at the beginning... and much harder than i would have thought at the end!
i could easily create a view... then i could create a shortcode that creates the mailto: url with subject, body and from addresses... it was very nice up to that point!
BUT: at two different places, formidable and wp try to convert the end of lines in the email body into
which makes it unusuable!
i know have patched
plugins/formidable/pro/classes/controllers/FrmProDisplaysController.php
to not apply any formattingwp-includes/plugin.php
to not convert "
to typographic dashes in form views and not to add frm_display
that are between {{{...}}}wp-content/themes/twentytwelve/functions.php
with the shortcode.i will need to refactor them, clean up everything and better document the changes.
howver, now i know how to create a schedule with formidable :-) and it's definively to work with than the old copy of the form editor we had...
The conversion into typographic dashes, that's being done by the function called wptexturize : http://codex.wordpress.org/Function_Reference/wptexturize
A way of getting content without the wptexturize filter applied, in the case of post content, is to use get_the_content() : http://codex.wordpress.org/Function_Reference/get_the_content
Hopefully that's helpful and will prevent the need for core hacking...
mmm... no,as far i can see, that won't solve the problem... but i might be missing something....
ok, i think i got closer to a solution... i could not found where i could change things with get_the_content, but i can pass "wpautop=0" to the field's caller in the custom short tag
[formidable_lgm_get_schedule_item date="[172]" time="[173]" duration="[174]" speaker="[86] [87] [91]" title="[88]" summary="[90 wpautop=0]"]
this turns off formidable's mangling but not wp's one.
on top of it, i had to add to the short tag definition:
remove_filter('the_content', 'wpautop');
remove_filter('the_content', 'wptexturize');
let's hope for the best!
a.l.e is working on it on february 20th...
the idea is to
... as it has been done the previous years...