vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Major Additions - Casino (w/ 10 player poker) (https://vborg.vbsupport.ru/showthread.php?t=159151)

Andrew Green 12-04-2007 07:10 PM

Quote:

Originally Posted by daydie (Post 1394963)
:( i need help with this, and i duno what the prob is


I'll have a look at your site when I get a chance, might be tonight but it depends on what time I get home...

Quote:

Originally Posted by thuffner (Post 1394977)
How do I run the cron job?

Thanks so much! :)

Admincp -> Scheduled tasks.

It will run itself if you leave it, but until it runs nothing happens.

Erika 12-04-2007 08:42 PM

My lottery stopped working? Any ideas...

dodgeboard.com 12-04-2007 10:13 PM

Erika,

Try running your lottery draws manually:
  1. Login to Admincp
  2. Go to Scheduled tasks, Scheduled task Manager
  3. Find Casino Lottery Draw, click run now.

Check to see if your lottery is working now.

If it is still not working, or you get this error (or something like it) when running the task:

Quote:

Fatal error: Call to a member function on a non-object in /****/****/includes/cron/casino_lotto.php on line 127
Then you need to apply the fix.

Open the casino_lotto.php file (with Wordpad) that you uploaded (or still have on your PC) and make this change:

Find this

Code:

        $settings = $db->query_read($query);
        $setting = $db->fetch_array($settings);

and change to this:
Code:

        $settings = $vbulletin->db->query_read($query);
        $setting = $vbulletin->db->fetch_array($settings);

After correcting the file, UPLOAD THE NEWLY CORRECTED FILE back to the Forums directory (overwriting the old one).

Then go back into the admincp and rerun the Casino Lottery Draw Scheduled task (steps 1-3 above).

That should fix it.

Andrew said he is going to fix it in the next release. Holler if you need help.

EDIT: added modified casino_lotto.php file

Hornstar 12-05-2007 12:05 AM

Quote:

Originally Posted by Andrew Green (Post 1394266)
Click the button again :)

I now have these 2 errors on the page:

Quote:

More than one INDEX key was created for column `settingid`

PRIMARY and INDEX keys should not both be set for column `settingid`
Told you it would have been best for me to leave phpmyadmin alone lol

I think I am making things worse, any idea how to fix the problem?

SVTCobraLTD 12-05-2007 12:22 AM

Quote:

Warning: Invalid argument supplied for foreach() in /includes/class_postbit.php(296) : eval()'d code on line 156
How do I get rid of this in the announcement?

SVT

Robert Paulson 12-05-2007 12:24 AM

Can someone post a link to a Forum that is using the Casino.

I installed it last night, and I'm seeing the cash in different users account, but can't figure out how to open the actual games. :confused:

Yes, I'm new.

thuffner 12-05-2007 01:15 AM

Quote:

Originally Posted by dodgeboard.com (Post 1395110)
Erika,

Try running your lottery draws manually:
  1. Login to Admincp
  2. Go to Scheduled tasks, Scheduled task Manager
  3. Find Casino Lottery Draw, click run now.

Check to see if your lottery is working now.

If it is still not working, or you get this error (or something like it) when running the task:



Then you need to apply the fix.

Open the casino.php file (with Wordpad) that you uploaded (or still have on your PC) and make this change:

Find this (almost half way down):

Code:

        $settings = $db->query_read($query);
        $setting = $db->fetch_array($settings);

and change to this:
Code:

        $settings = $vbulletin->db->query_read($query);
        $setting = $vbulletin->db->fetch_array($settings);

After correcting the file, UPLOAD THE NEWLY CORRECTED FILE back to the Forums directory (overwriting the old one).

Then go back into the admincp and rerun the Casino Lottery Draw Scheduled task (steps 1-3 above).

That should fix it.

Andrew said he is going to fix it in the next release. Holler if you need help.

Still didn't work. When will the files be updated with the new code?

I try to run the cron and I get a blank screen:


Casino Lottery Draw


...and nothing.

Twilkey 12-05-2007 01:25 AM

Quote:

Originally Posted by Robert Paulson (Post 1395189)
Can someone post a link to a Forum that is using the Casino.

I installed it last night, and I'm seeing the cash in different users account, but can't figure out how to open the actual games. :confused:

Yes, I'm new.

http://your_site_url/casino.php


There is instructions in the readme on how to add a link to the navbar.

Robert Paulson 12-05-2007 02:04 AM

Quote:

Originally Posted by Twilkey SRT (Post 1395211)
http://your_site_url/casino.php


There is instructions in the readme on how to add a link to the navbar.

:o thanks, dude!

Andrew Green 12-05-2007 03:34 AM

Quote:

Originally Posted by thuffner (Post 1395208)
Still didn't work. When will the files be updated with the new code?


Probably this weekend.

dodgeboard.com 12-05-2007 03:49 AM

Quote:

Originally Posted by thuffner (Post 1395208)
Still didn't work. When will the files be updated with the new code?

I try to run the cron and I get a blank screen:


Casino Lottery Draw


...and nothing.

Oh shoot.... I made a mistake in my directions. The first time I mentioned the file casino_lotto.php, the second time I left out the "_lotto" MY BAD!! The file you have to edit is casino_lotto.php

I've attatched the corrected files:

casino.php (original)
casino_lotto.php (modified)

Upload these to your forums directory and overwrite the old ones.

Erika 12-05-2007 08:33 AM

Quote:

Originally Posted by dodgeboard.com (Post 1395110)
Erika,

Try running your lottery draws manually:

I applied the fix - thanks SO MUCH for your help :)

thuffner 12-05-2007 11:20 AM

Quote:

Originally Posted by dodgeboard.com (Post 1395263)
Oh shoot.... I made a mistake in my directions. The first time I mentioned the file casino_lotto.php, the second time I left out the "_lotto" MY BAD!! The file you have to edit is casino_lotto.php

I've attatched the corrected files:

casino.php (original)
casino_lotto.php (modified)

Upload these to your forums directory and overwrite the old ones.

Thanks! Works fine now after running the cron!!!

Mecho 12-05-2007 04:17 PM

is there anyway to play with a Real cash ??

dodgeboard.com 12-05-2007 04:52 PM

Not unless you are in a state that allows gambling, a licensed gambling outfit, and have all the permits.

Also remember that java scripts are client side programs...meaning that the program that spins the roulette or the slots runs on the client and then reports back the results to the server. A creative person could easily write their own script and manipulate their winnings. You would not want to use client side scripting for any "real money" situations.

This game is for fun and/or credits.

One Idea you could legally implement:

Entice your members to play and to save up their casino cash redeemable for a T-shirt or coffee mug with your website advertisement.

ss-community 12-05-2007 09:21 PM

Quote:

Originally Posted by ss-community (Post 1394346)
does anyone no how to wipe the scores that are in the unluckest People etc

Quote:

Originally Posted by Andrew Green (Post 1394454)
All the stats are drawn from the same numbers, if you want to reset delete all the entries in the casino_bet_stats table.


were do i find this , i never instaled the product my brother did, also i would like to wipe them all ,

dodgeboard.com 12-05-2007 09:40 PM

Do you know how to get to your phpMyAdmin?

If so, Login to it

Select casino_bet_stats on the left pane
Click "Browse" on top
then you'll see the data table below

each user(userid) will have an entry for each game(gameid) they have played (bet) & (won)

if you click on the pencil, you can change the value of the fields (bet) & (won)


PHPMYADMIN INFO

TazeredBlackMan 12-06-2007 12:33 AM

Quote:

Originally Posted by Andrew Green (Post 1394827)
Try uploading the roulette files and reverting the roulette templates if they are different then the packaged ones. If that doesn't do it I'll need a link to the site.

This is happening for me too. The ball is off the mark, compared to how it was before I updated. I tried uploading all the files again and it still isn't fixing the problem. Any ideas?

Not only that, but the transparency of the image is all weird too. I can see the edges in IE. In firefox it's better.

dodgeboard.com 12-06-2007 01:21 AM

you may want to post a link to your site....

Keyser S?ze 12-06-2007 01:39 AM

this looks really nice, my only problem is that my navbar has too much stuff on it, and with arcade being there already, i wish i could make arcade "Gaming" and have that be a dropdown and inside be
Arcade
Casino

like that, i think that would look good, any way to do this?

Robert Paulson 12-06-2007 02:49 AM

jeezus. This thing's like crack. My users are getting nutty.

dodgeboard.com 12-06-2007 03:21 AM

Quote:

Originally Posted by Keyser S?ze (Post 1395890)
this looks really nice, my only problem is that my navbar has too much stuff on it, and with arcade being there already, i wish i could make arcade "Gaming" and have that be a dropdown and inside be
Arcade
Casino

like that, i think that would look good, any way to do this?

Look at my navbar. If you like the way I have setup my drop down menus, I can send you the template modifications.

Keyser S?ze 12-06-2007 04:50 AM

yea that is what i wanted, thanks

ezurick 12-06-2007 09:51 AM

Quote:

Originally Posted by dodgeboard.com (Post 1395939)
Look at my navbar. If you like the way I have setup my drop down menus, I can send you the template modifications.

Hey dodge... that is a nice navbar. Can you share that with me somehow too? :)

Also, I see you are still using vBadvanced 2.2.0... any reason that you didn't upgade to 3.0? I upgraded and some of my older plugins for it don't work properly anymore... such as the "recent threads". There are listed in the settings for it, but they won't show. Anywho... sure would like to see how you done your navbar... Thanks...

dodgeboard.com 12-06-2007 12:49 PM

You must edit TWO parts of your navbar for dropdown menu's. The first part adds the text on the navbar and the second part adds the menu items to the menu.


Open your templates and go to navbar. Find this:

Code:

<td class="vbmenu_control"><a href="register.php$session[sessionurl_q]" rel="nofollow">$vbphrase[register]</a></td>
</if>

Underneath that add this:

Code:

<td id="FunStuff" class="vbmenu_control"><a href="$show[nojs_link]#FunStuff">Fun Stuff</a> <script type="text/javascript"> vbmenu_register("FunStuff"); </script></td>

Then find this near the bottom:

Code:

<!-- / user cp tools menu -->
        </if>

Add below that:

Code:

<!-- your FunStuff menu -->

<div class="vbmenu_popup" id="FunStuff_menu" style="display:none">
<table cellpadding="4" cellspacing="1" border="0">
<tr><td class="thead">$vbphrase[name]</td></tr>

<tr><td class="vbmenu_option"><a href="casino.php?$session[sessionurl]">Casino</a></tr>

<tr><td class="vbmenu_option"><a href="arcade.php$session[sessionurl_q]">Arcade</a></td></tr>

<tr><td class="vbmenu_option"><a href="WHATEVER.php$session[sessionurl_q]">WHATEVER ELSE YOU WANT IN THE MENU</a></td></tr>

                </table>
        </div>
        <!-- / your FunStuff menu -->

Just change anything in caps to what you want, and rename "FunStuff" to whatever you want to to use. But remember that the top code is linked to the bottom code. So if you change FunStuff in the top code, you must also chnage it in the first line in the bottom code @ ="vbmenu_popup" id="FunStuff_menu"

ss-community 12-06-2007 01:38 PM

Quote:

Originally Posted by dodgeboard.com (Post 1395760)
Do you know how to get to your phpMyAdmin?

If so, Login to it

Select casino_bet_stats on the left pane
Click "Browse" on top
then you'll see the data table below

each user(userid) will have an entry for each game(gameid) they have played (bet) & (won)

if you click on the pencil, you can change the value of the fields (bet) & (won)


PHPMYADMIN INFO

when i log into my admin panel , on the left hand side of my forum i have a casion tab , i guess i click on that , (yes/No) , if i do click on it i get casino settings and nothing is in there

Andrew Green 12-06-2007 01:48 PM

Quote:

Originally Posted by ss-community (Post 1396188)
when i log into my admin panel , on the left hand side of my forum i have a casion tab , i guess i click on that , (yes/No) , if i do click on it i get casino settings and nothing is in there


The files in the admincp folder likely didn't get uploaded.

dodgeboard.com 12-06-2007 01:52 PM

Quote:

Originally Posted by ss-community (Post 1396188)
when i log into my admin panel , on the left hand side of my forum i have a casion tab , i guess i click on that , (yes/No) , if i do click on it i get casino settings and nothing is in there

To get to PHPMyadmin, usually you go through cpanel. It's not in the admincp.

Sounds like you may be missing some files.

You'll have to first select the database you have assigned to your forums, then you should see something like the attached screen shot.

TazeredBlackMan 12-06-2007 04:15 PM

Is there any update on the roulette ball positioning?

Gooner 12-06-2007 05:03 PM

this is awesome... more popular with my members than the arcade by miles..... please add more games +multiplayer games... thanks :D

ezurick 12-06-2007 05:42 PM

Quote:

Originally Posted by ezurick (Post 1394047)
Andrew, I got your latest installed.... but a couple of my users are reporting this error:

HTML Code:

Warning: max(): Array must contain atleast one element in /casino/letemride_deal.php on line 300

Warning: min(): Array must contain atleast one element in /casino/letemride_deal.php on line 300

Warning: max(): Array must contain atleast one element in /casino/letemride_deal.php on line 301

I asked them what they done to cause this, they said they done nothing out of the ordinary. I went into Let 'em Ride and played for a few minutes and couldn't reproduce the error... perhaps it something triggering based on the Array not setup properly?

Also, any luck in having the betting limits in the settings instead of messing with the .php files. As you know, that isn't working for me. Also, we need control to turn off the donation please...

Just to update you on this warning, one of my members that got this message said this:

"I bet between 1 - 25 and only raise if there is a payout on the screen. However I think this happened with the deal 3 cards up and 2 cards down."

Maybe this will help when you get time to look at this issue...

Shazz 12-06-2007 06:01 PM

Having to click the button twice is getting confusing sometimes, haven't read this thread to see if 100 other people also say it though.

dodgeboard.com 12-06-2007 09:15 PM

Quote:

Originally Posted by Shazz (Post 1396341)
Having to click the button twice is getting confusing sometimes, haven't read this thread to see if 100 other people also say it though.


I've had to do it. it's a known issue. Kinda confusing, but you get used to it. I always double click now.

dodgeboard.com 12-06-2007 09:19 PM

Quote:

Originally Posted by TazeredBlackMan (Post 1396274)
Is there any update on the roulette ball positioning?

I was trying to look at your problem...but your roulette is turned off

dodgeboard.com 12-06-2007 10:09 PM

Quote:

Originally Posted by ezurick (Post 1394047)
Also, we need control to turn off the donation please...

If you want to remove the link from the main page, all you have to do is drill into the template; casino_index_main and delete this:

Code:

<div style='text-align:center'><br/><a href='casino.php?do=donate'>$vbphrase[casino_donation_link]</a></div>
Course that wont stop the clever ones from accessing the feature via a direct url. Average member wont know that. Guess you could overcome that by emptying or deleting the template casino_donate.

peterpigman 12-06-2007 10:34 PM

Quote:

Originally Posted by dodgeboard.com (Post 1396468)
I was trying to look at your problem...but your roulette is turned off

It isn't lined up on mine either, just a bit off. Seems to be on the line rather than in between lines.

dodgeboard.com 12-06-2007 11:12 PM

Quote:

Originally Posted by peterpigman (Post 1396491)
It isn't lined up on mine either, just a bit off. Seems to be on the line rather than in between lines.

Quote:

Originally Posted by TazeredBlackMan (Post 1396274)
Is there any update on the roulette ball positioning?


Okay... I figured it out. I was able to reproduce the issue by turning on ALL the chips.

You both have too many chip denominations turned ON. Turn off a couple of your chips in the admincp, casino settings, chips in use, roulette.

Then it will work.

Keyser S?ze 12-07-2007 02:04 AM

dodge thanks for the code ill try it out tomorrow

to the author: why not put the casino options inside the vb options section as i hate to clutter up my admin cp

great hack now we just need an add on for virtual whores ;D

dodge can u make the funstuff aka games dropdown look more like the quicklinks?

cheers

dodgeboard.com 12-07-2007 03:58 AM

It is the same - the only difference is the Quicklinks drop down is divided into sections.

Put this in the second part:

Code:

<tr><td class="thead">Section Name</td></tr>


Example:

Code:

<!-- your FunStuff menu -->

<div class="vbmenu_popup" id="FunStuff_menu" style="display:none">
<table cellpadding="4" cellspacing="1" border="0">
<tr><td class="thead">FIRST SECTION</td></tr>

<tr><td class="vbmenu_option"><a href="casino.php?$session[sessionurl]">Casino</a></tr>

<tr><td class="vbmenu_option"><a href="arcade.php$session[sessionurl_q]">Arcade</a></td></tr>

<tr><td class="thead">SECOND SECTION</td></tr>

<tr><td class="vbmenu_option"><a href="WHATEVER.php$session[sessionurl_q]">WHATEVER ELSE YOU WANT IN THE MENU</a></td></tr>

                </table>
        </div>
        <!-- / your FunStuff menu -->


tropicon 12-07-2007 10:01 AM

There is a problem with the lottery, we wanted a draw every day now error message for users No Draw Active at this time, please check back later


All times are GMT. The time now is 04:07 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05322 seconds
  • Memory Usage 1,867KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (11)bbcode_code_printable
  • (1)bbcode_html_printable
  • (28)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (3)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete