Author

Topic: donation pledge counter (Read 1759 times)

legendary
Activity: 1512
Merit: 1000
The Dude Of DopeCoin
July 31, 2014, 11:48:33 PM
#3
Quote
if you dont like javascript, what language are you looking for?
HTML ? lol   coinwidget.com  doesn't work in wordpress.com :/

Quote
a simple way in php is to just echo the amount every time a person visits your page

Code:
$amount=file_get_contents("http://www.blockchain.info/address/");
$amount=$amount / 100;
echo "amount: " .  $amount . " bits";


Totally forgot about this!  I'll give this a go and let you know! thanks.

Quote
the code is not the hard part. the hard part is finding a service that doesnt mind being bombarded with balance requests per visitor... well thats if your website got that popular Cheesy

Haha  so true. I have a feeling this idea will be pretty popular Wink
legendary
Activity: 4410
Merit: 4766
July 31, 2014, 11:41:05 PM
#2
if you dont like javascript, what language are you looking for?

a simple way in php is to just echo the amount every time a person visits your page

Code:


$amount
=file_get_contents("http://www.blockchain.info/address/");
$amount=$amount 100;
echo 
"amount: " .  $amount " bits";

?>



save it as filename.php

oh and the blockchain.info address shouldend up looking like:
http://www.blockchain.info/address/1blahblahblahblahblah
not
http://www.blockchain.info/address/<1blablablablabla>

as i have seen someone before leave the <> in the code as they thought it was needed.

the code is not the hard part. the hard part is finding a service that doesnt mind being bombarded with balance requests per visitor... well thats if your website got that popular Cheesy

legendary
Activity: 1512
Merit: 1000
The Dude Of DopeCoin
July 31, 2014, 11:21:40 PM
#1
does anyone know of any widgets that keep track of donations ...

like that isn't javascript....
Jump to: