hey guys.... Well I got my php event calendar running real well on my website. You can check it out below... but one thing that is really starting to bug me is that whenever i enter in an event and use the apostrophe ( ' ) it types it out as " ' " for some unknow reason... It's probably a bug in the code somewhere but does this happen to anybody else? and does anybody have any tips on how to fix it? Thanks a lot
Yeah, I had the same problem originally. I added the following code for the $body variable. The code below also allows for entering events with line
breaks and have it display properly:
str_replace('$body', nl2br(str_replace("'", "'", $v->body)), $c);
You can do the same thing for the title:
$c = str_replace('$title', str_replace("'", "'", $v->title), $c);
Hope this helps!
I have the same problem and i just tried replacing the $body tag in the calendar.php but it didnt work. also the calendar.php has the $body twice in the file. i tried replacing both. PLEASE HELP!
Hmm...not sure why that didn't work, but here's another option that should work:
echo str_replace('$body', nl2br(stripslashes($v->body)), $c);
what page do i make that change on to get that to work?
Wow, very useful! Thank's a lot. The Zeeke75 proposition worked at once.
BTW, for skb, the document to modify is "calendar.php" in the cl_files.