purpleedge
Forum Replies Created
-
AuthorPosts
-
Hi Manish, I believe the latest version has fixed this, I can’t find a way to generate the link that you have saved, the link is now…
http://wpgeo.directory/hotels/australia/new-south-wales/millers-point/4-stars/
August 22, 2014 at 12:47 am in reply to: Modify display of website link so address is visible #12815Hi Paolo,
Well, it’s just as easy to add the strong 😉
But no, I want the display like in my original image, or without the strong anywhere so it matches the other display fields on the detail page.
/* Change the way website link is displayed on detail page –*/
function geodir_change_website_field_display_name($name,$website,$post_id){
return ‘‘ . $name . ‘<span class=”geodir_website_address”>’ . $website . ‘</span>’;
}
add_filter( ‘geodir_custom_field_website_name’, ‘geodir_change_website_field_display_name’, 10, 3 );Produces…
<div class=”geodir_more_info geodir_website”>
<span class=”geodir-i-website” style=””>
<i class=”fa fa-link”></i>
Website
<span class=”geodir_website_address”>http://buy4baby.com.au</span></span>
</div></div>
…Which is perfect, and flexible for everybody! There is no way to get rid of the strong from the label otherwise.
August 21, 2014 at 11:46 pm in reply to: Modify display of website link so address is visible #12802Thanks very much! Can I be a pain?
Can you take the “strong” out?
$html = ‘<div class=”geodir_more_info ‘.$geodir_odd_even.’ ‘.$type[‘css_class’].’ ‘.$type[‘htmlvar_name’].'”><span class=”geodir-i-website” style=”‘.$field_icon.'”>’.$field_icon_af.’‘.apply_filters( ‘geodir_custom_field_website_name’, stripslashes(__($type[‘site_title’],GEODIRECTORY_TEXTDOMAIN)),$website, $post->ID ).’</span></div>’;
Hi Stiofan,
Didn’t play with it as much as I would have liked, but it seems to be working fine now.
Thanks!
Yeah, just answer the question, yes, or no, and it goes away.
Uninstalling the plug, and keeping the data failed to add the country_ISO2 field and data when re-installing the plugin. Deleting the plugin and data deleted all my listings – remind me not to do that again!
Adding the field and updating the country directly in the database seems to have resolved my error message when selecting an address and moving the map.
No idea why I couldn’t add that field to the database by the update process, unfortunately there is no error checking during the update so I was none the wiser, might be other users in the same boat?
+1
It is a new “Feature” in the multilocation plugin.
This reply has been marked as private.It looks like my update didn’t go correctly…
$countries_ISO2 = $wpdb->get_var($wpdb->prepare(“SELECT country_ISO2 FROM “.POST_LOCATION_TABLE.” WHERE is_default=%s”,’1′));
SELECT country_ISO2 FROM geodir_post_locations WHERE is_default=’1′
I don’t have a field called “country_ISO2” in my geodir_post_locations table?
I’ll uninstall and try again.
Hi Brian,
Country and region are showing in the url, and breadcrumbs, but only after using the location switcher?
Is there a fix Stiofan?
Brian, ThemeMyLogin adds a profile page, there are avatar upload plugins too, but I now prefer to use gravatars.
This reply has been marked as private.Hi Stiofan,
Pretty sure it’s not just “my” problems? 🙂
I’m hoping to go live later this week, any quick solution, apart from reverting to the previous version which worked fine for me?
Any idea what triggers the error message whenever I try to edit an address?
Thanks, OK I’ll ignore it for now.
-
AuthorPosts