assign points to action

17 years 6 months ago #24268 by magellan
assign points to action was created by magellan
The scubaguy mods seems very good.

but how i could assign points to a single action.
i.e. 1 message sent 1 points

or 1 message received 3 points as bonus?
hope i explain well.

Thanks

Please Log in to join the conversation.

17 years 6 months ago #24271 by mikko
Replied by mikko on topic Re:assign points to action
Not possible without hacking all the components that perform the actions.

If you are running mysql 5, you can also use triggers (see dev.mysql.com/doc/refman/5.0/en/create-trigger.html)

mikko

Please Log in to join the conversation.

17 years 6 months ago #24272 by magellan
Replied by magellan on topic Re:assign points to action
how i could do this type of hacking?

there are some examples i could take a look to? or portion of code from where i could start?

thank you for your reply

Please Log in to join the conversation.

17 years 6 months ago #24273 by mikko
Replied by mikko on topic Re:assign points to action
Well, you can start by first identifying all the SQL queries in the source code which perform the actions (e.g. write a new article to DB) and then write a new query after this to add points to the user who performed the task. The databse table which holds the points is #__comprofiler.

Every time you need to upgrade, you lose the hacks and need to do them again.

mikko

Please Log in to join the conversation.

17 years 6 months ago #24275 by magellan
Replied by magellan on topic Re:assign points to action
thank you for the suggest.

i'll try and let you know!

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.228 seconds

Facebook Twitter LinkedIn