urbanfix

Forum Replies Created

Viewing 15 posts - 16 through 30 (of 283 total)
  • Author
    Posts

  • urbanfix
    Expired Member
    Post count: 310

    Hi, I would like to do the same thing, is that the only way or would changing the title of the page in wordpress->pages->Edit Page.. work? (basically the usual way of renaming a page?)
    Wanted to check as i dont want to break anything,
    Thanks,
    –UF

    in reply to: 1.05 compatiability #114950

    urbanfix
    Expired Member
    Post count: 310

    Thanks @giri
    Please mark as resolved!
    –UF

    in reply to: Changed/Missing Action – Redux #114559

    urbanfix
    Expired Member
    Post count: 310

    Thanks for following up with this @jeff 🙂
    @giri Any idea when 1.05 will be released?
    Thanks
    –UF

    in reply to: Profile Excerpt above tabs #113453

    urbanfix
    Expired Member
    Post count: 310

    Hi @giri I was just posting the final code, I got it done in the end!

    I hope all is well now!

    Please mark as resolved,
    Thankyou 🙂
    -UF

    in reply to: Profile Excerpt above tabs #112854

    urbanfix
    Expired Member
    Post count: 310

    Here is my whoop change default tab (to map) and remove a tab (postprofile)
    Thanks for all the help guys!

    
    
    function override_whoop_filters() {
         remove_filter('geodir_detail_page_tab_list_extend', 'geodir_detail_page_tab_list_extend');
         add_filter('geodir_detail_page_tab_list_extend', 'ufcustom_geodir_detail_page_tab_list_extend');
    }
    add_action('init', 'override_whoop_filters');
    
    function ufcustom_geodir_detail_page_tab_list_extend($tab_array)
    {
     if (isset($tab_array['reviews'])) {
            $new_tab_array['reviews'] = $tab_array['reviews'];// set in new array
            $new_tab_array['reviews']['is_active_tab']='';
            unset($tab_array['reviews']);//unset in old one
        }
       
        if (isset($tab_array['post_map'])) {
            $new_tab_array['post_map'] = $tab_array['post_map'];// set in new array
            $new_tab_array['post_map']['is_active_tab'] = '1';       
            unset($tab_array['post_map']);//unset in old one
        }
    
       if (isset($tab_array['post_profile'])) {
            unset($tab_array['post_profile']);//unset in old one
        }
      
        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
        }
    
        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
        }
    
        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
        }
    
        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
        }
    
        // 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;
    }
    ?>
    in reply to: Profile Excerpt above tabs #111608

    urbanfix
    Expired Member
    Post count: 310
    This reply has been marked as private.
    in reply to: Profile Excerpt above tabs #110665

    urbanfix
    Expired Member
    Post count: 310

    It breaks my site..
    nost sure why,
    Thanks, UF

    in reply to: Profile Excerpt above tabs #110664

    urbanfix
    Expired Member
    Post count: 310

    I tried that but it didnt work see below:

    
    
    <?php
    function override_whoop_filters() {
         remove_filter('geodir_detail_page_tab_list_extend', 'geodir_detail_page_tab_list_extend');
         add_filter('geodir_detail_page_tab_list_extend', 'jkirker_geodir_detail_page_tab_list_extend');
    }
    add_action('init', 'override_whoop_filters');
    
    // this is the function that does the re-ordering that we call with the add filter snippet above.
    function jkirker_geodir_detail_page_tab_list_extend($tab_array)
    {
     
     // 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
         }
     
        // 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
        }
         
        // 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 ;
    ?>
    in reply to: Profile Excerpt above tabs #69896

    urbanfix
    Expired Member
    Post count: 310

    I tried and failed unfortunately so @giri any help?

    This is what i’ve got:

    
    
    <?php
    function override_whoop_filters() {
         remove_filter('geodir_detail_page_tab_list_extend', 'geodir_detail_page_tab_list_extend');
         add_filter('geodir_detail_page_tab_list_extend', 'jkirker_geodir_detail_page_tab_list_extend');
    }
    add_action('init', 'override_whoop_filters');
    
    // this is the snippet that adds the filter, calling the function below. 
    add_filter('geodir_detail_page_tab_list_extend', 'geodir_detail_page_tab_list_extend') ;
     
    // this is the function that does the re-ordering that we call with the add filter snippet above.
    function geodir_detail_page_tab_list_extend($tab_array)
    {
     
     // 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
         }
     
        // 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
        }
         
        // 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 ;
    ?>

    Thanks UF

    in reply to: Profile Excerpt above tabs #69694

    urbanfix
    Expired Member
    Post count: 310
    This reply has been marked as private.
    in reply to: Profile Excerpt above tabs #69693

    urbanfix
    Expired Member
    Post count: 310

    I have but it hasnt worked ( i commented it out and removed it neither worked)
    I wonder if its to do with whoop? @giri?
    This is the code i used

    
    
    <?php
    // this is the snippet that adds the filter, calling the function below. 
    add_filter('geodir_detail_page_tab_list_extend', 'geodir_detail_page_tab_list_extend') ;
     
    // this is the function that does the re-ordering that we call with the add filter snippet above.
    function geodir_detail_page_tab_list_extend($tab_array)
    {
     
     // 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
         }
     
        // 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
        }
         
        // 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 ;
    ?>
    in reply to: Profile Excerpt above tabs #69476

    urbanfix
    Expired Member
    Post count: 310

    I see, i finally get how they work now!

    I have looked at the link below but cant figure out how to remove a single tab, (the profile tab).
    link

    Any advice? thanks UF

    in reply to: Profile Excerpt above tabs #69380

    urbanfix
    Expired Member
    Post count: 310

    Okay I managed to get the whole profile by adding the code:

    
    
    <?php
    add_action( 'geodir_details_main_content', 'the_content',45);
    ?>

    I will remove the profile tab too.

    would it be possible to display a custom field by using the code below

    
    
    <?php
    add_action( 'geodir_details_main_content', 'HTML_VARIABLE',55);
    

    ?>
    (obviously id add the actual html variable..?)
    Thanks, UF

    in reply to: Profile Excerpt above tabs #69334

    urbanfix
    Expired Member
    Post count: 310
    This reply has been marked as private.
    in reply to: Profile Excerpt above tabs #69333

    urbanfix
    Expired Member
    Post count: 310

    Hi guys, found an issue with this. the read more link directs back to that page e.g,
    example.com/food_and_drink/liverpool/bars/Revolution/

    where as it should redirect to: example.com/food_and_drink/liverpool/bars/Revolution/#post_profile

    any way to make it work like that?
    Thanks UF

Viewing 15 posts - 16 through 30 (of 283 total)
20% Discount Offer
Hurry! Get your 20% discount before it expires. Get 20% Discount