gonzalosanza

Forum Replies Created

Viewing 15 posts - 1 through 15 (of 21 total)
  • Author
    Posts
  • in reply to: Photos view not working in Spanish #1006942
    gonzalosanza
    Participant

    Hello, same problem, and also for week view. I’ll follow-up replies.

    in reply to: error 404 when adding an event #994028
    gonzalosanza
    Participant

    nice!! 🙂

    in reply to: Pagination not working after update. #993036
    gonzalosanza
    Participant

    My customizations are made in a child theme, if I disable the child theme, and enable the parent theme, pagination is not working either.

    in reply to: error 404 when adding an event #992989
    gonzalosanza
    Participant

    Hello team, as I need to fix this quickly, I have been working on my own, and I discovered that this error is coming when the language is not set to US english, or at least, it’s coming when the language is set to Spanish. I hope this can point you in the direction to fix the problem quickly, it’s been a bit frustrated.
    Thanks.
    Gonzalo.

    in reply to: Override saved_venues_dropdown() after update to 3.11 #991127
    gonzalosanza
    Participant

    Its for both, Community Events and the Admin event edit forms.
    Thanks.

    in reply to: Override saved_venues_dropdown() after update to 3.11 #990712
    gonzalosanza
    Participant

    Hi, exactly, I have a custom field, a checkbox for organizers, to display theme on the dropdown only if the checkbox is checked. My code was working for organizers before 3.11 and is working for venues. But now, with the new feature, multiple organizers, its not working.
    The real problem its to make it work with hooks, I don’t want to edit the-events-calendar\src\Tribe\Admin\Organizer_Chooser_Meta_Box.php and lost it in the next update.
    So, any hook or similar?
    Thanks!

    in reply to: Next Events navigation not working #990710
    gonzalosanza
    Participant

    This reply is private.

    in reply to: Next Events navigation not working #990544
    gonzalosanza
    Participant

    same problem here…
    also after update to 3.11

    in reply to: error 404 when adding an event #989339
    gonzalosanza
    Participant

    Same problem here, when adding an event, and also with the community events list.

    gonzalosanza
    Participant

    OK, ningún problema, cierra la conversación. Como dices, agradecería si me notificas por email si hay alguna novedad.
    Gracias!
    Un saludo!

    gonzalosanza
    Participant

    OK Nico, thanks anyway for your help!
    Yes! I speak spanish!
    Regards!

    gonzalosanza
    Participant

    Thanks Nico! It make sense!
    I have some custom filters on filter bar, based on the filter category. To make theme work propperly, I had to override the addQueryArgs function to this one (It’s very similar to the original, thats way I paste the original on the bigining, sorry):

    public function addQueryArgs( $query ) {
    
    			if ( ! $query->tribe_is_event ) {
    				// don't add the query args to other queries besides events queries
    				return;
    			}
    
    			if ( isset( $_REQUEST['tribe_' . $this->slug] ) && $_REQUEST['tribe_' . $this->slug] != '' ) {
    				if ( !empty( $this->joinClause ) ) {
    					add_filter( 'posts_join', array( $this, 'addQueryJoin' ), 11, 2 );
    				}
    				if ( !empty( $this->whereClause ) ) {
    					add_filter( 'posts_where', array( $this, 'addQueryWhere' ), 11, 2 );
    				}
    				foreach ( $this->queryArgs as $key => $value ) {
    					if($key=='tax_query'){
    						$taxquery=$query->get('tax_query');
    						if($taxquery!=null){
    							foreach($value as $v){
    								array_push($taxquery,$v);
    							}
    						}else{
    							$taxquery=$value;
    						}
    					}
    					$query->set($key, $taxquery);
    				}
    			}
    		}

    It works, but If I update the plugin… Thats way I would like to unhook, rehook if its possible.

    Really thanks for your time!!

    • This reply was modified 8 years, 9 months ago by gonzalosanza.
    gonzalosanza
    Participant

    Really thanks Nico! your code seems to work! but im still having problem using $this inside the function addQueryArgsCustom. I also tried with Tribe__Events__Filterbar__Filter::instance() but doesn’t works.
    Any idea? Thanks!

    in reply to: Organizer and venue update message #970783
    gonzalosanza
    Participant

    Thanks Josh!
    I made a modification in the snippet, returning the messages in the wrong line, that was the problem.
    Thanks!

    in reply to: Organizer and venue update message #969967
    gonzalosanza
    Participant

    Thanks josh!

    I wasn’t getting the update message for venues and organizers because i was using this code to modify the event submission and update message: https://gist.github.com/ckpicker/8aa1390da48520f88149

    Is there a way to modify in an indpendent way, the message for venues/organizers/events ?

    Or a way to modifi the event message (like in the code above) but without lost the venue and organizers message?

    Thanks for your time!

Viewing 15 posts - 1 through 15 (of 21 total)