Author

Topic: donation pledge counter (Read 1753 times)

legendary
Activity: 1512
Merit: 1000
The Dude Of DopeCoin
August 01, 2014, 12:48:33 AM
#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: 4270
Merit: 4534
August 01, 2014, 12:41:05 AM
#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
August 01, 2014, 12:21:40 AM
#1
does anyone know of any widgets that keep track of donations ...

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