Forum Replies Created
-
AuthorPosts
-
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/9rgdbpvApril 21, 2013 at 11:50 am in reply to: Event Widget Showing Start Time After Pro Calendar Upgrade #46456likemindsdesigns
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.
April 21, 2013 at 11:40 am in reply to: Display Current Month Title Being Viewed in Calendar Grid View #46455likemindsdesigns
ParticipantOk, 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!
April 21, 2013 at 11:39 am in reply to: Display Current Month Title Being Viewed in Calendar Grid View #46454likemindsdesigns
ParticipantInclude this line in gridview.php:
April 21, 2013 at 11:38 am in reply to: Display Current Month Title Being Viewed in Calendar Grid View #46453likemindsdesigns
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.
April 20, 2013 at 4:59 pm in reply to: Display Current Month Title Being Viewed in Calendar Grid View #46428likemindsdesigns
ParticipantHi 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!April 20, 2013 at 4:55 pm in reply to: Event Widget Showing Start Time After Pro Calendar Upgrade #46427likemindsdesigns
ParticipantThis 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; ?>
‘
April 19, 2013 at 11:42 am in reply to: Display Current Month Title Being Viewed in Calendar Grid View #46344likemindsdesigns
ParticipantBy 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.
-
AuthorPosts
