lyvsy
Forum Replies Created
-
Forum: Plugins
In reply to: [Smart Slider 3] Custom post type andDynamic slidesThanks. Just did it.
Forum: Plugins
In reply to: [Smart Slider 3] Custom post type andDynamic slidesGot it. I wish I understood it when blackfriday18 coupon was active ??
Forum: Plugins
In reply to: [Adminimize] Media Files not showing to AdminJust in case anyone has the same dumb situation – it was Adminimize debug turned on. Turned it off and everything’s fine again
Thank you, Weblizar!
Well done! Will go to rate your great plugin.
Just in case somebody wants to make limit more than 200 you should adjust it here /wp-content/plugins/flickr-album-gallery/js/flickr-jquery.jsSame issue. Will appreciate expanding limits!
Forum: Plugins
In reply to: [YouTube for WordPress] Plugin Conflict withThe same problem with Auto Post Thumbnails Pro.
But the cause is in classes/class.youtube-for-wordpress.php. When PHP code breaks to include javascript script on lines 5040 – 5064?> <script type="text/javascript"> // resize yt plus videos function // called below function resize_yt_plus_videos() { jQuery('.wp-video').each(function() { var video_width = jQuery(this).width(); var new_height = ( video_width / 1.8 ); jQuery(this).css( 'height' , new_height ); }); } jQuery(document).ready(function() { // load funciton to prevent wierdness resize_yt_plus_videos(); // resize function jQuery(window).resize(function() { resize_yt_plus_videos(); }); }); </script> <?php
I have removed those lines and everything seems to work ok.
Forum: Plugins
In reply to: [YouTube for WordPress] Change language doesn't workThere is a mess in the code with text-domains. Through the code Evan uses 2 text-domains 1) youtube-for-wordpress 2) yt-plus-translation-text-domain
But when initializing translations he uses another text-domain – ‘youtube-for-wordpress-translation’))
That is why nothing happens with your translation.
So here’s what you need to do
1) Prepare your translation and name files as youtube-for-wordpress-pt_BR.mo and youtube-for-wordpress-pt_BR.po
2) open file youtube-for-wordpress.php and add two lines to the headerText domain: youtube-for-wordpress
Domain Path: /languagesYou can add them after this line
Author URI: https://www.yt4wp.com3) In the same file find these lines
/** Localization **/
// include translated files
function yt4wp_plugin_init() {
load_plugin_textdomain(‘youtube-for-wordpress-translation’, false, dirname(plugin_basename(__FILE__)) . ‘/languages’);
}change ‘youtube-for-wordpress-translation’ to ‘youtube-for-wordpress’
Save and close this file
4) Find and replace in all files of the plugin following code
find: yt-plus-translation-text-domain
replace with: youtube-for-wordpressI have found 60 matches across 9 files
A number of code editors can do that – Notepad++, Sublime text etcSave and upload files to you server.
Be aware that some parts were not prepared for translation and are hard-coded – for example upload dialogue and settings.
Forum: Themes and Templates
In reply to: [Rookie] Frontpage and Category page shows full articlesThanks