Author

Topic: [SOLVED] support bitcoin-URIs (Read 2075 times)

hero member
Activity: 742
Merit: 500
April 04, 2012, 01:36:22 PM
#13
Sweet. Now I wonder if there is some way I can make Firefox interpret that URI as a blockexplorer link. Hmm...
I'm sure greasemonkey can.  Of course, greasemonkey could have done it even without the forum being modified.
rjk
sr. member
Activity: 448
Merit: 250
1ngldh
April 04, 2012, 09:22:50 AM
#12
Sweet. Now I wonder if there is some way I can make Firefox interpret that URI as a blockexplorer link. Hmm...
hero member
Activity: 488
Merit: 500
April 04, 2012, 04:21:38 AM
#11
Great!

Thanks theymos  Grin
legendary
Activity: 1896
Merit: 1353
April 04, 2012, 12:49:40 AM
#10
OK, they're allowed now. Plain addresses won't be auto-converted to links, and I modified Luke-Jr's regex to be less greedy about converting bitcoin: text to links.

cool, thanks!
test: bitcoin:1DRtJjBzR59Vg76mJ4vU1d1Gji9zNK4PT9
administrator
Activity: 5222
Merit: 13032
April 04, 2012, 12:36:37 AM
#9
OK, they're allowed now. Plain addresses won't be auto-converted to links, and I modified Luke-Jr's regex to be less greedy about converting bitcoin: text to links.
administrator
Activity: 5222
Merit: 13032
April 01, 2012, 03:48:48 PM
#8
I don't have a test forum set up and I don't care enough about it to set one up for this.
legendary
Activity: 1896
Merit: 1353
April 01, 2012, 03:30:50 PM
#7
Like I said in that thread, someone needs to thoroughly test the modifications.

I think I see a bug in Luke-Jr's patch, actually. This regex doesn't have a closing ~:
Code:
'~\b([1-9A-HJ-NP-Za-km-z]{26,35})\b'

theymos, I believe that you are the most capable of testing and fixing this patch.
in addition, I think that it is not a complex patch, but a fairly simple one.
the question is, do you want to do it?

administrator
Activity: 5222
Merit: 13032
April 01, 2012, 03:12:29 PM
#6
Like I said in that thread, someone needs to thoroughly test the modifications.

I think I see a bug in Luke-Jr's patch, actually. This regex doesn't have a closing ~:
Code:
'~\b([1-9A-HJ-NP-Za-km-z]{26,35})\b'
hero member
Activity: 742
Merit: 500
April 01, 2012, 01:20:01 PM
#5
I'll make sure my forum software can do this.  I didn't think about non-HTTP links.
legendary
Activity: 1896
Merit: 1353
April 01, 2012, 01:18:28 PM
#4
Cry
@Mods: Any chance to get this integrated? It's kinda shame that our forum doesn't support our own standards...


I think it all depends on theymos
hero member
Activity: 488
Merit: 500
April 01, 2012, 01:17:17 PM
#3
 Cry
@Mods: Any chance to get this integrated? It's kinda shame that our forum doesn't support our own standards...
legendary
Activity: 1896
Merit: 1353
April 01, 2012, 04:46:10 AM
#2
luke-jr wrote a patch for that: https://bitcointalksearch.org/topic/forum-pull-support-for-bitcoin-urls-14947

unfortunately, the forum admins never cared to install it
hero member
Activity: 488
Merit: 500
April 01, 2012, 04:39:56 AM
#1
Just tried to add a bitcoin-uri to my signature, but no luck. Board keeps adding "http://"-prefix as it does not recognize the bitcoin-uri.

What i want to do:
Code:
[url=bitcoin:12AxBpvmqzYbSHmvZML6Xv9TPncJgdnikm?label=Herbert]12AxBpvmqzYbSHmvZML6Xv9TPncJgdnikm[/url]

What gets stored:
Code:
[url=http://bitcoin:12AxBpvmqzYbSHmvZML6Xv9TPncJgdnikm?label=Herbert]12AxBpvmqzYbSHmvZML6Xv9TPncJgdnikm[/url]

I have no idea if this can be added easily or not...
Jump to: