writegnj
Forum Replies Created
-
Forum: Themes and Templates
In reply to: [Ohsik] ohsik and IE8Hi almcr,
ie8 does not support “checked” pseudo-element which used in the theme to make responsive navigation work without JavaScript.Maybe this article can help you out.
http://stackoverflow.com/questions/17869547/how-can-i-get-a-css-pseudo-element-checked-to-work-in-ie8-without-javascriptForum: Themes and Templates
In reply to: [Ohsik] multi-level menuJust you know Sub menu CSS added on version 1.6.1 and 1.7 which will be available soon.
Forum: Themes and Templates
In reply to: [Ohsik] multi-level menuTry the CSS code above and let me know if you still have problem with that. Thank you! Mark it as resolved.
Forum: Themes and Templates
In reply to: [Ohsik] multi-level menuFor now, Adding below CSS will do the job. This probably will be added on next version.
/*Sub Menu Setup ------------------------------------------------------------*/ .menu-item-has-children{ position: relative; } .sub-menu{ position: absolute; display: none; top: 38px; left: 0; z-index: 9999; background: #ccc; } .sub-menu li a{ min-width: 176px; } .menu-item-has-children:hover > .sub-menu{ display: block; } @media only screen and (max-width:768px){ .sub-menu{ /*Added for submenu*/ display: block; position: static; padding: 0 0 0 10px; } }Forum: Themes and Templates
In reply to: [Ohsik] multi-level menuAre you talking about sub-menu on navigation?
I did not implement any code for sub-menu since I wanted to have CSS as simple as possible. However, I’m thinking about writing additional code for sub-menu and it will be uploaded soon.I got custom front-end form and trying to save event data from it in functions.php with action hook.
global $wpdb; $wpdb->insert( $wpdb->prefix . 'em_locations', array( 'post_id' => $post_id, 'blog_id' => $blog_id, 'location_slug' => $location_slug, 'location_name' => $_POST['cf_location_name'], 'location_owner' => $current_user->ID, 'location_address' => $fullstreet, 'location_town' => $_POST['cf_location_city'], 'location_state' => $_POST['cf_location_state'], 'location_postcode' => $_POST['cf_location_zipcode'], //'location_country' => $_POST['cf_location_country'], 'location_country' => 'US', 'location_latitude' => $_POST['cf_location_lat'], 'location_longitude'=> $_POST['cf_location_lng'], 'location_status' => '1' ) ); $wpdb->insert( $wpdb->prefix . 'em_events', array( 'post_id' => $post_id, 'blog_id' => $blog_id, 'event_slug' => $event_slug, 'event_owner' => $current_user->ID, 'event_status' => '0', 'event_name' => $_POST['wpuf_post_title'], 'event_start_time' => $event_st, 'event_end_time' => $event_et, 'event_all_day' => '0', 'event_start_date' => $_POST['cf_date_start'], 'event_end_date' => $_POST['cf_date_to'], 'post_content' => $_POST['wpuf_post_content'], 'location_id' => $EM_Location->id, 'event_category_id' => $_POST['cf_event_category'], 'event_date_created' => $post_date, 'event_date_modified' => $post_modified ) ); }After submitting the form I saw data stored in Database but it goes to 404 page on front-end.
Did u solve this problem? I’m having the same issue.
I made a custom front-end form and save event/location data with wpdb.
I checked all data stored in below tables.
wp_posts
wp_em_events
Browse wp_em_locationsBut it does not show up in back-end under events(or posts) and the event page(contains correct slug) goes to page not found. On the back-end tho, It counts the event I submitted with my custom form(All event number) but not displaying it on the page.
Please let me know if u did solve this problem.. thanks
Forum: Plugins
In reply to: [Events Manager - Calendar, Bookings, Tickets, and more!] pay per eventwould u mind giving me some tips to make that happen? I have been trying
overwriting event_status to “0” and post_status to “pending” when front-end form submitted at first time. Then display “pay now” button on dashboard.then attach post_id to pay now button that connects to Paypal, so if payments made, update event_status to “1” and post_status to “publish”.
I have been spending quite amount of time trying this but could not even solve the first thing yet.
I have spent days to figure this out but I no luck so far. So I have to delete any old saves and insert new values?
seems to me ‘save_post’ hook executes before the front-end form executes which means it’s gonna be overwritten by whatever values from front-end form.
Forum: Plugins
In reply to: [Events Manager - Calendar, Bookings, Tickets, and more!] pay per eventHi Angelo, no I’m a not pro user. However, if events manager integrate pay per post function on front-end form with transaction history for both back-end(for admin) and front-end(by each user), I would love to purchase pro version.
I’m trying to make this happen by my own now and having lot of trouble due to lack of my programing knowledge.
Thank you calimin! I know I’m asking too much but my code is not working as I intended. could u plz help?
is it even possible to overwrite event_status like the way I was trying below? It does insert 0 in to event_status in DB but it created new event_id right before actual event’s event_id(that contains all the data from front-end form).function update_event_status($event_id){ global $wpdb; $wpdb->replace( $wpdb->prefix . 'em_events', array( 'event_status' => '0' ) ); } add_action( 'save_post', 'update_event_status' );Thanks for the response angelo!
I’m not very comfortable with PHP but I think this should work.
I want to overwrite event_statue to “0” on em_events table(on database) when the Front-end event form submitted.
I believe I can do this on my Theme’s functions.php file by adding the hook in there(below code; if it make sense).
Can u tell me what hook that will be? if that exist.function update_event_statue($event_id){ $thisposteventid = $EM_Event->event_id; global $wpdb; $wpdb->update( $wpdb->prefix . 'em_events', array( 'event_status' => '0' ), array( 'event_id' => $thisposteventid ) ); add_action( 'EVENTS_MANAGER_HOOK', "update_event_statue" );Hooks, Actions and Filters on http://codex.wordpress.org/Plugin_API
if that’s what u talking about then YES.
Forum: Plugins
In reply to: [Events Manager - Calendar, Bookings, Tickets, and more!] pay per eventSo I messed around with s2member but it did not work out for me. I need other solution any suggestions?
Forum: Plugins
In reply to: [Events Manager - Calendar, Bookings, Tickets, and more!] pay per eventoh yeah? sounds like it worth to spend some time to learn about s2member plug-in. I will let u know how it goes.
if you have any tips on integrating s2member plug-in to events manager. I would love to hear it 🙂