Jeff

Forum Replies Created

Viewing 15 posts - 16 through 30 (of 180 total)
  • Author
    Posts
  • in reply to: GD Business hours #346514

    Jeff
    Buyer
    Post count: 188

    Hi Jorge:

    Sorry about the problems. I had sent a request asking for an admin login to explore why this is happening for you, but didn’t hear back.

    If you can email me details of how I can examine this, I’ll get it sorted out right away.

    in reply to: Featured image is HUGE! Would like to remove #339956

    Jeff
    Buyer
    Post count: 188

    You just need a space before the !.

    display: none !important;

    This only hides the image, but it still downloads to the visitors device. You should have someone edit the template, or check for a setting, to disable it entirely.

    in reply to: Can I find out what is wrong with this code? #338613

    Jeff
    Buyer
    Post count: 188

    New code is below. The short version is that you got your conditions mixed up. Your if’s were embedded where they didn’t need to be and you weren’t returning properly. This version should be better.

    Also, the unset lines for the $tab_array aren’t needed since you don’t use it and don’t return it. Micro-optimization, but cleans up the code.

    
    
    
    // This is the add filter action which will use the function below to re-order tabs.
    add_filter( 'geodir_detail_page_tab_list_extend', 'geodir_detail_page_tab_list_extend' );
    
    //This is the actual function to re-order tabs
    function geodir_detail_page_tab_list_extend( $tab_array ) {
    	// Start with a clean $new_tab_array
    	$new_tab_array = [];
    
    	// before creating the new array which will re-order the tabs, we check if the custom post type is “Project Proposal”
    	if ( 'gd_project_proposal' == get_post_type() ) {
    
    	// here you can modify the array and re-arrange tabs as you wish, you can create a completely new array too.
    
    		// this is the post profile tab, by default is the 1st
    		if ( isset( $tab_array['post_profile'] ) ) {
    			$new_tab_array['post_profile'] = $tab_array['post_profile']; // set in new array
    			// IMPORTANT the following code tells GeoDirectory that this is no longer the default active tab
    			$new_tab_array['post_profile']['is_active_tab'] = '';
    			unset( $tab_array['post_profile'] );//unset in old one
    		}
    
    		// this is the post info tab (optional for custom fields), by default, if available, is the 2nd.
    		if ( isset( $tab_array['post_info'] ) ) {
    			$new_tab_array['post_info'] = $tab_array['post_info'];// set in new array
    			unset( $tab_array['post_info'] );//unset in old one
    		}
    		// this is the images tab, by default is the 3rd
    		if ( isset( $tab_array['post_images'] ) ) {
    			$new_tab_array['post_images'] = $tab_array['post_images'];// set in new array
    			unset( $tab_array['post_images'] );//unset in old one
    		}
    
    		// this is the video tab, appears only if there are videos and by default is the 4th
    		if ( isset( $tab_array['post_video'] ) ) {
    			$new_tab_array['post_video'] = $tab_array['post_video'];// set in new array
    			unset( $tab_array['post_video'] );//unset in old one
    		}
    
    		// this is the speacial offer tab, appears only if there are special offers and by default is the 5th
    		if ( isset( $tab_array['special_offers'] ) ) {
    			$new_tab_array['special_offers'] = $tab_array['special_offers'];// set in new array
    			unset( $tab_array['special_offers'] );//unset in old one
    		}
    
    		// this is the map tab, by default is the 6th
    		if ( isset( $tab_array['post_map'] ) ) {
    			$new_tab_array['post_map'] = $tab_array['post_map'];// set in new array
    			unset( $tab_array['post_map'] );//unset in old one
    		}
    
    		// this is the related listing tab, it is optional and by default is the 8th
    		if ( isset( $tab_array['related_listing'] ) ) {
    			$new_tab_array['related_listing'] = $tab_array['related_listing'];// set in new array
    			unset( $tab_array['related_listing'] );//unset in old one
    		}
    
    		// ** Return the $new_tab_array inside Project Proposal
    		return $new_tab_array;
    
    	} elseif ( 'gd_completed_system' == get_post_type() ) {
    
    		// this is the post info tab (optional for custom fields), by default, if available, is the 2nd.
    		if ( isset( $tab_array['post_info'] ) ) {
    			$new_tab_array['post_info'] = $tab_array['post_info'];// set in new array
    			unset( $tab_array['post_info'] );//unset in old one
    		}
    
    		// this is the images tab, by default is the 3rd
    		if ( isset( $tab_array['post_images'] ) ) {
    			$new_tab_array['post_images'] = $tab_array['post_images'];// set in new array
    			unset( $tab_array['post_images'] );//unset in old one
    		}
    
    		// this is the video tab, appears only if there are videos and by default is the 4th
    		if ( isset( $tab_array['post_video'] ) ) {
    			$new_tab_array['post_video'] = $tab_array['post_video'];// set in new array
    			unset( $tab_array['post_video'] );//unset in old one
    		}
    
    		// this is the post profile tab, by default is the 1st
    		if ( isset( $tab_array['post_profile'] ) ) {
    			$new_tab_array['post_profile'] = $tab_array['post_profile']; // set in new array
    			// IMPORTANT the following code tells GeoDirectory that this is no longer the default active tab
    			$new_tab_array['post_profile']['is_active_tab'] = '';
    			unset( $tab_array['post_profile'] );//unset in old one
    		}
    
    		// this is the speacial offer tab, appears only if there are special offers and by default is the 5th
    		if ( isset( $tab_array['special_offers'] ) ) {
    			$new_tab_array['special_offers'] = $tab_array['special_offers'];// set in new array
    			unset( $tab_array['special_offers'] );//unset in old one
    		}
    
    		// this is the map tab, by default is the 6th
    		if ( isset( $tab_array['post_map'] ) ) {
    			$new_tab_array['post_map'] = $tab_array['post_map'];// set in new array
    			unset( $tab_array['post_map'] );//unset in old one
    		}
    
    		// this is the related listing tab, it is optional and by default is the 8th
    		if ( isset( $tab_array['related_listing'] ) ) {
    			$new_tab_array['related_listing'] = $tab_array['related_listing'];// set in new array
    			unset( $tab_array['related_listing'] );//unset in old one
    		}
    
    		// ** Return the $new_tab_array inside Completed System
    		return $new_tab_array;
    
    		// If Check for Completed System ends here
    	} else {
    		// Here we tell GeoDirectory to use the regular array for all other custom post types.
    		return $tab_array;
    	}
    
    }
    
    in reply to: GD Business hours #335940

    Jeff
    Buyer
    Post count: 188

    Hi Jorge:

    I’ve never received or seen any message from you. We don’t provide translated text, but there is a WordPress standard template included with the plugin. You can use the program PoEdit to create a German translation.

    You would then place that in the proper WordPress folder to keep it safe during upgrades.

    If you need assistance, you can email me at jeff at jeffrose dot ca

    in reply to: GeoVouchers #333690

    Jeff
    Buyer
    Post count: 188

    I did. Please remember to allow for time zone differences. I got them at 10:30pm last night and it’s currently 8:30 am. I’ll send you replies shortly.

    in reply to: GeoVouchers #332948

    Jeff
    Buyer
    Post count: 188

    Hi Michael. You should be able to register an account here : http://gt-vouchers.com/rumbledog?action=register

    Or you can email me at jeff at jeffrose dot ca for a direct response.

    in reply to: GD Hours CSS #332602

    Jeff
    Buyer
    Post count: 188

    This issue is with by Business Hours plugin, thanks to Guust for bringing this to my attention.

    The issue I see is that the fields are not outlined/visible. This is a problem on the whole form and is a CSS choice made by the theme designer. You will need to have a designer or someone knowledgeable with CSS to update the theme.

    I’m looking at this from my iPad at the moment, so if I’ve misunderstood the problem, let me know. I’ve attached a screenshot of what I see.

    in reply to: Uploading listings without coordinates #324503

    Jeff
    Buyer
    Post count: 188

    There’s an article for this in the documentation. You can use this site to find the coordinates for all of them.

    http://www.findlatitudeandlongitude.com/batch-geocode/

    in reply to: Incorrect Email Used for BCC #321675

    Jeff
    Buyer
    Post count: 188

    Thanks Guust. I guess “unexpected behavior” rather than a bug. Good to know the difference.

    in reply to: GT-Voucher language files #311067

    Jeff
    Buyer
    Post count: 188

    Hi Malcolm.

    Let me dig into this. It isn’t a GeoDirectory problem as my plugin generally functions independently from GD for language etc.

    in reply to: Listing to draft after user edits? #309314

    Jeff
    Buyer
    Post count: 188

    Thanks Paolo. We do have the notifications on.

    in reply to: GD Related Posts Widget #308705

    Jeff
    Buyer
    Post count: 188

    If you’re referring to my Related Posts plugin/add-on, a few people have asked for this, so I’ll be trying to get it sorted out this weekend.

    in reply to: GD Related Posts #306998

    Jeff
    Buyer
    Post count: 188

    Hi Sandra:

    When you’re writing an article, you’d link keywords or business names to their listings using the tools that WordPress provides, see the screenshot I’ve attached. This is the best way to do it. It can increase your SEO and provides context for your reader. When they read a phrase like “…best massage I ever had…” you could have “best massage” link to the massage business you’re reviewing (like I just did).

    in reply to: GD Related Posts #305152

    Jeff
    Buyer
    Post count: 188

    Hi Sandra:

    You’re not missing anything. The plugin was designed this way intentionally, as you can link to places/listings easily while writing an article, using good keywords and the built-in editor. Putting the listings in the sidebar seems a bit more… distant and disconnected than linking within the article.

    I could build a widget that you can add to a sidebar, and only appear if a post has linked listings. Something I can consider.

    in reply to: GD Business Hours Error #291566

    Jeff
    Buyer
    Post count: 188

    Interesting, I haven’t received any emails about this. I happened across this thread.

    I’m out of town on business and will have a look at this when I get home. Can you tell me what version of the plugin you’re on?

Viewing 15 posts - 16 through 30 (of 180 total)