Doing Git / Bitbucket Deployment for most of my project these days. This is another compact solution, that should allow almost anyone to start using Git to distribute updates automatically.
BroadwayAPI is a PHP class to extract / export channel playlists and EPG from the PCTV Broadway. These can be reused with OpenELEC, XBMC, Kodi and the IPTV Simple PVR Client Addon.
I am using the setup on a local server to handle playlists and epg updates for multiple XBMC setups.
Over the past months I have been building a virtual competition, for one of my clients, for the tournament 2014 in Brazil.
Full integration and signup to the game through Facebook
Multi-language setup
Choose your own team of players from the 32 competing countries, with countries only represented once in your team.
Update your team until the start of the tournament
During the tournament your team scores according to real data coming in from a sport result data provider. Team scores are calculated by a fixed rule set.
You have 3 substitutes that you can deploy during the tournament to optimize your team or replace players that have been eliminated
You play for a specific country or you can join or create a group to compete against each other with friends.
Team ranking is provided on country and group level.
Social sharing, invites and posting to Facebook
The project had its challenges and I plan to dive into some of those areas in the future, as soon as the tournament is over ;)
“Everyone loves the Google CDN right? Even Microsoft runs their own CDN. The problem is, they only host the most popular libraries. We host it all – JavaScript, CSS, SWF, images, etc!”
The Contact Form 7 for WordPress is a nice simple plugin to build contact forms fast. But when it comes to making it completely multilingual it lacks a bit.
I am currently creating a website with 13 different languages, that would mean to create the same contact form 13 times, not really practical :)
I am translating the form labels on the fly with some javascript magic, but for the messages I had to go a bit deeper.
Open wp-content/plugins/contact-form-7/classes.php
See how I wrapped the gettext function for the return, that does all the magic.
Next we have to make sure that the messages are being found by localization helpers like Codestyling Localization
In your theme functions.php add a translation for each of the Contact 7 Form messages
The first message in the Contact 7 Form admin says: Your message was sent successfully. Thanks.
1
2
3
4
5
$contact_form_msgs=array(
'msg_1'=>__('Your message was sent successfully. Thanks.','textdomain'),
'msg_2'=>__('Failed to send your message. Please try later or contact the administrator by another method.','textdomain'),
'msg_3'=>__('Validation errors occurred. Please confirm the fields and submit it again.','textdomain'),
);
Do not change these messages in the Contact 7 Form admin anymore or the setup will break. These updates will have to be repeated with each plugin update, unless the author does something similar.
WPML for WordPress is a powerful plugin to build a multi-language setup. But it still comes short in some areas, especially when it comes to a custom integration into plugins or when using custom post-types.
Normally this function should return the id of the linked translated content, but has not worked for me in some cases (especially when AJAX is involved).
// $translation_lang - translated language code ... de, nl ...
global$wpdb;
$translation=$wpdb->get_results("SELECT * from wp_icl_translations where trid = (SELECT trid from wp_icl_translations where element_id = '".$original_id."' and element_type='post_page') and language_code='".$translation_lang."'");