vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Add-On Releases - MMLotto System (https://vborg.vbsupport.ru/showthread.php?t=124858)

Gizmo5h1t3 08-26-2006 08:21 AM

Quote:

Originally Posted by Mysticales
Fyi, If you wanna start "higher" for your lottery. Do this, Uninstall your mmlotto product.
Then edit the xml file.
Find in the code
Code:

$db->query_write("INSERT INTO ".TABLE_PREFIX."mmlotto_payouts VALUES
and change to

Code:

$db->query_write("INSERT INTO ".TABLE_PREFIX."mmlotto_payouts VALUES (X, Y, Z)");
X = 5 Match
Y = 4 Match
Z = 3 Match.
Then in your cron job php file, you need to edit those values to match the ones in the xl you set. Using the info from this post https://vborg.vbsupport.ru/showpost....40&postcount=4

Then install the product, when you get to the main mmlotto page now, your fields for payout will be setup correctly for the 1st time use, and if someone wins, it will reset to the values again.

I would like to add, that making a option in the AdminCP to "reset lottery" to reset the values should be added, shouldnt be too hard, same time make a field for "3 matches, 4 matches, 5 matches" to have in admincp a way to define the payouts, then when you did reset, it would change the SQL Table to match. Then all one had to do is figure out how to avoid the cron job dependancy to reset the values.

thanks for the info, did as you stated, and it worked fine....

again....thanks.

michael, this hack is a cracker mate...much better than the vbplaza standard lottery

Gizmo5h1t3 08-26-2006 01:07 PM

can the author give us any ideas as to what further additions he`s got in the pipeline for this?

id have this as hack of the month if we could vote for it!!

Mysticales 08-26-2006 08:21 PM

Btw it doesnt confirm with vbbux to ensure the user HAS enough points. It makes them go into the negative.

Gizmo5h1t3 08-26-2006 11:48 PM

Quote:

Originally Posted by Mysticales
Btw it doesnt confirm with vbbux to ensure the user HAS enough points. It makes them go into the negative.

noticed that while testing it this morning, i ended up with -32k points....lol

micheal332001 08-27-2006 04:54 AM

Quote:

Originally Posted by Gizmo5h1t3
noticed that while testing it this morning, i ended up with -32k points....lol

I will have alook into this and sort out a fix for it.

micheal332001 08-27-2006 04:56 AM

Quote:

Originally Posted by Gizmo5h1t3
can the author give us any ideas as to what further additions he`s got in the pipeline for this?

id have this as hack of the month if we could vote for it!!

Im not sure what i will be adding into this as yet but if you have any ideas please post them here.

Gizmo5h1t3 08-27-2006 08:11 PM

id be happy just to have the 3.5 version follow the development of the 3.6 version.....

noticed an update in the 3.6 for admin cp options, percentages etc??

nice work man, this is a seriously good hack

Foxsake 09-02-2006 08:23 AM

im a bit new to all of this, and need a little guidance if you can please.
I have installed this, and

i cant get it to show in the nav bar? - i can only see it if i type www.mysite/forum/mmlotto.php
secondly i want it to work using vbookie cash - i have set the setting to use vcash but say i have none?

this may be a really simple fix and seem simple but to me its bang head really hard at the brick wall time.:confused:

if anyone can help, thank you very much in advance

Cheers

Foxsake ;)

Rickie3 09-02-2006 11:30 AM

Hi in navbar template
Find:
Code:

<td class="vbmenu_control"><a href="calendar.php$session[sessionurl_q]">$vbphrase[calendar]</a></td>
add this code either above or below
Code:

<td class="vbmenu_control"><a
href="http://www.yoursite.com/forum/mmlotto.php$session[sessionurl]"><b>Lotto</a></td>

where the your site is highlighted replace with the link to your board.

As for vCash it doesnt seem to work so you will have to install another cash system eg: qccash,vbbux,or ucash

Foxsake 09-02-2006 04:47 PM

Thanks for trying to help Rickie, i have sussed it though and its all working with vbookie - the cash system is vbookie_cash not vcash

Thanks for all your help ;)


All times are GMT. The time now is 02:19 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.01488 seconds
  • Memory Usage 1,740KB
  • 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
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (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