Patrick BAISSAT
Forum Replies Created
-
AuthorPosts
-
Ok, thank you Paolo, i try this and come back to explai if i have a problem.
Best regards.
Patrick
PS : can you resolv my problem in this post : https://wpgeodirectory.com/support/topic/map-pointer-not-in-good-sreet/#post-322207Hello
I’m sorry but I do not understand how your add-on Multi-location focuses. I’ve been running around for four days without knowing how to make it work.
I have 130 sites on the south-west of France on 2 regions: Aquitaine and Midi Pyrenees.
When I create a site, the pointer on the map does not go where it is needed. It is in the city center and not at the address.
I am obliged to move the pointer by hand for each site.
When I go in the parameters of the addon Geodir Location Manager I have more locations, and I do not understand the relationship between these locations and site management.
Can you tell me where I was wrong, that I forgot in the settings?
Thank you for taking 2 minutes to watch my problemthank you in advance
Hello
Sorry but I had read in full the post of Guust
I understood.
For the update, I went in Extensions then I clicked on update, that’s all
After, core Geodirectory disabledBest regards
PatrickHello Paolo,
Did you have time to look at the problem with the codes I sent you?
thank you
Best regards
PatrickThis reply has been marked as private.After several attempts, your modification is more astute than I thought.
The fact that it is visible depends on two things, the type of fields AND the fact that the personalized field is in admin visibility or not.
You can create your Add-on with these settings, I’m sure it will make you happy.
I want to thank you again for your kindness, your patience and your very good technical level.Thank you Stiofan, I understood exactly what we could do and not do.
You can do this with the original fields like Radio, Text, Date, Time, etc. . But not with HTML variables such as Property_area or Property_bedrooms.
But that’s already very good. I will have to decide which fields I put Admin or not.Best regards
i test this but not working :
add_filter("geodir_data_field_custom_output_property_area",'_my_hide_data_field_from_admin',10,3); function _my_hide_data_field_from_admin($html,$fields_location,$type){ if(isset($type['for_admin_use']) && $type['for_admin_use'] && !is_super_admin()){ $html = ''; } return $html; }
SUPER ! ! ! ! it’s working perfectly for the fields : text,text area, date, time, HTML, Radio, Multi-select etc . . .
but no for the predefined field : property area, price, property status, etc . . . is normal ?best regards
PatrickThis reply has been marked as private.This reply has been marked as private.For exemple, you write this :
add_filter('geodir_detail_page_tab_is_display','_my_hide_tabs_to_non_admin',10,2); function _my_hide_tabs_to_non_admin($val,$htmlvar_name) { //echo '###'.$htmlvar_name; // uncomment to get var names //This 4 lines are to hide this customs field, and it is OK if($htmlvar_name=='geodir_fin_bail' && !is_super_admin()){$val = false;} if($htmlvar_name=='geodir_debut_bail' && !is_super_admin()){$val = false;} if($htmlvar_name=='geodir_trienale' && !is_super_admin()){$val = false;} if($htmlvar_name=='geodir_fiche_fm' && !is_super_admin()){$val = false;} if($htmlvar_name=='geodir_someother' && !is_super_admin()){$val = false;} return $val; }
for disabled the view in tabs,
I write this :
add_filter('geodir_detail_page_sidebar_is_display','_my_hide_sidebar_to_non_admin',10,2); function _my_hide_sidebar_to_non_admin($val,$htmlvar_name) { if($htmlvar_name=='geodir_fin_bail' && !is_super_admin()){$val = false;} if($htmlvar_name=='geodir_debut_bail' && !is_super_admin()){$val = false;} if($htmlvar_name=='geodir_trienale' && !is_super_admin()){$val = false;} if($htmlvar_name=='geodir_fiche_fm' && !is_super_admin()){$val = false;} if($htmlvar_name=='geodir_someother' && !is_super_admin()){$val = false;} return $val; }
For disabled the view in sidebar right. and is not working, you have an idea ?
Thanks
Best regards
PatrickYes, i backup my files, and update first GD core and the plugin after.
I restore the french translation, But the most complicated was putting the right pitches for custom fields. I had not backed up at this level.
I would know for the futureBest regards
PatrickHello Stiofan,
You said : “That hook is for hiding tabs not individual items”, yes i understand this.
Now, my fontions.php is :
function _my_hide_tabs_to_non_admin($val,$htmlvar_name){ //echo '###'.$htmlvar_name; // uncomment to get var names //This 4 lines are to hide this customs field, and it is OK if($htmlvar_name=='geodir_fin_bail' && !is_super_admin()){$val = false;} if($htmlvar_name=='geodir_debut_bail' && !is_super_admin()){$val = false;} if($htmlvar_name=='geodir_trienale' && !is_super_admin()){$val = false;} if($htmlvar_name=='geodir_fiche_fm' && !is_super_admin()){$val = false;} if($htmlvar_name=='geodir_someother' && !is_super_admin()){$val = false;} return $val; }
The filters are :
add_filter('geodir_custom_field_output_text','my_enable_shortcodes_in_cf',15,3); add_filter('geodir_detail_page_tab_is_display','_my_hide_tabs_to_non_admin',10,2);
The custom fields do not appear in the tabs under the photo, and that’s fine.
But I would like to do the same but on the right column in the detail page of places, the same in the ‘Map Bubble’
I join to you an picture with comments.It is very difficult for me to explain in english, and it is the first time that i buy your extension.
You help me very well, but i have some dificulty to explain my thing
sorry sorry for that,Best regards
PatrickOk i read your answer.
—————————–
In your help you write :
add_filter(‘geodir_detail_page_tab_is_display’,’_my_hide_tabs_to_non_admin’,10,2);for one of location. the variable is : detail_page_tab for Detail page own tab
can you give me the 4 other variables for : detail page sidebar, more info tab, listing page and map bubble.thank you Stiofan
-
AuthorPosts