Warning: mysqli_query() expects parameter 1 to be mysqli, null given in /home/abledesi/domains/abledesign.com/public_html/navfiles/log.php on line 126

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
How to give text descriptions to embedded links?
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
niedecker
Lurker
Lurker


Joined: 10 Aug 2005
Posts: 3

PostPosted: Wed Aug 10, 2005 12:17 pm    Post subject: How to give text descriptions to embedded links? Reply with quote

Hi there.

I'd like to be able to have my users post a link to, say, http://www.yahoo.com/ but have the clickable text be customizable, saying something like "Click here to go to Yahoo.com!".

In other words, I'd like to be able to do this:

<a href="http://www.yahoo.com/" target="_blank">Click here to go to Yahoo.com!"</a>

Unfortunately, this code will not work in the calendar app because the app translates any http:// link it finds.

Is there a solution to my dilemma?

Thanks...
Back to top
View user's profile Send private message AIM Address
Dan
Admin / Developer
Admin / Developer


Joined: 19 Feb 2001
Posts: 2057

PostPosted: Wed Aug 10, 2005 12:26 pm    Post subject: Reply with quote

Probably the simplest solution is to comment out line 79 in perform_update.php

// $db_calendar[DESCRIPTION_ROW][2] = do_hyperlinks($db_calendar[DESCRIPTION_ROW][2]);

and then just type in the HTML however you want it.

Note that that will remove all automatic hyperlinking. If you want it on or off conditionally, you'll have to get more creative. Personally, I like to think no one is brain dead enough to require "click here" telling them exactly where to click... A big clickable URL on its own line should be obvious enough. But I often hear from clients that it isn't the case, which leaves me wondering how some people manage to get online in the first place.

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


Joined: 10 Aug 2005
Posts: 3

PostPosted: Wed Aug 10, 2005 12:34 pm    Post subject: Ok, that does work... Reply with quote

At least insofar as it allows me to use HTML code in the app... thanks for that.

What about using custom fields to somehow allow this? Do you think that we could make a solution to this issue out of those areas? Like, perhaps we keep the auto-hyperlinking on the description text box, but not on a custom "URL" text box. Would that work, and can it be done?

Thanks...
Back to top
View user's profile Send private message AIM Address
Dan
Admin / Developer
Admin / Developer


Joined: 19 Feb 2001
Posts: 2057

PostPosted: Wed Aug 10, 2005 12:38 pm    Post subject: Reply with quote

Certainly, that could definitely be done via a custom field.

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-2025 AbleDesign.com - Web Design that Can!