Bitcoin Forum
May 26, 2024, 05:57:28 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
  Home Help Search Login Register More  
  Show Posts
Pages: « 1 2 3 4 5 [6] 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 ... 109 »
101  Bitcoin / Project Development / Re: Simple donation system in PHP on: January 08, 2017, 05:09:55 PM
There's really no need for PHP, you could do it client-side with javascript and websocket. In fact I just did a blog post for blockchain.info on how to do this. https://blog.blockchain.com/2017/01/04/intro-to-bitcoin-development/

However if you really want PHP it's easy enough, but new donations won't show up LIVE unless you use something like websocket or AJAX.

Code:
<?php
$address 
"YOUR_BTC_ADDRESS";

$qrurl "http://chart.googleapis.com/chart?chs=125x125&cht=qr&chl=".$address;
$qrcode "<img src='".$qrurl."'>";
//this is just an image created using google charts API

//get JSON data on address using blockchain.info free public API
$url "https://blockchain.info/address/".$address."?format=json";
$json json_decode(file_get_contents($url), true);

?>

<html>
<body>
Bitcoin Donations Accepted
<br>
<?php echo $qrcode?>
<br>
<table>
<tr>
   <td>Received From</td>
   <td>Amount</td>
</tr>
<?php
//loop through the last 4 received donations
for($i=0;$i<5;$i++){
   
$outputs count($json["txs"][$i]["out"]);
   
//loop through each output of the tx
   
for($ii=0;$ii<$outputs;$ii++){
      
//check if output addy matches our donation addy
      
$outaddy $json["txs"][$i]["out"][$ii]["addr"];
      
$value $json["txs"][$i]["out"][$ii]["value"];
      
$value $value 100000000;
      if(
$outaddy == $address){
          echo 
"<tr><td>".$json['txs'][$i]['inputs'][0]['prev_out']['addr']."</td><td>".$value."BTC</td></tr>";
      }
   }
}
?>

</table>
</body>
</html>


Example output:
102  Bitcoin / Project Development / Re: Simple javascript function on: January 08, 2017, 01:42:34 AM

for (var i=1;i<5;i--) {
  ...
}


This is an infinite loop, not good.

Create a div that takes up the whole page with CSS and give it an overflow-wrap property of break-word

Code:
<head>
<style>
#numbers{
  width: 100%;
  height: 900px;
  background-color: #aeaeae;
  overflow-wrap: break-word;
}
</style>
</head>
<div id="numbers"></div>

Then write a simple loop that adds each new random number to the end of the string enough times to fill the page, but not infinitely.

Code:
var filler = "";
for(i=0;i<3500;i++){
  var num = Math.floor(Math.random() * 9) + 1;
  filler += num;
  }
document.getElementById("numbers").innerHTML = filler;

https://jsfiddle.net/4qwercqu/

103  Economy / Web Wallets / Re: Now that you need to request an API key from blockchain with a valid URL how... on: January 04, 2017, 03:00:02 AM
It used to be really easy to get an API key. Over the past year or so they've been tightening up on who they will give an API key. It needs to be a legitimate use case. Like you said this makes it difficult to test it out.  I recommend you try applying again and provide as much info as you can, or contact their support or twitter that you are looking to get an API key for testing their service.  My suspicion is that they are trying to prevent people from using their free service to create gambling sites, or predatory sites to steal others bitcoins.

Also there are other API services you could try or use bitcoind JSON-RPC. Good luck!
104  Economy / Speculation / Re: Permabull Party Thread on: January 01, 2017, 10:17:49 PM
Aye boys, happy new year!  Came here expecting this thread would be bumped, was not disappointed. Cool
105  Bitcoin / Development & Technical Discussion / Re: I want to create Bitcoin Wallet Website and Mobile Application. on: December 31, 2016, 08:27:59 PM
You're looking to build an app similar to blockchain.info / Block.io or a site using blockchain.info / Block.io?

Either way you should be prepared to spend some money. You're right, Block.io is only 100 addresses for free, but they have one of the easiest APIs out there.  As others suggested you can just use a library and build and broadcast transactions yourself, or you can run bitcoind and use the built-in JSON-RPC.
106  Bitcoin / Project Development / Re: What platform or script is this? on: December 31, 2016, 05:32:09 AM
Quote
My question is, if I wanted someone to build a platform like this for me, how in the heck would I describe it to them?

You could say that you are looking for a user login system that integrates bitcoin payments with it's users.
107  Bitcoin / Bitcoin Technical Support / Re: Switch to offline wallet on: December 31, 2016, 05:22:34 AM
Back up your private keys or secret seed on both a USB and paper in different places. Practice importing and exporting keys from your USB and from paper until you are comfortable that you 100% know how it works and how to recover your funds if you computer blows up tomorrow.
108  Bitcoin / Project Development / Re: Advice on supervising bitcoin addresses for custom notification on: December 31, 2016, 05:17:01 AM
Have you tried using blocktrail's web hook notifications? It's insanely easy to setup, even has a UI. Fill out a form and then if you want provide a callback URL to run a url or fire off some code on notification.

https://youtu.be/UJtszjNh0nk?t=30s

Or you could even subscribe to a websocket like blockchain.info's to monitor for transactions on the network without having to run a node. Their websocket API doesn't require an API key.

109  Bitcoin / Project Development / Re: So You Want To Use Bitcoin On Your Website? on: December 24, 2016, 05:23:37 PM
Is there any info on accepting bitcoin payments for forum subscriptions? via MyBB?
Not that I'm aware of. If you can sort out the MyBB code well enough where you can customize it along with adding a new database table for addresses where you can correlate them with the userids and how much they've paid, time since paid, etc. Should be do-able.


Owesome!!!! Bookmarked

Anyway... didn't you interested to translate into another languages? Maybe I can help to translated into Indonesian. Please let me know.

Absolutely, feel free to re-use and translate.
110  Economy / Speculation / Re: Wall Observer BTC/USD - Bitcoin price movement tracking & discussion on: December 23, 2016, 05:51:49 AM
Soon.

It's Loaded...
The legend is true.

EDIT: For those unfamiliar it is rumored that he has over 100K coins and he called the last bubble.

he also showed up in april 2014 when the bear market really started going for it.

i am still burnt from that tbh

edit: btw it's not a rumor. this is crypto we're talking about! check his signed message, i clicked through twice and found 40,000 coins: https://blockchain.info/address/19Mz2o9RDABT74SA9njZqMtJXKEzj2qUoH
Yea I remember that, I don't remember if he signed proof for 100K though?
111  Economy / Speculation / Re: Wall Observer BTC/USD - Bitcoin price movement tracking & discussion on: December 23, 2016, 05:39:49 AM
Soon.

It's Loaded...
The legend is true.

EDIT: For those unfamiliar it is rumored that he has over 100K coins and he called the last bubble.
112  Economy / Speculation / Re: Wall Observer BTC/USD - Bitcoin price movement tracking & discussion on: December 21, 2016, 05:45:28 AM
Might be time to get one of these.



Actually it's great desk decor.
I own an Eli Harvey Vagabond Bear ... extremely limited. Picked it up at a garage sale for $5 bucks.
http://www.instappraisal.com/appraisal/eli-harvey-bronze-sculpture-1926
113  Economy / Speculation / Re: Wall Observer BTC/USD - Bitcoin price movement tracking & discussion on: December 21, 2016, 05:40:48 AM


where are lambi, tarmi and the other bearfarts?  Cool

remember how they wrote "bulltards" nearly every minute in this thread as we went from 200 to 220?  Grin

Wow I forgot about lambchop ... does that troll still troll?
114  Economy / Speculation / Re: Wall Observer BTC/USD - Bitcoin price movement tracking & discussion on: December 21, 2016, 01:29:45 AM
I only come to this thread now during bull runs. I see it's still a fun place!  Cool
115  Bitcoin / Project Development / Re: So You Want To Use Bitcoin On Your Website? on: December 19, 2016, 01:02:59 AM
Thanks!

Most people wouldn't really want to make how to's unless money is involved.

Yes, I do try to provide as much free information as possible to help others and support the ecosystem. Technically there is money involved though, I do get paid by youtube for letting them play ads. I also have a book for sale. But I do believe it's very important to have this information available for free. We need more of it. To anyone out there that might be a dev -- and I know there are a bunch of good ones in bitcoin -- feel free to post your stuff on this thread and I can add it to the main post. It would be nice to have a mega thread of community created bitcoin web dev guides. Doesn't have to be a video, it can be a blog post instead.
116  Bitcoin / Project Development / Re: So You Want To Use Bitcoin On Your Website? on: December 19, 2016, 12:37:14 AM
Some new ones added recently. I'm now doing a series on Bitcoin NodeJS Development
https://www.youtube.com/playlist?list=PLhWIQKZKupCasXHue7itsB0twiIwQtDV_

Bitcoin NodeJS Part 1 - Hello World
Bitcoin NodeJS Part 2 - Express
Bitcoin NodeJS Part 3 - Create a Brain Wallet
Bitcoin NodeJS Part 4 - Callback Functions
Bitcoin NodeJS Part 5 - Build a Converter App with EJS & Bootstrap
117  Bitcoin / Project Development / Re: Learning JS for bitcoin apps on: December 18, 2016, 12:24:03 AM
If you're looking to learn basic beginner web programming and bitcoin at the same time.
I have created some introductory bitcoin web tutorials for beginners focusing on JavaScript.
http://coinables.github.io/

Here's more that are good for PHP beginners.
https://bitcointalk.org/index.php?topic=990348.0

I've also just started on a Bitcoin NodeJS series on my YouTube channel.
https://www.youtube.com/user/m1xolyd1an/videos
118  Bitcoin / Project Development / Re: [Free Script] Untitled Dice - Run your own bitcoin dice site (no server needed) on: December 03, 2016, 06:16:23 PM
It's unable to connect to the websocket, because it's not using https.

Code:
socket.io.js:2919 GET http://socket.moneypot.com/socket.io/?EIO=3&transport=polling&t=1480788720215-8 net::ERR_CONNECTION_REFUSED

Alter your script back to https, and change your host to support https (or just use cloudflare free https cert)
119  Bitcoin / Project Development / Re: [Free Script] Untitled Dice - Run your own bitcoin dice site (no server needed) on: December 03, 2016, 04:37:19 PM
my site: opdice.com
is working perfectly except for 1 part. The chat. It seems to be stuck on loading forever. I really need this to work, if anyone could help, that would be great

if you didn't change anything on the script except on the first 10 lines on the app.js it is on moneypot side's problem. try to visit other app if their chat is working

I followed a tutorial on youtube. and 0ther sites using his script have the chat working


It's moneypot, they're down currently.

Code:
{"error":"INTERNAL_ERROR"}
120  Other / Meta / Re: Stake your Bitcoin address here on: December 03, 2016, 03:47:14 AM
Really sorry for the trouble.
I believe this should now work. Thank you again.  Cheesy

Code:
-----BEGIN BITCOIN SIGNED MESSAGE-----
Today is December 3 2016 and this is neochiny signing this address for reference
-----BEGIN BITCOIN SIGNATURE-----
1N2mG4fgTCn5fUgPEKUJQEYBXAoBU1MBjd
IBvFD4Zns/BlZJRwxT3/AjXAr4HfxP1xl4RyMKqAjaUKpgQcR5dcxP3Tx93DsJjGObqgSziKBAwMOp2xJIMGPIs=
-----END BITCOIN SIGNATURE-----

Quoted, and signed message verifies to 1N2mG4fgTCn5fUgPEKUJQEYBXAoBU1MBjd
Pages: « 1 2 3 4 5 [6] 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 ... 109 »
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!