Bitcoin Forum
December 08, 2016, 04:13:48 AM *
News: Latest stable version of Bitcoin Core: 0.13.1  [Torrent].
 
   Home   Help Search Donate Login Register  
Pages: [1]
  Print  
Author Topic: [SOLVED] support bitcoin-URIs  (Read 1803 times)
Herbert
Hero Member
*****
Offline Offline

Activity: 488



View Profile WWW
April 01, 2012, 09: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...

www.bitcoinmonitor.net - Free payment notification via email, newsfeed, xpmm/jabber, url callback and full API access!
Send SMS with www.txt4coins.net! No registration, pay-per-use, full API access, bulk messages - All inclusive!
1481170428
Hero Member
*
Offline Offline

Posts: 1481170428

View Profile Personal Message (Offline)

Ignore
1481170428
Reply with quote  #2

1481170428
Report to moderator
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1481170428
Hero Member
*
Offline Offline

Posts: 1481170428

View Profile Personal Message (Offline)

Ignore
1481170428
Reply with quote  #2

1481170428
Report to moderator
1481170428
Hero Member
*
Offline Offline

Posts: 1481170428

View Profile Personal Message (Offline)

Ignore
1481170428
Reply with quote  #2

1481170428
Report to moderator
1481170428
Hero Member
*
Offline Offline

Posts: 1481170428

View Profile Personal Message (Offline)

Ignore
1481170428
Reply with quote  #2

1481170428
Report to moderator
ThomasV
Legendary
*
Offline Offline

Activity: 1722



View Profile WWW
April 01, 2012, 09:46:10 AM
 #2

luke-jr wrote a patch for that: https://bitcointalk.org/index.php?topic=14947.0

unfortunately, the forum admins never cared to install it

Electrum: the convenience of a web wallet, without the risks
Herbert
Hero Member
*****
Offline Offline

Activity: 488



View Profile WWW
April 01, 2012, 06: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...

www.bitcoinmonitor.net - Free payment notification via email, newsfeed, xpmm/jabber, url callback and full API access!
Send SMS with www.txt4coins.net! No registration, pay-per-use, full API access, bulk messages - All inclusive!
ThomasV
Legendary
*
Offline Offline

Activity: 1722



View Profile WWW
April 01, 2012, 06: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

Electrum: the convenience of a web wallet, without the risks
Red Emerald
Hero Member
*****
Offline Offline

Activity: 742



View Profile WWW
April 01, 2012, 06:20:01 PM
 #5

I'll make sure my forum software can do this.  I didn't think about non-HTTP links.

theymos
Administrator
Legendary
*
Offline Offline

Activity: 2492


View Profile
April 01, 2012, 08: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'

1NXYoJ5xU91Jp83XfVMHwwTUyZFK64BoAD
ThomasV
Legendary
*
Offline Offline

Activity: 1722



View Profile WWW
April 01, 2012, 08: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?


Electrum: the convenience of a web wallet, without the risks
theymos
Administrator
Legendary
*
Offline Offline

Activity: 2492


View Profile
April 01, 2012, 08: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.

1NXYoJ5xU91Jp83XfVMHwwTUyZFK64BoAD
theymos
Administrator
Legendary
*
Offline Offline

Activity: 2492


View Profile
April 04, 2012, 05: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.

1NXYoJ5xU91Jp83XfVMHwwTUyZFK64BoAD
ThomasV
Legendary
*
Offline Offline

Activity: 1722



View Profile WWW
April 04, 2012, 05: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

Electrum: the convenience of a web wallet, without the risks
Herbert
Hero Member
*****
Offline Offline

Activity: 488



View Profile WWW
April 04, 2012, 09:21:38 AM
 #11

Great!

Thanks theymos  Grin

www.bitcoinmonitor.net - Free payment notification via email, newsfeed, xpmm/jabber, url callback and full API access!
Send SMS with www.txt4coins.net! No registration, pay-per-use, full API access, bulk messages - All inclusive!
rjk
Sr. Member
****
Offline Offline

Activity: 420


1ngldh


View Profile
April 04, 2012, 02:22:50 PM
 #12

Sweet. Now I wonder if there is some way I can make Firefox interpret that URI as a blockexplorer link. Hmm...

Mining Rig Extraordinaire - the Trenton BPX6806 18-slot PCIe backplane [PICS] Dead project is dead, all hail the coming of the mighty ASIC!
Red Emerald
Hero Member
*****
Offline Offline

Activity: 742



View Profile WWW
April 04, 2012, 06: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.

Pages: [1]
  Print  
 
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!