writegnj
Forum Replies Created
-
Forum: Plugins
In reply to: [Events Manager - Calendar, Bookings, Tickets, and more!] pay per eventI was playing around with s2member last night but could not find the way to do it yet. cause of the complicity on s2member plug in lol. I will spend more time on that plug-in to see if it works or not.
Thanks!yes. it works fine for me. thanks for the response.
Thanks for posting this. you just saved me the time to debug this which might take days ??
on line 403 if( get_option(‘dbem_css_editors’) ) /*echo ‘</div>’*/;
Yes removing a closing div solved my problem.
Thanks for the response!
Yes, I am. I kind of solved problem myself but still not sure it’s the best way to do it.
So I made plugins folder in my custom theme folder. then placed events.php file below location and made some changes.
My Custom Theme folder > plugins > events-manager > tables > events.php
on events.php, I edited
line 188 to
<a class="row-title" href="<?php echo esc_url($EM_Event->get_permalink()); ?>"><?php echo esc_html($EM_Event->event_name); ?></a>
Added
<a href="<?php echo esc_url($EM_Event->get_edit_url()); ?>"><?php _e('Edit','dbem'); ?></a>
on line 220 right before the “delete” buttonNVM. I did not look at the setting on network admin on my multisite wordress site.
This got me to have more questions. lol so I see how to insert and replace data on database but I can’t figure it out how to delete data.
it does not seem like have action hook for post delete, so I was trying to add below into wpuf-dashboard.php right after
wp_delete_post( $_REQUEST['pid'] );
global $wpdb; $post_id = $post->ID; $wpdb->delete( $wpdb->prefix . 'places_locator', array( 'post_id' => $post_id ) );
Could u tell me what I;m doing wrong?
I was missing
global $wpdb;
before the insert line. it WORKS good.
@mainpart Thank you so much.I’m not familiar with action hook yet. so should I fix like this?
function add_location_info($post_id){ $fullstreet = $_POST['cf_street_number']. ' ' .$_POST['cf_route']; //enter information into the custom table // $wpdb->insert( $wpdb->prefix . 'places_locator', array( 'post_id' => $post->ID, 'post_type' => $post->post_type, 'post_title' => $post_title, 'post_status' => $_POST['post_status'], 'street' => $fullstreet, 'city' => $_POST['cf_locality'], 'state' => $_POST['cf_administrative_area_level_1'], 'zipcode' => $_POST['cf_postal_code'], 'country' => $_POST['cf_country'], 'lat' => $_POST['cf_lat'], 'long' => $_POST['cf_lng'], ) ); } add_action( 'wpuf_add_post_after_insert', 'add_location_info' );// JavaScript Document
I will try this and let u know!
Thanks for the response.Forum: Plugins
In reply to: [GEO my WP] Front end form for location/additional informationSo I found an way to store all location data to places_holder table with post_id. however on the back-end geo form, it’s not picking up the data from places_holder table at all. Although all the data are there with proper post_id.
What am I missing for back-end geo form to picks up data from places_holder table?
thank you!
Forum: Plugins
In reply to: [GEO my WP] Front end form for location/additional informationthanks for the response. I will take a look at that.
Forum: Plugins
In reply to: [GEO my WP] [gmw_single_location] Documentation??Found the issue. on plug-in’s functions.php (post > include > functions.php) Line 125, you are missing closing ” on mailto link.
should be like below.if ( in_array(’email’, $additional_info) ) { $single_map .= ‘<div class=”gmw-email”><span>’. __(‘Email: ‘,’GMW’); $single_map .= ‘</span>’; $single_map .= ( isset($post_info[0][’email’]) && !empty($post_info[0][’email’])) ? ‘‘.$post_info[0][’email’].’‘ : __(‘N/A’,’GMW’); $single_map .= ‘</div>’; }
Thank you for the great plug-in!
Forum: Plugins
In reply to: [GEO my WP] [gmw_single_location] Documentation??For show_info, it does not echo out Email address instead put website information on email section.
Is this only happening to me? or a bug?
Forum: Themes and Templates
In reply to: Mobile bottom Navigation – what you think?Good point I agree with you. thanks for the comment!
Forum: Themes and Templates
In reply to: Mobile bottom Navigation – what you think?@andrew thank you for the comment. Sorry, I am not really understanding what u talking about the navigation. The bottom bar which contains Menu text on the left and hamburger icon on the right will trigger the Main Nav. Is this what u asking??