feuerkralle
Forum Replies Created
-
Hi Marcus,
thank you for the link. I didn’t know that website. But I think I will do it by myselfe. Some hints would be good but it isn’t tbe first language I have to learn. Maybe now it’s time for Ajax.Dear Angelo,
thank you for your reply and sorry for my delayed answer.I think I have to overwrite the events-search.php and delete the search button:
<input type="submit" value="<?php echo esc_attr(get_option('dbem_serach_form_submit','Search')); ?>" class="em-events-search-submit" />Then I found this part of code which generates the category select field. But I have no idea how to implement the submit action after selecting a category entry. Sorry, I am a real beginner in Ajax. Could you help me?:
<?php if( get_option(‘dbem_search_form_categories’) ): ?>
`<!– START Category Search –>
<?php
$selected = !empty($_REQUEST[‘category’]) ? $_REQUEST[‘category’] : 0;
EM_Object::ms_global_switch(); //in case in global tables mode of MultiSite, grabs main site categories, if not using MS Global, nothing happens
wp_dropdown_categories(array( ‘hide_empty’ => 0, ‘orderby’ =>’name’, ‘name’ => ‘category’, ‘hierarchical’ => true, ‘taxonomy’ => EM_TAXONOMY_CATEGORY, ‘selected’ => $selected, ‘show_option_none’ => get_option(‘dbem_search_form_categories_label’), ‘class’=>’em-events-search-category’));
EM_Object::ms_global_switch_back(); //if switched above, switch back
?>
<!– END Category Search –>
<?php endif; ?>`
Thank you!Best regards,
Frank