None of my mods, wherever you find them, are abandoned.
All of them are in developement, even if i am not active on phpbb.com.

[DEV] QR Post Links v.0.0.1 (update)

[DEV] 3.0.* Mod Base

[DEV] QR Post Links v.0.0.1 (update)

Postby Sekuro » 31 Oct 2011, 02:00

QR Post Links

Mod-Title: QR Post Links
Mod-Version: 0.0.1
Mod-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-Language: multilingual
phpBB-Styles: prosilver, subsilver2

Features:
- This mod shows QR Links in posts, so u can scan this to your Mobile Devices
- Add Download-Links for Apps and more usefull things
- Post Short Messages with full UTF8-Support

Requirements: GD 2+ / PHP 4/5

Topic Demo: http://4seven.bplaced.net/forum/media/viewto ... ?f=7&t=371
Posting Demo: http://4seven.bplaced.net/forum/media/postin ... &f=7&t=371 ( click on [qr_link] )

4seven wrote:
Image

means:
Code: Select all
http://www.phpbb.com/community/viewtopic.php?f=72&t=2079085&p=12796961#p12796961


copy img-adress or download img 2 check it out: http://zxing.org/w/decode.jspx


Download and Instruction: viewtopic.php?p=185#p185
Mod-Bot / Service-Team
User avatar
Sekuro

Tiptop

Tiptop
 
Posts: 241
Joined: 11 Feb 2008, 11:49
 
Resolution: 1440x900



Re: [DEV] QR Post Links v.0.0.1

Postby Sekuro » 31 Oct 2011, 02:01

Instruction

Download
QR_Post_Links_v_0_0_1.zip
(1017.7 KiB) Downloaded 279 times

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
            // Open tag
            // insert_text(bbopen + bbclose);
            // QR Post Links v.0.0.1 / 4seven / 2010
            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);
            }    
            
// QR Post Links v.0.0.1 / 4seven / 2010      




Note:

replace

Code: Select all
http://4seven.bplaced.de/phpbb3/


to your forum root folder

open

styles/prosilver/template/posting_buttons.html

find (the second 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="" />


open

styles/subsilver2/template/posting_buttons.html

find (the second 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="" />


Clear all Board-, Style- and Browser-Caches
Mod-Bot / Service-Team
User avatar
Sekuro

Tiptop

Tiptop
 
Posts: 241
Joined: 11 Feb 2008, 11:49
 
Resolution: 1440x900



Re: [DEV] QR Post Links v.0.0.1

Postby 4seven » 04 Sep 2012, 21:25

Finding bug in instruction. Reporting here by Rogal

To fix, find in instruction

Code: Select all
insert_text('[img]http://4seven.bplaced.de/phpbb3/qr/php/qr_img.php?e=L&s=4&t=J&d='%20+%20QR%20+%20'[/img]'); 


and replace with

Code: Select all
insert_text('[img]http://4seven.bplaced.de/phpbb3/qr/php/qr_img.php?e=L&s=4&t=J&d=' + QR + '[/img]'); 


Instruction is corrected
Current Mods | Mod Base | php(BB) programming | No help via PM
User avatar
4seven

Tiptop

Tiptop
 
Posts: 318
Joined: 20 Jun 2012, 16:55
 
Resolution: 1920x1080



Return to phpbb 3.0.* St@ff

Who is online

Users browsing this forum: No registered users and 1 guest

cron