PDA

View Full Version : Lottery Addon For The Store Hack


Pages : 1 [2]

xxxsaint
12-21-2003, 04:22 AM
thanks , now that I have that there , when I try to purchase a ticket , it's not letting me , it just gives me a page layout like it used to have on your confirm buying the ticket screen , but no template context. What I did was re-do the templates for the lottery , and re-hack store.php ( the new store.php) , but since the hacks were already in place in the admin panel I didn't have to do those , and since old lottery info showed up , I didn't re-do the mysql queries , should I have to do that?

SavgeDusk
12-21-2003, 04:51 AM
I'm getting the same thing. I'm thinking it has something to do with the new code. I tried everything I possibly could, re-checked, etc.. but nothing. =/

Frozen Dreams
12-21-2003, 06:25 AM
I fiddled with stuff for a while and I think I have it working on my board. It wouldnt work for me at first either and I got the same errors. It's cuz the variables were changed me thinks.
$points were turned into $bbuserinfo['storep']

I copied and pasted the bits of code and the templates I used into the text file. So far it works fine, only thing I havent tested yet is picking the lottery winner (since I had one running while updating the store)

I hope it's ok I post this. Do not own this hack etc - just trying to help. ;)

SavgeDusk
12-21-2003, 05:45 PM
You were right, Frozen Dreams. I can't believe I overlooked that. Actually I can, I was pretty tired. -- Anyway, I changed all the $points to $bbuserinfo['storep'] and it works. :] Thanks~

Frozen Dreams
12-22-2003, 02:20 AM
Hehe - glad I could help :D
Yeah and not being a php expert myself, finding out what was wrong at first gave me a headache too :)

*~*E-DuB*~*
12-23-2003, 07:55 AM
Edit:

Never mind... change the value of jackpot from 'SMALLINT' to 'INT with a value of however many... I picked 8.


Sorry but I dont understand what hes saying, can somebody explain further in detail on changing the limit on the jackpot?

*~*E-DuB*~*
12-24-2003, 05:33 AM
lesane u said in order to increase the jackpot......use lottery actions......

well here's what i came across...the jackpot is represented as.... $kutje
and i understand u can start the jackpot with a certain amount in the store cpanel....

but i want to expand the $kutje command....and make it larger than it already is.....
i was thinking some kinda of coding in front of the $kutje command here....

n e ideas?

double $kutje code?

DigitalDynasty
01-05-2004, 07:09 PM
Ok I have a problem ^.^

When im editing the store.php file it ask me to find if($showimg=="Y") { well I cant find that I went to edit find in notepad and search find in edit plus and neither could find it....it also cant find $showgraphic="<b>$aw[title]</b>";

If anyone could help me that would be great...

Lesane
01-05-2004, 07:27 PM
I am upgrading the lottery addon soon and will integrate it in my store hack.

*~*E-DuB*~*, to double the jackpot find this code:

$kutje=$lala+$jackpot;

Replace that with:


$jackpot = $jackpot*2;
$kutje = $lala+$jackpot;

DigitalDynasty
01-05-2004, 08:02 PM
Ok I have a problem ^.^

When im editing the store.php file it ask me to find if($showimg=="Y") { well I cant find that I went to edit find in notepad and search find in edit plus and neither could find it....it also cant find $showgraphic="<b>$aw[title]</b>";

If anyone could help me that would be great...
Do u think u could help with that im completly lost :(

xxxsaint
01-05-2004, 08:19 PM
It would go before this line:
if($store_img=="1") {

MindTrix
01-05-2004, 08:20 PM
Digital Dynasty, if your running Store 3.0 i believe this hack will not work with it.

DigitalDynasty
01-05-2004, 08:32 PM
It would go before this line:
if($store_img=="1") {
That made it show up on my store page...but now when I click the link its blank on the next page.

PsychoKrazy
01-08-2004, 10:50 PM
I am having the same problem as DigitalDynasty. I set it up and didnt have those 2 lines. I followed xxxsaint's advice on where to put it and it all does good but when i click on it to buy it, it takes me to a blank screen and it doesnt buy it. please help asap

SavgeDusk
01-09-2004, 12:11 AM
If you get a vBulletin Message box with nothing in it, you need to add an:
$error_message ="Oops, you don't have enough $pointname to buy a lottery ticket.";
before:
eval("standarderror(\"".gettemplate('store_error')."\");");
because the store error template will be blank otherwise. -- I basically re-wrote the lottery code bit because it wouldn't work. :3

MindTrix
01-09-2004, 05:20 AM
Put it after it :p

Marzas
01-12-2004, 04:44 AM
does this hack work with the new Store hack 3?

MindTrix
01-12-2004, 03:45 PM
Afraid not, However i believe Lesane will be porting it over soon :)

Lesane
01-17-2004, 11:53 AM
Yes, a new store version will arrive soon with the lottery integration.

This thread can be closed now... *points to a mod/admin*

Dean C
01-17-2004, 12:54 PM
As requested :)