Simone
Forum Replies Created
-
AuthorPosts
-
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 🙂Hello and welcome.
Actual the issue is on the TO-DO list, so you can follow that thread for more follow-ups.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
Leave it in the child so I will preserve the modification if a future update will be released
Copy the one on the main theme and then edit it
Yes, if the thread is subscribed
August 1, 2014 at 12:19 pm in reply to: Custom Tabs on Detail Site only at specific Custom Post Type #10633oops..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 🙂
August 1, 2014 at 12:03 pm in reply to: Custom Tabs on Detail Site only at specific Custom Post Type #10629could you please give me your FTP in a private reply? thanks
Thanks for spotting this Greg, I’ll notify Vikas and hear his thoughts.
S.
August 1, 2014 at 11:33 am in reply to: Custom Tabs on Detail Site only at specific Custom Post Type #10622Hello 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 😉
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.
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.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.
I’ve added this task to the to-do list, as soon as Vikas will take a look, we’ll let you know.
S.
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
-
AuthorPosts