Key form not working, no email sent
Posted: 06 September 2008 04:42 PM   [ Ignore ]
Newbie
Rank
Total Posts:  21
Joined  2008-08-07

Just bought the User module and attempted to set up a proof of concept form.

I’ve copied the examples, created a key notification template, and pointed to it from my exp:user:key tag.

However when i fill in the form and hit SUBMIT i am simply returned to the form, with no message, no notification of a key being generated, and no email being sent out.

I can provide login info if a tech support person wants to poke around…

In meantime here is the code for my key form:

{exp:user:key template="staff/invite-notify" form_id="invite" form_id="invite" html="no" word_wrap="yes"}

<p>
Member Group:
<
select name="group_id">
{member_groups}
{if {group_id}
> 4}
<option value="{group_id}" {if {group_id} == 6}selected{/if}>{group_title}</option>
{/if}
{
/member_groups}
</select>
</
p>
<
p>
<
label for="to">To Email:</label>
<
input name="to" value="" class="entryfield" />
</
p>
<
p>
<
label for="name">From Name:</label>
<
input name="name" value="{logged_in_screen_name}" class="entryfield" />
</
p>
<
p>
<
label for="from">From Email:</label>
<
input name="from" value="{logged_in_email}" class="entryfield" />
</
p>
<
p>
<
label for="subject">Subject:</label>
<
input name="subject" value="employee website" class="entryfield" />
</
p>
<
p>
<
input type="submit"  class="submit" /></p>

{/exp:user:key}

And here is the code for the invite-notify template mentioned in the above code:

Hello,
  
This is your invitation to sign up for access to the staff-only section of our website.

Your invitation code is: {key}
  
Please follow this link to complete your registration
:
http://www.mydomain.com/user/key_register_template/key/{key}

Any suggestions?

(By the way, the example in the documentation for the Key module uses smart quotes, which means when it is copied and pasted into a template it doesn’t work.)

Profile
 
 
Posted: 08 September 2008 03:06 PM   [ Ignore ]   [ # 1 ]
Newbie
Rank
Total Posts:  21
Joined  2008-08-07

Still not working… in fact, all Solspace User module forms come back with nothing changed…

Bought the User forum software on the premise that it would save the time and hassle of modding and hot-rodding EE member module. But if it’s gonna be an equivalent hassle and cost equivalent time, I’d rather just get a refund and do it myself… Tech support?

Profile
 
 
Posted: 09 September 2008 06:02 AM   [ Ignore ]   [ # 2 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  3356
Joined  2006-10-18

Hello Fogcity,

I apologize for the wait…

I am able to get this to work for me.... do you think you can try using the exact code I have to see if it works? smile

{exp:user:key template="staff/invitenotify"}

<p>
Member Group
<select name="group_id">
{member_groups}
<option value="{group_id}">{group_title}</option>
{/member_groups}
</select>
</
p>

<
p>To <input name="to" value="" /></p>
<
p>From name <input name="name" value="" /></p>
<
p>From email <input name="from" value="" /></p>
<
p>Subject <input name="subject" value="" /></p>

<
p>HTML? <input type="radio" name="html" value="yes" checked="checked" /> Yes <input type="radio" name="html" value="no" /> No</p>
<
p>Word Wrap? <input type="radio" name="word_wrap" value="yes" checked="checked" /> Yes <input type="radio" name="word_wrap" value="no" /> No</p>

<
p> <input type="submit" /></p>

{/exp:user:key}

Also, rename your Key Template to “invitenotify” in case it doesn’t like the dash for some reason. smile

 Signature 
Profile
 
 
Posted: 15 September 2008 12:48 PM   [ Ignore ]   [ # 3 ]
Newbie
Rank
Total Posts:  21
Joined  2008-08-07

My bad.

Problem was a <form> that was not closed with a </form> prior to the key form tag. so the browser got all confused.

Call off the hounds!

Profile
 
 
Posted: 15 September 2008 01:10 PM   [ Ignore ]   [ # 4 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  3356
Joined  2006-10-18

Thanks for the followup smile

 Signature 
Profile