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.


All times are GMT. The time now is 08:06 AM.

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.04436 seconds
  • Memory Usage 1,755KB
  • 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
  • (4)bbcode_code_printable
  • (10)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (6)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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