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 08-09-2002 08:37 PM

Hope im allowed to post this here

This is from my Index.php

and i have the top 5 stats installed and this is just before the stats start.

// Top 5 Statistics BY NanoEntity
// Top 5 Posters


If you do a search in your index you can find the lines before the bit that displays the lotto amount as i have given you the few lines before it.


Quote:

$lok=$DB_site->query_first("SELECT * FROM storelottery WHERE lotnumber='1'");
if ($aw[action]=='lottery') {
//if(!$bbuserinfo[usergroupid]==6) {
$lotname="";
$lottery="";
} else {
$lotname="Welcome To The $lok[lotname]";
$startdate=vbdate($dateformat,$lok[startdate]);
$enddate=vbdate($dateformat,$lok[enddate]);



$lottery="Money in jackpot: <b>$lok[jackpot]</b>";
$jackpot="Current Lottery Fund is now: <b>$lok[jackpot]</b>";
}

BluSmurf 08-10-2002 03:35 AM

thanks, it worked :D

BluSmurf 08-10-2002 03:49 AM

A question, I've already bought a lottery and I tried to click on the link under the Store Statistics
Most Sold Action: Buy A Ticket For The Lottery Entitled:(7)

But I was brougth to a blank page, is that an error?

xxxsaint 08-10-2002 05:58 AM

when I click on BUY A TICKET all I get is a blank white page. ANYBODY with any help here ??

BluSmurf 08-10-2002 05:45 PM

mine too.. it was working perfectly a few days earlier, not sure why it stopped working now :(

tpearl5 08-12-2002 12:53 AM

Quote:

Originally posted by tpearl5
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:

Anyone else getting this?

xxxsaint 08-12-2002 07:54 PM

Well , I have just sat here another 2 hours and tried everything i even read every post in this thread again and remade my templates , redid the mysql queries and everything still functions perfectly , right down to the pick winner in admin cp , and it will pick one , but the only thing is this:

When i try to buy a ticket it comes up a blank page. No ticket is bought. The url of the blank page is http://www.tdleague.com/forums/store.php?action=lottery

Can somebody please help or do I just need to uninstall this one ?

thanks :S

BluSmurf 08-13-2002 04:49 AM

no one can figure out why we're having blank pages?

Lesane 08-13-2002 11:24 AM

Quote:

Originally posted by tpearl5
When I try to end a lottery I get this error in the admin cp:


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

Wich mysql version are you using?

Lesane 08-13-2002 11:30 AM

Quote:

Originally posted by Mr_P
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.

Search for this line for the pm to the losers:

PHP Code:

$pmloser="Dear Loser,\n\n You lost the lottery named $lotop[lotname]. The winner is: '$username' and the winner received a total of $kutje points.\n\n Good luck on any new upcoming lottery's.\n\n Thanks for your participation on this lottery."

And search for this line for the pm to the winners:

PHP Code:

$pmwinner="Congratulations $username,\n\n You won the lottery named $lotop[lotname]. Your amount of points is increased with $kutje points.\n\n Thanks for your participation on this lottery."

In the file, admin/storeadmin.php.


All times are GMT. The time now is 04:50 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.01244 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
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)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