Joy

Forum Replies Created

Viewing 15 posts - 856 through 870 (of 921 total)
  • Author
    Posts
  • in reply to: Conditional Tabs #70104

    Joy
    Buyer
    Post count: 1076

    Got it! Thank you so much.

    in reply to: Mobile Layout #70102

    Joy
    Buyer
    Post count: 1076

    Thank you! I’ll see if I can figure it out and will post back if I find a solution for others to use as well.

    in reply to: Conditional Tabs #69860

    Joy
    Buyer
    Post count: 1076

    Hikes is a category. The code for that is working just fine. When this function is enabled I can see it taking effect because the order of my tabs are rearranged. However, I am trying to remove the “Related Listings” tab and I don’t know how to to that. From the tutorial you forwarded me to, I completely took out the following code

    
    
    // 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
        }

    However the “Related Listings” tab is still appearing. Thank you.

    in reply to: Conditional Tabs #69838

    Joy
    Buyer
    Post count: 1076

    Okay I figured out to only affect the listings I want to change. But removing the snippet doesn’t seem to have any effect, the related listing tab is still showing up. I’ve removed the “Related Listings” array entirely. Please see 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)
    {
     
    // before creating the new array which will re-order the tabs, we check if the custom post type is "Places"
     
    if ( has_term ( 'hikes', 'gd_placecategory' ) ) {
     
     // here you can modify the array and re-arrange tabs as you wish, you can create a completely new array too.
     
        // this is the review tab, by default is the 7th, but here we moved it to position 1.
        if(isset($tab_array['reviews'])){
             $new_tab_array['reviews'] = $tab_array['reviews'];// set in new array
             // IMPORTANT the following code tells GeoDirectory that this is the new default active tab 
             $new_tab_array['reviews']['is_active_tab']='1';
             unset($tab_array['reviews']);//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 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
         }
     
       
         
        // now we set any remaining tabs that have not been assigned an order
        foreach($tab_array as $key=>$tab){
        $new_tab_array[$key]=$tab;
        }
     
        return $new_tab_array ; } // If Check for Places ends here 
     
    // Here we tell GeoDirectory to use the regular array for all other custom post types.
    else { return $tab_array ;  }
     
    }

    Thank you.

    in reply to: Help…maybe? #69832

    Joy
    Buyer
    Post count: 1076

    Cool, I can’t wait. Thank you for taking the extra time to work this out.

    in reply to: Conditional Tabs #69823

    Joy
    Buyer
    Post count: 1076

    Thank you @paolo, but I only see that this tutorial tells you how to rearrange the tab orders. I would like to hide a tab order for certain listings.

    in reply to: Help…maybe? #69688

    Joy
    Buyer
    Post count: 1076

    Hi @jeffrose, any luck on this? I sent you an email as well. Thanks.

    in reply to: Help…maybe? #69261

    Joy
    Buyer
    Post count: 1076

    Hi @paolo, thanks so much. This would be a great addition to Jeff’s add-on!

    in reply to: Help…maybe? #69258

    Joy
    Buyer
    Post count: 1076

    Thank you @guust I have contacted @jeff as well and he did respond via email but still no progress.

    Basically the Business Hours plugin should ideally replace the business hours within the listing page rather than show up as a separate widget. I was hoping that this could be done, but if not the theme sort of looses a valuable add-on provided by Jeff, having the ability to input specific hours should really be a core function.

    in reply to: Help…maybe? #69163

    Joy
    Buyer
    Post count: 1076

    Oh, I guess I could de-activate the time field but it still separates the time listing in another widget which isn’t ideal. That’s why I would like to have the GD Business Hours text to replace the default hours text. Here is their demo, and you can see how it works. I currently have an error on my site so I can’t even see the widget right now, but since I can see the demo, I know how it will be displayed on my site once I correct the issue.

    Demo: http://geodirectory.installedforyou.com/places/united-states/pennsylvania/philadelphia/attractions/the-liberty-bell-center/

    in reply to: Disable map hover zoom #65279

    Joy
    Buyer
    Post count: 1076

    Nevermind I found it in the Map settings on the GeoDirectory options. Thank you. 🙂

    in reply to: Disable map hover zoom #65278

    Joy
    Buyer
    Post count: 1076

    I am asking for the edit listing page from the front end. It’s not a widget, it’s built into that page.

    in reply to: Widget Categories #64469

    Joy
    Buyer
    Post count: 1076

    LOL nevermind. I’ve figured out that you can multi-select with shift/alt. 🙂

    in reply to: Compliments integration #64462

    Joy
    Buyer
    Post count: 1076

    Hi @paolo. Yes I understand what the compliment plugin does, but I’m asking if a link to send compliments can be included next to that “thumbs up” option on the reviews. That way members can compliment one another right from their review instead of having to navigate to their profiles first.

    in reply to: Compliments integration #64327

    Joy
    Buyer
    Post count: 1076

    Hello, yes that is the plugin that I am talking about. Is it possible? Thank you.

Viewing 15 posts - 856 through 870 (of 921 total)
20% Discount Offer
Hurry! Get your 20% discount before it expires. Get 20% Discount