inherit
193550
0
Jun 20, 2015 11:53:38 GMT -8
shazaam2005
353
April 2013
shazaam2005
|
Post by shazaam2005 on Nov 2, 2013 9:25:11 GMT -8
Did this ever get programmed or made? Is it available? Yes, it has been programmed, but no, it's not available just yet. There is one more thing I'd like to add to finish it off. Can the Monetary System plugin be tied in with this plugin? Using virtual money to play slots and losing/winning virtual money like a real slot machine. That would require manipulating the Monetary System plugin, and writing data to the key used by that code. While that should be possible, I'd be unwilling mess around with the data stored by another persons plugin, and dissecting and rewriting parts of a code I'd just finished wouldn't be high on my list either. Ok thanks for getting back to me... excited to see your work!
|
|
inherit
193550
0
Jun 20, 2015 11:53:38 GMT -8
shazaam2005
353
April 2013
shazaam2005
|
Post by shazaam2005 on Nov 5, 2013 7:14:36 GMT -8
Did this ever get programmed or made? Is it available? Yes, it has been programmed, but no, it's not available just yet. There is one more thing I'd like to add to finish it off. Can the Monetary System plugin be tied in with this plugin? Using virtual money to play slots and losing/winning virtual money like a real slot machine. That would require manipulating the Monetary System plugin, and writing data to the key used by that code. While that should be possible, I'd be unwilling mess around with the data stored by another persons plugin, and dissecting and rewriting parts of a code I'd just finished wouldn't be high on my list either. PS--- Is this going to be programmed where a person can only do it every X hours or once a day? (can't wait for the release)
|
|
#00AF33
Official Code Helper
19529
0
1
Nov 19, 2012 14:18:28 GMT -8
Todge
**
17,324
January 2004
todge
|
Post by Todge on Nov 5, 2013 9:50:11 GMT -8
Yep, that is one of the options. To allow any member x amount of goes every x amount of hours. There's also an option to make the win ratio higher if need be.
|
|
inherit
193550
0
Jun 20, 2015 11:53:38 GMT -8
shazaam2005
353
April 2013
shazaam2005
|
Post by shazaam2005 on Nov 5, 2013 20:33:33 GMT -8
Yep, that is one of the options. To allow any member x amount of goes every x amount of hours. There's also an option to make the win ratio higher if need be. Any idea on when it might possibly be ready? ...excited
|
|
#00AF33
Official Code Helper
19529
0
1
Nov 19, 2012 14:18:28 GMT -8
Todge
**
17,324
January 2004
todge
|
Post by Todge on Nov 6, 2013 10:07:44 GMT -8
Soon.. There are just a couple of issues to sort out.
Keep your fingers crossed for this weekend (That is not a promise)..
|
|
#00AF33
Official Code Helper
19529
0
1
Nov 19, 2012 14:18:28 GMT -8
Todge
**
17,324
January 2004
todge
|
Post by Todge on Nov 9, 2013 10:27:57 GMT -8
Right.. I have something I am happy with.. Try this.The plugin, as is, will display the slot machine on the home page, this can be changed with a small code in your main and board headers.. To remove it from the home page, put this in the Main Header.. <style type="text/css"> #slot_machine { display: none; } </style> To add the slot machine in any of your boards, put this in either the Board Header(s), or in the Global Header to have it appear everywhere. <center> <div id="slot_machine" style="width: 110px; height: 150px; background-repeat: no-repeat;"> <img id="pullit" src="#" border="0"> <img id="slot0" src="#" border="0"> <img id="slot1" src="#" border="0"> <img id="slot2" src="#" border="0"> </div> </center> <script type="text/javascript"> <!-- document.getElementById('pullit').src = proboards.plugin._plugins["one_arm_bandit"].images.onearmbandit2; document.getElementById('pullit').parentNode.style.backgroundImage = 'url('+proboards.plugin._plugins["one_arm_bandit"].images.onearmbandit1+')'; // --> </script> Hopefully all the settings make sense, but if not, feel free to ask. Assuming everything works as expected, I'll submit it to the library, so please do some testing. As this code uses sessionStorage, it will not work correctly in IE7 or earlier.
|
|
inherit
198412
0
May 26, 2022 8:09:32 GMT -8
Timebomb007
450
August 2013
timebomb007
|
Post by Timebomb007 on Nov 9, 2013 10:45:03 GMT -8
I don't think the hide is working properly. I have it set to play 10 times in 1 hour. After the 10 times, the slot machine still shows on refresh. Shouldn't it only show up again once the 1 hour is up?
|
|
#00AF33
Official Code Helper
19529
0
1
Nov 19, 2012 14:18:28 GMT -8
Todge
**
17,324
January 2004
todge
|
Post by Todge on Nov 9, 2013 13:33:54 GMT -8
Nope, I made it hide when the member tries to play it.
Would you rather it stay hidden until the time has elapsed?
|
|
inherit
198412
0
May 26, 2022 8:09:32 GMT -8
Timebomb007
450
August 2013
timebomb007
|
Post by Timebomb007 on Nov 9, 2013 16:50:01 GMT -8
Nope, I made it hide when the member tries to play it. Would you rather it stay hidden until the time has elapsed? Yes, that's my preference. What do the numbers refer to with the "I won at #############" in the PM?
|
|
inherit
193550
0
Jun 20, 2015 11:53:38 GMT -8
shazaam2005
353
April 2013
shazaam2005
|
Post by shazaam2005 on Nov 9, 2013 17:20:09 GMT -8
Right.. I have something I am happy with.. Try this.The plugin, as is, will display the slot machine on the home page, this can be changed with a small code in your global and board headers.. To remove it from the home page, put this in the Main Header.. <style type="text/css"> #slot_machine { display: none; } </style> To add the slot machine in any of your boards, put this in either the Board Header(s), or in the Global Header to have it appear everywhere. <center> <div id="slot_machine" style="width: 110px; height: 150px; background-repeat: no-repeat;"> <img id="pullit" src="#" border="0"> <img id="slot0" src="#" border="0"> <img id="slot1" src="#" border="0"> <img id="slot2" src="#" border="0"> </div> </center> <script type="text/javascript"> <!-- document.getElementById('pullit').src = proboards.plugin._plugins["one_arm_bandit"].images.onearmbandit2; document.getElementById('pullit').parentNode.style.backgroundImage = 'url('+proboards.plugin._plugins["one_arm_bandit"].images.onearmbandit1+')'; // --> </script> Hopefully all the settings make sense, but if not, feel free to ask. Assuming everything works as expected, I'll submit it to the library, so please do some testing. As this code uses sessionStorage, it will not work correctly in IE7 or earlier. Well, shucks... I tried copy and pasting it, and got nothing but empty blocks.. I'm using chrome... and put it in my global header... Any ideas?
|
|
#00AF33
Official Code Helper
19529
0
1
Nov 19, 2012 14:18:28 GMT -8
Todge
**
17,324
January 2004
todge
|
Post by Todge on Nov 9, 2013 17:25:00 GMT -8
The numbers are the js timecode of the time when the member won. I added that as a way to stop members trying to fake a winning PM, as they'd need to work out the correct timecode to add the the PM. The admin should not see that, but rather a generic message.
I'm now testing the updated version. All being well I'll give you the updated plugin in a few.
|
|
#00AF33
Official Code Helper
19529
0
1
Nov 19, 2012 14:18:28 GMT -8
Todge
**
17,324
January 2004
todge
|
Post by Todge on Nov 9, 2013 17:40:30 GMT -8
Right.. I have something I am happy with.. Try this.The plugin, as is, will display the slot machine on the home page, this can be changed with a small code in your global and board headers.. To remove it from the home page, put this in the Main Header.. <style type="text/css"> #slot_machine { display: none; } </style> To add the slot machine in any of your boards, put this in either the Board Header(s), or in the Global Header to have it appear everywhere. <center> <div id="slot_machine" style="width: 110px; height: 150px; background-repeat: no-repeat;"> <img id="pullit" src="#" border="0"> <img id="slot0" src="#" border="0"> <img id="slot1" src="#" border="0"> <img id="slot2" src="#" border="0"> </div> </center> <script type="text/javascript"> <!-- document.getElementById('pullit').src = proboards.plugin._plugins["one_arm_bandit"].images.onearmbandit2; document.getElementById('pullit').parentNode.style.backgroundImage = 'url('+proboards.plugin._plugins["one_arm_bandit"].images.onearmbandit1+')'; // --> </script> Hopefully all the settings make sense, but if not, feel free to ask. Assuming everything works as expected, I'll submit it to the library, so please do some testing. As this code uses sessionStorage, it will not work correctly in IE7 or earlier. Well, shucks... I tried copy and pasting it, and got nothing but empty blocks.. I'm using chrome... and put it in my global header... Any ideas? I don't use Chrome, so I can't test it in that browser, but it works for me in IE, FF, Safari and Opera, so I'd be suprised if it failed in Chrome. Can you test it in another browser and see if all is well?
|
|
#00AF33
Official Code Helper
19529
0
1
Nov 19, 2012 14:18:28 GMT -8
Todge
**
17,324
January 2004
todge
|
Post by Todge on Nov 9, 2013 17:53:37 GMT -8
Timebomb007, can you please try the version 1.0.1. You can grab it from the same link above.
|
|
inherit
193550
0
Jun 20, 2015 11:53:38 GMT -8
shazaam2005
353
April 2013
shazaam2005
|
Post by shazaam2005 on Nov 9, 2013 18:11:32 GMT -8
Well, shucks... I tried copy and pasting it, and got nothing but empty blocks.. I'm using chrome... and put it in my global header... Any ideas? I don't use Chrome, so I can't test it in that browser, but it works for me in IE, FF, Safari and Opera, so I'd be suprised if it failed in Chrome. Can you test it in another browser and see if all is well? Nope, none of my browsers are working with it... my forum is www.friendsofgaming.com, and just to be sure, you said put it in the GLOBAL HEADER, correct?
|
|
#00AF33
Official Code Helper
19529
0
1
Nov 19, 2012 14:18:28 GMT -8
Todge
**
17,324
January 2004
todge
|
Post by Todge on Nov 9, 2013 18:18:26 GMT -8
You only need to add any of the code to your headers if you do not want the slot machine on the home page, or if you want it displayed on other pages.
Do NOT add this code to the Global Header, as it will remove the slot machine on all pages, regardless of where it is active.
<style type="text/css"> #slot_machine { display: none; } </style>
|
|