Hyperlinks and masking

B

Batt

Guest
I am back to try again.

I have more questions.

1) How do I make a URL hyperlinked?

2) Can I mask it to say something simple (I just want to say the word "Profile" and make it clickable)

This is the url:

http://www.kindredclan.org/roster/user/index.php

Also, is there a way to change the date to mm/dd/yy?

 
B

Batt

Guest
ok, I figued out how to do the hyperlinks and was able to mask the url with a word.

Now the seemingly most simple part is confusing me...I want the link to open in a new window, but I get errors if I put a "target="_blank"" in this line of business_logic.php:

elseif ($field_content == "url"){
$field_to_display = "<a href=\"".$field_value."\">Profile</a>";

Where would I put this extra piece of code?

 
D

Debbie S

Guest
Batt

Did you escape the quotes? Your target part should be target=\"_blank\" and must be inside the anchor opening tag.

Debbie
(Latest version of DaDaBIK when this message was posted: 3.2 Beta)
 
Top