EncodeURL_CF ( textToCode )
Rate this function: Average rating: 4.3 (8 votes) Discuss this Custom Function
Paul Spafford, Spafford Data Solutions
http://www.paulspafford.com
Encodes all urls enclosed in square brackets for html.
Sample Input:
EncodeURL_CF ( TextField )
Where TextField contains the following:
FileMaker User and Developer Group of Eastern Ontario:
[http://www.fudgeo.com]
Spafford Data Solutions:
[http://www.paulspafford.com]
|
|
Sample Output:
FileMaker User and Developer Group of Eastern Ontario:
<a href="http://www.fudgeo.com">http://www.fudgeo.com</a>
Spafford Data Solutions:
<a href="http://www.paulspafford.com">http://www.paulspafford.com</a> |
|
Description:
When creating a multi-part email with an email plug-in, you need to encode any links as html, to make sure that more email applications will allow the links to be clickable.
When writing the text for the email, your users just need to enclose each url in square brackets.
Note: these functions are not guaranteed
or supported by BrianDunning.com. Please contact the individual
developer with any questions or problems.
This is my Custom Function and I want to
edit it
Discuss:Make a comment about this Custom Function (please try to keep it brief & to the point). Anyone can post:
|
Newest Custom Functions:
| 1. |
phpArrayValue ( array ; key ; pos ) |
| |
(Fri, Jan 27, 1:49pm) |
| 2. |
solfm_timeToMinutes (theTime;roundSec) |
| |
(Fri, Jan 20, 6:26am) |
| 3. |
filterLines(filterField;filterValue;Result) |
| |
(Sat, Jan 14, 2:20pm) |
| 4. |
getMaxValue ( theList ) |
| |
(Thu, Jan 12, 1:06pm) |
| 5. |
MiddleWordsIncPunct ( text ; startingWord ; numberOfWords ) |
| |
(Sat, Jan 07, 9:16am) |
| 6. |
WindowInfo |
| |
(Fri, Jan 06, 12:39pm) |
| 7. |
CenterWindow in Window vert horiz (demension) |
| |
(Fri, Jan 06, 12:25pm) |
| 8. |
UTF8_to_TXT ( Text , Platform ) |
| |
(Wed, Dec 28, 10:44pm) |
 |
|
This function doesn't loop if you have more than one link. I propose:
//HTMLurl (text;target)
Let( [ FS=Position(text;"*";1;1) ; SS=Position(text;"*";1;2) ; URL=Middle(text;FS+1;SS-FS-1);
A= Substitute( text; Middle(text;FS;SS-FS+1) ; "<a href='http://"& URL & "' target='_" &target& "'>"& URL &"</a>" ) ];
If( PatternCount ( text ; "*" ) ≥ 2; HTMLurl( A; target ); text)
)
// transforms all text in between 'star' (exemple: *mydomain.com* ) with the URL link. No need to write the http:// first
// target is to choose if you want to open in self ; blank ; top or new window
// by Patryck 2010
Patryck, Barcelona
January 17, 2011 8:51am