AbleDesign - Support Forum

AbleDesign Forum Index AbleDesign

 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
AbleDesign Forum Index
MyCalendar Discussion
HTML with Customized Categories
Post new topic   Reply to topic

Post new topic   Reply to topic    AbleDesign Forum Index -> MyCalendar Discussion
View previous topic :: View next topic  
Author Message
kayakchick
Lurker
Lurker


Joined: 12 Feb 2004
Posts: 4

PostPosted: Thu Feb 12, 2004 9:27 pm    Post subject: HTML with Customized Categories Reply with quote

Hey there,

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.

Here's a link to my site with an example:

http://www.curldc.org/calendar/index.php?go=day&d=4&m=02&y=2004

So how do I make the new categories recognize HTML?

Thanks

Chrystal
Back to top
View user's profile Send private message
Dan
Admin / Developer
Admin / Developer


Joined: 19 Feb 2001
Posts: 2057

PostPosted: Fri Feb 13, 2004 1:17 am    Post subject: Reply with quote

Hi Chrystal,

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.

Cheers,
Dan
Back to top
View user's profile Send private message Send e-mail Visit poster's website
kayakchick
Lurker
Lurker


Joined: 12 Feb 2004
Posts: 4

PostPosted: Fri Feb 13, 2004 2:39 pm    Post subject: Thank You Reply with quote

Works Perfect, thank you

Went into lib.php and found the right area... the code was already there, just commented out.

Chrystal
Back to top
View user's profile Send private message
Dan
Admin / Developer
Admin / Developer


Joined: 19 Feb 2001
Posts: 2057

PostPosted: Fri Feb 13, 2004 5:11 pm    Post subject: Reply with quote

You're quite welcome.

Quote:
the code was already there, just commented out.

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.

Cheers,
Dan
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    AbleDesign Forum Index -> MyCalendar Discussion All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2002 phpBB Group


Home | Services | Pricing | Portfolio | About Us | Contact
Support | Programs | Purchase | Tutorials | Site Map

© 1999-2013 AbleDesign.com - Web Design that Can!