![]() |
Lesane, is it work for 2.3.0 ?
I tried to install this 3 times, but it doesnt work. the error is: Parse error: parse error, expecting `T_VARIABLE' or `'$'' in ***\www\vb2\store.php on line 110 I wanna slove this, cuz the lottery add-on is cool |
The lottery info in the store isn't showing up properly. It doesn't list how much is in the jackpot or the start/end dates. And when I bought a ticket, it wouldn't show up either. o.o;
|
Quote:
Quote:
|
yes, i did look the 110 line, that is the line of lottery add-on. And sure i did follow the instructions of Lesance, but it shows that error
what do i have to deal with ? I cant find out myself what's wrong due to my bad knowledge of php. Hope u could |
Quote:
|
Just installed the lottery hack...
Went to test it out and I got this MySQL error :( MySQL is version 4.0.11a-gamma Code:
Database error in vBulletin Control Panel 2.3.3: Code:
UPDATE user SET storep=storep+2000 WHERE userid='1' |
Anyone got a copy of the templates that WEREN'T fu**ed over by vbulletin.org? Attaching txt files makes vBorg parse them as PHP and replace stuff like {firstaltcolor} with vBorg's {firstaltcolor} replacement. Kinda pi**ing me off.
|
how would i go about making sure this always selects a winner and that it's done via cron?
|
Your instructions say
Quote:
but in the new store.php , it doesn't find if($showimg=="Y") { so where does that go ? |
It would go before this line:
if($store_img=="1") { |
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?
|
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. =/
|
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. ;) |
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~
|
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 :) |
Quote:
|
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? |
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... |
I am upgrading the lottery addon soon and will integrate it in my store hack.
*~*E-DuB*~*, to double the jackpot find this code: PHP Code:
PHP Code:
|
Quote:
|
It would go before this line:
if($store_img=="1") { |
Digital Dynasty, if your running Store 3.0 i believe this hack will not work with it.
|
Quote:
|
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
|
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 |
Put it after it :p
|
does this hack work with the new Store hack 3?
|
Afraid not, However i believe Lesane will be porting it over soon :)
|
Yes, a new store version will arrive soon with the lottery integration.
This thread can be closed now... *points to a mod/admin* |
As requested :)
|
All times are GMT. The time now is 04:20 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|