Welcome, Guest
Username Password: Remember me

one time points and check per keyreference?
(1 viewing) (1) Guest
  • Page:
  • 1

TOPIC: one time points and check per keyreference?

one time points and check per keyreference? 3 years, 11 months ago #11221

hi,

I will check to id, Title from a page and date.

AlphaUserPoints no points for this user after 24 hours also.

the date can also be a other day. Or check without date only id and title.

AlphaUserPointsHelper::newpoints( 'plgaup_comcheck','', $id.','.$this->escape($this->params->get('page_title')).','.$date.'|'.....

How i can do this?
sorry for my bad english.
best regards,
rico
Last Edit: 3 years, 11 months ago by enrico_fischer.

Re: one time points and check per keyreference? 3 years, 11 months ago #11226

  • Bernard
  • OFFLINE
  • Administrator
  • Posts: 2872
  • Karma: 106
What is the component used ?
More components on this site are free but...
Ever thought about giving something back?
Please make a donation if you want to support its continued development. Your donations help by hardware, hosting services and other expenses.

Re: one time points and check per keyreference? 3 years, 11 months ago #11231

example a game that runs over 4 weeks. the user can play onetime -10 points today. after this he can win a price.

now when he came back tomorow after 24 hours or more and the game is published he can play but become no more this 1 Point. solong this game is online.

Example: Gamename Soccer have a ID 1 and Pagetitel Soccer.

How i can save in AUP that this user become or reduce only onetime this points.
Thanks for your help,
regards,
Rico

Re: one time points and check per keyreference? 3 years, 11 months ago #11235

  • Bernard
  • OFFLINE
  • Administrator
  • Posts: 2872
  • Karma: 106
construct your keyreference like this :

$currentday = date("Y-m-d");

$keyreference = $gameID.'|'.$userID.'|'.$currentday;
More components on this site are free but...
Ever thought about giving something back?
Please make a donation if you want to support its continued development. Your donations help by hardware, hosting services and other expenses.
Last Edit: 3 years, 11 months ago by Bernard.

Re: one time points and check per keyreference? 3 years, 11 months ago #11238

Thanks for your help Bernard.

$currentday = date("Y-m-d");
or
$currentday = date("d.m.Y"); Is this ok and works?

Best regards,
Rico
Last Edit: 3 years, 11 months ago by enrico_fischer.
  • Page:
  • 1
Moderators: adroussel, dalekurt, migus, some1new
Time to create page: 0.43 seconds
Goto Top