BBCodeBox3

prosilver | subsilver2

Willkommen und Gute Nacht, Guest  Beim nächsten Piep ist es zwischen 1:00 und 2:00 Uhr

It is currently Sun 19. May 2024, 01:20

All times are UTC + 1 hour [ DST ]




Post new topic This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: [Snippet] QR Post Links
PostPosted: Sun 30. May 2010, 20:31 
Administrator
User avatar

Posts: 427

Last 3 Topics:
Tabmenu Test
[Snippet] Avatar Ev...
[DEV] Zero and X-P...

Joined:
Sun 13. Jan 2008, 23:44

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:
Image

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


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
cron
POWERED_BY
[ Time : 0.016s | 23 Queries | GZIP : Off | Board-Version: 3.0.7 PL1 ]