Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2009-06-23 06:04:31

mrtunes
Member
From: Toronto, On
Registered: 2007-03-12
Posts: 575
Website

user sends form without having to fill in their name

i’m wondering how you can create a form that allows a logged in user to send a message, and they don’t have to fill in their name because they are already logged in. i have mem_self_register, ign_password, as well as zem_contact_reborn installed.

using zem_contact_reborn, i tried using from_form=“contactName” – i made a form called contactName and just put <txp:author /> in it. then when the form executed, the email said it’s from contactName <myemail@address.com>

so i’m looking for some ideas over here. the reason this is not in the zem_contact_reborn forum is because i’m not even sure if that plugin can handle this. thanks

Last edited by mrtunes (2009-06-23 06:04:58)

Offline

#2 2009-06-23 13:30:17

uli
Moderator
From: Cologne
Registered: 2006-08-15
Posts: 4,306

Re: user sends form without having to fill in their name

You can try <txp:ign_user_info type=“choose one” /> in your contactName form.


In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links

Offline

#3 2009-06-23 17:25:09

mrtunes
Member
From: Toronto, On
Registered: 2007-03-12
Posts: 575
Website

Re: user sends form without having to fill in their name

thanks for the suggestion but that didn’t work.


<txp:ign_if_logged_in>
<txp:zem_contact to="my@email.com" from_form="contactName" > 
  <txp:zem_contact_text label="Phone" min=7 max=15/>
  <txp:zem_contact_textarea label="Your question" />
  <txp:zem_contact_submit label="Send" />
</txp:zem_contact>
</txp:ign_if_logged_in>
<txp:ign_user_info type="email" />

Offline

#4 2009-06-23 18:32:17

net-carver
Archived Plugin Author
Registered: 2006-03-08
Posts: 1,648

Re: user sends form without having to fill in their name

Elliot

If I remember correctly — and that’s a big if — you can do it like this…

<txp:rvm_if_privileged>
    <txp:zem_contact_text label="Name" break="" default='<txp:rvm_privileged_user />'/>
    <txp:zem_contact_email break="" default='<txp:rvm_privileged_user type="email" />'/>
<txp:else />
    <txp:zem_contact_text label="Name" break="" />
    <txp:zem_contact_email break="" />
</txp:rvm_if_privileged>

But I’m probably wrong. Anyway, hope that helps.


Steve

Offline

#5 2009-06-23 20:39:26

mrtunes
Member
From: Toronto, On
Registered: 2007-03-12
Posts: 575
Website

Re: user sends form without having to fill in their name

yeah i thought rvm_privileged was the one too, but even before i put it in the form i couldn’t get it to echo a basic statement like <txp:rvm_privileged_user type=“email” />

i reckon because the users are set to have no privileges.

Last edited by mrtunes (2009-06-23 20:40:02)

Offline

#6 2009-06-24 09:05:23

net-carver
Archived Plugin Author
Registered: 2006-03-08
Posts: 1,648

Re: user sends form without having to fill in their name

Elliot

rvm_privileged needs TXP 4.0.6 or higher. Just wondering if that’s the problem.


Steve

Offline

#7 2009-06-24 18:15:10

mrtunes
Member
From: Toronto, On
Registered: 2007-03-12
Posts: 575
Website

Re: user sends form without having to fill in their name

net-carver wrote:

Elliot
rvm_privileged needs TXP 4.0.6 or higher. Just wondering if that’s the problem.

no i’m on 4.0.8

i can go into the plugin author’s thread and try to trouble shoot if this is the right plugin to do what i need here. you can understand why i didnt start out with plugin author support cause i’m working with like 4 plugins here hah

Last edited by mrtunes (2009-06-24 18:15:33)

Offline

Board footer

Powered by FluxBB