Simone

Forum Replies Created

Viewing 15 posts - 2,731 through 2,745 (of 2,874 total)
  • Author
    Posts
  • in reply to: Popular Location (Count), exclude count 0 #10805

    Simone
    Expired Member
    Post count: 3515

    Hello, I think the right direction is to edit the geodir_location_widget.php in the geodir_location_manager folder.
    You could play with the array with the item no_of_records which I suppose it will output the count, but i’ll leave the final words to Vikas 🙂

    in reply to: Problem with Listings Slider #10800

    Simone
    Expired Member
    Post count: 3515

    Hello and welcome.
    Actual the issue is on the TO-DO list, so you can follow that thread for more follow-ups.

    in reply to: Default Location – Region #10797

    Simone
    Expired Member
    Post count: 3515

    Hello, actually it can’t be done for the core, what can be done is maybe hiding the region from the CSS with some tweaking

    in reply to: Editing the Login/Registration page #10692

    Simone
    Expired Member
    Post count: 3515

    Leave it in the child so I will preserve the modification if a future update will be released

    in reply to: Editing the Login/Registration page #10683

    Simone
    Expired Member
    Post count: 3515

    Copy the one on the main theme and then edit it

    in reply to: Resolved issue, do admins see new messages? #10661

    Simone
    Expired Member
    Post count: 3515

    Yes, if the thread is subscribed


    Simone
    Expired Member
    Post count: 3515

    oops..ive placed the if statement in the wrong functions, it was supposed to stay in the previous “geodir_detail_page_tab_list_extend”.

    edit- wow Vikas just wrote that 🙂


    Simone
    Expired Member
    Post count: 3515

    could you please give me your FTP in a private reply? thanks

    in reply to: Registration Form Placeholder Fallback #10623

    Simone
    Expired Member
    Post count: 3515

    Thanks for spotting this Greg, I’ll notify Vikas and hear his thoughts.

    S.


    Simone
    Expired Member
    Post count: 3515

    Hello Thomas,
    try the following code (not tested on my site)

    
    
    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['sportaktiv_tab'] = array( 
    										'heading_text' =>  __('SPORTaktiv',GEODIRECTORY_TEXTDOMAIN),
    										'is_active_tab' => false,
    										'is_display' =>  apply_filters('geodir_detail_page_tab_is_display', true, 'sportaktiv_tab'),
    										'tab_content' => ''
    									);
        
         	$tab_array['routen_tab'] = array( 
    										'heading_text' =>  __('Routen',GEODIRECTORY_TEXTDOMAIN),
    										'is_active_tab' => false,
    										'is_display' =>  apply_filters('geodir_detail_page_tab_is_display', true, 'routen_tab'),
    										'tab_content' => ''
    									);
    
         	$tab_array['sportdetails_tab'] = array( 
    										'heading_text' =>  __('Sportdetails',GEODIRECTORY_TEXTDOMAIN),
    										'is_active_tab' => false,
    										'is_display' =>  apply_filters('geodir_detail_page_tab_is_display', true, 'sportdetails_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)
    {
    global $post; 
    
    $current_posttype = geodir_get_current_posttype();
    
    	if($current_posttype != "YOUR CUSTOM TYPE eg gd_place") { 
    
    	if($tab_index =='sportaktiv_tab')
    	{
            global $wpdb;
            $id = get_the_ID();
            $sportaktivinfos = $wpdb->get_var("SELECT geodir_c4y_sportaktiv_infos FROM geodir_gd_aktiv_hotels_detail WHERE post_id = $id ");
         
       echo $sportaktivinfos;
            
    	}
    
        
        if($tab_index =='routen_tab')
    	{
            global $wpdb;
            $id = get_the_ID();
            $routeninfos = $wpdb->get_var("SELECT geodir_c4y_detail_nearby_routes FROM geodir_gd_aktiv_hotels_detail WHERE post_id = $id ");
    
       echo $routeninfos;
    	}
    	
    	
    if($tab_index =='sportdetails_tab')
    	{
            global $wpdb;
            $id = get_the_ID();
            $bikeinfos = $wpdb->get_var("SELECT geodir_c4y_detail_sport FROM geodir_gd_aktiv_hotels_detail WHERE post_id = $id ");
    
       echo $bikeinfos;
    	}	
    }
    }

    what I’ve done is to add an if statement so you need to add your post type in the row where it says:
    if($current_posttype != “YOUR CUSTOM TYPE eg gd_place”) {

    Don’t worry about your english, it is surely better than mine 😉

    in reply to: Hide Least and Highest Images #10554

    Simone
    Expired Member
    Post count: 3515

    I’ve added this to the to do list, so Vikas could do that in the next GD release. You can use the solution above as temporary fix.

    S.

    in reply to: Hide Least and Highest Images #10538

    Simone
    Expired Member
    Post count: 3515

    Hello, tried to create a function to add in the child, but did not was successful…
    replace the geodir_reviewrating_template_functions.php (attached) file in your /plugins/geodir_review_rating_manager/

    or just remove from row 125 to row 142 and add this block

    
    
    global $post;
    	
    	$post_link = get_permalink($post->id);
    	
    	if (get_option('geodir_reviewrating_enable_images')=="1")
    	{
    	 
    	
    	$comment_shorting_form_field_val = array(  'latest' => 'Latest',
    											   'oldest' => 'Oldest', 
    											   'low_rating' => 'Lowest Rating',
    											   'high_rating' => 'Highest Rating', 
    											   'low_review' => 'Lowest Reviews',
    											   'high_review' => 'Highest Reviews',
    											   'least_images' => 'Least Images',
    											   'highest_images' => 'Highest Images'
    											 );
    											 }
    											 
    											 else {
    											 $comment_shorting_form_field_val = array(  'latest' => 'Latest',
    											 										   'oldest' => 'Oldest', 
    											 										   'low_rating' => 'Lowest Rating',
    											 										   'high_rating' => 'Highest Rating', 
    											 										   'low_review' => 'Lowest Reviews',
    											 										   'high_review' => 'Highest Reviews'
    											 										  
    											 										 );
    											 										 }
    											 
    											 
    	
    	apply_filters( 'geodir_reviews_rating_comment_shorting', $comment_shorting_form_field_val );
    	
       ?>

    starting from row 125.

    This is rough, but it’s tested and working.
    Sideeffect: if an update will come, it will be removed.
    I’ll give another try tonight with a function (got to go now).

    ps-rename the file from txt to php
    S.

    in reply to: Editing the Login/Registration page #10535

    Simone
    Expired Member
    Post count: 3515

    Hello, to make the footer bar sticked to the bottom only on the signup/reg page, add this to the very top of the footer.php page in your GDF child theme

    
    
    <?php 
    global $post;
    if(isset( $_REQUEST['geodir_signup']))
    {
    ?>
    <footer class="footer" style="position:fixed !important; bottom: 0 !important; width: 100% !important;" role="contentinfo">
     <?php }
     else 
     { ?>
     <footer class="footer" role="contentinfo">
     <?php } ?>
      

    S.

    in reply to: Fieldset & Default Fields #10531

    Simone
    Expired Member
    Post count: 3515

    I’ve added this task to the to-do list, as soon as Vikas will take a look, we’ll let you know.

    S.

    in reply to: Copying prices #10524

    Simone
    Expired Member
    Post count: 3515

    Hello Reena,
    you could do that using phpmyadmin.
    going to the geodir_price field you can quick edit the column for price etc..

    Or, if you need to add new prices you can use a .xls to import into your sql (see attach sample file).

    note, this is just a rough hint, it’s not tested so don’t use the file unless you know what you’re doing.

    Ps- I notified Vikas, so he might have a better and easiest way

Viewing 15 posts - 2,731 through 2,745 (of 2,874 total)
20% Discount Offer
Hurry! Get your 20% discount before it expires. Get 20% Discount