Naveen Giri

Forum Replies Created

Viewing 15 posts - 106 through 120 (of 1,165 total)
  • Author
    Posts
  • in reply to: GD Events PHP Error #538718

    Naveen Giri
    Moderator
    Post count: 1559

    Hi Birgit,

    this issue has been already fixed in PHPCompatibility.
    https://github.com/PHPCompatibility/PHPCompatibility/issues/123
    https://github.com/PHPCompatibility/PHPCompatibility/pull/130

    Please let wpengine support know about it. they will fix it in there addon.

    Thanks

    in reply to: Limit number of option in multiple selection checkbox #538552

    Naveen Giri
    Moderator
    Post count: 1559

    Hi periwinkle,

    there is no existing validation for it.
    could you share the page URL.
    let us know about the field you are talking about.

    Thanks

    in reply to: Placeholder on the add-listing page #538550

    Naveen Giri
    Moderator
    Post count: 1559

    Hi Alexander,

    the issue is coming from the Listimia theme.
    You can let them know about the issue to fix it in the theme.

    meanwhile, you can use this code snippet.

    
    
    /**
     * Get the html input for the custom field: url
     *
     * @param string $html The html to be filtered.
     * @param array $cf The custom field array details.
     * @since 1.6.6
     *
     * @return string The html to output for the custom field.
     */
    function custom_listimia_cfi_url($html,$cf){
    
        $html_var = $cf['htmlvar_name'];
    
        // Check if there is a custom field specific filter.
        if(has_filter("geodir_custom_field_input_url_{$html_var}")){
            /**
             * Filter the url html by individual custom field.
             *
             * @param string $html The html to filter.
             * @param array $cf The custom field array.
             * @since 1.6.6
             */
            $html = apply_filters("geodir_custom_field_input_url_{$html_var}",$html,$cf);
        }
    
        // If no html then we run the standard output.
        if(empty($html)) {
    
            ob_start(); // Start  buffering;
            $value = geodir_get_cf_value($cf);
    
            if ($value == $cf['default']) {
                $value = '';
            }?>
    
            <div id="<?php echo $cf['name'];?>_row"
                 class="<?php if ($cf['is_required']) echo 'required_field';?> geodir_form_row clearfix gd-fieldset-details form-group">
                <label for="<?php echo $cf['name'];?>">
                    <?php $frontend_title = __($cf['frontend_title'], 'listimia');
                    echo (trim($frontend_title)) ? $frontend_title : ' '; ?>
                    <?php if ($cf['is_required']) echo '<span>*</span>';?>
                </label>
                <input field_type="<?php echo $cf['type'];?>" name="<?php echo $cf['name'];?>" id="<?php echo $cf['name'];?>"
                <?php if(!empty($cf['placeholder_value'])){ echo 'placeholder="'.esc_html__( $cf['placeholder_value'], 'geodirectory').'"'; } ?>
                       value="<?php echo esc_attr(stripslashes($value));?>" type="url" class="geodir_textfield form-control"
                       oninvalid="setCustomValidity('<?php _e('Please enter a valid URL including http://', 'listimia'); ?>')"
                       onchange="try{setCustomValidity('')}catch(e){}"
                />
                <span class="geodir_message_note"><?php _e($cf['desc'], 'listimia');?></span>
                <?php if ($cf['is_required']) { ?>
                    <span class="geodir_message_error"><?php _e($cf['required_msg'], 'listimia'); ?></span>
                <?php } ?>
            </div>
    
            <?php
            $html = ob_get_clean();
        }
    
        return $html;
    }
    remove_filter('geodir_custom_field_input_url','geodir_cfi_url',10,2);
    remove_filter('geodir_custom_field_input_url','listimia_cfi_url',10,2);
    add_filter('geodir_custom_field_input_url','custom_listimia_cfi_url',10,2);

    Regards
    Naveen

    in reply to: Reviews/Add Listings Login and Register Links #538532

    Naveen Giri
    Moderator
    Post count: 1559

    Thanks for confirming it, Gary.
    Have a great day.

    in reply to: GD Events PHP Error #538531

    Naveen Giri
    Moderator
    Post count: 1559

    Hi Birgit,

    the function used at line no 301, 310 is mysql_to_rfc3339()
    which is not deprecated function
    https://developer.wordpress.org/reference/functions/mysql_to_rfc3339/

    So seems the PHP Compatibility Checker plugin have some issue.

    Please share your FTP and site details, I will check it further.

    Thanks

    in reply to: Reviews/Add Listings Login and Register Links #538231

    Naveen Giri
    Moderator
    Post count: 1559

    Hi gaz36f,

    I have added some changes in the code snippet.
    Please check now.

    
    
    
    add_filter( 'geodir_review_form_args', function( $fields ) {
    
        if( ! function_exists("um_get_core_page") ) return $fields; 
        $fields['must_log_in'] = sprintf( 
            __( '<p class="must-log-in">
                     You must <a href="%s">Register</a> or 
                     <a href="%s">Login</a> to post a comment.</p>' 
            ),
            um_get_core_page("register"),
             um_get_core_page("login")."?redirect_to=". apply_filters( 'the_permalink', get_permalink() ) 
        );
    
        return $fields;
    });
    
    
    
    
    add_filter( 'login_url', 'gd_ultimate_member_login_link', 10, 3 );
    /**
     * gd_ultimate_member_login_link the login URL.
     *
     * @since 2.8.0
     * @since 4.2.0 The <code>$force_reauth
     parameter was added.
     *
     * @param string $login_url    The login URL. Not HTML-encoded.
     * @param string $redirect     The path to redirect to on login, if supplied.
     * @param bool   $force_reauth Whether to force reauthorization, even if a cookie is present.
     *
     * @return string
     */
    function gd_ultimate_member_login_link($login_url, $redirect, $force_reauth ){
    	
    	if( ! function_exists("um_get_core_page") ) return $login_url;
    	$login_url = um_get_core_page("login")."?redirect_to=". apply_filters( 'the_permalink', get_permalink() );
    	
        if ( $force_reauth ) {
            $login_url = add_query_arg( 'reauth', '1', $login_url );
        }
    
    	return $login_url; 
    }
    

    Thanks

    in reply to: Ninja popups not working (claims or contact) #538206

    Naveen Giri
    Moderator
    Post count: 1559

    Hi Adrianne,

    It is an issue on the WP-Engine side

    you can follow this guideline and sync with WP-Engine support about it.
    https://wpgeodirectory.com/support/topic/ayecode-connect-not-connecting/#post-536748

    Regards
    Naveen

    in reply to: Ninja popups not working (claims or contact) #537995

    Naveen Giri
    Moderator
    Post count: 1559

    Hi Adrianne,

    the form was not selected in the ninja form widget.
    Please have a look now.

    – can you send us what error you got for Ayecode connect
    I cant see social import addon in the backend.

    Thanks

    in reply to: GD Events PHP Error #537983

    Naveen Giri
    Moderator
    Post count: 1559

    Hi Birgit,

    – Make sure you have updated versions of addon
    – please share status report from
    geodirectory => status => get system report

    OR
    please share site detail in private reply.

    Thanks

    in reply to: Buddy press integration… #537976

    Naveen Giri
    Moderator
    Post count: 1559

    Hi Rodney,

    We have an addon for BuddyPress integration.
    https://wpgeodirectory.com/downloads/buddypress-integration/

    It covers all of your mentioned requirements.
    you can try it.

    Regards
    Naveen

    in reply to: GeoDirectory Categories List Disappears #537836

    Naveen Giri
    Moderator
    Post count: 1559

    Thanks for the confirmation, have a great day.

    in reply to: GeoDirectory Categories List Disappears #537814

    Naveen Giri
    Moderator
    Post count: 1559

    Hi David,

    on the category page, the category shortcode works differently.
    If you are on category page the shortcode will load all the child categories of current one.

    I have changed the shortcode a bit and added no_cat_filter
    param.

    
    [gd_categories post_type="0" hide_empty="1" max_level="1" max_count="all" max_count_child="all" no_cat_filter="1" title_tag="h4" sort_by="count"]

    Please have a look now. it loading all categories there.

    Thanks

    in reply to: GeoDirectory Categories List Disappears #537806

    Naveen Giri
    Moderator
    Post count: 1559

    Thanks, I will check and get back to you.

    in reply to: Latest update causing existing design to break #537804

    Naveen Giri
    Moderator
    Post count: 1559

    Thanks for confirmation.

    in reply to: Wrong post categories in GD>Listings tab #537803

    Naveen Giri
    Moderator
    Post count: 1559

    Hi bantyjbc,

    I can see the issue. It may be due to any other plugin conflict.
    Please provide FTP details in a private reply.
    I will check it further.

    Thanks

Viewing 15 posts - 106 through 120 (of 1,165 total)
20% Discount Offer
Hurry! Get your 20% discount before it expires. Get 20% Discount