Needs work
Project:
Signup
Version:
6.x-1.x-dev
Component:
Miscellaneous
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
30 Jan 2008 at 05:50 UTC
Updated:
12 Feb 2012 at 12:38 UTC
Is it at all possible to have the Signup module on activated nodes appear as a block on the side of the page? Is there any way to accomplish this? Thanks.
Comments
Comment #1
dwwYou mean the signup form? The list of people who have signed up? Please be more specific.
Comment #2
x2222 commentedBoth actually, would be nice to have in block form. Is either having the signup form or the list of those signed up, in block form an option? Thanks.
Comment #3
dwwNope. ;) You can't do anything like that in the 5.x-1.* series.
In 5.x-2.* there's views support, so you should be able to define a view with the list of signed-up users and put that in a block.
However, views and forms don't play nicely together, so there's no good way to get the signup form itself in a block.
That said, in the 5.x-2.* series, you *can* put the signup form in a separate tab on the node. When I added that feature (which someone sponsored my time for) I designed it such that it'd be relatively easy to make a setting to put the signup form in a block as a 3rd option. See http://drupal.org/node/190553. So, that's what you'd want to do if you wanted to work on this yourself. If you're not a coder, you could consider hiring me to implement it. I don't personally need it, so I'm not going to work on it on my own.
Cheers,
-Derek
Comment #4
kdotcom commentedCan you set a limit on how many people can sign up for an event?
Comment #5
dww@kdotcom: That's totally off topic in this thread. If you want to ask such a question in this issue queue, please create a new support request for it. In this case, the answer to your question is easily found via the CHANGELOG linked on the project home page.
Comment #6
markfoodyburton commentedSomething like this?
Comment #7
markfoodyburton commentedupdating status - please review the patch :-)
(One problem is that this patch does not 'switch off' the normal sign up mechanism, it just adds a block)
Comment #8
dwwThat's not a patch. ;) Please post a real patch (that's not full of code style problems) if you want me to review/test/commit.
Furthermore... yes, this definitely needs to modify the admin setting for where the signup form appears so there's an option to disable it entirely (with help text about placing it via this block).
Thanks,
-Derek
Comment #9
markfoodyburton commentedHey, fine with me, I just copy'n'pasted (with a few edits - clearly) from the drupal source for a block hook...
If I get round to rolling a patch up and cleaning the code, I will, but like you, I've got other fish to fry, hopefully somebody will pay you to do this properly. This "hack" works for me, which is all I need right now... - Shall we just leave this as 'active'?
Comment #10
dwwCool, no worries. Let's call it "needs work" so it's clear there's the start of some code in here, it's just not a viable patch just yet. Thanks.
Comment #11
fehin commentedsubscribing.
Comment #12
onekamel commentedHi,
I'm trying to implement signup_block and it is working on http://localhost/proj/node/302/edit but is not displayed on http://localhost/proj/node/302 (signup_block is never called on node page). Could someone help me?
Comment #13
asb commentedsub
Comment #14
xaa commentedthanks markfoodyburton :)
comment #6 still working fine with the v6.1
Comment #15
xaa commentedhi,
I have added the code provided on the comment #6. it's working fine to subscribe/unsubscribe from a block but I receive an undefined function error if I navigate on a signup admin page.
Fatal error: Call to undefined function _signup_node_output().
Could you help, please ?
thanks
Comment #16
xaa commentedpending solution is to hide the block on the admin pages and other pages where the error appears