Posted: Thu Feb 12, 2004 9:27 pm Post subject: HTML with Customized Categories
I just added 4 customized categories / fields to myCalendar (version 2.20.3). Everything seems to be working properly. The one thing I noticed is that one of the new Categories is just for URL's. When a URL is entered in the Description area as HTML it becomes a hyperlink for the viewer. With the new category, the HTML isn't recognized. I have searched through the code and can't figure out how to make this work.
Thanks for sharing your installation examples in the other thread.
Turning text into a URL/email link is done by passing the field's data to the do_hyperlinks() function in lib.php. Alternatively, you can just use the manual formatting override instructions in day_display() -- also in lib.php -- to turn your custom field into link directly, without the need for any regular expression pattern matching.
Yeah, I put it in there as an example, but left it commented out for efficiency. The more stuff you run through regular expression processing, the slower and more resource intensive it is. For non-customized installations that don't need that extra processing, it's there just as an example.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum