Hello. I just did a fresh install of drupal 5.1, and the Userpoints module (version 5.x-2.14) was the first module I used.

The problem is that users aren't able to give points to each other. I enabled the user2user module (on the module page) and I enabled the proper permissions on the Access Control page...... so I think I followed all the directions correctly.

I (as the administrator) can't even give points to users (although, technically, I can via the moderation tool..... but that's not part of the user2user point contrib module).

Hopefully that made sense.... :)

Comments

darxtar’s picture

StatusFileSize
new2 KB

Hi I've found the bug and made some changes to include AJAX user name search to the form.
Please find the files as attached.

Additional js file required for the ajax.

All changes are marked with comments by darxtar.

Note: attachment was zipped but renamed to tgz because it's not allowed to upload zip file.

For those of you who want simply make it work, you just need to change the function name on the following 2 lines:

- function user2userpoints_validate($form_id, $form_values) {
+ function user2userpoints_form_validate($form_id, $form_values) {

and

- function user2userpoints_submit($form_id, $form_values) {
+ function user2userpoints_form_submit($form_id, $form_values) {

JacK

darxtar’s picture

StatusFileSize
new3.42 KB

Pls ignore the previous attachment, since I found out that the autocomplete function is already supported by user module.
Ths .js file is no longer required.

So pls use attached instead.

Thanks
JacK

jredding’s picture

Status: Active » Closed (fixed)

working great in v3.
closing.

jredding’s picture

Project: User Points » User Points Contributed modules
Version: 5.x-2.14 » 5.x-2.x-dev