Atilla Boz
Forum Replies Created
-
AuthorPosts
-
April 26, 2017 at 10:34 am in reply to: Supreme directory – details, sidebar – E-Mail address won`t show up #375466
Hi Paolo,
where was it empty? Did you change anything now?
If yes – thank you because now I can see the second eMail adress but the first one is still not visible.Its generally hidden at all post types / categories.
http://boz1.timmeserver.de/vz-foto_video/great2gether-3/But I don`t knwo why.
Thanks 🙂
April 25, 2017 at 6:56 am in reply to: Supreme directory – details, sidebar – E-Mail address won`t show up #375191This reply has been marked as private.April 22, 2017 at 8:12 am in reply to: Supreme Directory – address format on detail page, sidebar #374723Guust thanks alot!
I mixed this code from the one from your link – should be great for 90% of the GD Users from Germany:// Anpassung - Detailseite - Sidebar - Adressfeld - modifiziert add_filter('geodir_show_post_address', 'geodir_change_address_order' , 100 , 2) ; function geodir_change_address_order($html , $vars) { global $post, $preview, $wpdb; $field_icon=''; if (strpos($field_icon,'http') !== false) {$field_icon_af = '';} elseif($field_icon==''){$field_icon_af = '<i class="fa fa-home"></i>';} else{$field_icon_af = $field_icon; $field_icon='';} if(!$preview) { $html = ''; $html .= '<span class="geodir-i-location" style="'.$field_icon.'">'.$field_icon_af; $html .= ' Addresse:<br>'; $html .= '</span>'; //print_r($_POST); if($post->post_address){ $html .= '<span itemprop="streetAddress">'.$post->post_address.'</span><br>'; // + <br> } if($post->post_zip){ $html .= '<span itemprop="postalCode">'.$post->post_zip.'</span> '; } if($post->post_city){ $html .= '<span itemprop="addressLocality">'.$post->post_city.'</span><br>'; } if($post->post_country){ $html .= '<span itemprop="addressCountry">'.$post->post_country.'</span>'; } if($post->post_region){ $html .= ' / <span itemprop="addressRegion">'.$post->post_region.'</span>'; } $html .= ''; } return $html ; }
Ah no, I said I only need Sreet, ZIP & Town so my new code in use is:
// Anpassung - Detailseite - Sidebar - Adressfeld - modifiziert add_filter('geodir_show_post_address', 'geodir_change_address_order' , 100 , 2) ; function geodir_change_address_order($html , $vars) { global $post, $preview, $wpdb; $field_icon=''; if (strpos($field_icon,'http') !== false) {$field_icon_af = '';} elseif($field_icon==''){$field_icon_af = '<i class="fa fa-home"></i>';} else{$field_icon_af = $field_icon; $field_icon='';} if(!$preview) { $html = ''; // $html .= '<span class="geodir-i-location" style="'.$field_icon.'">'.$field_icon_af; $html .= '<div class="hop-schrift post_address">Adresse:</div><br>'; $html .= '</span>'; //print_r($_POST); if($post->post_address){ $html .= '<span itemprop="streetAddress">'.$post->post_address.'</span><br>'; // + <br> } if($post->post_zip){ $html .= '<span itemprop="postalCode">'.$post->post_zip.'</span> '; } if($post->post_city){ $html .= '<span itemprop="addressLocality">'.$post->post_city.'</span><br>'; } // Land ausblenden // if($post->post_country){ // $html .= '<span itemprop="addressCountry">'.$post->post_country.'</span>'; // } // Region ausblenden // if($post->post_region){ // $html .= ' / <span itemprop="addressRegion">'.$post->post_region.'</span>'; // } $html .= ''; } return $html ; }
Best wishes from Cologne,
AtillaHi Stiofan,
ok and would you suggest, I post it at GD jobs area or can you just ask around and make an offer what the price would be?
Thank you,
AtillaApril 5, 2017 at 6:46 pm in reply to: Supreme Directory – Make text out of search button icon #372076Oh and 1 more thing to clarify: I would like to add the word Seach ( in german ) instead of the magnifying glass.
Hope it is lear now 🙂
Thanks,
AtillaThose are custom post types. Ok… should I post it then at GD jobs? Maybe we could have it at special customization.
April 5, 2017 at 4:03 pm in reply to: Supreme Directory – Make text out of search button icon #372022This reply has been marked as private.April 5, 2017 at 4:00 pm in reply to: Supreme Directory – Make text out of search button icon #372020Hmm nothing happened for me. Changed all words and each time nothing happened. What would be the option to do it in the code snippet way like Kor Chung mentioned for the advanced Search button?
add_filter('gd_adv_search_btn_value','_my_adv_search_button'); function _my_adv_search_button($btn){ $btn = '<div class="search-text">My Text</div><span></span>'; return $btn; }
Greetings,
AtillaHi Stiofan,
I did not mean the advanced search option, but now I am curious where that is what you mean.
What I was talking about was the normal search, I have in first place the categories, then the search form field, and then “in the near” field.
Now in the categories choser dropdown it always shows the first categrory name – in my case BEAUTY – then when you click the dropdown you see the rest. What I would like to do is NOT showing a category name but showing a placeholder saying – CHOSE CATEGORY – or something like that.
I added 2 screenshots to make things clear.
Thank you,
Atilla 🙂But you know what 🙁 Now I tried the first time to register from that form and it gives me a lame ERROR… The plugin was not tested yet for the newest WP version. Gonna get back with news.
Here we go with the solution. I am still using your code snippets and now, at the same time this here. You have to create a new file called bp-custom.php and add it to /wp-content/plugins/
And this is how I added the Code:
<?php /** * Disables BuddyPress' registration process and fallsback to WordPress' one. */ function my_disable_bp_registration() { remove_action( 'bp_init', 'bp_core_wpsignup_redirect' ); remove_action( 'bp_screens', 'bp_core_screen_signup' ); } add_action( 'bp_loaded', 'my_disable_bp_registration' ); add_filter( 'bp_get_signup_page', "firmasite_redirect_bp_signup_page"); function firmasite_redirect_bp_signup_page($page ){ return bp_get_root_domain() . '/wp-login.php?action=register'; } ?>
Had these sources to figure out how it works:
https://gist.github.com/r-a-y/5578432
https://buddypress.org/support/topic/use-standard-wordpress-registration/Thanks again,
AtillaThis one can be closed – the codes are right. Buddypress was making the problems.
Thank you Kor Chung!
AtillaYes you`re right Stiofan. I just checked the difference between local and online installation. On the local I did not have Buddypress in use.
Gotta find out how to stop Buddypress from the redirection I guess…
Gonna get back with (hopefully good) news.Atilla
I used your code snippets to deactivate the GD login and to redirect it to somewehere else. And that somewhere else is where the WP forms for login and registration are. Login works so far since we get to the link I added in your snippet.
And when I hover the registration link it also shows the correct link but still redirects me to somewhere else and I dont know why…
This reply has been marked as private. -
AuthorPosts