Event description includes code from plugin

Home Forums Calendar Products Events Calendar PRO Event description includes code from plugin

Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #762442
    Webmaster
    Participant

    I have noticed that the event descriptions include the shortcode from the visual composer plugin we are using when I view the calendar in export or iCalendar feed. Is there a workaround? I often use the added features of the composer to design the individual event page on the calendar.

    #763731
    Webmaster
    Participant

    Here is an example when I select to add an event to Google calendar as well:
    http://screencast.com/t/pMiIw4DEjwk

    #763885
    Brian
    Member

    Hello,

    I can help you out with this.

    Thanks for sending the screenshot. I see what you mean about the html tags being included in the description.

    Try adding this coding to your theme’s functions.php to clean it up:

    https://gist.github.com/jesseeproductions/fc7787cd5f4e73f39da5#file-ecp-google-cal-remove-tags

    I added that to a dev site and it removed all the tags.

    Let me know if that works for you.

    #763916
    Webmaster
    Participant

    I assume this will clean up all the code, even if it is iCal?

    #763999
    Brian
    Member

    I tested it out using the same coding you have for your event and the tags do not appear in ical. So it appears that it works there too.

    Let me know if you find something different.

    Thanks

    #764420
    Webmaster
    Participant

    If I placed the code accurately, it doesn’t seem to be working. Here is a typical monthly service that can be an example: http://www.gatesofheavenclgi.com/cal/international-night/2014-09-26/

    #764425
    Webmaster
    Participant

    Adding that event to Google Calendar produces cleaner results but with some spacing starting off with a bit of garbled text with the apostrophe. The iCal version leaves the shortcode in altogether.
    Example:
    Friday Night Evangelical ServiceIt’s joy night and we praise the Lord in several languages (with translation). Start your weekend on the right foot in the house of God. View LiveView live and previously recorded Friday service!

    #766045
    Webmaster
    Participant

    No, it is not working. I still see the shortcode in the descriptions.

    #766057
    Brian
    Member

    Hi,

    Here is another filter you can use to remove content from the ical feed.

    https://github.com/wp-plugins/the-events-calendar-outlook-import-fix/blob/master/the-events-calendar-outlook-import-fix.php

    It was used as a fix for removing certain text the ical description that you could modify to remove the exact content that is being added by the Visual Composer Plugin.

    You may have to play around with both of those to get all the spacing how you want it and the shortcodes removed.

    Let me know if you have some questions or get stuck with it.

    Thanks

    #766496
    Webmaster
    Participant

    I have been trying the code in the functions file but without success. I am not sure what’s the problem. There is also a _theme_settings/theme-functions.php and I am not sure if it is conflicting or overriding?

    #768199
    Brian
    Member

    I would not expect _theme_settings/theme-functions.php file to cause the base functions.php file to not work, but there is a chance it could be depending on how the theme works.

    Another option is to move over the single-events.php template and place the filters directly in there.

    Or to create a one file plugin and place the coding in there too.

    I did find another filter and modified it a bit to remove most of the shortcodes.

    https://gist.github.com/jesseeproductions/ed1257c1580fddac7700

    It got most of them out and that should be a good start for you, to get the rest you may have to add another preg_replace to target those last ones.

    http://php.net/manual/en/function.preg-replace.php

    Let me know if you get stuck, but for the most part we are going to have to leave this customization up to you from here.

    Thanks

    #815842
    Brian
    Member

    Since I haven’t heard back from you here, I’m going to go ahead and close out this thread. Feel free to start a new thread if you have further issues. Thanks! 🙂

Viewing 12 posts - 1 through 12 (of 12 total)
  • The topic ‘Event description includes code from plugin’ is closed to new replies.