salsaturation

Forum Replies Created

Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • in reply to: Calendar show no_events for all December events #19103

    salsaturation
    Free User
    Post count: 12

    Thanks Guust… Glad it wasn’t a case of me loosing the plot

    in reply to: Linked Business – showing linked events #15042

    salsaturation
    Free User
    Post count: 12

    Hi Guust

    Thanks for confirming – it would be good if there was a way of showing the events. Any idea on a query to loop through the events table and list events based on geodir_link_business field value matching the current post id?

    in reply to: Errors on map #14878

    salsaturation
    Free User
    Post count: 12

    sorry this looks like an issue with my chrome – probably some extensions

    please close

    in reply to: jQuery.gdmodal not working #14877

    salsaturation
    Free User
    Post count: 12

    sorry this looks like an issue with my chrome – probably some extensions

    please close

    in reply to: Todays events query #11852

    salsaturation
    Free User
    Post count: 12

    This is already on the latest releases as far as I remember


    salsaturation
    Free User
    Post count: 12

    Have you tried resaving/flushing you permalinks?

    in reply to: adding a new listing tab #8829

    salsaturation
    Free User
    Post count: 12

    This is probably inefficient and really bad but this is what I ended up with to call individual fields… works for me and hope it helps someone or feel free to give me pointers to improve it. Hopefully Vikas will have an easier cleaner way soon

    
    
    add_filter('geodir_detail_page_tab_list_extend', 'geodir_detail_page_tab_list_extend') ;
    
    function geodir_detail_page_tab_list_extend($tab_array)
    {
     $tab_array['prices_tab'] = array( 
    										'heading_text' =>  __('<i class="fa fa-gbp"></i> Prices',GEODIRECTORY_TEXTDOMAIN),
    										'is_active_tab' => false,
    										'is_display' =>  apply_filters('geodir_detail_page_tab_is_display', true, 'prices_tab'),
    										'tab_content' => ''
    									);
        
         	$tab_array['tripadvisor_tab'] = array( 
    										'heading_text' =>  __('Tripadvisor Reviews',GEODIRECTORY_TEXTDOMAIN),
    										'is_active_tab' => false,
    										'is_display' =>  apply_filters('geodir_detail_page_tab_is_display', true, 'tripadvisor_tab'),
    										'tab_content' => ''
    									);
        
    	return $tab_array ;
    }
    
    add_action('geodir_after_tab_content' ,'geodir_my_new_tab_content');
    function geodir_my_new_tab_content($tab_index)
    {
    	if($tab_index =='prices_tab')
    	{
            global $wpdb;
            $id = get_the_ID();
            $placePrices = $wpdb->get_var("SELECT geodir_place_price FROM geodir_gd_place_detail WHERE post_id = $id ");
            $ageRange = $wpdb->get_var("SELECT geodir_age_range FROM geodir_gd_place_detail WHERE post_id = $id ");
    
       // Echo the user's email address
         echo $ageRange;    
       echo $placePrices;
            
    	}
    
        
        if($tab_index =='tripadvisor_tab')
    	{
            global $wpdb;
            $id = get_the_ID();
            $freeCats = $wpdb->get_var("SELECT geodir_tripadvisor FROM geodir_gd_place_detail WHERE post_id = $id ");
    
       // Echo the user's email address
       echo $freeCats;
    	}
    }
    in reply to: adding a new listing tab #8511

    salsaturation
    Free User
    Post count: 12

    Hi Vikas

    Thank you very much just tried it and it works perfectly. Can I be a pain and ask if there is anyway we can pull fieldsets (or individual customfields) into the additional tabs?

    Thanks

    Thomas

    in reply to: adding a new listing tab #8050

    salsaturation
    Free User
    Post count: 12

    I am interested in this as well.

    Thanks in advance

    Thomas

    in reply to: Todays events query #7340

    salsaturation
    Free User
    Post count: 12

    Hi Vikas

    You genius – that works perfectly. I will test it thoroughly and let you know if there are any issues / bugs… but so far it functions exactly how I wanted it to. Thank you so much for the speedy turnaround.

    Cheers

    in reply to: Todays events query #7147

    salsaturation
    Free User
    Post count: 12

    Hi Vikas

    Thank you for the reply. Yes that would be great. I think it should give a couple of options like

    Limit to:
    Today
    Week
    Month

    And a checkbox to select – Show only Future events:

    In the meantime do you know if there is a function I can use to add the text ‘today’, ‘future’, or ‘past’ to the event listing li class so I can hide past and future events via CSS?

    Thanks

    in reply to: Todays events query #6723

    salsaturation
    Free User
    Post count: 12

    Thanks Paolo that would be great.

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