Forced change to v2 has broken my site

This topic contains 3 replies, has 3 voices, and was last updated by  Stiofan O’Connor 5 years, 5 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #491004

    Oliver Sherrington
    Expired Member
    Post count: 6

    Hello,

    My website automatically updated to v2. This broke my website, and I had to spend several days fixing various elements.

    One particular element is still not working.

    I had guust put together a custom snippet to hide a particular additional tab that we created from everybody except the venue owner (i.e. the person who claimed the listing).

    This snippet was as follows:

    // 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') ;
     
    function geodir_detail_page_tab_list_extend($tab_array)
    {
      
      //print_r($tab_array);
      
      // only show edit score to the post owner and siteadmin
      if(isset($tab_array['geodir_editscores'])){
        global $post;
    	$user_id = get_current_user_id();
    	if($post->post_author != $user_id && $user_id != 10){
    	  unset($tab_array['geodir_editscores']);
    	}
      }
     
     return $tab_array ;
    }

    Could you please advise what needs to be changed so that this is fixed and works as intended?

    #491055

    Alex Rollin
    Moderator
    Post count: 27815

    A valid license is required to view this reply.

    You may need to login

    OR

    Buy either a Membership or valid license for this product.

    Thanks, Team GeoDirectory!

    #492030

    Oliver Sherrington
    Expired Member
    Post count: 6

    A valid license is required to view this reply.

    You may need to login

    OR

    Buy either a Membership or valid license for this product.

    Thanks, Team GeoDirectory!

    #492197

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    A valid license is required to view this reply.

    You may need to login

    OR

    Buy either a Membership or valid license for this product.

    Thanks, Team GeoDirectory!

Viewing 4 posts - 1 through 4 (of 4 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
20% Discount Offer
Hurry! Get your 20% discount before it expires. Get 20% Discount