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

Hilal - December 9, 2008 - 17:32

Anyone??

#2

Hilal - December 9, 2008 - 18:42

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

Hilal - December 24, 2008 - 16:08
Category:support request» bug report
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.

#4

kmillecam - January 7, 2009 - 22:12

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.

AttachmentSize
userpoints_top_contributors.zip 30.7 KB

#5

Hilal - January 7, 2009 - 22:56

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

Hilal - January 7, 2009 - 23:13

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

#7

kmillecam - January 7, 2009 - 23:40

Just unzip and install.

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

You can delete the .SVN folder.

HTH,
Kevin

#8

Hilal - January 8, 2009 - 00:01

Thanks Kevin. It works!

#9

shunshifu - February 21, 2009 - 16:43

Thanks for this

Phil

#10

WildBill - October 10, 2009 - 19:54

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

#11

ciberwing - October 12, 2009 - 00:02

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

Again, this should be integrated to the module.

Saludos.

 
 

Drupal is a registered trademark of Dries Buytaert.