Pop Up for [url]'ed [img]With this Snippet u can easy add a linked Image into the Postbox via PopUp
InstructionMake a fake-bbcode
Quote:
BBCode usage
Code:
[img_url][/img_url]
HTML replacement
Code:
Help line text
Click to start the Wizard
Display on posting page
yes
------------------
openstyles/xxxxxx/template/editor.js
findCode:
insert_text(bbopen + bbclose);
replace withCode:
if (bbopen == '[img_url]')
{
var Error = '';
var URLL = prompt('Address of URL' , '');
if (!URLL) {
Error = "You haven't enter an URL Address";
}
if (Error) {
alert("Error: "+Error);
return;
}
var IMGURL = prompt('Adress of the Image' , '');
if (!IMGURL) {
Error = "You haven't enter an Image Address";
}
if (Error) {
alert("Error: "+Error);
return;
}
if (URLL + IMGURL) {
insert_text('[url=' + URLL + '][img]' + IMGURL + '[/img][/url]');
}
else {
return;
}
}
else{
insert_text(bbopen + bbclose);}
Clear all Board-, Template-, Style- and Browser-Caches