Area51 @ 4seven.de

Mod Base and Testarea
It is currently 23 Feb 2025, 18:46

All times are UTC + 1 hour




Post new topic TOPIC_LOCKED  [ 3 posts ] 
Author Message
PostPosted: 31 Oct 2011, 02:00 
Offline
Tiptop
Tiptop
User avatar

Joined: 11 Feb 2008, 11:49
Posts: 241
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:
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


Top
 Profile  
 
PostPosted: 31 Oct 2011, 02:01 
Offline
Tiptop
Tiptop
User avatar

Joined: 11 Feb 2008, 11:49
Posts: 241
Instruction

Download
Attachment:
QR_Post_Links_v_0_0_1.zip [1017.7 KiB]
Downloaded 382 times

Copy

root/qr/*.* > qr/*.*

Open

styles/xxxxxx/template/editor.js

find

Code:
       // Open tag
       insert_text(bbopen + bbclose);


replace with

Code:
            // 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:
http://4seven.bplaced.de/phpbb3/


to your forum root folder

open

styles/prosilver/template/posting_buttons.html

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


open

styles/subsilver2/template/posting_buttons.html

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


Clear all Board-, Style- and Browser-Caches

_________________
Mod-Bot / Service-Team


Top
 Profile  
 
PostPosted: 04 Sep 2012, 21:25 
Offline
Tiptop
Tiptop
User avatar

Joined: 20 Jun 2012, 16:55
Posts: 318
Finding bug in instruction. Reporting here by Rogal

To fix, find in instruction

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


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic TOPIC_LOCKED  [ 3 posts ] 

All times are UTC + 1 hour


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:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group
[ Time : 0.017s | 24 Queries | GZIP : Off ]