vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Lottery Addon For The Store Hack (https://vborg.vbsupport.ru/showthread.php?t=40056)

Lesane 06-24-2002 12:41 PM

Quote:

Originally posted by bandersen
If I buy a ticket, then click the back button, I get to buy several tickets. Similar error as the old one in the store.
Find in store.php:

PHP Code:

if ($action=="lotteryupdate") { 

Add After It:

PHP Code:

if ($reet=$DB_site->query_first("SELECT * FROM storelottery WHERE lotnumber='2' AND userid='$bbuserinfo[userid]'")) {
       eval(
"standarderror(\"".gettemplate('store_lottery_error')."\");");
       } 

Text File in 1st post updated.

Roxie 06-24-2002 01:59 PM

Works great! Finally a hack request of mine gets created! :D

Keta 06-24-2002 07:31 PM

yes this is pretty cool i installed it last night on 226

hypedave 06-25-2002 09:11 PM

is there a way to setup multiple lottery session, ending on diferent days

grog6 06-27-2002 10:07 PM

I've installed this hack too, all is good, i juste have a small pb with the link to buy a ticket, when i click on this link, i've a beautiful white page !

I asked someone to install it and he have the same pb ... my template store_lottery has the good name, nobody had this error ?

inetd 06-28-2002 09:38 AM

Quote:

Originally posted by Lesane


No, one of the admins need to do that in the admincp.

Make this automatically please... In my board ~200 members, and when i click "Pick winner" i see winner, but this member don't buy lottery ticket... Help me please with this...

inetd 06-28-2002 09:42 AM

Lesane, members on my board can buy 2 and more tickets... How fix this?

Lesane 06-30-2002 02:56 PM

Quote:

Originally posted by hypedave
is there a way to setup multiple lottery session, ending on diferent days
Nope

Lesane 06-30-2002 02:57 PM

Quote:

Originally posted by grog6
I've installed this hack too, all is good, i juste have a small pb with the link to buy a ticket, when i click on this link, i've a beautiful white page !

I asked someone to install it and he have the same pb ... my template store_lottery has the good name, nobody had this error ?

Did you not forgot to setup a lottery first in the admincp? Query executed?

Lesane 06-30-2002 03:01 PM

Quote:

Originally posted by inetd
Lesane, members on my board can buy 2 and more tickets... How fix this?
No they can't.. hehe. Are you sure about that, how did they bought the 2nd one? With a different username? ;)


All times are GMT. The time now is 09:32 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.01221 seconds
  • Memory Usage 1,739KB
  • 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
  • (2)bbcode_php_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)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