Fix: Google Calendar Links are too long

Home Forums Welcome! Pre-Sales Questions Fix: Google Calendar Links are too long

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #19323
    Steve
    Member

    Hi,

    In events-calendar-pro.php, around line 589, you have this:

    ‘details’ => str_replace( ‘ ‘ , ‘+’, strip_tags( apply_filters( ‘the_content’, urlencode( get_the_content() ) ) ) ),

    This is causing events for which the_content() is very lengthy to break Google Calendar. You end up getting a Google Calendar link like this:

    http://www.google.com/calendar/event?action=TEMPLATE&text=HAPA+%26%23038%3B+Senior+Parent+Summer+Retreat&dates=20120720/20120723&details=%26nbsp%3B%3Cp+style%3D%22text-align%3A+center%3B%22%3E%3Cstrong%3EJoin+Us+for+a+Joint+HAPA+%26amp%3B+Senior+Parent+Summer+Retreat%3C%2Fstrong%3E%3C%2Fp%3E%3Ch2+style%3D%22text-align%3A+center%3B%22%3E%E2%80%98Life+Long+Journey%E2%80%99+%E2%80%93An+Exploration+of+Our+Unique+Potential%3C%2Fh2%3E%3Cp+style%3D%22text-align%3A+center%3B%22%3E%3Cstrong%3EJuly+13-15+%28Bath%29+%26amp%3B+July+20+%E2%80%9322+%28Woodstock%29%2C+2012%3C%2Fstrong%3E%3C%2Fp%3EThis+summer%2C+Hyde+is+offering+a+unique+retreat+experience+to+alumni+parents+who+want+to+continue+their+personal+growth+in+a+seminar+setting.+The+Hyde+Alumni+Parent+Association+%28HAPA%29+will+join+senior+parents+who+are+preparing+themselves+for+a+heightened+year+of+leadership+and+learning.%3Cimg+class%3D%22alignleft+size-full+wp-image-22452%22+title%3D%22HAPA-beach2%22+src%3D%22http%3A%2F%2Fwww.hyde.edu%2Fwp-content%2Fuploads%2F2012%2F04%2FHAPA-beach21.jpg%22+alt%3D%22HAPA+retreat%22+width%3D%22250%22+height%3D%22207%22+%2F%3EThe+Hyde+education+has+been+called+a+%E2%80%9Clifelong+journey%2C%E2%80%9D+and+we+know+that+uncovering+our+unique+potential%2C+with+the+help+of+others%2C+is+an+ongoing+process+of+self-discovery.+Current+parents+are+beginning+a+new+relationship+as+a+mentor+or+coach+with+their+child%2C+while+alumni+parents+are+continuing+to+establish+their+vision+beyond+parenthood.Couples+are+encouraged+to+attend+together.+A+portion+of+the+retreat+will+be+devoted+to+examining+the+important+relationships+in+our+lives%2C+and+how+they+impact+our+sense+of+self+and+destiny.The+weekend+is+part+of+the+HAPA+Renewal+Weekend+program%2C+which+offers+alumni+parents+the+opportunity+to+step+out+of+their+busy+lives%2C+meet+new+friends+and+rekindle+old+friendships%2C+and+reflect+on+life%E2%80%99s+purpose+and+journey.Retreats+will+be+held+on+both+the+Bath+campus+and+the+Woodstock+campus%2C+and+space+is+limited.%3Cstrong%3ECost%3A%3C%2Fstrong%3E+%24150+per+alumni+parent%3Cp+style%3D%22text-align%3A+left%3B%22%3E%3Cstrong%3ERegistration%3A%3C%2Fstrong%3E+Please+register+with+Judy+Hendrickson+at+860-963-4756+or+%3Ca+href%3D%22mailto%3Ajhendrickson%40hyde.edu%22%3Ejhendrickson%40hyde.edu%3C%2Fa%3E.%3C%2Fp%3EThe+weekend+will+leave+everyone+with+a+renewed+sense+of+vision+and+capacity+for+growth.+One+HAPA+remarked+last+year%2C+%E2%80%9CIt+was+a+reminder+of+everything+I+miss+about+Hyde+%E2%80%A6+the+freedom+to+push+myself+within+a+framework+of+support%2C+the+sharing+of+life+struggles+and+triumphs%2C+the+explicit+setting+aside+of+time+for+reflection%2C+and+the+deep+comfort+that+results+from+a+balance+between+challenge+and+validation.%E2%80%9DWe+hope+you%E2%80%99ll+join+us.Share+this:++++++++++++++++++++++++Tweet&location=150+Route+169%2C+Woodstock%2C+CT%2C+06281%2C+United+States&sprop=website:http://www.hyde.edu&trp=false

    Solution? Change line 589 to use the_excerpt instead. Problem solved!

    I recommend this for your next release of Event Calendar Pro.

    #19331
    Rob
    Member

    Thanks for the heads up here, Steve. We are aware of this issue and are working to fix it, hopefully for our release that will be out the first week of June. Appreciate the suggestion you’ve provided…I’ll share it with the dev team accordingly.

    Apologies in the interim for any inconvenience…

Viewing 2 posts - 1 through 2 (of 2 total)
  • The topic ‘Fix: Google Calendar Links are too long’ is closed to new replies.