Annoying you are not allowed…
Posted: 16 July 2008 07:05 AM   [ Ignore ]
Newbie
Rank
Total Posts:  2
Joined  2007-12-05

Hi, I’m tryng to create an edit profile form.
I’ve already readed many threads about.
I want to update only custom fields.
Tryed to turn off Secure Forms processing.

Nothing seems to work.

Here my code:

<h2>Benvenuto {screen_name} Aggiorna il tuo profilo</h2>
{if embed:redirect}
{assign_variable
:return="{embed:redirect}"}
{if
:else}
{assign_variable
:return="main/index"}
{
/if}

{exp
:user:edit member_id="{member_id}" group_id="5" form_name="usredit" form_id="usredit{member_id}"}
<p><label for="nome">* Nome:</label><br /><input type="text" name="nome" value="{nome}" id="nome" class="input" /></p>
<
p><label for="cognome">* Cognome:</label><br /><input type="text" name="cognome" value="{cognome}" id="cognome" class="input" /></p>
<
p><label for="indirizzo">* Indirizzo:</label><br /><input type="text" name="indirizzo" value="{indirizzo}" id="indirizzo" class="input" /></p>
<
p><label for="citta">* Citt&agrave;:</label><br /><input type="text" name="citta" value="{citta}" id="citta" class="input" /></p>
<
p><label for="cap">* Cap:</label><br /><input type="text" name="cap" value="{cap}" id="cap" class="input" /></p>


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


{/exp:user:edit}

This code is used via the embed function

Every time i get the same “You are not allowed...” error.
I’ve set the “Email is username” option on on User module preferences.
THe registration page is created using the User module and just works fine.

EE: 1.6.3.
Freeform installed.

Any ideas?

(PS: Sorry for my english)

Profile
 
 
Posted: 16 July 2008 01:52 PM   [ Ignore ]   [ # 1 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  3374
Joined  2006-10-18

dibeja,

Try adding this parameter to your code: smile

username_override="yes"

Additonally, remove these parameters:

member_id="{member_id}"

form_id="usredit{member_id}"

 Signature 
Profile
 
 
Posted: 17 July 2008 12:38 AM   [ Ignore ]   [ # 2 ]
Newbie
Rank
Total Posts:  2
Joined  2007-12-05

I’ve tryed but not working.

I’ve found that changing the user session security in Session Id only the form works…
I don’t like the session variable in the url but i can live with that. wink

Thanks.

Profile
 
 
Posted: 17 July 2008 08:34 AM   [ Ignore ]   [ # 3 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  3374
Joined  2006-10-18

Are you a member of Group 5 when editing? smile

 Signature 
Profile
 
 
Posted: 25 September 2008 03:35 PM   [ Ignore ]   [ # 4 ]
Newbie
Rank
Total Posts:  7
Joined  2008-09-07

I was dealing with this issue up until a few minutes ago, and I’m pretty sure I’ve got the solution for many people out there who face this “You are not allowed” problem in the User Module.

Your user:edit form contains custom profile fields. Go to Admin > Members and Groups > Custom Profile Fields. All of the custom profile fields that you have put into your user:edit form should be set to “Is field visible in registration page? > YES” If they are not set to YES, you will get the “You are not allowed...” message.

This should solve the problem for at least a bunch of you.

Profile
 
 
Posted: 26 September 2008 06:13 AM   [ Ignore ]   [ # 5 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  3374
Joined  2006-10-18

Thanks dutchearth,

Though I cannot seem to duplicate this… smile

 Signature 
Profile