Week View Mobile Lost after update

Home Forums Calendar Products Events Calendar PRO Week View Mobile Lost after update

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #1092221
    MAD for Swing
    Participant

    Despué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.

    #1092584
    Nico
    Member

    Hey @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,
    Nico

    #1092769
    MAD for Swing
    Participant

    Hi, 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?

    #1093396
    Nico
    Member

    Hola @ 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,
    Nico

    #1094150
    MAD for Swing
    Participant

    Gracias 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();
        }
    }
    
    #1094184
    Nico
    Member

    Hey @ 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,
    Nico

    #1108405
    Nico
    Member

    Hi 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

Viewing 7 posts - 1 through 7 (of 7 total)
  • The topic ‘Week View Mobile Lost after update’ is closed to new replies.