vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Integrate LeSane's Store with Trivia (https://vborg.vbsupport.ru/showthread.php?t=42169)

xxxsaint 08-11-2002 04:50 PM

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

Mr_P 08-11-2002 05:37 PM

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.

xxxsaint 08-11-2002 11:08 PM

yes , right now I'm manually doing it and it's keeping me plenty busy :D

xxxsaint 08-20-2002 06:17 PM

any news on this yet ?

xxxsaint 09-04-2002 10:18 PM

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.

Lesane 09-06-2002 11:57 AM

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:

$pct  $totalcorrect $base

Add AFTER it:

PHP Code:

$storeamount 10 $totalcorrect;
    
$updatestore  $DB_site->query_first("UPDATE user SET storep=storep+'$storeamount' WHERE userid='$bbuserinfo[userid]'); 

This gives 10 points for every good answer. Let me know if this work correctly for you.

NuclioN 09-06-2002 12:28 PM

Warning: Unexpected character in input: '\' (ASCII=92) state=1

Maybe a typo ;)

xxxsaint 09-07-2002 04:57 AM

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

Lesane 09-07-2002 09:47 AM

I edited my code.

NuclioN 09-07-2002 10:38 AM

Well...did it work for you lesane?


All times are GMT. The time now is 07:08 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.01121 seconds
  • Memory Usage 1,726KB
  • 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
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (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