I'm so frustrated here, i'm writing a quiz for my drupal site in php, and i want to set the points scored in the quiz automatically when the quiz is done. i can access the variable easily by creating a copy of it, but i cant actually change it from the php page. what code could i use to set the user variable profile_quizpts for example.

Comments

stodge’s picture

My guess you don't fully understand how to program Drupal. Provide more info, maybe some code. Maybe the issue here is that your question is too vague and poorly written.

aitala’s picture

Have you thought about using the quiz module?

http://drupal.org/project/quiz

Eric

__________
Eric Aitala - ema13@psu.edu
Penn State

224b8605113373e086cb27708ff301ba18ce394db1996e7e22928e4555e0d20b1b6cecc7f67c9bd9e536cb915779c485

grtroup’s picture

not really, all i want to be able to do is get the code to set a variable in the users' details. in psudo code

if user passes test
quiz points = quiz points + 3

simple as.

aitala’s picture

I wonder if the quiz module works with the user points module...

E

__________
Eric Aitala - ema13@psu.edu
Penn State

224b8605113373e086cb27708ff301ba18ce394db1996e7e22928e4555e0d20b1b6cecc7f67c9bd9e536cb915779c485