Getting access denied when I click the more link in block
Hilal - December 6, 2008 - 16:01
| Project: | User Points Top Contributors |
| Version: | 6.x-1.2 |
| Component: | User interface |
| Category: | bug report |
| Priority: | critical |
| Assigned: | Unassigned |
| Status: | active |
Description
Hi I'm getting access denied errors when I click the more link (userpoints/list/all) on the bottom of the top contributors block. This doesn't happen to the Admin account but occurs for authenticated users. Permissions were set for all roles to view user points.

#1
Anyone??
#2
OK so I modified the userpoints_top_contributors.module file and changed it to the following.
// more link$content .= '<div class="more-link">'. l(t('more'), 'userpoints/list', array('title' => t('All users by !points', userpoints_translation())))
All I did was change from userpoints/list/all to userpoints/list..this is ok for the block that shows all top contributors but I am pulling my hair out over displaying user points by period to anyone other than super user 1 or admin. I've checked the permissions settings and I have enabled the necessary permissions for all users. I'm sure there has to be a way? Surely I cant be the only person whose stumbled on to this?
#3
Same issue for the Top contributors by period block. Any assistance is appreciated guys. This issue renders the blocks useless for productions use and this is a major drawback to the module.
#4
Hi Hilalsuhaib,
I've fixed the bug but unfortunately cannot upload the fix to
Drupal.org because of a CVS problem that everyone seems too busy to
help me with.
I've attached a copy of the patched module for your use.
Sorry about the delay.
#5
Hi kmillecam,
Thanks so much! Do i just unzip and upload to modules folder like a standard upgrade? I dont know how to patch so this isn't patch is it?
H
#6
The original top contributors module did not have a folder named '.SVN', Can i not just up the module, install and info file?
#7
Just unzip and install.
I've included the full module, not a patch.
You can delete the .SVN folder.
HTH,
Kevin
#8
Thanks Kevin. It works!
#9
Thanks for this
Phil
#10
This should really be rolled into an official release...
#11
Hey, the fix of kmillecam really works. Thank You!
Again, this should be integrated to the module.
Saludos.