moaschtr
Forum Replies Created
-
Same request from our side… Now with Covid-19 there will be hardly any physical events worldwide, so it might be a good opportunity now to integrate e.g. a checkbox near the location address field for the “VirtualLocation” schema.
We’re also PRO users but I didn’t find this post in the Pro forum yet.
Thanks for considering! ??
HannesThanks Patrick,
I know EM is (largely) optimized for WPML but this table header would be the only thing I would need WPML for (btw I meant Loco Translate in this case)… ??
I couldn’t figure it out how to deal with gettext, also putting it in a shortcode did work only in parts (the shortcode straingly works fine only for the first table on a page, but I have a second events table on the main events page where just the shortcode-code is displayed…).
So I guess I’ll just leave the table header empty/away.Thank you anyway!!
I agree, my child theme got overwritten with the new default customization styles (which are output as inline css)…
I’ve tried to add the following to my functions.php to deactivate all this new inline css, it works but maybe Cyberchimps can verify that code as I am not a pro:// when the after_setup_theme hook fires add_action( 'after_setup_theme', 'remove_custom_styles_action' ); function remove_custom_styles_action() { remove_action( 'wp_enqueue_scripts', 'responsive_premium_custom_color_styles', 99 ); }
But a checkbox would be much more convenient, I agree!
- This reply was modified 5 years, 3 months ago by moaschtr.
@duisterdenhaag ok that’s the prove that I am not so good with php ??
Thank you very much for your kind explanations, not only in my post but you are general so helpful around here!
I first thought the {has_bookings}{/has_bookings} placeholders wouldn’t work in template files, but as they obviously do (with the right code ?? ) I will definitly follow your second suggestion and use the output() function ?? But it’s clearer now to me how the condition code behind it would have to look like!Personally, I think checking the EM settings is a bit redundant, as the checkbox can not be checked if bookings aren’t allowed. ??
I did not quite understand what you mean by that…
@angelo_nwl , I found that code in the file em-event.php:
if ($condition == 'has_bookings') { //check if there's a booking, if not, remove this section of code. $show_condition = ($this->event_rsvp && get_option('dbem_rsvp_enabled')); }
but I’m not quite there yet… That’s my new code in the single-event template:
if ($condition == 'has_bookings') { echo '<div class="widget-wrapper"> <h3>' . __("Booking","my-child-theme") . '</h3> ' . $EM_Event->output("#_BOOKINGFORM") . ' </div>'; };
The form is not showing, I guess there is missing some line to access the output function variable $condition correctly, or what did I wrong?
Many thanks once again!! ??Thank you Angelo!
That looks very good, I’m gonna try that out ??Hi I.,
I think there is no option directly in the plugin for that, but according to the stylesheet it should be orange actually…:table.em-calendar td.eventful a, table.em-calendar td.eventful-today a { color: #FD7E29; }
However, you could change that in your custom stylesheet.
Hi Patrick,
Google processes the IP-address of the visitor a soon as the map is shown. The IP-address is viewed as personal data and therefore the GDPR has to be considered (consent of the user).
That would be a great feature, I agree! Would be a better alternative to annoying pop-ups for every visitor… I switched maps off for now because of that. Thanks!
(over the formats/layout page in events manager settings)
Thanks for yours reply, I use it on every single event page.
Thanks caimin_nwl, that’s what I ment. I’ll have a look at those… hoped that maybe wordpress would do that automatically ??
I know, thanks.
Sure, my fields are ‘adresse’, ‘plz’ and ‘ort’.
I hooked intoem_register_form
with the following:<?php add_action('em_register_form','mycustomfields_em'); function mycustomfields_em() { ?> <p> <label for='adresse'>Adresse</label> <input id="adresse" class="input" type="text" size="25" value="<?php echo $_POST['adresse']; ?>" name="adresse" /> </p> <p> <label for='plz'>PLZ</label> <input id="plz" class="input" style="max-width: 160px;" type="text" size="5" maxlength="5" value="<?php echo $_POST['plz']; ?>" name="plz" /> </p> <p> <label for='ort'>Ort</label> <input id="ort" class="input" type="text" size="20" value="<?php echo $_POST['ort']; ?>" name="ort" /> </p> <?php } ?>
hi,
just replace ‘pic’ with ‘pic_big’ in the code:$fql = "SELECT name, pic, start_time, end_time, location, description, eid
gets
$fql = "SELECT name, pic, pic_big, start_time, end_time, location, description, eid
and
echo "<img src={$values['pic']} />";
gets
echo "<img src={$values['pic_big']} />";
Now you can additionally set a width if you want:
echo "<img src={$values['pic_big']} width='200px' />";