• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

QR Codes

mfowler70

Newbie
Have you guys thought about adding BBCODE to assist users in creating QR Codes for use on the forums? It should be fairly easy to do and would be pretty cool to use from our android phones.

Title: QRcode Barcode Generator
Tag: QR
Replacement:
Code:
<img src="http://qrcode.kaywa.com/img.php?s=5&d=http%3A%2F%2F{param}" alt="qrcode"  />
Example:
Code:
[QR]www.androidforums.com[/QR]
Note: Due to the way the generator is setup, I don't think it'll work if http:// is included in the link. Should also be easy to alter the replacement code for use with text.
 
I was just going to make a post about this. You could also use Googles free QR generator.

Here's an example.
Code:
http://chart.apis.google.com/chart?cht=qr&chs=350x350&chl=market%3A%2F%2Fsearch%3Fq%3Dpname%3A{param}
You would just need to put your package name. This would be perfect for developers.
 
The first code I included was for market searches.

We could make this the BB code
Code:
http://chart.apis.google.com/chart?cht=qr&chs=350x350&chl={param}
This would allow users to create links.

And we can also make it so that new posts have an option to include the package name (i.e. link to market). That way developers just add their package name in their post so we can instantly find them in the market.
 
How's this?

For URLs etc:
[qr]androidforums.com[/qr]

HTML:
[qr]androidforums.com[/qr]

--------------------------

Market Searches:
[market]barcode[/market]
HTML:
[market]barcode[/market]

(Seems to only work with one word searches)

-------------------------

Ouch:
[qr]Just testing
thisismy@email.com
mywebsite.com
I like cake.[/qr]

(Well, that one didn't turn out well.)

.... after the (possible) 4.0 upgrade in a couple months I'll redo the wysiwyg editor buttons to include these things. Also, try to combine these two into one with an option for market or not.
 
...

Market Searches:
[market]barcode[/market]
HTML:
[market]barcode[/market]

(Seems to only work with one word searches)
...

Try putting + between each word. Like market://search?q=:barcode+scanner
Haven't tried it, just guessing...

edit: ok I just tested it and worked for me. It returned 25 results. Also seems you do not need the : that was in it originally so just market://search?q=barcode+scanner
 
Back
Top Bottom