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)

ZiRu$ 08-01-2002 03:12 PM

i shall install it now!!!!!

Dean C 08-07-2002 04:59 PM

is there any way of changing the amount a ticket costs?

Thanks in Advance

- Mist

Limpkinw 08-07-2002 05:11 PM

Quote:

Originally posted by LightBringer


Lesane stated a few posts back that the winner is NOT automatically chosen. An admin must go in to the Lottery options within the control panel and pick the winner.






This will reset all the values of the lottery and remove it from the Store view.


Yes I do realize this the problem I am having is this
When I MANUALLY end a lottery and NO WINNER is choosed by the random function. The current users are still IN the lottery and the lottery doesnt close. My board is small so not many people buy tickets. What I would like to do is when I push the end lottery button and a random winner IS NOT choose the people who bought tickets are reset so they can buy tickets again. Otherwise it will be MONTHS before they will be able to buy again. Plus the lottery doenst end when no winner is choosen it just stays there.

Am I clear as to what Im trying to do here?

BluSmurf 08-07-2002 10:24 PM

Quote:

Originally posted by Lesane


Put this code in root/index.php:

PHP Code:

$check=$DB_site->query_first("SELECT * FROM store WHERE ok='Y'");
if (
$check[action]=='lottery') {
$lok=$DB_site->query_first("SELECT * FROM storelottery WHERE lotnumber='1'");
$jackpot="Current Lottery Fund is now: $lok[jackpot]";
} else {
$jackpot="";


Open forumhome template and put $jackpot wherever you want.

I'm having problem with this, I placed $jackpot in forumhome template but on the index page it didn't show up. Any help?

xxxsaint 08-09-2002 03:33 PM

I am having the same problem that another guy posted on here , everything installed just fine, and when I created my lottery in admin cp it went just fine , but when I try to purchase a ticket all I get is a white page and no ticket is purchased. Please help :D

DestyNova 08-09-2002 05:12 PM

Quote:

Originally posted by BluSmurf


I'm having problem with this, I placed $jackpot in forumhome template but on the index page it didn't show up. Any help?

Me either, it didnt show up.

Lesane, Do I have to put your jackpot codes in right place or? since I dont know which so I put it below ?> in index.php but it doesnt work anyway

Any idea?

Mr_P 08-09-2002 05:12 PM

Quote:

Originally posted by Limpkinw



Yes I do realize this the problem I am having is this
When I MANUALLY end a lottery and NO WINNER is choosed by the random function. The current users are still IN the lottery and the lottery doesnt close. My board is small so not many people buy tickets. What I would like to do is when I push the end lottery button and a random winner IS NOT choose the people who bought tickets are reset so they can buy tickets again. Otherwise it will be MONTHS before they will be able to buy again. Plus the lottery doenst end when no winner is choosen it just stays there.

Am I clear as to what Im trying to do here?

you have to read the posts - go backwards though them not from beginning as i had to do this so when i ended lottery it picked a winner from ones who had bought a ticket.
I think its around page 40 but dont quote me on that

Its just a query u run

BluSmurf 08-09-2002 05:43 PM

Quote:

Originally posted by Mr_P
Ok worked well and it updates as well so cheers

Welcome To The Lotto

Money in jackpot: 2002

One more question : i have 15 awards using the awards cards hack - how can i make some of them apear in shop so users can buy them.I use the red card in the shop so if a user gets this he can pay to have it removed but how can it be implented so they can buy other awards from shop.

Example we play a lot of RTCW so we have a few awards for the game but users keep asking for a rtcw logo under their name so they can say they are part of the team on the board who play.
Well for a price and a hack they can.

Is this possible ?

This shop business is one of best ideas i have seen in long while as it can be expanded to cover just about anything(wish i was a coder)

Mr_P , can you tell me how you managed to display the jackpot amount on the front page? I'm having problem with it. Thanks!

xxxsaint 08-09-2002 05:48 PM

And if anyone figured out why some of us get a blank white screen when we try to buy a ticket it would be greatly apreaciated :D

Roxie 08-09-2002 06:24 PM

Quote:

Originally posted by Limpkinw



Yes I do realize this the problem I am having is this
When I MANUALLY end a lottery and NO WINNER is choosed by the random function. The current users are still IN the lottery and the lottery doesnt close. My board is small so not many people buy tickets. What I would like to do is when I push the end lottery button and a random winner IS NOT choose the people who bought tickets are reset so they can buy tickets again. Otherwise it will be MONTHS before they will be able to buy again. Plus the lottery doenst end when no winner is choosen it just stays there.

Am I clear as to what Im trying to do here?

You can hit the back button and try ending the lottery again until selects a winner. There is a fix on if you read back that you can use so that it only selects a winner from those that bought a ticket.


All times are GMT. The time now is 05:55 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.01346 seconds
  • Memory Usage 1,751KB
  • 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
  • (1)bbcode_php_printable
  • (6)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