Blackgossbo
Forum Replies Created
-
That didn’t work. Apparently, the latest version uses events and recurring events as custom types.
Event Categories and other custom taxonomies are stored the same way in the database.
To add a placeholder based on a custom taxonomy called “dress-code”. I got it to work! Thanks for your help anyway.function my_em_custom_placeholders($replace, $EM_Event, $result){ global $wp_query, $wp_rewrite; switch( $result ){ case '#_DRESSCODE': $replace = 'none'; $dresscodes = get_the_terms($EM_Event->post_id, 'dress-code'); if( is_array($dresscodes) && count($dresscodes) > 0 ){ $dresscodes_list = array(); foreach($dresscodes as $dresscode){ $link = get_term_link($dresscode->slug, 'dress-code'); if ( is_wp_error($link) ) $link = ''; $dresscodes_list[] = '<a href="'. $link .'">'. $dresscode->name .'</a>'; } $replace = implode(', ', $dresscodes_list); } break; } return $replace; } add_filter('em_event_output_placeholder','my_em_custom_placeholders',1,3);
I figured it out. Thanks.
function my_em_custom_placeholders($replace, $EM_Event, $result){ global $wp_query, $wp_rewrite; switch( $result ){ case '#_CITY': $replace = 'none'; $cities = get_the_terms($EM_Event->post_id, 'city'); if( is_array($cities) && count($cities) > 0 ){ $cities_list = array(); foreach($cities as $city){ $link = get_term_link($city->slug, 'city'); if ( is_wp_error($link) ) $link = ''; $cities_list[] = '<a href="'. $link .'">'. $city->name .'</a>'; } $replace = implode(', ', $cities_list); } break; case '#_LOCATION': $replace = 'none'; $locations = get_the_terms($EM_Event->post_id, 'location'); if( is_array($locations) && count($locations) > 0 ){ $locations_list = array(); foreach($locations as $location){ $link = get_term_link($location->slug, 'location'); if ( is_wp_error($link) ) $link = ''; $locations_list[] = '<a href="'. $link .'">'. $location->name .'</a>'; } $replace = implode(', ', $locations_list); } break; } return $replace; } add_filter('em_event_output_placeholder','my_em_custom_placeholders',1,3);
I want to assign custom taxonomies to Events and Recurring Events and retrieve them as a placeholder.
Cool, thanx! I’ll try it. Were you able to use the taxonomy in a placeholder? How do I retrieve it?
How did you use custom taxonomies with events?
I have another taxonomy plugin that detects Events and Recurring Events as Custom Post Types so I can assign taxonomies to them. The meta-boxes show up on the Edit Event screen. But how do I retrieve that information?Yes sir. In the Form 2 options, I didnt add Webmaster to ‘Email To’ list. And the email I specified is valid since the email test at the bottom works.
Oh I overlooked the fact that it didnt include the admin. Sorry man.
On another note, i have an email for Form 1 and a different email for Form 2. When I try Form 2, it sends the email to Form 1’s email address. Any ideas?Forum: Plugins
In reply to: [Plugin: Contact Form 7] Possible Re-CAPTCHA supportI’m with relaxedguy. reCaptcha would be nice. Good plugin tho.
Forum: Plugins
In reply to: [Plugin: Viper’s Video Quicktags] YouTube video AND preview image.Yeah. Sorry about that. That was stupid. Great plugin. Thanx.
Forum: Plugins
In reply to: [Plugin: Viper’s Video Quicktags] YouTube video AND preview image.I disabled everything. It still shows up both the video and the preview image.
I think this line writes out the image in addition to the video.$fallbackcontent = ‘<img src=”https://img.youtube.com/vi/’ . $content . ‘/0.jpg” alt=”‘ . __(‘YouTube Preview Image’, ‘vipers-video-quicktags’) . ‘” />’;
What does it do?
ThanxForum: Plugins
In reply to: [Plugin: Viper’s Video Quicktags] YouTube video AND preview image.Forum: Plugins
In reply to: [Plugin: Viper’s Video Quicktags] YouTube video AND preview image.I’m having the same problem. But the link to the bug tracking system has not worked lately. Can someone post the fix on here please? Thank you
https://www.ads-software.com/extend/plugins/search-everything/Forum: Plugins
In reply to: [Plugin: AJAX Login Widget ] Future Work (from v1.0.1)Just gimme your email. I’ll send it tonite. I’ve known HTML, javascript and CSS for years. I just started learning PHP.
If you know about HTML and CSS, you’ll be fine understanding whats goin on.
Usually, in plugins, either the PHP writes the HTML (tags and controls) thru echo function calls or like in this one, the HTML has inline PHP in it.Forum: Plugins
In reply to: [Plugin: AJAX Login Widget ] Future Work (from v1.0.1)Great stuff, David.
I’ve customized my own template to include the following:
– Register link only appears if “Anyone can register” options is checked
– Logged in users have different links depending on their role.
(Admin have add’l to Dashboard, Authors/Editors have add’l link to Post an article, …)
– Made the login look more like a widget by adding a title depending on the mode
Login -> Member Login
Logged in -> Welcome, Bak
Register -> Join the club
Lost Password -> Retrieve Password
– I also tried to have default text in text fields which are cleared onfocus unless you enter something in them. I then removed the focus function from your javascript when you change mode (Login/Lost Password/Register). It worked but I reverted back to the original setting.It would be nice to request additional information upon registration such as CAPTCHA. I tried to use the “is_human()” plugin but can’t get it to work. I’ll try some more tho. Any ideas?
The Twitter idea from 3) is great idea.
I’ve also been looking for a front-end user profile plugin/page, where users can see their posts, comments, avatar, password change, links to other accounts (Twitter, Facebook, MySpace and stuff like that). Any ideas?
Thanks again for such a nice plugin.
If you want to see my template, just lemme know.Bak