Forum Replies Created
-
AuthorPosts
-
HenryMember
Hi Lydia,
OK so if you copy single.php into your theme’s directory. We need to make some minor modifications to it. You can find single.php here plugins/the-events-calendar/views/single.php. Open single.php for editing…
1. To remove “Updated”:
http://pastie.org/38304332. To make the time on a new line:
http://pastie.org/3830519HenryMemberHi Lydia
You will need to modify your templates. You can customise your templates by copying them to your theme’s directory.
1. copy single.php into your theme’s directory. (single.php is located here plguins/the-events-calendar/views/single.php
2. is it possible for you to take a screenshot of the way everything is displayed on your event page.
3. the code changes will be simple, but need to see the screenshot first to understand exactly what you’d like to do…
HenryMemberHey Rob, not really sure if people would find this feature valuable, after all the whole idea of publishing events is to have them displayed nicely.
The hide from list checkbox works well for me because I can create a new event and send a link to the event organiser to review the information published. Then after approval, I unhide the event.
I just noticed the hide from list feature only hides from list.php. grid.php (the calendar) still displays the event.
I am happy to custom code it myself, perhaps Jonah could point me in the right direction?
HenryMemberI still can’t figure this one out. Any ideas how to do this?
HenryMemberyou can have events from a certain category display only by making a minor modification to the code.
In my example below I have included the first 1000 events that are in the “football” category:
HenryMember@Martijn
I agree, great suggestion. You could go one step more and instead of having fixed custom fields in the venue/event/organiser information block, you could have variable fields where the user can specify their own name/value pair (in the same way as WP custom fields work now)
HenryMember@Martijn,
I am pretty sure that would mean hacking the plugin core. If you’re going to hand over to a client then i’d suggest leaving the core untouched as if your client decides to update the plugin at a future date, all of your changes will be lost.
HenryMemberTry using this
HenryMemberIf this doesn’t work for you then you could always manually display a list of events without using the widget using this:
I have set showposts to 1000 but feel free to change this to whatever number of events you’d like to display.
HenryMemberI don’t use the advanced widget so have no way to test but my stab at this would be to make a very slight amendment to one of the Pro files.
Try finding file plugins/events-calendar-pro/views/events-advanced-list-load-widget-display.php
Then change the following code around line 58
To this
As mentioned, I haven’t been able to test so make a back up of the file before making the change.
HenryMember1 January 1970 is the Unix epoch date. It is simply a way for certain systems to keep time by measuring how long has elapsed since this time. I am not familiar with the way the widget is set up but I would imagine the time is defaulting back to this date.
Not sure how this can help but perhaps when trying to diagnose the issue.
HenryMemberYou can make the venue post type support WordPress custom fields by modifying the-events-calendar-class.php file.
Look for this code protected $postVenueTypeArgs = array( (it is around line 32)
You need to add support for custom fields. See my code here that works nicely for me.
http://pastie.org/3805194Be aware if you upgrade The Events Calendar you will loose these changes. Jonah might know of a way to do this without hacking the core.
April 17, 2012 at 6:35 am in reply to: Hyperlinks opening in the same window – want to open in a new window #17981HenryMember@Wayne,
That’s the good thing about functions.php – this file is part of your theme so any functions you put in this file are unaffected by future upgrades.
April 16, 2012 at 8:03 am in reply to: Hyperlinks opening in the same window – want to open in a new window #17941HenryMemberAll you’d have to do is replace the 6th line down (the line that starts with $link) with this:
April 16, 2012 at 8:01 am in reply to: Hyperlinks opening in the same window – want to open in a new window #17940HenryMemberHi Wayne
See this answer from Jonah:
https://theeventscalendar.com/support/forums/topic/title-attribute-on-venue-link/ -
AuthorPosts