Source:
Lorem ipsum dolor sit amet, text [ANCI top]going to the ancor named top[/ANCI] consectetuer adipiscing elit, sed diam nonummy nibh text [IDI impressum]internal link to side named impressum[/IDI]
euismod [INTI index.php?impressum][b]internal link[/b] to side named impressum[/INTI] tincidunt ut laoreet dolore magna [EXTI http://www.google.de]external link in a new window to google germany[/EXTI]
aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci [MAILI fred@firestone.nix]eMail to Fred Firestone[/MAILI] tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat.
Text text text [ANCI top]going to the ancor named top[/ANCI] text text text
Text text text [IDI impressum]internal link to side named impressum[/IDI] text text text
Text text text [INTI index.php?impressum]internal link to side named impressum[/INTI] text text text
Text text text [EXTI http://www.google.de]external link in a new window to google germany[/EXTI] text text text
Text text text [MAILI fred@firestone.nix]eMail to Fred Firestone[/MAILI] text text text
Output:
Lorem ipsum dolor sit amet, text going to the ancor named top consectetuer adipiscing elit, sed diam nonummy nibh text internal link to side named impressum euismod internal link to side named impressum tincidunt ut laoreet dolore magna external link in a new window to google germany aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci eMail to Fred Firestone tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat.
Text text text going to the ancor named top text text text
Text text text internal link to side named impressum text text text
Text text text internal link to side named impressum text text text
Text text text external link in a new window to google germany text text text
Text text text eMail to Fred Firestone text text text
Download imagesource:
Ancor-Image: anclink_2.png
ID/Intern-Image: intlink_2.png
Extern-Image: extlink_2.png
Mail-Image: maillink_2.png
Patch:
/include/inc_front/front.func.inc.php (Tested in 1.2.3 DEV and 1.2.5 CVS)
Add the following lines between
~ Line 1620
$replace[26] = '<a href="#" onClick="BookMark_Page();return false;" title="$1">$2</a>';
---------------------------------------------
-->> Patch
---------------------------------------------
$string = preg_replace($search, $replace, $string);
--------------------------------------------
// kh tag including leading image
// kh 17-08-05 [ANCI ancorname]Text[/ANCI] internal Link to ancor including image (string)
$search[27] = '/\[ANCI (.*?)\](.*?)\[\/ANCI\]/';
$replace[27] = '<img src="img/article/anclink_2.gif" width="13" height="9" border="0" vspace="0" hspace="0" alt="ancorlink"><a href="#$1">$2</a>';
// kh 17-08-05 [IDI alias]Text String[/IDI] internal Link to 'aliased' site structure entry including image (string)
$search[28] = '/\[IDI (.*?)\](.*?)\[\/IDI\]/';
$replace[28] = '<img src="img/article/intlink_2.gif" width="13" height="9" border="0" vspace="0" hspace="0" alt="intlink"><a href="index.php?$1">$2</a>';
// kh 17-08-05 [INTI url]Text[/INTI] internal Link including image (string)
$search[29] = '/\[INTI (.*?)\](.*?)\[\/INTI\]/';
$replace[29] = '<img src="img/article/intlink_2.gif" width="13" height="9" border="0" vspace="0" hspace="0" alt="intlink"><a href="$1">$2</a>';
// kh 17-08-05 [EXTI url]Text[/EXTI] external link which opens in a new window including image (string)
$search[30] = '/\[EXTI (.*?)\](.*?)\[\/EXTI\]/';
$replace[30] = '<img src="img/article/extlink_2.gif" width="13" height="9" border="0" vspace="0" hspace="0" alt="extlink"><a href="$1" target="_blank">$2</a>';
// kh 17-08-05 [MAILI eMail_Adress]Text[/MAILI] this pharses out an E-Mail Link without subject including image (by Florian, 21-11-2003)
$search[31] = '/\[MAILI (.*?)\](.*?)\[\/MAILI\]/i';
$replace[31] = '<img src="img/article/maillink_2.gif" width="16" height="9" border="0" vspace="0" hspace="0" alt="eMail"><a href="mailto:$1">$2</a>';
// ende patch kh
--------------------------------------------