CroModder
Forum Replies Created
-
Forum: Plugins
In reply to: [Logo Switcher] Problem with login URLNo need for digging into the problem if you can’t replicate the issue easily…
Just of curiosity I tried installing the plugin on another site and it works without problem. So if you didn’t had any similar reports about this specific issue you can ignore it.Regards
Forum: Plugins
In reply to: [Logo Switcher] Problem with login URLHi,
It’s indeed strange issue but I am sure that the plugin somehow conflicts with the login because I deactivate it it works. And I tried the same with all the plugins but it turns out that it’s problem with this one. I can’t provide more info about that, nor I can say if that’s the problem just with the current WP 4.7.2. version.Regards
I guess you have more than one
add_header X-Frame-Options
added in your config files. Note that nginx can take multiple .conf files so try to locate where you’re adding the second X-Frame-Options header and remove it. (And ofc restart nginx afterwards)
My knowledge with the server configuration is very limited so can’t help you more than that..You need to restart the nginx service in order to changes take effect.
Or in case you already did that, give more info about the problem you have.Forum: Plugins
In reply to: [Move Login] NginxYup, that did the job. And good URL naming btw ??
Thanks
Forum: Plugins
In reply to: [Move Login] NginxHi, that are good news ??
– It’s not multisite
– Yes, at the root of the domain
– The wordpress address (URL) and site address (URL) are the same. All the files are under /var/www/html/ and I didn’t moved index.php outside, so I guess it doesn’t have it’s own directory.Thanks
Forum: Plugins
In reply to: [Move Login] NginxI can confirm that there is a problem with generated nginx configuration. I just tried the functionality for moving login url (on SecuPress Pro) and now I am locked out of my site :/
Thanks for sharing the solution. Saved my day ??
Forum: Plugins
In reply to: [Alfie WP Weather] change wind speed to bftMaybe you didn’t understand me because you don’t change values that I posted here. You need to add new variable and then store in it value depending of result.units.speed value. But anyway, the code you provided should be ok.
The
.replace(/{{speed_unit}}/ig, result.units.speed)
is located also in alfie.weather.js.
I will try to implement this when I grab some time and let you know if i succeeded.Forum: Plugins
In reply to: [Alfie WP Weather] file_get_contents() alternative (cURL)Problem solved. Curl was disabled in hosting configuration. Now works fine.
Marking as resolved.Forum: Plugins
In reply to: [Alfie WP Weather] Another language questionHi felbar77, can you send me Croatian .po and .mo files for the plugin if you translated it all to Croatian?
Thanks ??Forum: Plugins
In reply to: [Alfie WP Weather] change wind speed to bftIf we take a look at the Yahoo! Weather API there you can see that Beaufort Scale isn’t available:
speed: wind speed, in the units specified in the speed attribute of the yweather:units element (mph or kph). (integer)
Since the plugin doesn’t have implemented it you must do it manually on your own. If you open alfie.weather.js you can see that wind direction is transformed from integer values into the string orientation:
var wd = result.wind.direction; if (wd >= 348.75 && wd <= 360) { wd = "N" } if (wd >= 0 && wd < 11.25) { wd = "N" } if (wd >= 11.25 && wd < 33.75) { wd = "NNE" } if (wd >= 33.75 && wd < 56.25) { wd = "NE" } if (wd >= 56.25 && wd < 78.75) { wd = "ENE" } if (wd >= 78.75 && wd < 101.25) { wd = "E" } if (wd >= 101.25 && wd < 123.75) { wd = "ESE" } if (wd >= 123.75 && wd < 146.25) { wd = "SE" } if (wd >= 146.25 && wd < 168.75) { wd = "SSE" } if (wd >= 168.75 && wd < 191.25) { wd = "S" } if (wd >= 191.25 && wd < 213.75) { wd = "SSW" } if (wd >= 213.75 && wd < 236.25) { wd = "SW" } if (wd >= 236.25 && wd < 258.75) { wd = "WSW" } if (wd >= 258.75 && wd < 281.25) { wd = "W" } if (wd >= 281.25 && wd < 303.75) { wd = "WNW" } if (wd >= 303.75 && wd < 326.25) { wd = "NW" } if (wd >= 326.25 && wd < 348.75) { wd = "NNW" }
In a similar way you can convert km/h into the bft.
Add variable (var ws = result.units.speed;) Convert integer values into the bft with if statement(according to Beaufort scale) and replace
.replace(/{{speed_unit}}/ig, result.units.speed)
with
.replace(/{{speed_unit}}/ig, ws)
It should work in this way.