Bernhard Riedl
Forum Replies Created
-
Forum: Plugins
In reply to: [TimeZoneCalculator] Show event time in website visitor's local timeHi Kristin,
Guessing the user’s timezone could be quite challenging and might not deliver accurate results, for example if the user’s connected via a VPN or Proxy Server. Anyway, afaik, there are some databases on the Internet to map IPs with timezones, but I haven’t tested any of them, though I would only use them to suggest a timezone, for example like Google does with their calendar.
If you want to make sure that you get the user’s timezone right, I recommend to ask via a select – as it’s done in WordPress Admin Menu, page ‘Settings/General’ – or use a text-input with a datalist-field to store the user’s choice in a cookie. It’s then possible to use TimeZoneCalculator to output either the current time or a specific timestamp (e.g. start-date of event) for an anonymous / non WordPress user in her/his timezone.
Regarding your example, I think you got the query_timezone and timezones attributes mixed up. – Please have a look at the Other Notes section for detailed information.
Here’s your example with two timezones,
[timezonecalculator_output query_time="Sun, 13 Sep 2015 14:30:00" query_timezone="America/New_York" timezones="America/New_York\nEurope/Vienna"]… and that’s how you can setup a shortcode for a current timestamp in a specific timezone if you don’t want to use the selection of TimeZoneCalculator’s settings-page.
[timezonecalculator_output timezones="America/New_York"]Hope that helps.
My Best,
BernyForum: Plugins
In reply to: [TagPages] Put Meta Box on topHi netspot,
WordPress automatically adds the tags meta-box in case the taxonomy tags has been associated with the post-type post or page.
Thus, without reinventing the wheel, TagPages uses core functionality for pages in addition to the default association of posts and tags.
Here’s the code that’s used in core: https://core.trac.wordpress.org/browser/tags/4.2.2/src/wp-admin/edit-form-advanced.php#L204
Hope that helps.
My Best,
BernyForum: Plugins
In reply to: [TimeZoneCalculator] Hacked !!Hi kstiwari,
Rest assured, you have not been hacked, this is merely a link to TimeZoneCalculator’s sponsor, Hipmunk. The link can be deactivated in the settings page, tab Administrative Options, option Support your free TimeZoneCalculator by adding a link to it’s sponsor.
My apologies for this misunderstanding.
Berny
Forum: Plugins
In reply to: [TagPages] Enable tagHi erakettu,
Thanks for using TagPages.
Do you have detailed instructions how to enable tag in page.
or just put code “get_the_tags” to page code?Actually it’s just that. – You can add for example the template tag
<?php the_tags(); ?>within the loop as explained in the function reference.Here’s how the core team implements a tags-list in the Twenty Fourteen theme.
Hope that helps,
BernyForum: Plugins
In reply to: [TagPages] Hidden tagsHi Kurnik,
I had a look on your site http://www.showinmyeyes.com/ and I cannot find any pages where you use tags (is TagPages activated?).
With a download link I meant a link where I can download your theme. – Anyway, I found the theme, though it’s a paid theme so I cannot download it for further investigation. – Thus I suggest to contact the theme developer for further help.
Greetz,
BernyForum: Plugins
In reply to: [TagPages] Hidden tagsHi Kurnik,
To help you on the details I would need more information, foremost which theme you’re using, a download link and a link to your site.
Greetz,
BernyForum: Plugins
In reply to: [TagPages] Hidden tagsHi Kurnik,
Thanks for using TagPages.
Sure, it’s possible to hide the tags in the admin menu as well as in your theme. In the admin menu you can just remove the tick in ‘Screen Options’ (top right corner).
In case you want to hide the tags list in your theme, you can either edit your page.php or the related page-template (see the first FAQ for links about themes and template tags) or use CSS
display:noneon the class or id of the tags-container. Latter technique would only mean hiding the tags for users, but leaving the tags (and their links) in the source-code. Thus, these links would still be parseable for bots (and readable for people who open the generated HTML source code 😉 ).Hope that helps,
BernyForum: Plugins
In reply to: [TagPages] What am I doing wrong?Hi nunspa,
I’m not exactly sure what you’re trying to ask.
If you do not see the tags-block when you create a new page in the admin-menu, you need to tick ‘Tags’ in the Screen Options (top right corner).
In case you were able to add tags in the admin-menu, but can’t see them on your page or archive view, you need to find a theme which supports this functionality out of the box or implement one of WordPress’ template tags as described in the FAQ.
Hope that helps,
BernyForum: Plugins
In reply to: [BruteProtect] Playing with the brute_kill_login-hookHi Rocco,
Alright then – performance first. – I hope the additional parameter(s) for the filter will make the cut?
After a few weeks of tracking the block outs generated by BruteProtect, I see about 50-60% of all malicious requests being blocked.
Two patterns emerged: The first group consists of rather ‘dumb’ attacks which just knock wp-login.php as fast as possible and are stopped quickly, the second one is coming from vast botnets, always only using one or two requests per IP every few hours, though from many different IPs at the same time. I hope to see more users sign up for BruteProtect in the future so the latter can be blocked by and for the network.
Greetz,
BernyForum: Plugins
In reply to: [BruteProtect] Playing with the brute_kill_login-hookHi Rocco,
Cool, thanks.
Closely related, so I put it in the same thread: Following core-ticket #10551, it would be great if you could also set the appropriate http-status in
brute_kill_login. – Here’s the changed code:wp_die( 'Your IP (' . $this->brute_get_ip() . ') has been flagged for potential security violations. Please try again in a little while...', '', array('response' => 403) );Makes reading the apache logs easier, because real 5xx server errors can be distinguished from blocked requests.
Thanks,
BernyForum: Plugins
In reply to: [TimeZoneCalculator] Specific Class or ID for widgetHi pgallina,
I’m glad to hear that you like TimeZoneCalculator.
(1) In TimeZoneCalculator’s settings-page, section Format you can adapt the Format of TimeZone-Entry, for example to
<li>%datetime</li>to only display the date and time.(2) The div-container classes are also explained on this page. – In your case,
.timezonecalculator-refreshable-outputis used. If you need a class for the whole block, you can change the parameter before List to your needs, e.g.<ul class="example-class">If you need a unique id for the whole widget, I suggest to implement it directly in your theme in your register_sidebar call(s), key
'before_widget'in$argsarray. – For more information please have a look at the codex-page about sidebars.Hope that helps,
BernyForum: Plugins
In reply to: [TimeZoneCalculator] CalculatorHi pr4d.dsouza,
Thanks for your positive feedback and your question.
Unfortunately the calculator section is only available to logged in users in the admin menu as it’s weaved into WordPress’ backend functionality. – On my websites, I allow registration and assign new users automatically the role of a subscriber so that they can also use the calculator.
If you don’t want to enable registration, you can still output timezone blocks on your website’s frontend by inserting shortcodes with a fixed time or the current time in posts, e.g. in this post about making my plugins responsive.
Hope that helps.
My Best,
BernyForum: Plugins
In reply to: [TimeZoneCalculator] Minutes are 26 min. ahead?Hi GokuMew2,
TimeZoneCalculator uses your server’s time as the basis for its calculations. Following that, these two possibilities are most likely for the time difference you’re experiencing:
- Your server time might not be synchronized with a NTP server.
You can check if the UTC timestamp is also off in the general settings on yourdomain.com/wp-admin/options-general.php
- Your page or also the Ajax-calls may have been cached by either a reverse proxy (e.g. Varnish, CloudFlare, etc.) or a WordPress caching plugin (e.g. WP Super Cache).
In any case you could either exclude TimeZoneCalculator’s output from the cache (e.g. with SSI) or force an Ajax-refresh on window-load.
Hope that helps,
BernyForum: Plugins
In reply to: [TagPages] How to show tags from pages??Hi cannabjs,
Have you implemented the function the_tags on your page-template (e.g. page.php) within the loop?
If you did exactly that, then there might be another plugin or theme interfering. – In order to narrow the issue down, you should first deactivate all plugins and only activate TagPages. If the tags still don’t show up on your pages, try to switch to one of WordPress bundled themes (e.g. TwentyTwelve or TwentyThirteen)
My Best,
BernyForum: Plugins
In reply to: [TimeZoneCalculator] no timezone-id givenHi HammyHavoc,
You need to set your WordPress timezone to a city (not the manual offsets from UTC) in Settings/General, e.g. http(s)://yourdomain.com/wp-admin/options-general.php. – There’s also a link in the “Administrative Options” section of your TimeZoneCalculator settings page.
My Best,
Berny - Your server time might not be synchronized with a NTP server.