Title: CroModder's Replies | WordPress.org

---

# CroModder

  [  ](https://wordpress.org/support/users/cromodder/)

 *   [Profile](https://wordpress.org/support/users/cromodder/)
 *   [Topics Started](https://wordpress.org/support/users/cromodder/topics/)
 *   [Replies Created](https://wordpress.org/support/users/cromodder/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/cromodder/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/cromodder/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/cromodder/engagements/)
 *   [Favorites](https://wordpress.org/support/users/cromodder/favorites/)

 Search replies:

## Forum Replies Created

Viewing 12 replies - 1 through 12 (of 12 total)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Logo Switcher] Problem with login URL](https://wordpress.org/support/topic/problem-with-login-url/)
 *  Thread Starter [CroModder](https://wordpress.org/support/users/cromodder/)
 * (@cromodder)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/problem-with-login-url/#post-8724851)
 * No 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](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Logo Switcher] Problem with login URL](https://wordpress.org/support/topic/problem-with-login-url/)
 *  Thread Starter [CroModder](https://wordpress.org/support/users/cromodder/)
 * (@cromodder)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/problem-with-login-url/#post-8724493)
 * Hi,
    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
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Multiple 'X-Frame-Options' headers with conflicting values ('SAMEORIGIN, DENY')](https://wordpress.org/support/topic/multiple-x-frame-options-headers-with-conflicting-values-sameorigin-deny/)
 *  [CroModder](https://wordpress.org/support/users/cromodder/)
 * (@cromodder)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/multiple-x-frame-options-headers-with-conflicting-values-sameorigin-deny/#post-8557407)
 * 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..
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Multiple 'X-Frame-Options' headers with conflicting values ('SAMEORIGIN, DENY')](https://wordpress.org/support/topic/multiple-x-frame-options-headers-with-conflicting-values-sameorigin-deny/)
 *  [CroModder](https://wordpress.org/support/users/cromodder/)
 * (@cromodder)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/multiple-x-frame-options-headers-with-conflicting-values-sameorigin-deny/#post-8552515)
 * 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](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[SP Move Login] Nginx](https://wordpress.org/support/topic/nginx-12/)
 *  [CroModder](https://wordpress.org/support/users/cromodder/)
 * (@cromodder)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/nginx-12/#post-8366388)
 * Yup, that did the job. And good URL naming btw 🙂
 * Thanks
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[SP Move Login] Nginx](https://wordpress.org/support/topic/nginx-12/)
 *  [CroModder](https://wordpress.org/support/users/cromodder/)
 * (@cromodder)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/nginx-12/#post-8364349)
 * Hi, 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](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[SP Move Login] Nginx](https://wordpress.org/support/topic/nginx-12/)
 *  [CroModder](https://wordpress.org/support/users/cromodder/)
 * (@cromodder)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/nginx-12/#post-8360627)
 * I 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 :/
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Multiple 'X-Frame-Options' headers with conflicting values ('SAMEORIGIN, DENY')](https://wordpress.org/support/topic/multiple-x-frame-options-headers-with-conflicting-values-sameorigin-deny/)
 *  [CroModder](https://wordpress.org/support/users/cromodder/)
 * (@cromodder)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/multiple-x-frame-options-headers-with-conflicting-values-sameorigin-deny/#post-8211531)
 * Thanks for sharing the solution. Saved my day 🙂
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Alfie WP Weather] change wind speed to bft](https://wordpress.org/support/topic/change-wind-speed-to-bft/)
 *  [CroModder](https://wordpress.org/support/users/cromodder/)
 * (@cromodder)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/change-wind-speed-to-bft/#post-4680903)
 * Maybe 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](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Alfie WP Weather] file_get_contents() alternative (cURL)](https://wordpress.org/support/topic/file_get_contents-alternative-curl/)
 *  Thread Starter [CroModder](https://wordpress.org/support/users/cromodder/)
 * (@cromodder)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/file_get_contents-alternative-curl/#post-4711682)
 * Problem solved. Curl was disabled in hosting configuration. Now works fine.
    
   Marking as resolved.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Alfie WP Weather] Another language question](https://wordpress.org/support/topic/another-language-question-1/)
 *  [CroModder](https://wordpress.org/support/users/cromodder/)
 * (@cromodder)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/another-language-question-1/#post-4631114)
 * Hi felbar77, can you send me Croatian .po and .mo files for the plugin if you
   translated it all to Croatian?
    Thanks 🙂
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Alfie WP Weather] change wind speed to bft](https://wordpress.org/support/topic/change-wind-speed-to-bft/)
 *  [CroModder](https://wordpress.org/support/users/cromodder/)
 * (@cromodder)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/change-wind-speed-to-bft/#post-4680901)
 * If we take a look at the [Yahoo! Weather API](http://developer.yahoo.com/weather/#channelresponsetable)
   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](http://developer.yahoo.com/weather/#channelresponsetable))
   and replace `.replace(/{{speed_unit}}/ig, result.units.speed)` with `.replace(/{{
   speed_unit}}/ig, ws)`
 * It should work in this way.

Viewing 12 replies - 1 through 12 (of 12 total)