Benedikt

Forum Replies Created

Viewing 15 posts - 1 through 15 (of 17 total)
  • Author
    Posts
  • in reply to: Hide empty event categories from filter bar #1601869
    Benedikt
    Participant

    Hello!
    I had one idea – maybe there was a solution: could the auto-cleanup function, which removes old events from the database, be used to clean up old categories? The tool could remove the categories and ad a “old” category – thats it, that would fix the problem, and it would considerably change the amount of redundant categories.

    Benedikt

    in reply to: Event starts at 00 pm: Marked as ended #1601866
    Benedikt
    Participant

    Hey there, thanks for clarification!
    Well fix this by changing the start time to 23:59 h.

    Best!
    Benedikt

    in reply to: Event starts at 00 pm: Marked as ended #1601312
    Benedikt
    Participant

    Hello Andras, thanks for your Feedback!

    Please find a screenshot attached with the time settings.

    Best!
    Benedikt

    in reply to: Hide empty event categories from filter bar #1601041
    Benedikt
    Participant

    Thanks a lot for your feedback!
    Ill have to think that through before I can say wat the next step will look like. Ill give you a hint within the next days.

    Best!

    Benedikt

    Benedikt
    Participant

    Thanks, Ill give it a try.

    All the Best
    Benedikt

    Benedikt
    Participant

    Correct, I can uncheck “Sticky in Month View”, but still see the event as featured event on top of my month view.

    in reply to: Filed names for third-party import rocess #1535863
    Benedikt
    Participant

    Nope – Worked for me
    –> Closed 🙂

    in reply to: Filed names for third-party import rocess #1531765
    Benedikt
    Participant

    Nice, worked for me!

    in reply to: Add venue based class to body #1518901
    Benedikt
    Participant

    Okay. Ill give that a try,
    thanks!

    in reply to: Add venue based class to body #1517669
    Benedikt
    Participant

    Dear Victor, thanks for your reply and for closing the copy of this threat!

    I absolutely understand that there have to be limitations for the support of personalisation – so tell me if I got to far :). In the last weeks your support was able to help me with all of my requests, so Im very positive!

    I need to change the background for certain venues, not for the event overview pages.
    Venue x : Background X
    Venue y: Background Y
    Overview (all venues): background neutral.

    add_filter('body_class','conf_class');
    function conf_class($classes) {
    
        $post_id = get_the_ID(); // I guess thats not needed anymore
    	$v1 = '8995'; //venue ID 1
    	$v2 = '1444'; //venue ID 2
        $venue = tribe_get_venue(); 
    	if ($venue == $v1 || $v2){ 
    	$venue = 'myVenue-' . $venue; // class name which is added to body 
      	$classes[] = $venue;
    	  return $classes;
    	}else {return $classes;}} // if nothing has happened, go on and return the body classes as is
    

    My problem still is: The “events overview pages” stick to one of those backgrounds and dont show a neutral background. The reason is simple: in my case the request for venue is connected to a post ID. I suppose WordPress asks for the venue of the first post in a row and pulls the background for the venue ID. That works on one venue only pages. Whenever we access an overview, the background for the first post venue is pulled – but thats not what I want :).

    Sorry, nor my english or my programming skills are that good.

    • This reply was modified 7 years, 12 months ago by Benedikt.
    in reply to: add venue body class #1516041
    Benedikt
    Participant

    Update: oaky, my code does not really make sense.

    What I need to do:

    I need to ask for the venue name before I can add the body class.
    -> if is venue x? add body class x
    -> if is venue y? add y
    -> if is both add nothing
    -> is “events” add nothing.

    How can I do that?

    Something like this?

    add_filter('body_class','conf_class');
    function conf_class($classes) {
    
        $post_id = get_the_ID(); 
    	$v1 = 'Docks';
    	$v2 = 'Prinzenbar-Hamburg';
        $venue = tribe_get_venue($post_id); 
    	
    	if ($venue == $v1 ^ $v2){
    	$venue = 'myVenue-' . $venue;
      $classes[] = $venue;
    	  return $classes;
    	}else {return $classes;}
    }
    • This reply was modified 8 years ago by Benedikt.
    in reply to: Events Calendar Pro an filterbar month view #1515027
    Benedikt
    Participant

    Hello there! Ill give it a try. Im not sure if thats what my customer wants, so lets wait what they say.
    –> Close 🙂

    in reply to: Add venue css class #1499751
    Benedikt
    Participant

    Hello there!
    I dont know how to use the term request output, but the following worked for me:

    
    add_filter('body_class','conf_class');
    function conf_class($classes) {
    
        $post_id = get_the_ID(); 
      
      $venue = tribe_get_venue($post_id); 
      $venue = 'myVenue-' . $venue;
      $classes[] = $venue;
      return $classes;
    }

    >> Thanks to Heinz Duschanek <<

    Enables me to push the event-venue-name in to the body class. The venue based changes, seem to work on filtered event archive pages as well.

    Is that a good solution, or will I be in trouble one day?

    in reply to: Add venue css class #1499750
    Benedikt
    Participant

    Hello there!
    I dont know how to use the term request output, but the following worked for me:

    
    add_filter('body_class','conf_class');
    function conf_class($classes) {
    
        $post_id = get_the_ID(); 
      
      $venue = tribe_get_venue($post_id); 
      $venue = 'myVenue-' . $venue;
      $classes[] = $venue;
      return $classes;
    }

    >> Thanks to Heinz Duschanek – /support/forums/users/hedu/ <<

    Enables me to push the event-venue-name in to the body class. The venue based changes, seem to work on filtered event archive pages as well.

    Is that a good solution, or will I be in trouble one day?

    in reply to: Add venue css class #1499749
    Benedikt
    Participant

    Hello there!
    I dont know how to use the term request output, but the following worked for me:

    
    add_filter('body_class','conf_class');
    function conf_class($classes) {
    
        $post_id = get_the_ID(); 
      
      $venue = tribe_get_venue($post_id); 
      $venue = 'myVenue-' . $venue;
      $classes[] = $venue;
      return $classes;
    }

    Enables me to push the event-venue-name in to the body class. The venue based changes, seem to work on filtered event archive pages as well.
    Thats’s all right?

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