j shortCodes
It’s easy to create So Orange Rounded black button or custom icon or FontAwsome iconWordpress Admin -> J-Shortcodes -> General Settings, before it could be used.
This is first pane content
Wordpress Admin -> J-Shortcodes -> General Settings, before it could be used.
This is second pane content
Wordpress Admin -> J-Shortcodes -> General Settings, before it could be used.
This is third pane content
http://www.jshortcodes.com/shortcodes/
Icons für mobile startseite & shortcode buttons
Liste http://fortawesome.github.io/Font-Awesome/icons/
http://fortawesome.github.io/Font-Awesome/examples/
META code in SEO plugin settings
fa-lg
fa-2x
fa-3x
fa-4x
fa-5x
Events Made Easy -
Website: www.e-dynamics.be
Author: Franky (NL) Van Liedekerke franky@e-dynamics.be
Forum | Oliver – kunde303
A small discount code example
Say you want to give a discount if more than 1 place is booked, then put the following in your theme functions.php (for a single-price-category event):
add_action('eme_insert_rsvp_action', 'my_eme_discount_function',20,1);
function my_eme_discount_function($booking) {
global $wpdb;
$bookings_table = $wpdb->prefix.BOOKINGS_TBNAME;
$where = array();
$fields = array();
$event_id = $booking['event_id'];
if ($event_id == 5) { /* put in the event_id that needs processing */
//echo 'EVENT ID='.$event_id .' Booking_id = '.$booking['booking_id'];
$seats=$booking['booking_seats'];
$price=$booking['booking_price'];
// more than 2 seats, then the price is 25 per seat
if ($seats> 1)
$price = 25;
$fields['booking_price'] = $price;
$where['booking_id'] = $booking['booking_id'];
$wpdb->update($bookings_table, $fields, $where);
}
return;
}
Multiple Prices
If you want an event to have multiple prices (e.g. different prices for students, children, …), it’s as easy as entering a price in the “Add New Event” window in the EME admin pages.The value entered should just specify all prices, seperated by “||”.
An example (see also screenshot) for an event having 3 prices: 22||20.50||18
Now, as you specified 3 prices in the example above, people should be able to book for those 3 as well. For this you need to change the setting “Registration form format” for the event.
Usually you just enter the shortcode #_SEATS there, to have a dropdown to select a number of seats to book. Now in this case, you need 3 of those, with a number behind them: #_SEATS1, #_SEATS2, #_SEATS3
E.g. the “Registration form format” could then be like this:
#_CAPTCHAHTML[
]
Name*: | #_NAME |
---|---|
E-Mail*: | #_EMAIL |
Phone number: | #_PHONE |
Seats for children: | #_SEATS1 |
Seats for adults: | #_SEATS2 |
Seats for students: | #_SEATS3 |
Comment: | #_COMMENT |
Please fill in the code displayed here: | #_CAPTCHA |
#_SUBMIT
RSS Links
http://www.e-dynamics.be/wordpress/?cat=35
Some examples:
[eme_rss_link limit=20]
[eme_rss_link scope=future]
[eme_rss_link scope=0000-04 limit=0]
[eme_rss_link category=1,3]
(gets you the list of future events in categories with ID 1 OR 3)
[eme_rss_link category=1+3]
(gets you the list of future events in categories with ID 1 AND 3)
[eme_rss_link author=admin45]
(gets you the list of future events created by user admin45)
Print Tickets / CSV Export
For the moment EME doesn’t support tickets, but you can use the CSV output and then generate your tickets in e.g. Word (Windows), LibreOffice (Linux/Windows), glabels (Linux), …
WordPress Tips
How to deactivate all plugins when not able to access the administrative menus?
One of two methods are available to deactivate all plugins.
Use phpMyAdmin to deactivate all plugins.
- In the table wp_options, under the option_name column (field) find the active_plugins row
- Change the option_value field to: a:0:{}
Or reset your plugins folder via FTP or the file manager provided in your host’s control panel.
- Via FTP or your host’s file manager, navigate to the wp-contents folder (directory)
- Via FTP or your host’s file manager, rename the folder “plugins” to “plugins.hold”
- Login to your WordPress administration menus (/wp-admin)
- Via FTP or your host’s file manager, rename “plugins.hold” back to “plugins”
clear the “Briefly unavailable for scheduled maintenance” message
As part of the automatic upgrade WordPress places a file named .maintenance in the blog base folder (folder that contains the wp-admin folder). If that file exists, then vistors will see the message Briefly unavailable for scheduled maintenance. Check back in a minute.