davisville 2 years ago |
Guys this is a small task. How it works:
On the login page, user clicks on the enter btn and then it automatically add 50 points to the user's account and redirects the user to the home page so that user cannot cheat.
ON the login page go to user lister:
config:
<*userid>:VAR(USER_ID);<*/userid>
Codes:
:VALUE(%point%).SET(points).NULL;
user editor:
Config:
<*userid>:VAR(USER_ID);<*/userid>
<*set_var_date>:POST(date);<*/set_var_date>
<set_point>:POST(points);<*/set_point>
Codes:
:DATE(D).SET(date).NULL;
:VALUE(%notify%).IFEQ(Success).THEN.NULL.ELSE.NULL;<*br><*input type="hidden" name="date" value=":VAR(date);"><*input type="hidden" name="points" value=":VAR(points).PLUS(50);"><*br>:VAR(date).IFNE.DATE(D).THEN(<*input type="submit" value="claim 50 points">).ELSE(You have successfully claim 50 pts; come back for more tomorrow);<*br><*button onclick="home">enter<*/button>); you are good to go
comment |
Recent Comments (0)