Henry

Forum Replies Created

Viewing 15 posts - 31 through 45 (of 82 total)
  • Author
    Posts
  • in reply to: Not showing "Updated" on the Event once created #18109
    Henry
    Member

    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/3830433

    2. To make the time on a new line:
    http://pastie.org/3830519

    in reply to: Not showing "Updated" on the Event once created #18104
    Henry
    Member

    Hi 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…

    in reply to: Hide event from upcoming events list #18090
    Henry
    Member

    Hey 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?

    in reply to: Hide event from upcoming events list #18059
    Henry
    Member

    I still can’t figure this one out. Any ideas how to do this?

    in reply to: 1970 Bug #18052
    Henry
    Member

    you 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:

    http://pastie.org/3813291

    in reply to: Is it possible to add additional fields to Venues? #18031
    Henry
    Member

    @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)

    in reply to: Is it possible to add additional fields to Venues? #18029
    Henry
    Member

    @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.

    in reply to: Event time off by a few minutes #18019
    Henry
    Member

    Try using this

    http://pastie.org/3807770

    in reply to: 1970 Bug #18012
    Henry
    Member

    If this doesn’t work for you then you could always manually display a list of events without using the widget using this:

    http://pastie.org/3807381

    I have set showposts to 1000 but feel free to change this to whatever number of events you’d like to display.

    in reply to: 1970 Bug #18011
    Henry
    Member

    I 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

    http://pastie.org/3807327

    To this

    http://pastie.org/3807336

    As mentioned, I haven’t been able to test so make a back up of the file before making the change.

    in reply to: 1970 Bug #18005
    Henry
    Member

    1 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.

    in reply to: Is it possible to add additional fields to Venues? #17993
    Henry
    Member

    You 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/3805194

    Be 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.

    Henry
    Member

    @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.

    Henry
    Member

    All you’d have to do is replace the 6th line down (the line that starts with $link) with this:

    http://pastie.org/3798560

    Henry
    Member
Viewing 15 posts - 31 through 45 (of 82 total)