![]() |
Integrate LeSane's Store with Trivia
could this be done , so that every answer a person gets right on the trivia hack would gain them X amount of points in lesane's store ??
I'm not sure if this is the right forum for this request , so forgive me if it's not , I just think it would be kool and add to both hacks :D |
good request as well m8
i asked for this in lesane`s hack as well more incentive to play the quiz then if they win something but if its possible to add then its gotta be possible to delete as well if they get below a certain score. Hope lesane`s see`s this post. |
yes , right now I'm manually doing it and it's keeping me plenty busy :D
|
any news on this yet ?
|
I'll PAY someone to integrate this with lesane's store so that every question answerd correctly = X amount of points predefined in the Admin panel.
|
I don't have the hack installed but i guess that you can put the code by the end result. You can check how many questions the user has answered correctly and then update his points with an amount of x points.
This code below should work, not tested: Find in quiz.php: (around line 310) PHP Code:
PHP Code:
|
Warning: Unexpected character in input: '\' (ASCII=92) state=1
Maybe a typo ;) |
I get this :
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in quiz.php on line 638 Parse error: parse error, unexpected T_VARIABLE in quiz.php on line 638 |
I edited my code.
|
Well...did it work for you lesane?
|
Like i said, i don't have the hack installed so i cannot test it.
|
That one gives this :
Parse error: parse error, unexpected T_STRING in quiz.php on line 319 |
bump :( :( :(
|
ok well this latest code that lesane tried to help me with gives me this error :
Quote:
$current_time = vbdate($timeformat, time()); any ideas , help , suggestions would be greatly apprecieated. |
Hey Hey , I think I am getting closer here , after reading thru some of the php help files , I noticed that Lesane left out a " in his code line ,
Quote:
Quote:
Quote:
Quote:
and line 154 is this line right here : Quote:
Any help will be extremely apprecieated. |
Try this line:
PHP Code:
|
WHOOOOO HOOOOOOo !!!!!!!!
THAT'S IT ! TY TY TY TY TY TY TY TY so very much man, you just don't know how much time i was spending manually going in there and awarding points , I really apprecieate your help :D |
I've seen others asking for this hack so you might wanna release it :D
|
Now that the code is working and paying 10 points for every correct answer , is there a way to reward those that get 100% on their quiz and give them 1000 points instead of 100 ?
|
I'm glad it's working properly now. :)
I have it way too busy to release a hack, you have my permission to use the code and release it as an addon if you want. If you want to give them 1000 points instead of 100 then find this line in quiz.php: PHP Code:
PHP Code:
|
Ok , I am a total noob when it comes to php coding, I did the happy dance for about 15 minutes when I figured out how to make any name any color I wanted in the ' currently active users ' list , so is there any way to make a php code that would do this :
Quote:
make any sense , sorry if it doesnt :P |
Yep, it would be nice if you release this as an addon when it's working. ;)
|
it works now as far as paying x amount of points per correct answer , if that's all you intend to do with it , without the perfect score bonus , it's ready :D
|
Quote:
PHP Code:
|
Perfect man , very nice job. I installed and tested it all out , it works fine with no problems at all. Thanks for all the help you did on this and for allowing me to release this as an add on , which I did just now, right here :
https://vborg.vbsupport.ru/showthrea...threadid=44279 |
All times are GMT. The time now is 11:08 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|