Vikas

Forum Replies Created

Viewing 15 posts - 31 through 45 (of 1,123 total)
  • Author
    Posts
  • in reply to: Paypal Error #10635

    Vikas
    Full Member
    Post count: 1128

    Hi,

    Plz let me know correct userid and pass for admin in private reply.

    Thanks


    Vikas
    Full Member
    Post count: 1128

    @Simone sorry to bother but he wants to remove the tab not the content, so here is better code

    
    
    
    add_filter('geodir_detail_page_tab_list_extend', 'geodir_detail_page_tab_list_extend') ;
    
    function geodir_detail_page_tab_list_extend($tab_array)
    {
    global $post ;
    if($post->post_type != 'Write the post type u want to hide this tab for') // e.g gd_place
    {
     $tab_array['sportaktiv_tab'] = array( 
    										'heading_text' =>  __('SPORTaktiv',GEODIRECTORY_TEXTDOMAIN),
    										'is_active_tab' => false,
    										'is_display' =>  apply_filters('geodir_detail_page_tab_is_display', true, 'sportaktiv_tab'),
    										'tab_content' => ''
    									);
        
         	$tab_array['routen_tab'] = array( 
    										'heading_text' =>  __('Routen',GEODIRECTORY_TEXTDOMAIN),
    										'is_active_tab' => false,
    										'is_display' =>  apply_filters('geodir_detail_page_tab_is_display', true, 'routen_tab'),
    										'tab_content' => ''
    									);
    
         	$tab_array['sportdetails_tab'] = array( 
    										'heading_text' =>  __('Sportdetails',GEODIRECTORY_TEXTDOMAIN),
    										'is_active_tab' => false,
    										'is_display' =>  apply_filters('geodir_detail_page_tab_is_display', true, 'sportdetails_tab'),
    										'tab_content' => ''
    									);
    }// end of if for post type check 
    
    	return $tab_array ;
    }
    

    Let me know if it works.

    Thanks

    in reply to: Has Location Manager Changed? #10611

    Vikas
    Full Member
    Post count: 1128

    Hi,

    Plz come again with the problem u are facing and your site url and admin access in private reply.

    Thanks

    in reply to: Images Issues on Listing Creation/Edit #10609

    Vikas
    Full Member
    Post count: 1128

    Hi,

    Will u plz attache the images u are trying to upload ?
    I found that u are trying to upload some different formatting images.

    Thanks

    in reply to: Any problem publishing a virtual page #10514

    Vikas
    Full Member
    Post count: 1128

    There is no problem in doing this.
    I set status of these as virtual to just separate them from common pages.

    in reply to: Listing Detail shown as geodire-listing #10508

    Vikas
    Full Member
    Post count: 1128

    Yes, GD will work fine.

    in reply to: Can't add a listings #10497

    Vikas
    Full Member
    Post count: 1128

    I have removed that code from your site.
    These instructions are for others who might have deleted those pages accidentally.

    Thanks

    in reply to: Can't add a listings #10495

    Vikas
    Full Member
    Post count: 1128

    Hi,

    Thanks for sending all these info, these really help me to fix the problem.
    Everything should work fine now. Plz check and let me know.

    If anyone else has same problem of missing default GD pages please follow these instructions

    1. Put below code in ur theme’s functions.php file.

    
    
    
    
    function geodir_restore_default_pages()
    {
    	
        //geodir_create_page( esc_sql( _x('home-map', 'page_slug', 'geodirectory') ), 'geodir_home_map_page', __('Home Map', 'geodirectory'), '',0,'publish' );
        geodir_restore_default_page( esc_sql( _x('listings', 'page_slug', GEODIRECTORY_TEXTDOMAIN) ), 'geodir_listing_page', __('All Listings', GEODIRECTORY_TEXTDOMAIN), '' );
    	geodir_restore_default_page( esc_sql( _x('add-listing', 'page_slug', GEODIRECTORY_TEXTDOMAIN) ), 'geodir_add_listing_page', __('Add Listing', GEODIRECTORY_TEXTDOMAIN), '' );
    	geodir_restore_default_page( esc_sql( _x('listing-preview', 'page_slug', 'geodirectory') ), 'geodir_preview_page', __('Listing Preview', GEODIRECTORY_TEXTDOMAIN), '' );
    	geodir_restore_default_page( esc_sql( _x('listing-success', 'page_slug', GEODIRECTORY_TEXTDOMAIN) ), 'geodir_success_page', __('Listing Success', GEODIRECTORY_TEXTDOMAIN), '' );
    	geodir_restore_default_page( esc_sql( _x('location', 'page_slug', GEODIRECTORY_TEXTDOMAIN) ), 'geodir_location_page', __('Location', GEODIRECTORY_TEXTDOMAIN), '' );
    	
    	
    }
    
    function geodir_restore_default_page( $slug, $option, $page_title = '', $page_content = '', $post_parent = 0,$status = 'virtual' )
    {
    	global $wpdb, $current_user;
    	 
    	$page_found =	$wpdb->get_var(
    									$wpdb->prepare(
    										"SELECT ID FROM " . $wpdb->posts . " WHERE post_name = %s LIMIT 1;",
    										array($slug)
    									)
    								);
    	
    	if ($page_found) :
    		// Page exists
    		update_option($option, $page_found);
    		return;
    	endif;
    	
    	$page_data = array(
            'post_status' => $status,
            'post_type' => 'page',
            'post_author' => $current_user->ID,
            'post_name' => $slug,
            'post_title' => $page_title,
            'post_content' => $page_content,
            'post_parent' => $post_parent,
            'comment_status' => 'closed'
        );
        $page_id = wp_insert_post($page_data);
        
        add_option($option, $page_id);
    	
    }
    
    add_action('init' , 'geodir_restore_default_pages') ;
    

    2. once u find that everything is working fine now just remove this piece of code from theme’s functions.php file

    Thanks for ur patience.

    in reply to: Listing Detail shown as geodire-listing #10348

    Vikas
    Full Member
    Post count: 1128

    oh,
    It seems that u have activated all plugins again.
    Will u plz deactivate all of them again one by one and let me know when u see that output again ?

    If u see that output again then plz to geodirectory > geodirectory-functions > using ftp.
    U will see two files with the name custom_taxonomy_hooks_actions.php and ~custom_taxonomy_hooks_actions.php, so just delete the file with the name
    custom_taxonomy_hooks_actions.php only and then rename ~custom_taxonomy_hooks_actions.php to custom_taxonomy_hooks_actions.php this will restore the working version of that file.

    Thanks

    in reply to: Listing Detail shown as geodire-listing #10347

    Vikas
    Full Member
    Post count: 1128

    no no.

    This is what i wanted to see actually.
    Please wait for my next reply.

    Thanks

    in reply to: Location switcher and bad URLs #10333

    Vikas
    Full Member
    Post count: 1128
    This reply has been marked as private.
    in reply to: Location switcher and bad URLs #10312

    Vikas
    Full Member
    Post count: 1128
    This reply has been marked as private.
    in reply to: Location switcher and bad URLs #10232

    Vikas
    Full Member
    Post count: 1128

    Hi,

    I need FTP , database access too, plz send them in private reply.

    Thanks

    in reply to: Location switcher and bad URLs #10215

    Vikas
    Full Member
    Post count: 1128

    Hi,
    Plz download location.zip, extract it and upload those two php files in ur location manager ad-on folder using ftp.

    Let me know ur comment.

    Thanks

    in reply to: Listing Detail shown as geodire-listing #10208

    Vikas
    Full Member
    Post count: 1128

    Hi,

    Did u try to disable other plugins and see the result ?

Viewing 15 posts - 31 through 45 (of 1,123 total)