Fredrik
Forum Replies Created
-
AuthorPosts
-
Hi,
The users think they can change their usernames by changing their email when editing their listings. Then they contact me and wonder why it didn’t change.
One solution is to do this in css, but then they can just remove the “readonly” part in the code and they can edit it again.
Anything new on this topic?
This reply has been marked as private.This reply has been marked as private.Just tried disabling/enabling Geodirectory Marker Cluster.
Before
After
I hid it with CSS, thanks.
Cool, I did this and added code to listing-success.php.
This is what I came up with, it might not be pretty but it works.
////////////////
global $wpdb;
$pid = $_GET[‘pid’];
$date_has_image = current_time( ‘mysql’ );
$date_no_image = date(‘mysql’,(strtotime ( ‘-30 days’ , strtotime ( $date) ) ));$image= $wpdb->get_var(“SELECT featured_image FROM wp_geodir_gd_place_detail WHERE post_id=’$pid'”);
if ($image!= “” && $image!= NULL && $image!= “/path/to/standard/image/set/in/gd/options.jpg”) {
$wpdb->query($wpdb->prepare(“UPDATE wp_posts SET post_date=’$date_has_image’ WHERE ID=’$pid'”));
}else {
$wpdb->query($wpdb->prepare(“UPDATE wp_posts SET post_date=’$date_no_image’ WHERE ID=’$pid'”));
}
////////////////Thanks for the help.
I disable them to troubleshoot stuff like this problem.
So the resetting of all the settings when disabled is a feature then I guess? 🙂
Hello,
I have actually already tested this but still doesn’t work.
Regards.
Thank you! Works great.
Will some functionality be removed if I remove the category? When adding a new listing the category is required, if there are none what happens then?
Or did you mean to remove all listings from the category?
Actually, I just realized I don’t need the country shown at all. I changed it to region and that is translated fine.
Set to resolved.
Thanks Guust.
Awesome, that works.
However the translation for the country in the core files didn’t come along. How can I fix this?
Found them, thank you.
I’m still trying to get a hang of GD after 6+ months usage. Gets confusing at times.
I would love to do this, however some of the GD plugins I have resets when I disable them somehow. All the settings I have made in the plugins vanishes and the site looks more or less trashed until I fix that. Is it supposed to be like this? What can I do?
I don’t really want to start disabling addons and spend a couple of hours turning it all back to the way it was. -
AuthorPosts