Menno1987
Forum Replies Created
-
I wanted to make a countdown timer too … here is how i did it
BUT … it only seems to picks up the event from the next day onwards meaning it won’t work if the event is on the same day.
My client settled with this, but i’m not.So after some trial and error, i’ve found out that
define('EM_CONDITIONAL_RECURSIONS',2);
has to be inserted UNDER the other define(); functions in thw wp-config.php file. Now it’s resolved.Why did this got marked as resolved? Some explanation would be appreciated. Are nested conditional placeholders only supported from a certain version? My problem is not resolved.
Forum: Plugins
In reply to: [User List] Can i make it an Alphabetical pagination?Already got it working now …
Forum: Plugins
In reply to: [Contact Form 7 - Dynamic Text Extension] How to get user nickname?I’ve already resolved my issue.
To create an inputfield that dynamically outputs the firstname, lastname and email are:
[dynamictext your-firstname "CF7_get_current_user key='user_firstname' "] [dynamictext your-firstname "CF7_get_current_user key='user_lastname' "] [dynamictext your-firstname "CF7_get_current_user key='user_email' "]
To output those data later in your email it’s going to send you can use
[your-firstname] [your-lastname] [your-email]
Version 5.5.2
The code mentioned before is missing a line but i can’t edit my last post, so here is the complete code:
{has_bookings} {has_category_diner} Menukeuze:<br /> <input type="radio" required="required" name="booking_menu" value="Vlees"> Vlees<br/> <input type="radio" name="booking_menu" value="Vis" > Vis<br/> <input type="radio" name="booking_menu" value="Vegetarisch"> Vegetarisch<br/> {/has_category_diner} {no_category_diner} Menukeuze:<br /> <input type="radio" required="required" name="booking_menu" value="Vlees"> Vlees<br/> <input type="radio" name="booking_menu" value="Vis" > Vis<br/> <input type="radio" name="booking_menu" value="Vegetarisch"> Vegetarisch<br/> {/no_category_diner} #_BOOKINGFORM {/has_bookings}
If you’re using PHPmyadmin for database management, you could actually export/import a single table (for just events) to an XML file.
The name of the table with events is called wp_em_events.I’m not sure if there is a export/import function in the plugin itself.
Already got it working. Turned out, i was editing the wrong page. My bad.
Already got it working with
the_author_meta('meta-key');
Resolved.
Already figured out what i was doing wrong. Works like a charm now for the user_firstname, user_display_name, user_lastname and user_url.
Thanks for the plugin! ??
[dynamictext your-firstname "CF7_get_current_user key='user_firstname'"]
I’ve already got it working now using another plugin that enables PHP and shortcodes in a widget. I wanted to create a countdown timer that counts down to the first next event made with the plugin Events Manager.
With the code below i finally got it working. It counts down to the first next event that takes place on atleast the next day. For my client that was just fine.<?php global $wpdb; $canUpdate = false; $currentDay = date("Y-m-d"); $query = "SELECT event_name, event_start_date, event_start_time FROM wp_em_events WHERE event_start_date > '".$currentDay."' AND event_status = 1 ORDER BY event_start_date ASC LIMIT 1"; $result = $wpdb->get_results($query); if ($result) { $canUpdate = true; foreach($result as $row) { $nextEventName = $row->event_name; $nextEventDate = $row->event_start_date; $nextEventTime = $row->event_start_time; $nextEventDateAr = explode("-", $nextEventDate); $nextEventTimeAr = explode(":", $nextEventTime); $nextEventYear = $nextEventDateAr[0]; $nextEventMonth = $nextEventDateAr[1]; $nextEventDay = $nextEventDateAr[2]; $nextEventHour = $nextEventTimeAr[0]; $nextEventMinutes = $nextEventTimeAr[1]; $nextEventSeconds = $nextEventTimeAr[2]; } } ?> [countdown event="<?= $nextEventName ?>" day="<?= $nextEventDay ?>" month="<?= $nextEventMonth ?>" year="<?= $nextEventYear ?>"]
Forum: Plugins
In reply to: [PHP Code Widget] Cannot display dateWhat date are you trying to display?
If you want to display the current date/time try:
date(‘l, F jS, Y’);Resolved.