Bitcoin Forum
June 23, 2024, 12:33:51 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: donation pledge counter  (Read 1741 times)
dopecoindude (OP)
Legendary
*
Offline Offline

Activity: 1512
Merit: 1000


The Dude Of DopeCoin


View Profile WWW
August 01, 2014, 04:21:40 AM
 #1

does anyone know of any widgets that keep track of donations ...

like that isn't javascript....

It is here folks. DopeCoinGOLD . The #1 Crypto-Weed Coin.
franky1
Legendary
*
Offline Offline

Activity: 4256
Merit: 4532



View Profile
August 01, 2014, 04:41:05 AM
Last edit: August 01, 2014, 05:21:16 AM by franky1
 #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:

<?php

$amount
=file_get_contents("http://www.blockchain.info/address/<insert address here>");
$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


I DO NOT TRADE OR ACT AS ESCROW ON THIS FORUM EVER.
Please do your own research & respect what is written here as both opinion & information gleaned from experience. many people replying with insults but no on-topic content substance, automatically are 'facepalmed' and yawned at
dopecoindude (OP)
Legendary
*
Offline Offline

Activity: 1512
Merit: 1000


The Dude Of DopeCoin


View Profile WWW
August 01, 2014, 04: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/<insert address here>");
$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

It is here folks. DopeCoinGOLD . The #1 Crypto-Weed Coin.
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!