Paolo

Forum Replies Created

Viewing 15 posts - 26,551 through 26,565 (of 27,715 total)
  • Author
    Posts
  • in reply to: Google Maps for Business API Key? #10443

    Paolo
    Site Admin
    Post count: 31211

    Hi,

    personally unfortunately I don’t, but I’ve asked Vikas to follow up.

    Thank you for your patience,

    in reply to: GD menu freeze in Google Chome #10440

    Paolo
    Site Admin
    Post count: 31211

    Hi,

    I just had a look at it with Chrome on my pc and works as expected.

    Unfortunately I can’t test with a mac, not having one, but I’ve asked Stiofan to do so.

    He’ll let you know asap.

    Thx

    in reply to: Problems with Cities #10439

    Paolo
    Site Admin
    Post count: 31211

    Excellent, glad you solved!

    in reply to: custom post select option problem #10438

    Paolo
    Site Admin
    Post count: 31211

    Hi,

    I’ve just tested and 100% of time it redirected me correctly?

    I’ve added a wee function to hide php warnings so the Notice: undefined bla bla message should be gone.

    I’ve also noticed that you have GD files in your child theme like geodirectory_template_actions.php and listing-listview.php. Both files in there will never allow you to accomplish anything.

    The 1st one should be modified via functions.php, the second is used by another template, so only moving the other template 1st would help you modify that one.

    In any case, GD templates will only work if moved inside a folder named geodirectory inside your child theme.

    Thx

    in reply to: How to remove PLACES #10436

    Paolo
    Site Admin
    Post count: 31211

    At the moment there is no way to disable the default CPT other than tweaking the code of the plugin as Simone explained.

    Sorry about that.

    Thx

    in reply to: google maps data source #10435

    Paolo
    Site Admin
    Post count: 31211

    HI,

    that is something that comes embeded in the map when rendered and can’t be removed/edited as far as I know, unless you create a widget to use another mapping service…

    Thx


    Paolo
    Site Admin
    Post count: 31211

    excellent! 🙂

    in reply to: Stars on the Main Page and Sidebar #10433

    Paolo
    Site Admin
    Post count: 31211

    Categories are mandatory. Add listing form will not accept listings without category. You can’t add map icons to a cpt without a category, so they will not show up on the map.

    Just create 1 with the same name as the CPT if you really don’t need more than 1.

    I’ve just tested on our demo the delete part and I see no problem. Are you using v1.0.2?

    Can you send wp admin credentials in a private post pls?

    in reply to: No GD Emails Sent/Received #10432

    Paolo
    Site Admin
    Post count: 31211

    I think the only way to find out what the problem is Brian, is if you share a link and wp admin credentials so that we can have a look.

    Thx

    in reply to: Captcha for registration form #10431

    Paolo
    Site Admin
    Post count: 31211

    to fix the reCaptcha styling issue add to your child theme style.css

    
    
    #recaptcha_response_field {
        display: inline;
        height: 20px;
    }

    Thx

    in reply to: Captcha for registration form #10421

    Paolo
    Site Admin
    Post count: 31211

    Hi,

    quick tutorial to use this plugin in your register form:

    https://wordpress.org/plugins/simple-recaptcha/

    1st of all install the plugin, get your reCaptcha API public and private keys here: https://www.google.com/recaptcha/admin#whyrecaptcha and add them to the plugin settings.

    Copy file plugins/geodirectory/geodirectory-templates/reg_frm.php and paste it into themes/your-child-theme/geodirectory/reg_frm.php

    Open the file and add the code below inside the

    tags, above or below the registration button and save.

    
    
    <?php
    // is Simple reCAPTCHA active?
    if ( function_exists( 'wpmsrc_display' ) ) { 
        echo wpmsrc_display();
    }
    ?>
    

    Now open your child theme functions.php and add the reCaptcha validation code:

    
    
    <?php
    // is Simple reCAPTCHA active?
    if ( function_exists( 'wpmsrc_check' ) ) {
    
        // check for empty user response first (optional)
        if ( empty( $_POST['recaptcha_response_field'] ) ) {
        
            $errors['captcha'] = __( 'Please complete the CAPTCHA.', 'yourtextdomain' );
        
        } else {
        
            // check captcha
            $response = wpmsrc_check();
            if ( ! $response->is_valid ) {
                $errors['captcha'] = __( 'The CAPTCHA was not entered correctly. Please try again.', 'yourtextdomain' );
                // $response['error'] contains the actual error message, e.g. "incorrect-captcha-sol"
            }
            
        }
        
    }
    ?>

    And remove the original login and register form with the following remove action call:

    remove_action( 'geodir_signup_forms', 'geodir_action_signup_forms', 10 );

    Open geodirectory/geodirectory_template_actions.php and find function geodir_action_signup_forms, copy it and paste it in your child theme functions.php
    file. Make sure to rename it to something like my_geodir_action_signup_forms before saving.

    Modify the function to make the plugin use the reg_frm.php from your child theme:

    change this :

    <?php include (geodir_plugin_path() . "/geodirectory-templates/reg_frm.php"); ?>

    with this:

    <?php include (get_stylesheet_directory() . "/geodirectory/reg_frm.php"); ?>

    There are 2 of them.

    In your child theme it should look like this:

    
    
    function my_geodir_action_signup_forms(){
    	?>
    <script type="text/javascript" >
    	<?php if ( $user_login ) { ?>
    				setTimeout( function(){ try{
    						d = document.getElementById('user_pass');
    						d.value = '';
    						d.focus();
    					} catch(e){}
    				}, 200);
    	<?php } else { ?>
    				try{document.getElementById('user_login').focus();}catch(e){}
    	<?php } ?>
    </script>
    <script type="text/javascript" >
    	<?php if ( $user_login ) { ?>
    			setTimeout( function(){ try{
    					d = document.getElementById('user_pass');
    					d.value = '';
    					d.focus();
    				} catch(e){}
    			}, 200);
    	<?php } else { ?>
    			try{document.getElementById('user_login').focus();}catch(e){}
    	<?php } ?>
    </script><?php
    
     global $errors;
                if(isset($_REQUEST['msg']) && $_REQUEST['msg']=='claim')
                    $errors->add('claim_login', LOGIN_CLAIM);
                    
                if(!empty($errors)){
                    foreach($errors as $errorsObj)
                    {
                        foreach($errorsObj as $key=>$val)
                        {
                            for($i=0;$i<count($val);$i++)
                            {
                                echo "<div class=sucess_msg>".$val[$i].'</div>';	
                                $registration_error_msg = 1;
                            }
                        } 
                    }
                }	
                
                if(isset($_REQUEST['page']) && $_REQUEST['page']=='login' && isset($_REQUEST['page1']) && $_REQUEST['page1']=='sign_in'){?>
                
                    <div class="login_form">
                        <?php include (geodir_plugin_path() . "/geodirectory-templates/login_frm.php"); ?>
                    </div> 
                
                <?php }elseif(isset($_REQUEST['page']) && $_REQUEST['page']=='login' && isset($_REQUEST['page1']) && $_REQUEST['page1']=='sign_up'){ ?>
                
                    <div class="registration_form">
                        <?php include (get_stylesheet_directory() . "/geodirectory/reg_frm.php"); ?>
                    </div>
                    
                <?php }else { ?>
               
                    <div class="login_form_l">
                        <?php include (geodir_plugin_path() . "/geodirectory-templates/login_frm.php");?>
                    </div>
                    <div class="registration_form_r">
                        <?php include (get_stylesheet_directory() . "/geodirectory/reg_frm.php");	?>
                    </div>
                
                <?php }?>
    <script type="text/javascript">
    	try{document.getElementById('user_login').focus();}catch(e){}
    </script>
    
    	<?php if((isset($errors->errors['invalidcombo']) && $errors->errors['invalidcombo'] != '') || (isset($errors->errors['empty_username']) && $errors->errors['empty_username'] != '')) {?>
    		<script type="text/javascript">document.getElementById('lostpassword_form').style.display = '';</script>
    	<?php } 
    }
    

    In your functions.php file add the new action:

    add_action( 'geodir_signup_forms', 'my_geodir_action_signup_forms', 10 );

    Given that the form is too narrow to accomodate the reCaptcha form, add this to your child theme style.css

    
    
    .registration_form_r {
    width: 35%;
    }

    This is tested and works, the only problem I’ve seen is the reCaptcha form is not perfectly styled, but the plugin is fairly new and Iìve asked the developer to look into it.

    Thx

    in reply to: css strangeness #10394

    Paolo
    Site Admin
    Post count: 31211

    Hi,

    the question should be: why would you want to try making the website without the plugin to make GD compatible with Genesis, if you are using Genesis?

    Thanks

    in reply to: Having theme issues #10392

    Paolo
    Site Admin
    Post count: 31211

    Hi,

    can you please send us wp admin and ftp credentials too with the link?

    If you have the latest version of Avada that error shouldn’t come out. avada_header_template() is a proper avada function.

    Thanks

    in reply to: Stars on the Main Page and Sidebar #10390

    Paolo
    Site Admin
    Post count: 31211

    Hi,

    is it activated and enabled? Please see image attached.

    Let us know,

    in reply to: Add Listing not working? #10388

    Paolo
    Site Admin
    Post count: 31211

    You are welcome! 🙂

Viewing 15 posts - 26,551 through 26,565 (of 27,715 total)
20% Discount Offer
Hurry! Get your 20% discount before it expires. Get 20% Discount