Snippet-Title: QR Post Links
Snippet-Version: 0.0.1
Snippet-Autor: 4seven
Credits: Y.Swetake for QRcode v. 0.50i
Request by: hinix
Request Topic: http://www.phpbb.com/community/viewtopi ... #p12667325
Description: This Mod shows QR Links in Posts
phpBB-Version: phpBB 3.0.x
phpBB-Sprachen: mutlilingual
phpBB-Styles: prosilver, subsilver2
Features: This Mod shows QR Links in Posts, so u can scan this directly to your Mobile Devices
Requirements: GD 2+ / PHP 4/5
Topic Demo: http://4seven.bplaced.net/phpbb3/viewtopic.php?f=7&t=371
Posting Demo: http://4seven.bplaced.net/phpbb3/posting.ph ... &f=7&t=371 ( click on [qr_link] )
4seven wrote:
means:
- Code: Select all
http://www.phpbb.com/community/viewtopic.php?f=72&t=2079085&p=12796961#p12796961
copy img-adress or download img and enter here to check: http://zxing.org/w/decode.jspx
Instruction
download package
copy
root/qr/*.* > qr/*.*
open
styles/xxxxxx/template/editor.js
find
- Code: Select all
// Open tag
insert_text(bbopen + bbclose);
replace with
- Code: Select all
// qr_link bbcode
if (bbopen == '[qr_link]')
{
var Error = '';
var QR = prompt('Insert a Link to generate QR (with http://)' , '');
if (!QR) {
Error = "U don't enter anything";
}
if (Error) {
alert("Error: "+Error);
return;
}
if (QR) {
QR = escape(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{
// Open tag
insert_text(bbopen + bbclose);}
open
styles/prosilver/template/posting_buttons.html
find
- Code: Select all
<!-- END custom_tags -->
after add
- Code: Select all
<input type="button" class="button2" name="qr_link" value="qr_link" onclick="bbfontstyle('[qr_link]','[/qr_link]');this.form.addbbcode9999;" title="Click to start Wizard" />
open
styles/subsilver2/template/posting_buttons.html
find
- Code: Select all
<!-- END custom_tags -->
after add
- Code: Select all
<input type="button" class="btnbbcode" name="qr_link" value="qr_link" onclick="bbfontstyle('[qr_link]','[/qr_link]');this.form.addbbcode9999;" title="Click to start Wizard" />
Clear all Board-, Style- and Browser-Caches