Bitcoin Forum
May 26, 2024, 11:44:31 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: « 1 2 3 4 5 6 [7] 8 9 10 11 12 13 14 »  All
  Print  
Author Topic: [Free Script] Untitled Dice - Run your own bitcoin dice site (no server needed)  (Read 64324 times)
ambitlons
Newbie
*
Offline Offline

Activity: 54
Merit: 0


View Profile
August 25, 2015, 08:43:28 AM
 #121

way to long to read..

did you even change your "clientseed & hash" that helps a lot...
dan (OP)
Newbie
*
Offline Offline

Activity: 50
Merit: 0


View Profile
August 28, 2015, 08:19:44 PM
 #122

Thanks for the support, guys.

Update: Added a custom.css file to hold your CSS customizations

One of the most common questions I get via PM is how to customize the look and feel of Untitled Dice.

So I've added a blank `custom.css` file to provide a more obvious place to do so: https://github.com/untitled-dice/untitled-dice.github.io/commit/55b7919ff0e3d909308be53f61e2d6c014fd846d

You'll need to learn a little bit of CSS to make meaningful changes to the theme, but it's a necessary skill for anyone that wants to dabble in web projects like this. Lots of good resources out there like https://developer.mozilla.org/en-US/docs/Web/CSS.

The reason I recommend isolating your customizations to a single `custom.css` file is so that it's much easier for you to merge in changes as I update Untitled Dice.

How to use a theme from https://bootswatch.com/

Also, I should point out that Untitled Dice is built with the popular Bootstrap v3 CSS framework and there are many free themes to be found for it online. For example, check out https://bootswatch.com/.

If you find a Bootstrap v3 theme that you like on bootswatch.com, you just need to make some simple modifications to Untitled Dice's `index.html` file.

For example, if you like the Darkly theme (demo: https://bootswatch.com/darkly/), click its Download button to get the URL to its CSS file (https://bootswatch.com/darkly/bootstrap.min.css) which you'll need to tell your Untitled Dice script to use.

To apply the Darkly theme to Untitled Dice, edit `index.html` from this:

Code:
<head>
  <title>Untitled Dice</title>
  <link href="node_modules/bootstrap/dist/css/bootstrap.min.css" rel="stylesheet">
  <link href="node_modules/bootstrap/dist/css/bootstrap-theme.min.css" rel="stylesheet">
  <link href="style.css" rel="stylesheet">
  <link href="custom.css" rel="stylesheet">
</head>

to this:

Code:
<head>
  <title>Untitled Dice</title>
  <link href="https://bootswatch.com/darkly/bootstrap.min.css" rel="stylesheet">    <-- the URL you got from Darkly's Download button
  <link href="style.css" rel="stylesheet">
  <link href="custom.css" rel="stylesheet">
</head>

Now your site will look like this:

https://dl.dropboxusercontent.com/spa/quq37nq1583x0lf/y149cch0.png

Though you'll likely want to make additional tweaks which is what the `custom.css` file is for.



As usual, drop me a PM if you have any questions or need any help.

I also lurk on MoneyPot's Slack (http://slack.moneypot.com/). My username on there is `dan` just like here. Smiley
coinableS
Legendary
*
Offline Offline

Activity: 1442
Merit: 1179



View Profile WWW
August 29, 2015, 12:30:40 AM
 #123

Thanks for the support, guys.

Update: Added a custom.css file to hold your CSS customizations

One of the most common questions I get via PM is how to customize the look and feel of Untitled Dice.

So I've added a blank `custom.css` file to provide a more obvious place to do so: https://github.com/untitled-dice/untitled-dice.github.io/commit/55b7919ff0e3d909308be53f61e2d6c014fd846d

You'll need to learn a little bit of CSS to make meaningful changes to the theme, but it's a necessary skill for anyone that wants to dabble in web projects like this. Lots of good resources out there like https://developer.mozilla.org/en-US/docs/Web/CSS.

The reason I recommend isolating your customizations to a single `custom.css` file is so that it's much easier for you to merge in changes as I update Untitled Dice.

How to use a theme from https://bootswatch.com/

Also, I should point out that Untitled Dice is built with the popular Bootstrap v3 CSS framework and there are many free themes to be found for it online. For example, check out https://bootswatch.com/.

If you find a Bootstrap v3 theme that you like on bootswatch.com, you just need to make some simple modifications to Untitled Dice's `index.html` file.

For example, if you like the Darkly theme (demo: https://bootswatch.com/darkly/), click its Download button to get the URL to its CSS file (https://bootswatch.com/darkly/bootstrap.min.css) which you'll need to tell your Untitled Dice script to use.

To apply the Darkly theme to Untitled Dice, edit `index.html` from this:

Code:
<head>
  <title>Untitled Dice</title>
  <link href="node_modules/bootstrap/dist/css/bootstrap.min.css" rel="stylesheet">
  <link href="node_modules/bootstrap/dist/css/bootstrap-theme.min.css" rel="stylesheet">
  <link href="style.css" rel="stylesheet">
  <link href="custom.css" rel="stylesheet">
</head>

to this:

Code:
<head>
  <title>Untitled Dice</title>
  <link href="https://bootswatch.com/darkly/bootstrap.min.css" rel="stylesheet">    <-- the URL you got from Darkly's Download button
  <link href="style.css" rel="stylesheet">
  <link href="custom.css" rel="stylesheet">
</head>

Now your site will look like this:



Though you'll likely want to make additional tweaks which is what the `custom.css` file is for.



As usual, drop me a PM if you have any questions or need any help.

I also lurk on MoneyPot's Slack (http://slack.moneypot.com/). My username on there is `dan` just like here. Smiley

Whoa Awesome addition! Previously it was not very straight forward on how to customize the style, but you could figure it out with a little playing around. This makes it a lot easier, and the ability to add bootstrap themes just takes it to another level. Keep it up!

HostFat
Staff
Legendary
*
Offline Offline

Activity: 4242
Merit: 1203


I support freedom of choice


View Profile WWW
September 18, 2015, 02:34:29 AM
 #124

Will you add the possibility to bet "zero" ?

NON DO ASSISTENZA PRIVATA - http://hostfatmind.com
elm
Legendary
*
Offline Offline

Activity: 1050
Merit: 1000


View Profile
September 18, 2015, 05:55:52 AM
 #125

Will you add the possibility to bet "zero" ?

would you mind to explain to a dice noob why to add zero? thx
ArpFlush
Hero Member
*****
Offline Offline

Activity: 623
Merit: 500


View Profile
September 22, 2015, 02:37:24 PM
 #126

Can anyone tell me what specific URL I have to put in "Redirect urls" in the Moneypot New App page? Only your website url or include the /oauth_callback

Thanks!

"Panic Selling is not an Investment Strategy"
Emerge
Legendary
*
Offline Offline

Activity: 854
Merit: 1000



View Profile
September 22, 2015, 02:38:50 PM
 #127

Can anyone tell me what specific URL I have to put in "Redirect urls" in the Moneypot New App page? Only your website url or include the /oauth_callback

Thanks!

You just need your website URL using this script. Good luck

Regards
Jm Erestain
JeWay
Hero Member
*****
Offline Offline

Activity: 952
Merit: 503


View Profile
September 22, 2015, 03:14:27 PM
 #128

Thx a lot for the script, I finally can play my own dice game for practicing Cheesy
ArpFlush
Hero Member
*****
Offline Offline

Activity: 623
Merit: 500


View Profile
September 22, 2015, 06:11:33 PM
 #129

You just need your website URL using this script. Good luck

Regards
Jm Erestain

Thanks!

"Panic Selling is not an Investment Strategy"
disamsal
Full Member
***
Offline Offline

Activity: 232
Merit: 100


View Profile
September 25, 2015, 11:10:34 AM
 #130

this is great and i have 3 free domains  Cool
jmsanto123
Member
**
Offline Offline

Activity: 114
Merit: 10


Find a Way or Make One


View Profile
October 01, 2015, 06:38:51 AM
 #131

Hi,

I installed the script in https://www.binarydice.tk . But i can't connect with moneypot.

I got the following error.

The app that directed you here did not supply a valid request.

    Reason: redirect_uri does not match any of the URIs configured by the app operator

Until the operator of the app complies with the MoneyPot API, you cannot authorize this app.

when will the moneypot verify my domain?

thankyou

Anto

AVALON-ASIC(Batch #2) Order #3xx3 made on February 18, 2013. Order status: completed(Mining Now).
Gridseed Dual Miner (01/Mar/2014) Order#17-#18 with Badman0316 | Order Status: completed(Mining Now).
BTC Address : 1DcYbWHmpyJHbnec2A6J4zNy5f1kdEtXFj
Emerge
Legendary
*
Offline Offline

Activity: 854
Merit: 1000



View Profile
October 01, 2015, 12:58:01 PM
 #132

Hi,

I installed the script in https://www.binarydice.tk . But i can't connect with moneypot.

I got the following error.

The app that directed you here did not supply a valid request.

    Reason: redirect_uri does not match any of the URIs configured by the app operator

Until the operator of the app complies with the MoneyPot API, you cannot authorize this app.

when will the moneypot verify my domain?

thankyou

Anto

You have to make your redirect uri point to the same place where you installed your untitled dice Smiley
ALXBOB
Sr. Member
****
Offline Offline

Activity: 289
Merit: 251


View Profile
October 14, 2015, 10:43:18 AM
 #133

Can i use the api for non betting provably fair results?

Tales from the crypto

One Wallet to Rule them All! http://coinomi.com/ Now with Shapeshift integration!
ADcoin.me
Hero Member
*****
Offline Offline

Activity: 795
Merit: 500


Name change soon (hopefully)


View Profile WWW
October 14, 2015, 05:49:44 PM
 #134

Sweet script, I will try it out soon Smiley Can we make users register on our own (MySQL) database? Also, it is possible to make it completely white label (basic users won't be able to see that it is related to Moneypot.com)? As we share profits, I think they should allow that Wink

Basically, it's an affiliate program, right?

Palcoin.co
ADcoin.me
Hero Member
*****
Offline Offline

Activity: 795
Merit: 500


Name change soon (hopefully)


View Profile WWW
October 14, 2015, 05:53:07 PM
 #135

Will you add the possibility to bet "zero" ?

would you mind to explain to a dice noob why to add zero? thx

Very simple Smiley Then you could bet all the time, just for fun purposes. Now you need to wait 5 minutes for 2 bits, which lets you bet 'just for fun' for a limited time, unless you're damn lucky ofcourse Tongue

Palcoin.co
elm
Legendary
*
Offline Offline

Activity: 1050
Merit: 1000


View Profile
October 15, 2015, 02:37:42 PM
 #136

Sweet script, I will try it out soon Smiley Can we make users register on our own (MySQL) database? Also, it is possible to make it completely white label (basic users won't be able to see that it is related to Moneypot.com)? As we share profits, I think they should allow that Wink

Basically, it's an affiliate program, right?


if user will not know that it is moneypot related IMO they will ask for proof  of your bank roll. how will you explain
this to users?

anyway interesting view
ADcoin.me
Hero Member
*****
Offline Offline

Activity: 795
Merit: 500


Name change soon (hopefully)


View Profile WWW
October 15, 2015, 09:11:23 PM
 #137

Well, it is already possible to use your own bankroll, but if you want to use theirs (less profit for you though) why wouldn't it be possible to advertise with theirs as if it is yours. There is no harm right? It'll still be 100% solid.

Palcoin.co
smeagol
Legendary
*
Offline Offline

Activity: 1008
Merit: 1005



View Profile
October 24, 2015, 02:22:17 AM
 #138

Just wanted to say thank you for this script.  In addition to making me a few bits, it's inspired me to learn React, too.
Misiak4
Member
**
Offline Offline

Activity: 183
Merit: 12

ImmVRse | Disrupting the VR industry


View Profile
October 26, 2015, 02:29:06 AM
 #139

Nice share OP! I thought long time ago about starting my own dice game but I was worried about bankroll  Grin

Now using someones other bankroll even your server-less implementation is easy setup! Going to test it soon.

Thank you.

dan (OP)
Newbie
*
Offline Offline

Activity: 50
Merit: 0


View Profile
October 27, 2015, 08:30:46 PM
 #140

Sweet script, I will try it out soon Smiley Can we make users register on our own (MySQL) database? Also, it is possible to make it completely white label (basic users won't be able to see that it is related to Moneypot.com)? As we share profits, I think they should allow that Wink

Basically, it's an affiliate program, right?


> Can we make users register on our own (MySQL) database?

The MoneyPot login integration is pretty much standard OAuth: you redirect the user to MoneyPot, and MoneyPot redirects the user back to you with an `access_token`. You can then query MoneyPot's API (https://www.moneypot.com/api-docs#v1-public-get-token-info) to get that user's underlying `auth_id` (you can think of it as a unique user ID) and save it in your database for that user so you that can link users to their MoneyPot account in your system.

So, yes, you can have your own authentication/user system and save the aforementioned MoneyPot `auth_id` in your users table. Now a user should be able to "Login with MoneyPot" or enter their username/password on your site to log into their account.

> Also, it is possible to make it completely white label (basic users won't be able to see that it is related to Moneypot.com)?

Yes, you can do this and hide the fact that your site uses MoneyPot all together, but it would require a lot of custom programming.

Basically, you would have to run the casino on your own server (unlike Untitled-Dice which runs on the client aka browser). Users deposit Bitcoin into your own system, and you re-deposit it into your own MoneyPot account. When a user bets on your casino, you basically make the bet through your own MoneyPot account and then use the outcome response to update the user's balance in your own system.

Obviously, any features you don't use MoneyPot for are features you're going to build yourself, but the above scheme illustrates how you can use MoneyPot solely for its bankroll and its betting API if that's what you want to do.

> Basically, it's an affiliate program, right?

Yeah, you can think of the MoneyPot bet API as a system that simply rewards you for sending it bets that its investors are willing to take.
Pages: « 1 2 3 4 5 6 [7] 8 9 10 11 12 13 14 »  All
  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!