At first, I have to say "Thank you" for this excellent work!
I found out why the redirect phrases are not working - they phrasetypeid is wrong. I use the german vB3, so I don't know how the type is called in the english version, must be something like "Control Panel: Messages" - the phrasetypeid is "9000" (as sayed, in the german version).
After installing the hack, i asked myself:
If someone asks "Where do I find the homepage of XYZ", and XYZ is in the TextReplacement-Table, the other users will think he is completely insane, because there is no option to tell this automatic link from the others.
So I did the following modification:
I changed one line in the code to insert in functions_bbcodeparse.php from
PHP Code:
$replacetext[] = " [url=" . $link['link'] . "]" . $link['text'] . "[/url] ";
to
PHP Code:
$replacetext[] = " [autolink=" . $link['link'] . "]" . $link['text'] . "[/autolink] ";
Next, I created a custom vb-Code:
Name: autolink
Tag: autolink
Code to insert:
Code:
<span class="autolink"><a title="this link has been created automatically" href="{option}" target="_blank">{param}</a>*</span>
Use option: yes
At last, I went to the custom CSS-Definitions and inserted the following:
Code:
.autolink a:link
{
text-decoration:underline;
}
.autolink a:visited
{
text-decoration:underline;
}
.autolink a:hover
{
text-decoration:underline;
}
The result is that the generated links are marked with a '*', and on mouseover, the text "this link has been created automatically" will appear.
Additionally, the links will be underlined.
If you alreade use "underline" for the normal Links, you should use any other CSS-Definition.