Hier die nötigen Änderungen dazu (nur für deutsch!):
Code: Alles auswählen
#
#-----[ OPEN ]-----
#
templates/subSilver/posting_body.tpl
#
#-----[ FIND ]-----
#
// Shows the help messages in the helpline window
function helpline(help) {
document.post.helpbox.value = eval(help + "_help");
}
#
#-----[ AFTER, ADD ]-----
#
function BBCurl() {
var FoundErrors = '';
var enterURL = prompt("Wie lautet die Internetadresse (URL) ?", "http://");
var enterTITLE = prompt("Gebe jetzt den Namen für die Internetadresse (URL) ein.", "Beschreibung");
if (!enterURL) {
FoundErrors += " Du hast keine Internetadresse (URL) angegeben!";
}
if (!enterTITLE) {
FoundErrors += " Du hast keinen Namen für die Internetadresse (URL) angegeben!";
}
if (FoundErrors) {
alert("Error!"+FoundErrors);
return;
}
var ToAdd = "[URL="+enterURL+"]"+enterTITLE+"[/URL]";
document.post.message.value+=ToAdd;
document.post.message.focus();
}
#
#-----[ FIND ]-----
#
<td>
<input type="button" class="button" accesskey="w" name="addbbcode16" value="URL" style="width: 52px" onclick="bbstyle(16)" onmouseover="helpline('w')" />
</td>
#
#-----[ REPLACE WITH ]-----
#
<td>
<input type="button" class="button" accesskey="w" name="addbbcode16" value="URL" style="width: 52px" onClick="BBCurl()" onMouseOver="helpline('w')" />
</td>
#
#-----[ SAVE/CLOSE ALL FILES ]-----
#
# EoM
Micha68m auf phpbb2.de