If you have a wordpress site with many authors (users with the role: Author) and you want to edit/check their posts before publications, you can add this code to function.php or you can create your own plugin with the code in it: All your Authors will see “Submit for Review” instead of “Publish” button:Continue reading "Prevent authors to publish posts in WordPress"
I’ve tried to install OS X Sierra on my MacBook Pro 13-inch (Late 2011) from USB and faced this error: “The installer payload failed signature check“. The problem is The installer checks the date on the computer. If the date isn’t current, you get the error above. The fix involves correcting the date on your …Continue reading "OS X Sierra: The installer payload failed signature check"
Unfortunatelly, Instant Articles for WP doesn’t add WordPress excerpt as subtitle to Facebook Instant Articles. Please see my solution to fix this. I changed function to_instant_article() (thanks to FewKinG) and function get_the_subtitle() in the plugin’s file class-instant-articles-post.php: You can download the class-instant-articles-post.php from Github.Continue reading "Use WordPress excerpt as subtitle in Instant Articles"
There are dozens WordPress plugins for weather forecast but non of them allow your visitor to change weather locations. Then I found simpleWeather – a simple jQuery plugin to display current weather data for any location from Yahoo! The example of how this plugin works you can see in my right sidebar. Introducing simpleWeather See …Continue reading "simpleWeather wordpress sidebar widget with User defined locations"
Let’s imagine that you should send work report every single workday like I did. 🙂 Your report is Excel file and you store it in a folder on your Desktop (or somewhere else). I automated this routine work with the 2 PowerShell scripts and executable bat file. Script checks the folder for the last modified …Continue reading "PowerShell: Send mails with attachment via Outlook"
iOS SDK use notifications when keyboard appears and Apple described it in the article Managing the Keyboard. Apple’s code is implemented by the view controller that manages the scroll view. Here is the implementation when you need to use UITableView (please note that code from github was embedded): I forked it and converted to Swift (please note that …Continue reading "Handling UITableView insets when the keyboard is shown"