a.deghiedy

Forum Replies Created

Viewing 15 posts - 31 through 45 (of 62 total)
  • Author
    Posts
  • in reply to: Moving places between different cpts #26104

    a.deghiedy
    Expired Member
    Post count: 62

    Hi Paolo,

    I can understand what you are saying and i have no problem actually recreating the place under the premium cpt but the whole issue for me is the reviews and ratings.

    Lets say i have a place under the free cpt and i have reviews and ratings from visitors under it when the place is upgraded to premium and i create a brand new place under the premium cpt is it possible to move only the reviews and ratings from the free page on the free cpt to the premium page on premium cpt?

    Thanks for your help.

    in reply to: Send to friend not working #26082

    a.deghiedy
    Expired Member
    Post count: 62

    Thanks Stiofan and have a great 2015 🙂

    in reply to: Moving places between different cpts #26036

    a.deghiedy
    Expired Member
    Post count: 62

    Hi Guust,

    Thanks for your reply – if it is possible to let me know how to do it from the database that will be great.

    Happy new year and thanks for all your help.

    in reply to: Send to friend not working #26035

    a.deghiedy
    Expired Member
    Post count: 62

    Hi Guust,

    Thanks for your help – it is working now not sure why it didn’t work yesterday as i remember i checked the spam and junk mail folders as well.

    The email field in the send to friend form is not accepting emails with .info extension , how can i add that so the email field recognize things like .info as valid emails?

    THanks

    in reply to: Send to friend not working #25984

    a.deghiedy
    Expired Member
    Post count: 62
    This reply has been marked as private.
    in reply to: Add advanced search to custom page #25978

    a.deghiedy
    Expired Member
    Post count: 62

    Hi Paolo,

    Happy new year and thanks for your response.

    Any idea when the everywhere search option will be launched too? i mean the search option to search in all cpts

    Thanks for your help

    in reply to: Hide tabs in custom post type #25522

    a.deghiedy
    Expired Member
    Post count: 62

    Hi Stiofan,

    Many thanks for your reply.

    I just tested it and it worked perfectly and exactly as i wanted.

    Sorry i was just uploading new data to the website so i was cleaning up the test and dummy data first.

    Thanks again for your help with that.

    Another question please – i added a custom field (Tab) called “Prices” and i am having a plugin to create price lists and add it to the any post using shortcode but when i tried to add the shortcode to the Prices tab it didn’t show the price list , are the tabs designed to accept the shortcodes or do i have to make any customizations to get it to work?

    Thanks in advance for your help.

    in reply to: Hide tabs in custom post type #25354

    a.deghiedy
    Expired Member
    Post count: 62
    This reply has been marked as private.
    in reply to: Hide tabs in custom post type #25285

    a.deghiedy
    Expired Member
    Post count: 62

    Hi Stiofan,

    Thanks for your reply.

    So just to make sure i am putting the right code in the function file that full code should be as the following (Kindly correct the wrong parts for me if any)

    
    
    function geodir_detail_page_tab_list_extend($tab_array)
    {global $post;
    if(isset($post->post_type) && $post->post_type=='gd_free'){}else{return;}
    {
    
    if(isset($tab_array['reviews'])){
    $new_tab_array['reviews'] = $tab_array['reviews'];// set in new array
    $new_tab_array['reviews']['is_active_tab']=’1′;
    unset($tab_array['reviews']);//unset in old one
    }
    if(isset($tab_array['post_profile'])){
    $new_tab_array['post_profile'] = $tab_array['post_profile']; // set in new array
    $new_tab_array['post_profile']['is_active_tab']=”;
    unset($tab_array['post_profile']);//unset in old one
    }
    
    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
    }
    
    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
    }
    
    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
    }
    
    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: Hide tabs in custom post type #25145

    a.deghiedy
    Expired Member
    Post count: 62

    Hi Paolo,

    Thanks for your reply.

    I tried what you suggested but it is still not showing the Reviews tab as the default profile – please find below what i added to function.php in the child theme please let me know if something wrong with it.

    Thanks

    The code below:

    if($post_type==’gd_free’){
    add_filter(‘geodir_detail_page_tab_list_extend’, ‘geodir_detail_page_tab_list_extend’) ;

    function geodir_detail_page_tab_list_extend($tab_array)
    {
    // here u can modify this array, u can create a completely new one too.

    if(isset($tab_array[‘reviews’])){
    $new_tab_array[‘reviews’] = $tab_array[‘reviews’];// set in new array
    $new_tab_array[‘reviews’][‘is_active_tab’]=’1′;
    unset($tab_array[‘reviews’]);//unset in old one
    }
    if(isset($tab_array[‘post_profile’])){
    $new_tab_array[‘post_profile’] = $tab_array[‘post_profile’]; // set in new array
    $new_tab_array[‘post_profile’][‘is_active_tab’]=”;
    unset($tab_array[‘post_profile’]);//unset in old one
    }

    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
    }

    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
    }

    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
    }

    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: Error when updating the plugins #25136

    a.deghiedy
    Expired Member
    Post count: 62

    Hi Paolo,

    Thanks it worked with a.deghiedy as user name.

    Your help is much appreciated.

    in reply to: Epic 404 – Article Not Found #24981

    a.deghiedy
    Expired Member
    Post count: 62

    Hi Paolo,

    You can set this ticket as closed – i rebuilt the website on a clean WP and it is working fine.

    in reply to: Hide tabs in custom post type #24980

    a.deghiedy
    Expired Member
    Post count: 62

    Hi Paolo,

    Sorry i know you guys are very busy with the new updates and i am not trying to push at all but when you have a chance please reply my last message.

    Thanks again and very sorry for disturbance.

    in reply to: Error when updating the plugins #24976

    a.deghiedy
    Expired Member
    Post count: 62
    This reply has been marked as private.
    in reply to: Booster is overwriting custom CSS #24857

    a.deghiedy
    Expired Member
    Post count: 62
    This reply has been marked as private.
Viewing 15 posts - 31 through 45 (of 62 total)
20% Discount Offer
Hurry! Get your 20% discount before it expires. Get 20% Discount