likemindsdesigns

Forum Replies Created

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • in reply to: Events Menu showing in Admin Bar for Subscribers #46457
    likemindsdesigns
    Participant

    **SOLVED**

    Hi Barry,
    Thank you, that did help. I also wanted it removed from the left sidebar. I was able to accomplish both tasks by adding this code to my functions.php for my theme.
    SEE CODE AT THIS LINK:
    http://snippi.com/s/9rgdbpv

    in reply to: Event Widget Showing Start Time After Pro Calendar Upgrade #46456
    likemindsdesigns
    Participant

    ** SOLVED **

    I had to put my custom template code into another file after the Pro Upgrade. In the pro plugin files, find the template titled “events-advanced-list-load-widget-display.php”. Then make a copy to your theme/events folder, and make your custom code changes there.

    likemindsdesigns
    Participant

    Ok, sorry it is not letting me post PHP code. Basically you want to add the line to echo the functions to get month text and join that with get year text. Hope this will help!

    likemindsdesigns
    Participant

    Include this line in gridview.php:

    likemindsdesigns
    Participant

    ** SOLVED **
    I am posting this solution if it will help any other users.

    FIRST, I was placing the function to get month text outside of the Ajax div. By placing it inside, I was able to get the refresh feature I wanted.
    SECOND, I created a new function to get current year text. I added this function to the file “calendar.php”:
    /**
    * Current Year Text
    *
    * Returns a textual description of the current year
    *
    * @return string Name of the current year.
    * @since 2.0
    */
    function tribe_get_current_year_text( ) {
    return date( ‘Y’, strtotime( tribe_get_month_view_date() ) );
    }
    THIRD, I updated my “gridview.php” template to include this line:

    I hope this will help someone. Thank you for your help Jonah! I suggest adding that Get Year text function to the next release.

    likemindsdesigns
    Participant

    Hi Jonah,
    No, the problem with that is that the month “April” displays even when a user hits the May–> forward button. The only way to get the correct month to display is to refresh the page. However, the calendar refreshes the Ajax, and not the overall page. How can I force refresh?

    http://mscra.com/events/2013-03/
    http://mscra.com/events/2013-04/
    (By the way, wish there was a way to send screen captures to illustrate problem). Thank you for your help!

    likemindsdesigns
    Participant

    This is my custom code in the custom template file “events-list-load-widget-display.php”

    ‘<li >
    <a href="ID); ?>”>
    ID, false, ‘D’).’., ‘;
    echo tribe_get_start_date($post->ID, false, ‘F’).’ ‘;
    echo tribe_get_start_date($post->ID, false, ‘j’).’, ‘;
    echo tribe_get_start_date($post->ID, false, ‘Y’);

    /*if( tribe_is_multiday( $post->ID ) || !$event->AllDay ) {
    echo ‘ – ‘. tribe_get_end_date($post->ID);
    }

    if( $event->AllDay ) {
    echo ‘ (‘.__(‘All Day’,’tribe-events-calendar’).’)‘;
    }*/
    ?>

    post_title; ?>

    likemindsdesigns
    Participant

    By the way, the function ‘tribe_get_displayed_month()’ does display the Month Year like I want it to.

    However, my problem is that it only shows correctly if I force refresh my browser each time a view a different month. So the calendar refreshes the Ajax but not the browser when I use the next/previous links.

Viewing 8 posts - 1 through 8 (of 8 total)