Home › Forums › Calendar Products › Events Calendar PRO › Week View Mobile Lost after update
- This topic has 6 replies, 2 voices, and was last updated 9 years, 12 months ago by
Nico.
-
AuthorPosts
-
March 22, 2016 at 2:34 am #1092221
MAD for Swing
ParticipantDespués de la última actualización se ha perdido la vista de semana en móviles (Week View Mobile). En el resto del sitio funciona bien.
screenshot: http://imgur.com/75zCAIY
¿Alguna sugerencia?
Gracias.March 22, 2016 at 1:18 pm #1092584Nico
MemberHey @MAD for Swing,
Thanks for reaching out to report this issue. Sorry to hear about it, seems to be a bug – I could reproduce it locally with default theme and no other plugins active.
I’ve attached this ticket to the bug report, so you’ll be notified when a solution for this is available. I’m not sure a fix for this can be included in the upcoming maintenance release as it’s already defined and under development.
Do you re-call if this was working before the plugin update 4.1?
Please let me know about it,
Best,
NicoMarch 23, 2016 at 2:42 am #1092769MAD for Swing
ParticipantHi, Nico.
Yes, users tell us who this bug was after the upgrade. But I personally had not checked this point.
We have tried with all the plugins off, but doubts by possible changes in the database have not tried with the default theme.
Some suggestions for some temporary patch?
An automatic mode to list view to only mobile?
March 24, 2016 at 7:30 am #1093396Nico
MemberHola @ Mad for Swing,
Perdón que respondí en ingles a tu post original! Vamos en castellano ahora 🙂
Por el momento te puedo proveer un pequeño snippet de código para hacer la re-dirección a la vista de lista si el usuario entra a la vista semana desde un dispositivo móvil. Debes pegar este código dentro del archivo functions.php del theme (o child theme):
/*
* The Events Calendar - Redirect Mobile Users to List View
*/
add_action( 'template_redirect', 'tec_mobile_template_redirect' );
function tec_mobile_template_redirect() {
if( tribe_is_week() && wp_is_mobile() ) {
wp_redirect( tribe_get_listview_link() );
exit();
}
}
Espero que sirva mientras solucionamos el bug que impide ver la grilla semanal en dispositivos moviles.
Saludos,
NicoMarch 25, 2016 at 10:17 am #1094150MAD for Swing
ParticipantGracias Nico,
funciona bien, para salir del paso nos sirve, esperemos que este bug se solucione pronto.No lo he puesto en functions.php, ni en las del tema hijo (que también existe), tengo hecho un plugin solo para modificaciones de este tipo.
Pego aquí el código por si algún otro usuario puede reutilizarlo y/o añadir mas funciones y así permitir las actulacizaciones del Theme sin perder cambios.
/** * Plugin name: Funciones específicas añadidas para MADforSwing * Description: Añade funciones para permitir una actualización natural de functions.php sin perder modificaciones | TEC mostrar autor en lugares y organizadores | TEC cambiar url mostrada para autores de blog | TEC cambia vista a lista por semana en móvil * Author: Miguel Arroyo * Author URI: http://www.miguelarroyo.es | http://www.miguelon.tech/ * Version: 1.1 * License: GPL v3 - see http://www.gnu.org/licenses/gpl.html * */ //Cambiar author/username a perfil/ID_de_usuario function change_author_permalinks() { global $wp_rewrite; $wp_rewrite->author_base = 'blogger'; $wp_rewrite->flush_rules(); } add_action('init','change_author_permalinks'); add_filter('query_vars', 'users_query_vars'); function users_query_vars($vars) { $new_vars = array('blogger'); $vars = $new_vars + $vars; return $vars; } function user_rewrite_rules( $wp_rewrite ) { $newrules = array(); $new_rules['blogger/(\d*)$'] = 'index.php?author=$matches[1]'; $wp_rewrite->rules = $new_rules + $wp_rewrite->rules; } add_filter('generate_rewrite_rules','user_rewrite_rules'); // muestra autor en lugares y organizadores add_action( 'init', 'add_author_support_orgs_venues' ); function add_author_support_orgs_venues() { if ( ! class_exists( 'TribeEvents' ) ) return; add_post_type_support( TribeEvents::VENUE_POST_TYPE, 'author' ); add_post_type_support( TribeEvents::ORGANIZER_POST_TYPE, 'author' ); } /* * The Events Calendar - Redirect Mobile Users to List View */ add_action( 'template_redirect', 'tec_mobile_template_redirect' ); function tec_mobile_template_redirect() { if( tribe_is_week() && wp_is_mobile() ) { wp_redirect( tribe_get_listview_link() ); exit(); } }March 25, 2016 at 11:24 am #1094184Nico
MemberHey @ Mad for Swing,
Gracias por confirmar que esta solución sirve por ahora. Claramente este es un bug que queremos arreglar pronto! Gracias también por compartir el código con las cutomizaciones para tu sitio. Tener un plugin con estos tweaks es definitivamente una buena idea.
Voy a cerrar este thread, estate atento a los log de cambios cuando veas que hay disponible una actualización.
Saludos y buen fin de semana,
NicoApril 28, 2016 at 12:32 pm #1108405Nico
MemberHi there,
Just wanted to inform that maintenance release 4.1.3 is out. The update includes a fix for this issue.
Please update the plugins to the latest version and re-test to see if the fix works for you.
Best,
Nico -
AuthorPosts
- The topic ‘Week View Mobile Lost after update’ is closed to new replies.
