BBCodeBox3 http://4seven.bplaced.net/forum/2/ |
|
[Snippet] QR Post Links http://4seven.bplaced.net/forum/2/viewtopic.php?f=21&t=512 |
Page 1 of 1 |
Author: | 4seven [ Sun 30. May 2010, 20:31 ] |
Post subject: | [Snippet] QR Post Links |
QR Post Links 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: 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 Attachment: copy root/qr/*.* > qr/*.* open styles/xxxxxx/template/editor.js find Code: // Open tag insert_text(bbopen + bbclose); replace with Code: // 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);} Quote: Note: replace Code: http://4seven.bplaced.de/phpbb3/ to your forum root folder open styles/prosilver/template/posting_buttons.html find Code: <!-- END custom_tags --> after add Code: <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: <!-- END custom_tags --> after add Code: <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 |
Page 1 of 1 | All times are UTC + 1 hour [ DST ] |
Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |