This topic is locked

email-adress

10/16/2008 7:21:32 AM
PHPRunner General questions
scuba author

it is possibel to link an http link to another fields content - is there a way to do so with email-links too? So one can click on a persons/companies name and the email-form opens.
thanks in advance!!!

J
Jane 10/16/2008

Hi,
yes it's possible.

Set up this field as custom on the "View as" settingsdialog on the Visual Editor tab and form link manually.

scuba author 10/16/2008

thank, can you give me a hint on how exactly? something like this?
$value = ["email"]; ?????

J
Jane 10/20/2008

Hi,
here is a sample:

$value = "<a href=\"mailto:".$value."\">".$value."</a>";

scuba author 10/20/2008

thanks, that basically works. The field links to the correct email adress. Now only the first letter of the email-address is shown in view. I want it to be shown as ">>" - how can that be done?
Thanks in advance!!!!!

L
laonian 10/20/2008

thanks, that basically works. The field links to the correct email adress. Now only the first letter of the email-address is shown in view. I want it to be shown as ">>" - how can that be done?

Thanks in advance!!!!!


scuba,
Try this code:

$value = "<a href=\"mailto:".$value."\">>></a>";

scuba author 10/20/2008

Thanks for the help, works great!!!!!!!!