First off, please be aware that we have a Drupal 5.5 and PostgreSQL environment. So, any solution would need to work with PostgreSQL.
We are in need of a solution for two functional buttons to be displayed within a certain content type. We attempted using CCK Button but it is not working for our purposes and appears to have weak support from the module owner.
"Count Me In!" Button
This button is to be used on a certain content type that is enabled with the Sign-Up module. It must be able to be disabled and enabled through the node edit form on a per node basis. The button will need to be weighted and assignable to a fieldset (similar to CCK fields) to control the display on the node view. The button should allow for a unique CSS to style differently from other buttons throughout the site. The button should only display to an authenticated user if it is enabled AND if a user has not already signed up for the node. When selected by an authenticated user, the button should either link to the Sign-Up tab within the node or pop-up the Sign-Up form (Thickbox preferred for pop-ups). For an anonymous user, do not display a button but rather a sentence like, "Your must login or register to participate in this event."
"Got it!" Button
This button is to be used on a certain content type that is enabled with the Sign-Up module. It must be able to be disabled and enabled through the node edit form on a per node basis. The button will need to be weighted and assignable to a fieldset (similar to CCK fields) to control the display on the node view. The button should allow for a unique CSS to style differently from other buttons throughout the site. The button should only display to an authenticated user if it is enabled AND if a user is already signed up for the node. When selected by an authenticated user that is signed up for the node, the button should link to node/add/wisewitresponse as a Thickbox pop-up and send the current node information to auto-populate the nodereference field on the wisewitresponse node. The wisewitresponse node should only be completed once per referring node so if the user has already completed the wisewitresponse node display a message instead that says, "You have already submitted a response. Responses are limited to 1 per member per event or stage". For an anonymous user, do not display anything.
Comments
I believe you can do that by
I believe you can do that by adding a checkbox CCK field to provide enable/disable function (field already comes with weight/fieldset assignment). Use contemplate to style & script the content type to any layout as you wish, weight/fieldset not so important here unless someone is going to change that frequently??
CK Ng | myFineJob.com
consultation • web design & development • content development • site domain, hosting & maintenance • software design & development