Mit diesem kleinem Snippet werden die als extern definierten Links über den rLink geschickt. Die internen bleiben unverändert.
 
 
- Code: Alles auswählen
- #
 #----------[ OPEN ]-------------------------------------
 #
 includes/functions.php
 #
 #----------[ FIND ]-------------------------------------
 #
 function obtain_autolink_list(&$orig_autolink, &$replacement_autolink, $id)
 {
 global $db;
 #
 #----------[ INLINE FIND ]------------------------------
 #
 global $db
 #
 #----------[ INLINE AFTER, ADD ]------------------------
 #
 , $phpEx
 #
 #----------[ FIND ]-------------------------------------
 #
 $replacement_autolink[] = '<a href="' . htmlspecialchars($row['link_url']) . '" target="_blank"' . $style . 'title="' . htmlspecialchars($row['link_comment']) . '">' . htmlspecialchars($row['link_title']) . '</a>';
 #
 #----------[ REPLACE WITH ]-----------------------------
 #
 $replacement_autolink[] = '<a href="rlink/rlink.php?url=' . htmlspecialchars($row['link_url']) . '" target="_blank"' . $style . 'title="' . htmlspecialchars($row['link_comment']) . '">' . htmlspecialchars($row['link_title']) . '</a>';
 #
 #----------[ SAVE AND CLOSE ALL FILES ]-----------------
 #
 # EoM
Wer ausserdem möchte das interne Links, so wie hier im Board, nicht in einem neuem Fenster geöffnet werden, muss zusätzlich noch folgendes tun:
- Code: Alles auswählen
- #
 #----------[ OPEN ]-------------------------------------
 #
 includes/functions.php
 #
 #----------[ FIND ]-------------------------------------
 #
 $replacement_autolink[] = '<a href="' . append_sid(htmlspecialchars($row['link_url'])) . '" target="_blank"' . $style . 'title="' . htmlspecialchars($row['link_comment']) . '">' . htmlspecialchars($row['link_title']) . '</a>';
 #
 #----------[ REPLACE WITH ]-----------------------------
 #
 $replacement_autolink[] = '<a href="' . append_sid(htmlspecialchars($row['link_url'])) . '" target="_self"' . $style . 'title="' . htmlspecialchars($row['link_comment']) . '">' . htmlspecialchars($row['link_title']) . '</a>';
 #
 #----------[ SAVE AND CLOSE ALL FILES ]-----------------
 #
 # EoM






