The_Hegemon
Forum Replies Created
-
Thanks a lot! With these little snippets I found the error. I’m almost a bit ashamed to say what the error was. ??
I wanted an extra field, so I tinkered with the database and the code. After a bit of thinking I didn’t need the extra field anymore, so I deleted the extra columns in the database. I also deleted “address2”. Stupid me.
Thanks again for your help and your great plugin!
I tried it with adding your code to the file, but there wasn’t any output.
This also didn’t work:
echo $wpdb->show_errors();
This just did give me a bool(false):
var_dump($wpdb->show_errors());
Yes, I am running a multisite but the plugin was installed afterwards and the wpsl_id field has the auo_increment flag set.
It’s urgent, does anybody have a solution?
Forum: Plugins
In reply to: [WP Store Locator] City after zipcode in DutchIf you don’t have a problem with having the zipcode before the city with other countries here’s a solution:
Open the file wpsl-gmap.js in the folder js.
For the marker popups look for this:
windowContent += "<p>" + storeHeader + "<span>" + infoWindowData.address + "</span>" + address2 + "<span>" + infoWindowData.city + "</span></p>";
and replace it with this:
windowContent += "<p>" + storeHeader + "<span>" + infoWindowData.address + "</span>" + address2 + "<span>" + infoWindowData.zip + " " + infoWindowData.city + "</span></p>";
For the list under the map look for this:
html = "<li data-store-id='" + id + "'><div><p>" + storeImg + "<strong>" + store + "</strong><span class='wpsl-street'>" + address + "</span>" + address2 + city + " " + state + " " + zip + "<span class='wpsl-country'>" + country + "</p>" + moreInfo + "</div>" + distance + "<a class='wpsl-directions' " + url.target + " href='" + url.src + "'>" + wpslLabels.directions + "</a></li>";
and replace it with this:
html = "<li data-store-id='" + id + "'><div><p>" + storeImg + "<strong>" + store + "</strong><span class='wpsl-street'>" + address + "</span>" + address2 + zip + " " + city + "<span class='wpsl-country'>" + country + "</p>" + moreInfo + "</div>" + distance + "<a class='wpsl-directions' " + url.target + " href='" + url.src + "'>" + wpslLabels.directions + "</a></li>";
Oh, damn. ??
Didn’t see this option, thanks for pointing this out.Nevermind, I found out myself.
Just had to change this line in store-locator.js from:
if (sl_load_results_with_locations_default == “1“) {
to
if (sl_load_results_with_locations_default == “0“) {
Forum: Fixing WordPress
In reply to: Cant call wp-load.php in file on subdomainBy the way: I also tried change the content directory and domain with a fresh install. Still doesn’t work. Could this be a hosting or PHP problem?
Forum: Fixing WordPress
In reply to: Cant call wp-load.php in file on subdomainCheck. Check.
Still doesn’t work. Everytime wp-load is called from a php file on the subdomain it just redirects me back to the main domain. It’s like everything above wp-content (root directory) is “non-existent”.Forum: Fixing WordPress
In reply to: Cant call wp-load.php in file on subdomainAlready defined it in wp-config but it still doesn’t work with wp-load.
Forum: Fixing WordPress
In reply to: Cant call wp-load.php in file on subdomainWhat do you mean by exact location? The absolute or relative path? Or can it even be on an external domain?
Forum: Fixing WordPress
In reply to: Problems with moving wp-content to a subdomainFigured this problem out but now I got another one:
https://www.ads-software.com/support/topic/cant-call-wp-loadphp-in-file-on-subdomain?replies=1#post-4925678