Dear :
I have download node registration module forn durpal 7.
I builde a context type: signup01
use : admin :administrator
ZZZ :genernal registration user
anonymouse

now , I build a node99 by signup01 .

1.max signup count?
I have change setting of this "signup01".
(please see the attachement max_slot)

can resignup: admin ,anonymouse
can't resignup: ZZZ

Q1.how can I set a user can signup 3 time?
Q2.where can I set for total count of this signup?
(if i promiss 100 ppeople to signup.where to set.)

2.can't see, edit by signup user.
I had change the promesion for it (see attcahemnt -permission)
but, zzz (general user) can see or edit his signup.

thx

CommentFileSizeAuthor
#9 NODE_RG_NO.jpg49.22 KBbaseball
#9 NODE_RG.jpg32.78 KBbaseball
permission.jpg34.89 KBbaseball
mas_slot.jpg82.44 KBbaseball

Comments

rudiedirkx’s picture

Ehm... I don't know what you're talking about...

The settings in your mas_slot.jpg determine how many slots a user can select. Not the number of registrations. (The number of slots is a dropdown in 1 registration.)

Only admins can re-signup. Or you have to override NR access control.

You're gonna have to be much clearer if that's not good enough.

baseball’s picture

Dear :
thx for your help.

Beacuse I had tried to add a ct filed to regisate the "Field for capacity".
it can limited the max regisate count. (Field for capacity-1 for really).
And SETTING-->NUMBERS-->checked Allow exceeding capacity,it can registe over (Field for capacity-1) count.
SO ,I thought the slot will have relationship to it...

what is the function of the slot ?

where is NR access control?

And,How can I export the detail of this node registration by one article.

thx.

rudiedirkx’s picture

Category: Bug report » Support request

The field for capacity just overrules the normal, total capacity. It doesn't do anything with "Max slots per ... registration". It also doesn't do anything with more than 1 registration per user. NR assumes everywhere that 1 user can have only 1 registration, unless admin. You can overrule that with access hooks.

NR access control is hooks: node_registration_access() triggers a hook node_registration_access where you can override true/false access for all operations. That will require some custom code. Implement hook_node_registration_access() and see how it works. I'll add an .api.php soon, with more explanation about NR hooks.

baseball’s picture

Dear rudiedirkx:

thx for your help。
I don't know how to use hook ,and don't know where is node_registration_access....

SO,I must wait it.

And,It's possible to expot the detail of registration for every event?

thx.

rudiedirkx’s picture

Export what? Registrations? Yes, you can do that with Views Data Export. Make a View with all the fields you want and add a VDE display (I think that's how it works).

baseball’s picture

Dear:
Thx for your help.

I add a view(page):

*Title:NR3_Detail

*PAGE SETTINGS:
Path:/node/%/NR3_detail
Menu:Tab: NR3_detial
Access:Permission | Administer registration

*CONTEXTUAL FILTERS
Content: Nid

Then, I saw the "NR3_Detail" tab show on every node.
BUT,Your default view of the nodule just show on the content type of "Node Registration".

How to do it?

rudiedirkx’s picture

What?

Then, I saw the "NR3_Detail" tab show on every node.
BUT,Your default view of the nodule just show on the content type of "Node Registration".

Did you make a separate View with Views Data Export display? It must be attached to a page. Can be any URL. You can also make the VDE display in the existing NR View. If you need help with VDE, ask them.

baseball’s picture

Dear rudiedirkx :
Sorry, I dien;t descript it clean.
I had try to install VDE display.
but, In this case , I want specila view to show only on specila , not every content type.

I build a view named: "NR"
and I build a view page:
****Title:NR3_Detail

****PAGE SETTINGS:
Path:/node/%/NR3_detail
Menu:Tab: NR3_detial
Access:Permission | Administer registration

****CONTEXTUAL FILTERS
Content: Nid
************************that' copy the format form your "One event's registrations" in Node registrations.
the your "Registrations" tab just show one the content type of node registration.

but,my Title:NR3_Detail show on every node.
I just want it show on special content type like "Registrations" that you made.

I had attach 2 pic:
NODE_RG.jpg:show your "Registration" tab just show on the registration node type.
NODE_RG_NO.jpg:show "NR3_Detail" Tabs on not registration node type.

thx

baseball’s picture

StatusFileSize
new32.78 KB
new49.22 KB
rudiedirkx’s picture

Dude, I'm not even trying to understand that. You must know, whatever your native language, that you're writing gibberish. Goodluck.

baseball’s picture

Dear rudiedirkx :

Anywhere,thank your help.

I just don't know why your
"Display name:One event's registrations " of view can show only on the content type which reference to "node registration module".

rudiedirkx’s picture

Edit that default View, add a "Data Export" display and you're done. You can change fields and conditions and sort etc if you need. If you need help with that, ask the nice people of Views Data Export.

If you need help with Views relationships and/or contextual filters etc, ask the nice people of Views.

If you need specific NR help, please be more clear about what you want to achieve and what the problem is.

rudiedirkx’s picture

Isn't there a decent Chinese (?) to English translator you can use? I seriously don't understand this:

I just don't know why your
"Display name:One event's registrations " of view can show only on the content type which reference to "node registration module".

baseball’s picture

Dear rudiedirkx :

I am sorry to confuse you,
I make a desc step by step as:
https://dl.dropboxusercontent.com/u/16503603/node_registration.pdf

If you have time and would like to see it.

thx for your help.

rudiedirkx’s picture

Wow! That's a super perfect PDF explanation! I've never seen that. Very cool. AND now I understand the issue!

I would have the same problem, because Views doesn't know which nodes have Node Registration enabled. BUT as you can see on http://drupalcode.org/project/node_registration.git/blob/e858b1fb1a336fc... I do a hook_menu_alter() to change the access callback for that tab, so I can customize its visibility: node_registration_node_access() requires a valid Registration node (type).

You could do the same: copy the menu alter function, remove the first part (3 lines with $item_fields) and change the path of the second part to your tab's path. You will need some Drupal coding/module skills for that. Or you can ask anywhere in the Drupal community.

MAYBE there is a way in Views to do this... Inside the view you might be able to check for node type somewhere... Maybe. Not sure.

Yes, you can:

* Edit the view
* Edit the Contextual Filter: "Node registration: Node nid"
* Check the "Specify validation criteria" checkbox
* Choose "Content" in the "Validator" field
* Check the boxes of the content types you have Registration enabled for

That should do it! Go Views!

(I don't use that method, because I don't know the name of your Registration types.)

baseball’s picture

Dear rudiedirkx :
Thx for your help.
But i can link to http://drupalcode.org/project/node_registration.git/blob/e858b1fb1a336fc...
so ,I can't see hook_menu_alter()

I am sorry ,where is the
Check the "Specify validation criteria" checkbox ?
I can find it in contextual filter..

It maybe use ( Views node access) module to do it.
But< if possible,I would like to try your hook_menu_alter().
thx

rudiedirkx’s picture

This is the relevant part:

 414   $item_view = &$items['node/%/node_registration'];
 415   $item_view['access callback'] = 'node_registration_node_access';
 416   $item_view['access arguments'] = array(1, 'registration settings');

including line numbers (of current dev).

But don't use that. Use the Views setting. My description to get there couldn't have been more clear:

  1. Edit view
  2. Click "Node registration: Node nid"
  3. Check the "Specify validation criteria" checkbox
  4. Choose "Content" in the "Validator" field
  5. Check the boxes of the content types you have Registration enabled for

You do know how Views works a bit, right? You need some Views skills...

baseball’s picture

Dear rudiedirkx:
I get it!
Thx for your help!

rudiedirkx’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.