Hey sam, we’re ready to go with this and I’m running into a few issues:
1 I’m too dumb to directly use the api (and would rather not if I didn’t have to). It looks like the api is slightly different than your initial post based at what I’m looking at on github. I am a complete idiot when it comes to ruby, so that could very well be the problem
2 We would love to just use the invites page and not resort to ruby scripts. I would love to be able to
specify the topic ID I want use for content of the email
set a group that the user(s) will immediately be added to
have an option to use a bulk list of email addresses
It feels like the UI is so close to being able to do this already.
Another useful bit would be that if an invite email address was already in the discourse user list, then just make sure that they are automatically added to the groups that we specify.
I don’t think this is working. I was able to have an invite sent for a public topic, but couldn’t for a private topic.
We really want this feature for private categories. Our current focus is to send out invitations to all of our resellers to have them automatically added to the “reseller” group and give them access to a private reseller category.
Hmm… apparently @bobmcneel was able to get this to work for private posts.
Is there any way we can get the entire initial post contents into the email? Our test email invites are pretty sparse and we would like to add a little more information.
I think the bulk upload will work just fine for us if we can get the entire post placed in the email. It is the truncation of the post that makes the email nearly impossible to adjust. Is the latest code still truncating or was a setting added as you mentioned possibly doing?
The invite button still does not appear for private topics, but should, only if you are an admin. Presumably admin will be smart enough to include the right groups so the user can actually see the topic they’re being invited to… we hope
I don’t know that I support having the entire topic included in the invite email. I think for that you should use the API, and maybe @techapj can write up a howto sample for that after he’s done with #1 and #2 above.
Remember there is a distinction between “pushing the invite button” which exists on
your user page, in the invites section, if you have trust level 2+ or are a staff member
every topic, if it is a public topic and you have trust level 2+ or are a staff member
private topics, if you are an admin
… and using the bulk invite upload facility, which exists only on your user page, if you are an admin. Behind the scenes they are the same code, of course, it’s just a question of whether you want to push a button 10, 100, or a thousand times…