Daniel Maier

Forum Replies Created

Viewing 15 posts - 31 through 45 (of 79 total)
  • Author
    Posts
  • in reply to: Event description/excerpt length #1047888
    Daniel Maier
    Participant

    Thank you for pointing me out to that.

    in reply to: Event description/excerpt length #1046420
    Daniel Maier
    Participant

    Also how can I add an ellipsis on the tooltip excerpt as well? It just looks like the text was cut in half:

    https://www.dropbox.com/s/6afm2e9ix66siht/Screenshot%202015-12-24%2012.12.51.png?dl=0

    Is there a way to manipulate [[=raw excerpt]] so I can add an ellipsis or even control the text length on in the tooltip.

    Thanks!

    in reply to: tribe-events-event-meta primary and secondary #1043096
    Daniel Maier
    Participant

    Sounds good, thanks.

    in reply to: tribe-events-event-meta primary and secondary #1043010
    Daniel Maier
    Participant

    Hi Brian,

    Thanks for pointing me out to meta.php. I was missing that.

    in reply to: Deprecated tribe_events_event_recurring_info_tooltip #1040910
    Daniel Maier
    Participant

    Thanks George!

    in reply to: Deprecated tribe_events_event_recurring_info_tooltip #1039845
    Daniel Maier
    Participant

    I also found the same/similar function in /events-calendar-pro/scr/functions/template-tags/general.php (line 714) and it doesn’t say it is deprecated:

    
    	/**
    	 * show the recurring event info in a tooltip
    	 *
    	 * return the details of the start/end date/time
    	 *
    	 * @param int     $post_id
    	 *
    	 * @return string
    	 * @todo remove tribe_events_event_recurring_info_tooltip filter in 3.11
    	 */
    	function tribe_events_recurrence_tooltip( $post_id = null ) {
    		if ( empty( $post_id ) ) {
    			$post_id = get_the_ID();
    		}
    		$tooltip = '';
    		if ( tribe_is_recurring_event( $post_id ) ) {
    			$tooltip .= '<div class="recurringinfo">';
    			$tooltip .= '<div class="event-is-recurring">';
    			$tooltip .= '<span class="tribe-events-divider">|</span>';
    			$tooltip .= sprintf( __( 'Recurring %s', 'tribe-events-calendar-pro' ), tribe_get_event_label_singular() );
    			$tooltip .= sprintf( ' <a href="%s">%s</a>',
    				esc_url( tribe_all_occurences_link( $post_id, false ) ),
    				__( '(See all)', 'tribe-events-calendar-pro' )
    			);
    			$tooltip .= '<div id="tribe-events-tooltip-'. $post_id .'" class="tribe-events-tooltip recurring-info-tooltip">';
    			$tooltip .= '<div class="tribe-events-event-body">';
    			$tooltip .= tribe_get_recurrence_text( $post_id );
    			$tooltip .= '</div>';
    			$tooltip .= '<span class="tribe-events-arrow"></span>';
    			$tooltip .= '</div>';
    			$tooltip .= '</div>';
    			$tooltip .= '</div>';
    		}
    
    		if ( has_filter( 'tribe_events_event_recurring_info_tooltip' ) ) {
    			_deprecated_function( "The 'tribe_get_related_events' filter", '3.9', " the 'tribe_events_recurrence_tooltip' filter" );
    			$tooltip = apply_filters( 'tribe_events_event_recurring_info_tooltip', $tooltip ); // for backwards-compat, will be removed
    		}
    
    		return apply_filters( 'tribe_events_recurrence_tooltip', $tooltip );
    	}
    
    in reply to: "Free" not showing up #1039742
    Daniel Maier
    Participant

    Thank you 🙂

    in reply to: "Free" not showing up #1039138
    Daniel Maier
    Participant

    I will stay tuned. However, we have several events already setup to display costs on the following format “$10 – $20” as it was supported before.

    By changing the cost field to integer this already broke our calendar and it is already displaying PHP errors.

    It is very difficult to adapt to such changes.

    Thanks for working on this.

    in reply to: "Free" not showing up #1039118
    Daniel Maier
    Participant

    Excellent!

    Please keep in mind when fixing the cost field that we also have a need for a cost range. For example, $10 – $50 tickets, etc.

    Thanks George!

    in reply to: "Free" not showing up #1038967
    Daniel Maier
    Participant

    The cost information, when set to ‘0’ (free) is also not being displayed in the event meta details area.

    in reply to: "Free" not showing up #1038964
    Daniel Maier
    Participant

    What is this function supposed to do? I didn’t see any changes nor the word “FREE” come back to events that have cost set to “0”.

    “Enter a 0 for events that are free or leave blank to hide the field.”

    With or without the function it did not process any string on the cost field. It displays an error.
    Also the cost field should not allow us to add anything other than numbers (integers values). However, the plugin allows that and it displays an error similar to this one:

    Warning: max(): Array must contain at least one element in …\wp-content\plugins\the-events-calendar\src\Tribe\Cost_Utils.php on line 296 Warning: array_merge(): Argument #1 is not an array in …\wp-content\plugins\the-events-calendar\src\Tribe\Cost_Utils.php on line 307 Warning: Invalid argument supplied for foreach() in …\wp-content\plugins\the-events-calendar\src\Tribe\Cost_Utils.php on line 309

    Please make the field only accept the data that it is intended to receive. Also please fix the cost: free that is not working.

    Thank you!

    Daniel Maier
    Participant

    Yes, I figured that George. I tried it but the code is the same and didn’t change anything unfortunately. Thanks for suggesting that though.

    1. You probably checked after I removed the snippet so it was working because of that. I didn’t want to leave it broken for too long.

    2. Yes, that’s correct. As soon as you add that function to functions.php the map stops working on single view.

    3. Thanks for letting me know about that. I had some trouble with the mobile menu script but it should be fixed now. If you still see that, please empty your browser’s cache.

    I’m not sure why that function to remove a text from the admin area would break the map on the event page. If you are able to scale that to your developers that would be good as it seem to be a bug of some sort. I could be wrong but I just can’t find a relation and it doesn’t throw any error.

    I found a workaround/fix:

    Instead of using the “equal” (==) PHP operator, if you use “identical” (===) it doesn’t break the map and everything seems to work.

    
    // Remove 'Lost your password?' link text on WordPress login page
    function remove_lostyourpassword_text ($lostyourpassword_text) {
        if ($lostyourpassword_text === 'Lost your password?') {
            $lostyourpassword_text = '';
        }
        return $lostyourpassword_text;
    }
    add_filter( 'gettext', 'remove_lostyourpassword_text' );
    

    Thanks.

    Daniel Maier
    Participant

    Hi George,

    The reason I’m trying to disable that link is for internal security. We have some users with higher privileges that don’t always choose strong passwords so we will manage that in a different way. Hence the reason for disabling the link for the users.

    The map that breaks is the map displayed on the single view of an event. The Google Maps view is ok but not the map on the event view.
    You can check that here: https://cityofwinterpark.org/event/art-on-the-green/2015-11-16/

    I tried the code you got from the Jetpack. It doesn’t fix it. It is basically the same code.

    Thank you!

    Daniel Maier
    Participant

    You can change the slug for the page that you call on the menu and redirect that page to yourdomain.com/events, if that’s where you setup your calendar to run at.

    You can use a plugin such as (Page Links To) to accomplish the redirect:

    Page Links To

    Daniel Maier
    Participant

    I was actually able to review my settings and delete one page that I was using as placeholder. I kept other two but as a child of a couple main pages so it is not triggering the note any longer since I don’t have anything like /events in the root any longer.

    Thanks!

Viewing 15 posts - 31 through 45 (of 79 total)