• Resolved ventatto

    (@ventatto)


    Hi,

    I’d like to know where to customise the event title in the files. For the moment, it is auto-completed with “TeamA vs TeamB” but I’d like to add the event status before when it is not “On Time” (especially for the ical feed where you can’t see if an event is set to “Postponed” or “Cancelled”). It would be auto-completed like that when an event’s status is “Postponed” : “[POSTPONED] TeamA vs TeamB”.

    Thanks for your help.

Viewing 14 replies - 1 through 14 (of 14 total)
  • Plugin Contributor Savvas

    (@savvasha)

    Hi @ventatto ,

    Just give a look inside your SportsPress/templates plugin folder. For example event-list.php controls how an Event List will be shown. You can copy this file to child-theme/sportspress/ folder and edit as you want. event-logos-block.php and event-logos-inline.php can be seen also.

    Thanks,
    Savvas

    Thread Starter ventatto

    (@ventatto)

    Hi,

    I couldn’t find a way to resolve my query in those files. However, I found one by modifying this file but it does not work as events disappear when applying postpone bulk action for example. Do you have an idea why ?

    Thanks for your help,
    Tom

    Roch

    (@rochesterj)

    Hi Tom!

    Thanks for your reply.

    Usually, when events disappear it means that there’s something wrong with your code. I’m not sure if Savvas can help you with this as it’s beyond the scope of our support.

    I’ll leave this open in case he wants to add something.

    Thanks!

    Plugin Contributor Savvas

    (@savvasha)

    To make changes to the ical feed you need to edit the /feeds/ical.php file somehow.

    It is possible to alter the title of the events through the files I mentioned in my previous post.

    Thanks,
    Savvas

    Thread Starter ventatto

    (@ventatto)

    Alright, I will make further investigations.

    Have a nice day !

    @ventatto : keep up posted

    i’m interested in this to!

    Roch

    (@rochesterj)

    Yes, we’d love to hear if you made any progress!

    Thread Starter ventatto

    (@ventatto)

    For sure ! However, I have a problem with testing my solution because it’s been a few days that I no longer have access to my ical links ? I am told that

    There was an error subscribing to the calendar.

    for instance :

    A calendar wasn’t found on webcal://www.saintlouisbasket.be/calendar/r1-20-21?feed=sp-ical. Check the URL.

    Do you have an idea by the way ?

    Plugin Contributor Savvas

    (@savvasha)

    Hi @ventatto ,

    Something is wrong with your calendar link. https://www.saintlouisbasket.be/calendar/r1-20-21/ is not found either!

    Thanks,
    Savvas

    Thread Starter ventatto

    (@ventatto)

    Indeed I have just checked and it’s the same when I create a new calendar… It seems that there is a problem with this. Can you give support here or do you prefer that I create a new topic ?

    Thanks in advance,
    Tom

    Plugin Contributor Savvas

    (@savvasha)

    Please open a new topic.

    Thanks,
    Savvas

    Thread Starter ventatto

    (@ventatto)

    Hey @bartvanbelle,

    I just found a temporary solution for changing event title depending on event status from bulk actions. It is not an optimal solution but it works in this case (status is either cancelled or postponed). If you want to switch back to “On time” status, you must do it on the event edit page and probably change manually the title.

    Here it is (should be more modular to be clean) !

    • This reply was modified 4 years, 1 month ago by ventatto.
    • This reply was modified 4 years, 1 month ago by ventatto.
    Thread Starter ventatto

    (@ventatto)

    Since I can now test my ical feed, I have a better solution @bartvanbelle ! Here you can see only modifications to feeds/ical.php which means that no modifications to modules/sportspress-bulk-actions.php is needed anymore and therefore the event title won’t be modified.

    Roch

    (@rochesterj)

    That’s awesome, thanks for sharing these ??

Viewing 14 replies - 1 through 14 (of 14 total)
  • The topic ‘Update/Customise event title depending on event status’ is closed to new replies.