- Code: Alles auswählen
- ##############################################################
 ## Mod Title: URL Query (BBcode)
 ## Mod Author: oxpus http://www.oxpus.de edit by mgutt http://www.maxrev.de
 ## Mod Description: a little comfort URL Query based on Javascript
 ## Mod Version: 1.0.0
 ##
 ## Installation Level: Easy
 ## Installation Time: 5 Minutes
 ## Files To Edit: templates/subSilver/posting_body.tpl
 ## language/lang_english/lang_main.php
 ## language/lang_german/lang_main.php
 ## posting.php
 ## privmsg.php
 ##
 ## Included Files: n/a
 ##############################################################
 ## Before Adding This Mod To Your Forum, You Should Back Up All Files Related To This Mod
 ##############################################################
 #
 #-----[ 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("{L_BBCURL_URL}", "http://");
 var enterTITLE = prompt("{L_BBCURL_NAME}", "{L_BBCURL_DESC}");
 if (!enterURL) {
 FoundErrors += "{L_BBCURL_NO_URL}";
 }
 if (!enterTITLE) {
 FoundErrors += "{L_BBCURL_NO_NAME}";
 }
 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>
 #
 #-----[ OPEN ]-----
 #
 language/lang_english/lang_main.php
 #
 #-----[ FIND ]-----
 #
 $lang['bbcode_f_help'] = 'Font size: [size=x-small]small text[/size]';
 #
 #-----[ AFTER, ADD ]-----
 #
 // URL Query by www.oxpus.de edit by www.maxrev.de
 $lang['bbcurl_url'] = 'What is the URL?';
 $lang['bbcurl_name'] = 'Please add the Name of the URL.';
 $lang['bbcurl_desc'] = 'Description';
 $lang['bbcurl_no_url'] = 'You did not add a URL!';
 $lang['bbcurl_no_name'] = 'You did not add a name!';
 #
 #-----[ OPEN ]-----
 #
 language/lang_german/lang_main.php
 #
 #-----[ FIND ]-----
 #
 $lang['bbcode_f_help'] = 'Font size: [size=x-small]small text[/size]';
 #
 #-----[ AFTER, ADD ]-----
 #
 // URL Query by www.oxpus.de edit by www.maxrev.de
 $lang['bbcurl_url'] = 'Wie lautet die Internetadresse (URL)?';
 $lang['bbcurl_name'] = 'Gebe jetzt den Namen für die Internetadresse (URL) ein.';
 $lang['bbcurl_desc'] = 'Beschreibung';
 $lang['bbcurl_no_url'] = 'Du hast keine Internetadresse (URL) angegeben!';
 $lang['bbcurl_no_name'] = 'Du hast keinen Namen für die Internetadresse (URL) angegeben!';
 #
 #-----[ OPEN ]-----
 #
 posting.php
 #
 #-----[ FIND ]-----
 #
 'L_EMPTY_MESSAGE' => $lang['Empty_message'],
 #
 #-----[ AFTER, ADD ]-----
 #
 // URL Query by www.oxpus.de edit by www.maxrev.de
 'L_BBCURL_URL' => $lang['bbcurl_url'],
 'L_BBCURL_NAME' => $lang['bbcurl_name'],
 'L_BBCURL_DESC' => $lang['bbcurl_desc'],
 'L_BBCURL_NO_URL' => $lang['bbcurl_no_url'],
 'L_BBCURL_NO_NAME' => $lang['bbcurl_no_name'],
 #
 #-----[ OPEN ]-----
 #
 privmsg.php
 #
 #-----[ FIND ]-----
 #
 'L_EMPTY_MESSAGE' => $lang['Empty_message'],
 #
 #-----[ AFTER, ADD ]-----
 #
 // URL Query by www.oxpus.de edit by www.maxrev.de
 'L_BBCURL_URL' => $lang['bbcurl_url'],
 'L_BBCURL_NAME' => $lang['bbcurl_name'],
 'L_BBCURL_DESC' => $lang['bbcurl_desc'],
 'L_BBCURL_NO_URL' => $lang['bbcurl_no_url'],
 'L_BBCURL_NO_NAME' => $lang['bbcurl_no_name'],
 #
 #-----[ SAVE/CLOSE ALL FILES ]-----
 #
 # EoM
hier fing alles an
 
http://www.oxpus.de/phpBB/viewtopic.php?t=844





