Is this possible? Currently I receive a message that states "You cannot send more than one invitation."

Thanks for the awesome module.

Comments

neerajskydiver’s picture

Issue summary: View changes
Status: Active » Needs review
StatusFileSize
new4.39 KB

we can send multiple invites with this patch to invite module "Invite_multiple_email_addresses_separated_by_comma-[1653254].patch"

After applying this patch to invite module,
Visit this url "invite/add/invite_by_email/multiple".
enter email addresses as comma seperated values.

neerajskydiver’s picture

StatusFileSize
new5.81 KB

Made new patch to add a local menu on user profile page "Multiple Invite".

neerajskydiver’s picture

Version: 7.x-2.1-beta2 » 7.x-4.x-dev
Assigned: Unassigned » neerajskydiver
kaizerking’s picture

I can confirm this works great
but i am getting this error
Notice: Undefined offset: 0 in invite_add_multiple() (line 185 of D:\Ampps\www\drupaltest\sites\all\modules\invite\includes\invite.admin.inc).

neerajskydiver’s picture

Error was due to default value of a field which was set to null, instead of 0. This has been fixed in new attached patch.

pitxels’s picture

@neerajskydiver

Hi Thanks for the patch, the user sending the invite is not getting userpoints, I changed the hardcoded 'uid' => 1 to 'uid' => $user->uid and that is saving the invite on the correct user, but no userpoints are awarded. Any idea why?

kaizerking’s picture

@pitxels did u set user points?

pitxels’s picture

@kaizerking: I have userpoints installed and working fine if that is what you are asking, how else could I expect to get the points.

Invite works well with userpoints. My problem is with the patch @neerajskydiver posted, using the textarea for invites doesn't award the user any points at all.

littledynamo’s picture

This patch works for the default invite_by_mail type but not for custom invite types (created via 'Add invite type' at /admin/structure/invite-types).

BeaPower’s picture

Has this been committed yet?

BeaPower’s picture

None of the patches work.

tajdar’s picture

Thanks in advance.
@neerajskydiver
The above patch working great for Yahoo,Gmail but not working with the provided E-mail address "fazal@xululabs.com"
The above E-mail address is from www.godaddy.com

neerajskydiver’s picture

tajdar, this must be some other issue your mail server is not accepting the email. Have you tried with other email IDs. Not able to reproduce from my side. Mails are going to 3 domain specific email IDs I have. Have you check the mail server log?

Coupon Code Swap’s picture

Just a note, you need to visit the special url:

invite/add/invite_by_email/multiple

otherwise, you will get an error if you try send to multiple emails from the block.

tjhart87’s picture

An alternative solution can be found here: https://www.drupal.org/node/1293118#comment-8527939

The above patch does not require a special URL.

ckng’s picture

Assigned: neerajskydiver » Unassigned
Status: Needs review » Closed (duplicate)

Marked as duplicate.
#1293118: Multiple emails support for Invite form solution is preferred.