Bitcoin Forum
September 12, 2024, 02:06:21 PM *
News: Latest Bitcoin Core release: 27.1 [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 64440 times)
ikydesu
Hero Member
*****
Offline Offline

Activity: 686
Merit: 500

fb.com/Bitky.shop | Bitcoin Merch!Premium Quality!


View Profile WWW
June 30, 2015, 01:01:06 PM
 #61

Nice project!

I created my own dice site at doodledice. tk, could somebody test it?

Sorry cant write the link in one it always says "suspicious link Removed"
IU would have love to see our the script look like but your website http://doodledice dot tk is not loading.

I can open the site, but when i try to login with MoneyPot, the site blocked the action.


~iki
What exactly happens if you try to login? Does it just do nothing?

Nothing, my browser blocked the action when i click "login with MoneyPot" button.
I'm used Firefox.


~iki
Toflo
Newbie
*
Offline Offline

Activity: 5
Merit: 0


View Profile
June 30, 2015, 03:52:51 PM
Last edit: June 30, 2015, 04:28:29 PM by Toflo
 #62

Nice project!

I created my own dice site at doodledice. tk, could somebody test it?

Sorry cant write the link in one it always says "suspicious link Removed"
IU would have love to see our the script look like but your website http://doodledice dot tk is not loading.

I can open the site, but when i try to login with MoneyPot, the site blocked the action.


~iki
What exactly happens if you try to login? Does it just do nothing?

Nothing, my browser blocked the action when i click "login with MoneyPot" button.
I'm used Firefox.


~iki

just tried to login with firefox, its working for me neither, the problem is the forwarding of dot tk
i switched the forwarding method, now it seems to work as its ment to!
coinableS
Legendary
*
Offline Offline

Activity: 1442
Merit: 1186



View Profile WWW
July 04, 2015, 06:40:14 PM
 #63

This is really great work by Dan and the moneypot team. I'm going to give this a whirl and see if I get a clone working myself, sounds pretty straight forward.

hamburger
Full Member
***
Offline Offline

Activity: 241
Merit: 107



View Profile WWW
July 04, 2015, 10:07:39 PM
 #64


Could one set up a dice site on a server with cpanel hosting? If so, is there any instructions somewhere to do so.

Thank you,

H

Datacoin : DHZ6H91fsDoBHbdqED3ysCJJ2TUh3zRMZD
Krugercoin : Yz3A9sTMp2yh5QLuAL8YQyvS5PdjHRHkkf
Emerge
Legendary
*
Offline Offline

Activity: 854
Merit: 1000



View Profile
July 05, 2015, 02:52:59 AM
 #65


Could one set up a dice site on a server with cpanel hosting? If so, is there any instructions somewhere to do so.

Thank you,

H


I didn't even need cPanel for MiniDice lol.
It's just React-JS and HTML
coinableS
Legendary
*
Offline Offline

Activity: 1442
Merit: 1186



View Profile WWW
July 05, 2015, 03:49:28 AM
 #66

Do I have to have SSL in order for this to work? I tried forking it to my site and the layout popped up for a second and then firefox said "this site is not trusted blah blah blah" since I don't have SSL. I added an exception and then I get a 404 error :/  My uri redirect I put it regular HTTP instead of HTTPS but it auto-redirects to HTTPS.

Emerge
Legendary
*
Offline Offline

Activity: 854
Merit: 1000



View Profile
July 05, 2015, 11:45:32 AM
 #67

Do I have to have SSL in order for this to work? I tried forking it to my site and the layout popped up for a second and then firefox said "this site is not trusted blah blah blah" since I don't have SSL. I added an exception and then I get a 404 error :/  My uri redirect I put it regular HTTP instead of HTTPS but it auto-redirects to HTTPS.

fix the app.js entry for that lol
gkv9
Legendary
*
Offline Offline

Activity: 1246
Merit: 1000


!!! RiSe aBovE ThE StoRm !!!


View Profile
July 05, 2015, 12:31:57 PM
 #68

@OP, thanks a lot for this, thanks for letting people like us to be able to manage their own dice sites, if I need your help setting this up even after all the instructions here, will you guide me through???

coinableS
Legendary
*
Offline Offline

Activity: 1442
Merit: 1186



View Profile WWW
July 05, 2015, 03:31:53 PM
 #69

Do I have to have SSL in order for this to work? I tried forking it to my site and the layout popped up for a second and then firefox said "this site is not trusted blah blah blah" since I don't have SSL. I added an exception and then I get a 404 error :/  My uri redirect I put it regular HTTP instead of HTTPS but it auto-redirects to HTTPS.

fix the app.js entry for that lol
I did change the redirect uri in the app.js but it still forces it over to https after loading causing a 404 error.

hamburger
Full Member
***
Offline Offline

Activity: 241
Merit: 107



View Profile WWW
July 05, 2015, 05:32:30 PM
 #70

Do I have to have SSL in order for this to work? I tried forking it to my site and the layout popped up for a second and then firefox said "this site is not trusted blah blah blah" since I don't have SSL. I added an exception and then I get a 404 error :/  My uri redirect I put it regular HTTP instead of HTTPS but it auto-redirects to HTTPS.

fix the app.js entry for that lol
I did change the redirect uri in the app.js but it still forces it over to https after loading causing a 404 error.

I take it that you have set redirect uri to => redirect_uri: 'http://www.your-domain.................',

Find these lines in app.js
Code:
  // - Set this to true if you want users that come to http:// to be redirected
  //   to https://
  force_https_redirect: !isRunningLocally()

Change it to

Code:
  // - Set this to true if you want users that come to http:// to be redirected
  //   to https://
  //force_https_redirect: !isRunningLocally()

Datacoin : DHZ6H91fsDoBHbdqED3ysCJJ2TUh3zRMZD
Krugercoin : Yz3A9sTMp2yh5QLuAL8YQyvS5PdjHRHkkf
coinableS
Legendary
*
Offline Offline

Activity: 1442
Merit: 1186



View Profile WWW
July 05, 2015, 05:58:57 PM
 #71

Do I have to have SSL in order for this to work? I tried forking it to my site and the layout popped up for a second and then firefox said "this site is not trusted blah blah blah" since I don't have SSL. I added an exception and then I get a 404 error :/  My uri redirect I put it regular HTTP instead of HTTPS but it auto-redirects to HTTPS.

fix the app.js entry for that lol
I did change the redirect uri in the app.js but it still forces it over to https after loading causing a 404 error.

I take it that you have set redirect uri to => redirect_uri: 'http://www.your-domain.................',

Find these lines in app.js
Code:
  // - Set this to true if you want users that come to http:// to be redirected
  //   to https://
  force_https_redirect: !isRunningLocally()

Change it to

Code:
  // - Set this to true if you want users that come to http:// to be redirected
  //   to https://
  //force_https_redirect: !isRunningLocally()

Thanks Hamburger that was it!
Mega facepalm! How did I not see that? The dev even commented it out! Sometimes the things hardest to find are right in front of my face. LOL
All is working well now that I commented out the force_https_redirect    thanks!

pescu23
Newbie
*
Offline Offline

Activity: 19
Merit: 0


View Profile WWW
July 05, 2015, 08:33:41 PM
Last edit: July 05, 2015, 09:04:01 PM by pescu23
 #72

Hi!

I've installed in https://meherdice.com and it looks great!

Where do I configure the Hedge and so??

and why do the App appears like unverified??

Thanks!
Nyau
Newbie
*
Offline Offline

Activity: 28
Merit: 0


View Profile
July 06, 2015, 07:28:57 PM
 #73

I'm trying to get up my first website with this script, but I don't have SSL and it always redirects to https://.. I found this
Code:
// - Set this to true if you want users that come to http:// to be redirected
  //   to https://
But what do I have to set to true? There's nothing like this..
owlcatz
Legendary
*
Offline Offline

Activity: 3752
Merit: 1973



View Profile WWW
July 06, 2015, 07:30:44 PM
 #74

I'm trying to get up my first website with this script, but I don't have SSL and it always redirects to https://.. I found this
Code:
// - Set this to true if you want users that come to http:// to be redirected
  //   to https://
But what do I have to set to true? There's nothing like this..

Those are comments in the code. There should be some code right underneath, like (This is just a guess)

$HTTPS == "true"

(Or something along those lines).  Good luck! Wink


Sorry, I didn't realize the source was on the OP.

This is javascript, so it's different:

Here is the default code, which is causing your redirects to https://
Code:
force_https_redirect: !isRunningLocally()

Since I'm not a Javascript person, I can only guess that removing the ! in front of that function call above will reverse the effect of what is there now - Here is the function it calls if it helps -

Code:
// :: Bool
function isRunningLocally() {
  return /^localhost/.test(window.location.host);
}

Edit - Or, you could try just replacing !isRunningLocally() with either :

true

or

"true"

and see if that fixes it.  Good luck! Smiley

.
I  C  Λ  R  U  S
██████████
██████▀▀▀██
████▀█████▀█
██████████
██████████
█████████████
░▄████
█████████████
███████████████████
███████████████████
████████░░░▀▀▀▀▀▀▀▀
████████▄▄▄████████
███████████████████
█████████████████▀
░░░██
▄▄▄█
█████
░░░██
░░░██
░░░██
░░░██
░░░
░░░
░░░
▄██████
█▌░▐██
███████▀
█████████████████████
██
███████████████████
██
███████████████████
██
████▀▀▀▀████▀▀█████
██
██░░▄▄░░██░░░█████
██
███▄▄██░░███░░█████
██
███▀▀▀▀░░▀██░░█████
██
██░░░░▄▄▄▄█▀░░▀████
██
██░░░░░░░░█░▀▀░████
██
███████████████████
██
███████████████████
██
███████████████████
█████████████████████
████
██
██
██
██

██
██
██
██
██
██
██
████
████
██
██
██
██

██
██
██
██
██
██
██
████
████
██
██
██
██

██
██
██
██
██
██
██
████
████
██









██
████
████
██









██
████
[/ce
Nyau
Newbie
*
Offline Offline

Activity: 28
Merit: 0


View Profile
July 06, 2015, 08:05:59 PM
 #75

I'm trying to get up my first website with this script, but I don't have SSL and it always redirects to https://.. I found this
Code:
// - Set this to true if you want users that come to http:// to be redirected
  //   to https://
But what do I have to set to true? There's nothing like this..

Those are comments in the code. There should be some code right underneath, like (This is just a guess)

$HTTPS == "true"

(Or something along those lines).  Good luck! Wink


Sorry, I didn't realize the source was on the OP.

This is javascript, so it's different:

Here is the default code, which is causing your redirects to https://
Code:
force_https_redirect: !isRunningLocally()

Since I'm not a Javascript person, I can only guess that removing the ! in front of that function call above will reverse the effect of what is there now - Here is the function it calls if it helps -

Code:
// :: Bool
function isRunningLocally() {
  return /^localhost/.test(window.location.host);
}

Edit - Or, you could try just replacing !isRunningLocally() with either :

true

or

"true"

and see if that fixes it.  Good luck! Smiley

I know it's just comments in the code.. I'm noob, but not that big Cheesy

BTW: I removed the ! and it's working! Thanks! Smiley
pescu23
Newbie
*
Offline Offline

Activity: 19
Merit: 0


View Profile WWW
July 06, 2015, 08:20:30 PM
 #76

I miss the TARGET to roll over or under...

Anyone can help me a bit to add this to the script?
owlcatz
Legendary
*
Offline Offline

Activity: 3752
Merit: 1973



View Profile WWW
July 06, 2015, 09:28:14 PM
 #77


I know it's just comments in the code.. I'm noob, but not that big Cheesy

BTW: I removed the ! and it's working! Thanks! Smiley

No problem, and btw, I didn't mean to imply you were a noob, I just thought it was odd that you only included the comments and not the code.

Glad you got it working. Always hated Javascript myself, it can really be messy sometimes! Wink

.
I  C  Λ  R  U  S
██████████
██████▀▀▀██
████▀█████▀█
██████████
██████████
█████████████
░▄████
█████████████
███████████████████
███████████████████
████████░░░▀▀▀▀▀▀▀▀
████████▄▄▄████████
███████████████████
█████████████████▀
░░░██
▄▄▄█
█████
░░░██
░░░██
░░░██
░░░██
░░░
░░░
░░░
▄██████
█▌░▐██
███████▀
█████████████████████
██
███████████████████
██
███████████████████
██
████▀▀▀▀████▀▀█████
██
██░░▄▄░░██░░░█████
██
███▄▄██░░███░░█████
██
███▀▀▀▀░░▀██░░█████
██
██░░░░▄▄▄▄█▀░░▀████
██
██░░░░░░░░█░▀▀░████
██
███████████████████
██
███████████████████
██
███████████████████
█████████████████████
████
██
██
██
██

██
██
██
██
██
██
██
████
████
██
██
██
██

██
██
██
██
██
██
██
████
████
██
██
██
██

██
██
██
██
██
██
██
████
████
██









██
████
████
██









██
████
[/ce
pescu23
Newbie
*
Offline Offline

Activity: 19
Merit: 0


View Profile WWW
July 07, 2015, 08:22:58 AM
 #78

Hi!!

I have a couple doubts, please it would be great if someone could HELP me!!!


- Where do I configure the Hedge and so??

- And why do the Domain appears like unverified??

- How can I add the TARGET (Under 50.5 or Over whatever) to the script?? (This is a important missing thing!)

Thanks in advance!!
pescu23
Newbie
*
Offline Offline

Activity: 19
Merit: 0


View Profile WWW
July 07, 2015, 05:07:25 PM
 #79

No one can help me here??

 Huh
hamburger
Full Member
***
Offline Offline

Activity: 241
Merit: 107



View Profile WWW
July 07, 2015, 06:11:30 PM
 #80

No one can help me here??

 Huh

If you want to change the "Chance:", find in the app.js the following line of code

Code:
  multiplier: {
    str: '2.00',
    num: 2.00,
    error: undefined
  },

Set multiplier anything between 1 and 10 - just note the profit drop if the Chance increase an it will increase if the Chance decrease.





Datacoin : DHZ6H91fsDoBHbdqED3ysCJJ2TUh3zRMZD
Krugercoin : Yz3A9sTMp2yh5QLuAL8YQyvS5PdjHRHkkf
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!