Forum Replies Created
-
AuthorPosts
-
Graeme
ParticipantThanks for the speedy response George.
Your help was spot on, was able to make the correct change.
For anyone wishing to do this, the key was the string being passed wasn’t just simply “Recurring Event”, but rather “Recurring %s”.
So change this section on the snippet linked above.
$custom_text = array(
‘Recurring %s’ => ‘Multi Day Event’,
‘Related %s’ => ‘Similar %s’,
);September 19, 2015 at 9:14 pm in reply to: URL additional field displays HTML instead of link #1006847Graeme
ParticipantHi guys – I’m having what I think is a similar problem – one that is quite urgent.
Check this out: http://midlothiansciencefestival.com/event/unbelievable-the-science-of-the-paranormal-at-dalkeith-library/
Look at the Other fields (I have hidden the “other” label but they are at the right of the details box. You can see the URL field (which is an Additional Field of type URL with plain text of the url entered in the event as value).
It looks like the value of the field is being being returned incorrectly (some extra double quotes). I can see that additional-fields.php controls the display of the additional fields, but it simply returns the values as stored int he db. Looks like a storing issue?
Any other info you need, please let me know.
Thanks
Graeme.Graeme
ParticipantThanks Brook. I’ll give that a try tomorrow, looks encouraging though.
Graeme
ParticipantHi ocama – I think that sounds like a different issue, perhaps you should open a forum discussion for that if not already? Looks to be an ajax issue to me (sure I read another thread here today with a very similar issue)
August 8, 2013 at 5:24 am in reply to: Mini Calendar – default display month as that of next upcoming event #59468Graeme
Participantfunctions.php is generally in the root of your theme, not the plugin e.g.
wp-content/themes/[theme name]/functions.phpJust place the code Barry link above in the functions.php file anywhere between the opening and closing php tags.
—
If you are going to start editing your theme’s files, I suggest you use a child them – which is super simple to create, see this: http://codex.wordpress.org/Child_Themes. You can then create a new functions.php in the child theme folder and edit it. This will ensure any changes are not overwritten when you update your theme.Note: a child theme functions.php is IN ADDITION to the parent theme functions.php, so no need to copy the contents of the parent functions.php – just create a new one.
August 8, 2013 at 3:46 am in reply to: Mini Calendar – default display month as that of next upcoming event #59454Graeme
ParticipantSpot on Barry, works a treat – does exact what I need.
Thanks a lot for your help.
Graeme
ParticipantStick it in the theme’s functions.php, but you need to include all the code Barry placed on pastbin, not just that function call.
Good luck
Graeme
Participantfunctions.php is generally in the root of your theme, not the plugin e.g.
wp-content/themes/[theme name]/functions.php
If you are going to start editing your theme’s files, I suggest you use a child them – which is super simple to create, see this: http://codex.wordpress.org/Child_Themes. You can then create a new functions.php in the child theme folder and edit it. This will ensure any changes are not overwritten when you update your theme.
Note: a child theme functions.php is IN ADDITION to the parent theme functions.php, so no need to copy the contents of the parent functions.php – just create a new one.
Graeme
ParticipantSimon – a solution for you has been suggested here: https://theeventscalendar.com/support/forums/topic/mini-calendar-display-month-of-next-upcoming-event/
It works fine for me mate, so good luck.
To pass a specific month (rather than just next upcoming event month), just edit the last line call the function with a date param, so:
FROM:
new Tribe_Advance_Minical();
TO:
new Tribe_Advance_Minical(‘2013-10’);
Good luck.
August 7, 2013 at 2:27 pm in reply to: Mini Calendar – default display month as that of next upcoming event #59390Graeme
ParticipantP.P.S. I also got it working to a target month via passing $target_date through to the Tribe_Advance_Minical() function – it worked perfectly. Thought you might like to know as this is a good idea too.
August 7, 2013 at 2:08 pm in reply to: Mini Calendar – default display month as that of next upcoming event #59385Graeme
ParticipantP.S. I should mention that I’m using a child theme, and so have placed this in the child themes functions.php – it shouldn’t make a difference, but just thought I’d mention it.
August 7, 2013 at 2:07 pm in reply to: Mini Calendar – default display month as that of next upcoming event #59384Graeme
ParticipantThanks for this.
It works, but not 100%. The mini cal is defaulting to the month that contains the next upcoming event, which is great. However, the list of events that appears below the calendar is not updating – it appears blank until I click the day of the month that contains an event, then it appears.
When the calendar works normally, even when a user does not click the day of the month the list below still shows the next (5 – as that is what I have selected in the widget settings) events starting from the beginning of the month.
But I’m delighted with what you’ve done, thanks. If you can sort it so the month start up shows the upcoming events in the list that would be great, but not a huge worry if you can’t.
You should consider rolling this out as an option on the widget (or settings page to also impact the main month calendar too) as I’m sure others would like to have this functionality.
Top job, thanks.
August 7, 2013 at 10:43 am in reply to: Mini Calendar – default display month as that of next upcoming event #59335Graeme
ParticipantThanks Barry, don’t worry about the delay, I appreciate you guys are busy just now.
Graeme
ParticipantThanks Rob.
Graeme
ParticipantHi Simom / Rob – I have a similar request, relating specifically to the min calendar (you can see my post here: https://theeventscalendar.com/support/forums/topic/mini-calendar-display-month-of-next-upcoming-event/)
I’m happy with hacking the plugin files (I can restore what I need after an upgrade), but could just use a gentle nudge in the right direction. Any suggestions Rob?
Thanks,
Graeme. -
AuthorPosts
