+ Mystik-DL Publicado 10 de Marzo del 2017 Reportar Compartir Publicado 10 de Marzo del 2017 (editado) Hello everyone, Happy to launch the first tutorial of this forum In this one I show you how to add a flag in your Dooplay theme (minimum version 1.1.9). I will create here the flag and the language MULTI (for blueray type movies with multiple audio files of languages. For me English and French) To start, we have to create the small flag with photoshop, Gimp or others montage software with dimmenssions 16 x 11px in .png format (for me multi.png) As I am nice, if you want my flag it is disponnible here. Then we will put our flag in our theme at the location: */wp-content/themes/dooplay/assets/img/flags/ Now let's make sure that dooplay recognizes the flag and assigns it to a new language. To do this we will go to edit the file init.php (new file doo_player.php) which it finds in: */wp-content/themes/dooplay/inc/ At the very beginning of this file you should see: // flags function dt_get_player_language() { $idiomas = array( __('---------','mtms') => null, __('Arabic','mtms') => 'ar', __('Chinese','mtms') => 'cn', __('Denmark','mtms') => 'dk', __('Dutch','mtms') => 'nl', __('English','mtms') => 'en', __('English British','mtms') => 'gb', __('Egypt','mtms') => 'egt', __('French','mtms') => 'fr', __('German','mtms') => 'de', __('Indonesian','mtms') => 'id', __('Hindi','mtms') => 'in', __('Italian','mtms') => 'it', __('Japanese','mtms') => 'jp', __('Korean','mtms') => 'kr', __('Philippines','mtms') => 'ph', __('Portuguese Portugal','mtms') => 'pt', __('Portuguese Brazil','mtms') => 'br', __('Polish','mtms') => 'pl', __('Romanian','mtms') => 'td', __('Scotland','mtms') => 'sco', __('Spanish Spain','mtms') => 'es', __('Spanish Mexico','mtms') => 'mx', __('Spanish Argentina','mtms') => 'ar', __('Spanish Peru','mtms') => 'pe', __('Spanish Chile','mtms') => 'pe', __('Spanish Colombia','mtms') => 'co', __('Sweden','mtms') => 'se', __('Turkish','mtms') => 'tr', __('Rusian','mtms') => 'ru', __('Vietnam','mtms') => 'vn', ); return $idiomas; } We will have to create a new language and give it the name of our flag image Add the line of code: __ ('Multi Language', 'mtms') => 'multi', In the list (preferably in alphabetical order) You should have this: // flags function dt_get_player_language() { $idiomas = array( __('---------','mtms') => null, __('Arabic','mtms') => 'ar', __('Chinese','mtms') => 'cn', __('Denmark','mtms') => 'dk', __('Dutch','mtms') => 'nl', __('English','mtms') => 'en', __('English British','mtms') => 'gb', __('Egypt','mtms') => 'egt', __('French','mtms') => 'fr', __('German','mtms') => 'de', __('Indonesian','mtms') => 'id', __('Hindi','mtms') => 'in', __('Italian','mtms') => 'it', __('Japanese','mtms') => 'jp', __('Korean','mtms') => 'kr', __('Multi Language','mtms') => 'multi', __('Philippines','mtms') => 'ph', __('Portuguese Portugal','mtms') => 'pt', __('Portuguese Brazil','mtms') => 'br', __('Polish','mtms') => 'pl', __('Romanian','mtms') => 'td', __('Scotland','mtms') => 'sco', __('Spanish Spain','mtms') => 'es', __('Spanish Mexico','mtms') => 'mx', __('Spanish Argentina','mtms') => 'ar', __('Spanish Peru','mtms') => 'pe', __('Spanish Chile','mtms') => 'pe', __('Spanish Colombia','mtms') => 'co', __('Sweden','mtms') => 'se', __('Turkish','mtms') => 'tr', __('Rusian','mtms') => 'ru', __('Vietnam','mtms') => 'vn', ); return $idiomas; } Save the file. Then go to your site to check if your flag is well disponnible. To do this connect you on your administrator space and edit a movie. In the options of the video player. Verify that your language has been added in the "Flag Language" menu (as in this image) Now you have your new language and your new flag that should display like this on your website: Already finished ! I hope to help you XOXO EDIT 02/10/17: The flags are now in the file doo_player.php. I have edit this post with the new code Editado 2 de Octubre del 2017 por Mystik-DL File now is doo_player.php 1 Enlace al comentario Compartir en otros sitios web More sharing options...
+ thanosdurexzn Publicado 23 de Abril del 2017 Reportar Compartir Publicado 23 de Abril del 2017 (editado) Hello. Very nice! I already put my .img flag and edit the file. Now need to zip again the folder and uploaded again ? Editado 23 de Abril del 2017 por thanosdurexzn Enlace al comentario Compartir en otros sitios web More sharing options...
+ oldboy3 Publicado 25 de Abril del 2017 Reportar Compartir Publicado 25 de Abril del 2017 txnks Enlace al comentario Compartir en otros sitios web More sharing options...
+ Akai Publicado 26 de Abril del 2017 Reportar Compartir Publicado 26 de Abril del 2017 On 4/24/2017 at 4:54 AM, thanosdurexzn said: Hello. Very nice! I already put my .img flag and edit the file. Now need to zip again the folder and uploaded again ? direct upload it via ftp aka filezilla Enlace al comentario Compartir en otros sitios web More sharing options...
+ thanosdurexzn Publicado 26 de Abril del 2017 Reportar Compartir Publicado 26 de Abril del 2017 24 minutes ago, Akai said: direct upload it via ftp aka filezilla Hello, Can you tell me step by step how can i upload via this way ? Enlace al comentario Compartir en otros sitios web More sharing options...
+ rockadub Publicado 27 de Abril del 2017 Reportar Compartir Publicado 27 de Abril del 2017 Hi Mystik, did work with tv-shows too? thx Enlace al comentario Compartir en otros sitios web More sharing options...
+ Mystik-DL Publicado 27 de Abril del 2017 Autor Reportar Compartir Publicado 27 de Abril del 2017 12 hours ago, rockadub said: Hi Mystik, did work with tv-shows too? thx Hye! Yup its work Enlace al comentario Compartir en otros sitios web More sharing options...
+ rockadub Publicado 28 de Abril del 2017 Reportar Compartir Publicado 28 de Abril del 2017 13 hours ago, Mystik-DL said: Hye! Yup its work I'm sorry about it. I think that was a misunderstanding. Flag on tv series was not possible right? On the demo you can see no https://dooplay.themes.pe/tvshows/ Enlace al comentario Compartir en otros sitios web More sharing options...
+ Mystik-DL Publicado 2 de Octubre del 2017 Autor Reportar Compartir Publicado 2 de Octubre del 2017 EDIT 02/10/17: The flags are now in the file doo_player.php. I have edit this post with the new cod Enlace al comentario Compartir en otros sitios web More sharing options...
+ Cartavio Publicado 23 de Noviembre del 2017 Reportar Compartir Publicado 23 de Noviembre del 2017 Buen Aporte Enlace al comentario Compartir en otros sitios web More sharing options...
+ Yicam Publicado 2 de Diciembre del 2017 Reportar Compartir Publicado 2 de Diciembre del 2017 Thanks man i need it Enlace al comentario Compartir en otros sitios web More sharing options...
+ DZWalker Publicado 10 de Junio del 2019 Reportar Compartir Publicado 10 de Junio del 2019 Merci beaucoup Enlace al comentario Compartir en otros sitios web More sharing options...
Publicaciones recomendadas