Giri

Forum Replies Created

Viewing 15 posts - 871 through 885 (of 2,661 total)
  • Author
    Posts

  • Giri
    Expired Member
    Post count: 3155
    
    
    function custom_sd_theme_actions()
    {
        //unregister_sidebar('geodir_listing_left_sidebar');
        unregister_sidebar('geodir_listing_right_sidebar');
    
        //unregister_sidebar('geodir_search_left_sidebar');
        unregister_sidebar('geodir_search_right_sidebar');
    
        if(isset($_REQUEST['geodir_dashbord'])){
            unregister_sidebar('geodir_author_left_sidebar');
            unregister_sidebar('geodir_author_right_sidebar');
        }
    
        // listings page
        if (get_option('geodir_show_listing_right_section', true)) {
            add_action('geodir_listings_sidebar_right_inside', 'sd_map_show');
            //remove_action('geodir_listings_sidebar_left', 'geodir_action_listings_sidebar_left', 10);
        } else {
            add_action('geodir_listings_sidebar_left_inside', 'sd_map_show');
            //remove_action('geodir_listings_sidebar_right', 'geodir_action_listings_sidebar_right', 10);
        }
    
        // search page
        if (get_option('geodir_show_search_right_section', true)) {
            add_action('geodir_search_sidebar_right_inside', 'sd_map_show');
            //remove_action('geodir_search_sidebar_left', 'geodir_action_search_sidebar_left', 10);
        } else {
            add_action('geodir_search_sidebar_left_inside', 'sd_map_show');
            //remove_action('geodir_search_sidebar_right', 'geodir_action_search_sidebar_right', 10);
        }
    
        // author page
        if (get_option('geodir_show_author_right_section', true)) {
            if(isset($_REQUEST['geodir_dashbord'])){
                add_action('geodir_author_sidebar_right_inside', 'sd_map_show');
            }
            remove_action('geodir_author_sidebar_left', 'geodir_action_author_sidebar_left', 10);
        } else {
            if(isset($_REQUEST['geodir_dashbord'])){
                add_action('geodir_author_sidebar_left_inside', 'sd_map_show');
            }
            remove_action('geodir_author_sidebar_right', 'geodir_action_author_sidebar_right', 10);
        }
    
    }
    remove_action('widgets_init', 'sd_theme_actions', 15);
    add_action('widgets_init', 'custom_sd_theme_actions', 15);

    Giri
    Expired Member
    Post count: 3155

    Comment out this line in my previous code.

    
    
    
    unregister_sidebar('geodir_search_left_sidebar');
    in reply to: How Can I disable something on the Add Listing Form? #366913

    Giri
    Expired Member
    Post count: 3155

    Hi Gautam,

    Can you give me credentials for normal user?

    I’ll test and let you know whats wrong.

    thanks

    in reply to: GD Sync Tags isn't working #366912

    Giri
    Expired Member
    Post count: 3155

    Thanks but i am still getting the same error.

    Can you give me the error message? So i can debug properly.

    Thanks

    in reply to: Add Advance Search to front page #366644

    Giri
    Expired Member
    Post count: 3155

    Hi there,

    I was able to connect to your ftp successfully.

    I have added an empty check for lat and lon. However I see different results when testing in both pages.

    I think you have set default location incorrectly. Please deactivate multilocation manager plugin. Set the default location and then activate it again.

    If it doesn’t work, i’ll debug the problem on monday.

    Thanks

    in reply to: Add Advance Search to front page #366630

    Giri
    Expired Member
    Post count: 3155
    This reply has been marked as private.
    in reply to: Add Advance Search to front page #366623

    Giri
    Expired Member
    Post count: 3155

    Maybe you have enabled geo ip block or something?

    Even stiofan and kc can’t able to login. So please contact your hosting support and let us know.

    Thanks

    in reply to: Add Advance Search to front page #366617

    Giri
    Expired Member
    Post count: 3155
    in reply to: Add Advance Search to front page #366614

    Giri
    Expired Member
    Post count: 3155

    Hi Lance, can you provide correct FTP?

    in reply to: Add Advance Search to front page #366540

    Giri
    Expired Member
    Post count: 3155

    Hi,

    can you post your ftp?

    Thanks


    Giri
    Expired Member
    Post count: 3155

    You are welcome 🙂

    in reply to: UsersWP BETA + GD integration + UWP reCAPTCHA #366323

    Giri
    Expired Member
    Post count: 3155

    Belen,

    Attached the uwp_geodirectory zip file.

    Thanks


    Giri
    Expired Member
    Post count: 3155

    Sorry Atilla for the late reply. I missed this thread.

    Try this code in code snippet.

    
    
    function custom_sd_theme_actions()
    {
        //unregister_sidebar('geodir_listing_left_sidebar');
        unregister_sidebar('geodir_listing_right_sidebar');
    
        unregister_sidebar('geodir_search_left_sidebar');
        unregister_sidebar('geodir_search_right_sidebar');
    
        if(isset($_REQUEST['geodir_dashbord'])){
            unregister_sidebar('geodir_author_left_sidebar');
            unregister_sidebar('geodir_author_right_sidebar');
        }
    
        // listings page
        if (get_option('geodir_show_listing_right_section', true)) {
            add_action('geodir_listings_sidebar_right_inside', 'sd_map_show');
            //remove_action('geodir_listings_sidebar_left', 'geodir_action_listings_sidebar_left', 10);
        } else {
            add_action('geodir_listings_sidebar_left_inside', 'sd_map_show');
            //remove_action('geodir_listings_sidebar_right', 'geodir_action_listings_sidebar_right', 10);
        }
    
        // search page
        if (get_option('geodir_show_search_right_section', true)) {
            add_action('geodir_search_sidebar_right_inside', 'sd_map_show');
            remove_action('geodir_search_sidebar_left', 'geodir_action_search_sidebar_left', 10);
        } else {
            add_action('geodir_search_sidebar_left_inside', 'sd_map_show');
            remove_action('geodir_search_sidebar_right', 'geodir_action_search_sidebar_right', 10);
        }
    
        // author page
        if (get_option('geodir_show_author_right_section', true)) {
            if(isset($_REQUEST['geodir_dashbord'])){
                add_action('geodir_author_sidebar_right_inside', 'sd_map_show');
            }
            remove_action('geodir_author_sidebar_left', 'geodir_action_author_sidebar_left', 10);
        } else {
            if(isset($_REQUEST['geodir_dashbord'])){
                add_action('geodir_author_sidebar_left_inside', 'sd_map_show');
            }
            remove_action('geodir_author_sidebar_right', 'geodir_action_author_sidebar_right', 10);
        }
    
    }
    remove_action('widgets_init', 'sd_theme_actions', 15);
    add_action('widgets_init', 'custom_sd_theme_actions', 15);

    This will enable left sidebar. Place you widget there. Make sure to enable both left and right section in setting.

    Thanks

    in reply to: Sidebar Widgets #366103

    Giri
    Expired Member
    Post count: 3155

    Just discussed with stiofan.

    He said, you can use

    geodir_is_page('cpt')

    for CPT pages and

    geodir_is_page('listing')

    for category pages.

    Let us know if that doesn’t work.

    Thanks

    in reply to: UsersWP BETA + GD integration + UWP reCAPTCHA #366083

    Giri
    Expired Member
    Post count: 3155

    Hi Belen,

    I hope you are talking about the

    Crear cuenta

    link. If thats the case the code i given earlier is right. Just add !important tag.

    
    
    .uwp-register-now {
       clear: both !important;
    }
Viewing 15 posts - 871 through 885 (of 2,661 total)
20% Discount Offer
Hurry! Get your 20% discount before it expires. Get 20% Discount