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)

Mr_P 07-27-2002 10:28 PM

starting to look like im spamming this page but i dont mean to guys.

I have tried all variables on forum home just so it says Lottery is now at ???

but i dont know the correct one
anyone know the right one ?

It shows in the shop so im presuming i must be able to get it on me main page so all users can see what they can win without going shop...

N9ne 07-28-2002 10:49 AM

Lesane: I want to remove both lotteries

Lesane 07-28-2002 04:23 PM

Quote:

Originally posted by Tha Rock
Lesane: I want to remove both lotteries
Execute this query:

PHP Code:

DELETE FROM storelottery 


Lesane 07-28-2002 04:31 PM

Quote:

Originally posted by Mr_P
quick one guys

Is it possible to call in on main forum home page how much is in the Lottery as this will encourage members to buy a ticket in hope of winning it.

Example :

Current Lottery Fund is now : 2300

etc so then they pay 200 for a ticket (im expensive) and then when they refresh it says

Current Lottery Fund is now : 2500

Basically just need the code that calls it in .........Anyone ?????

Another Idea if poss

is it poss if no Lottery is running then the line above dont show on forum home but if admin choose to run a lottery then the line auto appears with current jackpot and how many users have bought tickets etc

I know not much of ideas but they can be built upon.

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.

Mr_P 07-28-2002 04:44 PM

just like to say thanks to lesane for his help

much appreciated m8

trainer 07-28-2002 06:04 PM

Lesane is there a way to give away something other then points/cash. we would like to give away sponsor prizes but this addon didn't seem to support it

proxyMX 07-28-2002 07:33 PM

What i have planned is the main lottery prise draw, then a random, Moderator for a month prize to one of the losers, who then enjoy the beneifits of being a mod for one whole month, until the next draw

Mr_P 07-28-2002 08:40 PM

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)

tpearl5 07-29-2002 10:09 PM

When I try to end a lottery I get this error in the admin cp:
Quote:

Invalid SQL: SELECT * FROM user ORDER BY RAND() desc LIMIT 1
mysql error: You have an error in your SQL syntax near 'RAND() desc LIMIT 1' at line 1

mysql error number: 1064
I just tried rehacking the store files with no avail. What's wrong? :ermm:

Mr_P 07-29-2002 10:31 PM

Is there anyway to change the $ in the hack to something else such as P for points as we dont use $ so when u get pm its defeats the object when u have 500 points ans someone robs $200

But all said and done top hack and i look forward to many more addons for this.


All times are GMT. The time now is 11:55 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.01424 seconds
  • Memory Usage 1,744KB
  • 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
  • (3)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