Closed (duplicate)
Project:
Apply for role
Version:
7.x-1.x-dev
Component:
User interface
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
16 Aug 2008 at 07:05 UTC
Updated:
15 Jul 2014 at 08:32 UTC
Jump to comment: Most recent
Comments
Comment #1
Soren Jones commentedComment #2
Anonymous (not verified) commented+1 it would be useful to have a block in order to use it in the Admin Dashboard
Comment #3
Anonymous (not verified) commentedViews integration was a good start for this module, though. Here's my exported view for an Apply for Role Block: http://drupalbin.com/18451
Comment #4
Soren Jones commentedThank you :)
Comment #5
vlooivlerke commentedHi
When I saw the title of this node I thought it was a block where you can click to apply for a role.
But your block is more intense.
Is a block that I have in mind possible?
For D6
Comment #6
jnicola commentedDuplicate issue. Already integrated a block for applying for role into the 7.x-2.x dev branch. Try that out and report back please :)
Comment #7
denisev commentedI am getting following error for anonymous users instead seeing the block: Notice: Undefined property: stdClass::$name in apply_for_role_apply_form() (line 266 of sites\all\modules\apply_for_role\apply_for_role.module).
For authenticated users which successfully applied for a role earlier I see the status message:
"No new roles are available to you at this time."
When logged in as main admin I can see the apply for role block.
All three users/roles have the apply for role permission.
Questions:
Is there a way disable the "No new roles are available to you at this time" status message without installing another module or modifying the code?
Can I do something to fix the error for anonymous users?
And thank you :) for your hard work on this useful module.
Comment #8
jnicola commentedAre you hoping for the block to simply not display anything if a user has no roles available to apply for?
Comment #9
denisev commentedYes, since I plan not to later change or add new role types for users after giving them one/two options in the beginning, I would think it made more sense to not display the status message, or have the option to disable/change it.
Comment #10
jnicola commentedOkay, let's proceed as follows:
1- Create a new issue. An apply for role block exists and this was handled. You want additional functionality for the blocks.
2- Detail the issue specifically to your notes about wanting the option on the block to hide if no options are available
3- You can take a stab at fixing this yourself. Submit a patch using hook_block_configure() to add the option for the block, and then in the block rendering check if that value is set and there are no options, then do not display the block.
It may be some time before I can get to this myself, but this is a good beginner tasks. Please create the new issue, and include the link above to hook_block_configure() incase anyone else wants to tackle this :)
Comment #11
denisev commentedAlright then, you're maybe right. I might just as well tackle my code phobia and fear of failing and try to handle it myself at some point in the near future :)