Forum Replies Created

Viewing 9 replies - 1 through 9 (of 9 total)
  • Did you ever figure this out? I have the same issue. WP v5.5
    Or any response from dev?

    Thread Starter jmoriart

    (@jmoriart)

    Hi Pierre,

    Thank you so much for such thorough support! Truly excellent.

    Good to know that this is what is going on. I’m not the owner of the station and they say they are getting accurate data from that station on another site, but I too thought that the station was not reporting to Weather Underground. I’ll work with them and try to get this resolved.

    Merci beaucoup!
    -John

    Thread Starter jmoriart

    (@jmoriart)

    Okay, yea my payment gateway plugin was getting the price separately I guess and storing it in an array $args[‘amount’]. So I just replaced that value with a new one, basically recalculating my code above.
    I’m not sure why the function get_price wasn’t using my edited code, but this work around does the trick.
    Thanks.

    Thread Starter jmoriart

    (@jmoriart)

    Excellent, good to hear. Do you have an estimated date for that release?

    Many thanks for the great plugin.

    Any resolution to this? I am having the same issue.

    When a user with the author role and the following capabilities (https://grab.by/P960) tries to create a class, they see the message “You do not have permission to manage others bookings.” However, the class is still created.

    If they click Submit again immediately after seeing that message, it gives them the success message.

    Any ideas? I do not have anonymous event submission enabled.

    Thread Starter jmoriart

    (@jmoriart)

    Just learned that the hidden author id field was successfully getting the author id with:
    <input type="hidden" id="author_id" name="author_id" value="<?php echo get_user_by( 'slug', get_query_var( 'author_name' ) )->ID;?>" />

    So I can now use get_user_by to output the correct author name. However, it still doesn’t save this information to the database. Seems like the rtauth_submit_author_rating function is the issue. Any ideas?

    Ever find any resolution on this? I am also experiencing this issue – definitely a theme change I made because it had initially been working fine, but I can’t figure out what…

    Thread Starter jmoriart

    (@jmoriart)

    Hmm, the above does seem to be working for me in my theme’s functions.php. To be honest this did surprise me because as you say I would have expected to have to somehow declare [‘gmw_lat’], etc. Is that what you mean?

    I am not a very skilled PHP coder, so bear with me and let me know if what I’m doing is prone to failure in other instances that I’m not testing.

    Thread Starter jmoriart

    (@jmoriart)

    Eyal!

    This is beautiful and works like a charm. Thank you so much.

    I also guessed at similar shortcodes for city and state and they are also working great.

    For interested parties, the below adds a new shortcode [user_loc_search] to automatically put the user’s position into the Events Manager plugin search bar:

    // GEOmyWP coordinates to EM shortcodes
    
    	$latitude = ( !empty( $_COOKIE['gmw_lat'] ) ) ? urldecode( $_COOKIE['gmw_lat'] ) : false;
    	$longitude = ( !empty( $_COOKIE['gmw_lng'] ) ) ? urldecode( $_COOKIE['gmw_lng'] ) : false;
    	$city = ( !empty( $_COOKIE['gmw_city'] ) ) ? urldecode( $_COOKIE['gmw_city'] ) : false;
    	$state = ( !empty( $_COOKIE['gmw_state'] ) ) ? urldecode( $_COOKIE['gmw_state'] ) : false;
    
       // the EM search bar
    function geo_to_EM_search() {
    
    	global $latitude, $longitude, $city, $state;
    	echo do_shortcode('[event_search_form near="' . $latitude . ',' . $longitude . '" geo_label="' . $city . ', ' . $state . '" near_unit="mi" near_distance="50"]');
    
    }
    add_shortcode( 'user_loc_search', 'geo_to_EM_search' );

    Pretty extendable of course to other shortcodes as well like [events_list] and [locations_map]

Viewing 9 replies - 1 through 9 (of 9 total)