InstructionDownloadAttachment:
QR_Post_Links_v_0_0_1.zip [1017.7 KiB]
Downloaded 380 times
Copyroot/qr/*.*
> qr/*.*
Openstyles/xxxxxx/template/editor.js
findCode:
insert_text(bbopen + bbclose);
replace withCode:
if (bbopen == '[qr_link]')
{
var Error = '';
var QR = prompt('Insert a Link or Text to generate QR' , '');
if (!QR) {
Error = "You don't enter anything";
}
if (Error) {
alert("Error: "+Error);
return;
}
if (QR) {
QR = encodeURIComponent(QR);
QR = encodeURI(QR);
insert_text('[img]http://4seven.bplaced.de/phpbb3/qr/php/qr_img.php?e=L&s=4&t=J&d=' + QR + '[/img]');
}
else {
return;
}
}
else{
insert_text(bbopen + bbclose);
}
Note: replace
Code:
http://4seven.bplaced.de/phpbb3/
to your forum root folder
openstyles/prosilver/template/posting_buttons.html
find (the second find)
Code:
<!-- END custom_tags -->
after addCode:
<input type="button" class="button2" name="qr_link" value="qr_link" onclick="bbfontstyle('[qr_link]','[/qr_link]');this.form.addbbcode9999;" title="" />
openstyles/subsilver2/template/posting_buttons.html
find (the second find)
Code:
<!-- END custom_tags -->
after addCode:
<input type="button" class="btnbbcode" name="qr_link" value="qr_link" onclick="bbfontstyle('[qr_link]','[/qr_link]');this.form.addbbcode9999;" title="" />
Clear all Board-, Style- and Browser-Caches