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.

Comments

HS’s picture

Anyone??

HS’s picture

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?

HS’s picture

Category: support » bug
Priority: Normal » Critical

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.

kmillecam’s picture

StatusFileSize
new30.7 KB

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.

HS’s picture

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

HS’s picture

The original top contributors module did not have a folder named '.SVN', Can i not just up the module, install and info file?

kmillecam’s picture

Just unzip and install.

I've included the full module, not a patch.

You can delete the .SVN folder.

HTH,
Kevin

HS’s picture

Thanks Kevin. It works!

shunshifu’s picture

Thanks for this

Phil

WildBill’s picture

This should really be rolled into an official release...

ciberwing’s picture

Hey, the fix of kmillecam really works. Thank You!

Again, this should be integrated to the module.

Saludos.

SpriteGF’s picture

Just want to say this works great with my Drupal 6.x install. If you don't see the effects immediately, clear your cache.

HS’s picture

Status: Active » Reviewed & tested by the community
bkalbs’s picture

StatusFileSize
new963 bytes

Here is the fix as a patch. Any chance cvs is working now and this can be included in a new release?

gausarts’s picture

subscribing. Thanks

bchristensen’s picture

Also subscribing.

WildBill’s picture

I'm now getting "Access Denied" (while logged in as user 1) when I try to access the following pages:

http://www.mydomain.com/myuserpoints/27

As an admin, I shouldn't be denied from ANY page...

Not sure if this existed before the patch. Can anyone confirm the same experience?

kmillecam’s picture

Status: Reviewed & tested by the community » Fixed

Ready for testing in development release.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.