Jump to:
| Project: | Signup |
| Version: | 6.x-2.x-dev |
| Component: | Code |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Issue Summary
I've talk about this here and a far more articulate request by someone else can be found here.
In any case, the request is to have a 'Sign up!' link at the bottom of the post right along side "read more" etc. This is how the RSVP and Volunteer modules work.
My current request is motivated by the following message I got today from one of our event organizers:
"Also, when I posted my meetup annoucement, I wanted to make it available for sign-ups, but I didn't see a way to do that. But now I finally see that when you click on "read more" on the annoucement on the home page, or when you click on the calendar entry, that you can sign up (which I just did). Is there anything else to know?"
LEO
webmaster
IllinoisDemNet
Comments
#1
I wanted this functionality too, and i discovered that you can do this (in the latest 4.7 Signup module realease) by:
1). Replacing "$page" with "!isset($node->preview)" in this section of the code:
<?phpif ($node->signup && $page && !in_array(TRUE, $suppress)) {
?>
2). (optional i think) Find & replace all instances of "$node->body" (there are 2 ) with "$node->links". This will put the "sign-up" link in the links section of the node.
#2
This works as far as display goes, but it was dropping users into the topmost open event, regardless of which event they signed up for- I think the module needs to be patched to recognize multiple signup arrays on the page for this to work correctly.
#3
Still waiting for a patch from heaven.
I had a look at how this is accomplished on the Volunteer Module but it's way over my head.
What I'll be doing after the Election is conduct a usability test -- that I can do -- with double-blind testing in front of a page full of teasers with the following task:
"Please register for the event".
I'll publish the results here.
#4
It would also be very cool to have the link showing the actual numer of people signed up versus the total possible signups, as I wrote in my feature request above.
#5
(Bump and version change.) Can someone with time on their hands -- perhaps due to incarceration or longterm quarantine -- add this basic usability feature?
Perhaps in a patch?
For most people, if they can't see "sign up" in the teaser, they're not going to make the mental leap that it's hiding behind the "full" version of the node. Help end this reckless concealment of sign-up today!
#6
subscribe - thanks
#7
Anyone have ideas about this?
#8
I pray and bang my tom-tom on a daily basis. At some point usability will win the day!
#9
what about making a php template, and printing the signup fieldset/info/button how and where we like?
I'm no expert with php templates, but have recently been making different templates for pages, nodes, different content-types etc.
Rather than printing the content, I've been commenting it out:
<!--<div class="content"><?php print $content ?>
</div>-->
And printing each part separately (as an example, the location module didn't print the way I liked, so I printed it apart from the $content, commenting out what I didn't want, or arranging ti to my liking):
<div class="location-display"><!--<?php print theme('location', $location); ?>-->
<!--<?php if ($location['name']) : ?>
<?php print $location['name'] ?><br />
<?php endif; ?>-->
<?php if ($location['street']) : ?>
<?php print $location['street'] ?><br />
<?php endif; ?>
<?php if ($location['additional']) : ?>
<?php print $location['additional'] ?><br />
<?php endif; ?>
If someone could recommend how to print the Signup info, that would be a good workaround for the meantime -- we could place it in the teaser or wherever we wish.
Does anyone have any ideas about how to print the Signup info?
Thanks!
#10
Did anyone figure out how to print the signup info?
Thanks!
#11
I think I figured it out. Something along the lines of:
<?phpprint $node->content['signup']['#value']
?>
#12
So, has anyone confirmed that #11 works? And if so, where exactly would one put the code?
#13
At this point I use:
<?phpprint $node->signup_view;
?>
gracearoha, you'd make a node.tpl.php (or for your specific content type, it would be node-content_type.tpl.php) and add this code in wherever you like. More about how to do that here: http://drupal.org/phptemplate
;)
#14
Great! Thanks for the info, scottrigby :)
#15
scott,
I made a new template, and plugged the code in. When I visit the full node, the signup box is shown twice. But no matter what I do, I cannot get it to show up in the teaser. I even tried installing contemplate and inserting the code in the teaser there, no luck. Please advise!
Thanks
#16
subscribing
i tried placing this in a view and a block and it doesn't show up
in the view i do
$node = node_load(nid); //nid is passed into the view
<?phpprint $node->signup_view;
?>
but this code does not show a value. anyone know why?
Chris
#17
Is this request still open?
The solution should be as simple as this (to be added in signup.module).
/**
* Implementation of hook_link().
*/
function signup_link($type, $node = NULL, $teaser = FALSE) {
$links = array();
if ($type == 'node' && !empty($node->signup)) {
$links['signup_anchor'] = array(
'title' => t("Signup"),
'href' => $node->path,
);
}
return $links;
}
Tested with 5.x-2.7.
#18
#2 is still an issue in the latest release. I have a list view of events, the content type for which sign-up is enabled. If i click the "Sign-up" bottom for any of the events, I am signed-up only for the top one.
Anybody have any idea how to fix this?
shawn
#19
I direct the users to signup to the the full node with this code in the node.tpl.php:
<?php if ($teaser && $node->signup) { ?><a href="<?php echo $node_url; ?>"><?php print "Signup needed!"; ?></a>
<?php
}
?>
#20
Updating the version