Templates- Adding Fields

Discussion in 'Templates customization' started by ncaahperd, Sep 22, 2003.

  1. ncaahperd

    ncaahperd New Member

    Joined:
    Sep 20, 2003
    Messages:
    6
    Alex:
    Thanks for being there. I am working to change the database to add variables I need from our members. I have edited config.inc and signup_multi and have gotten them in the global configuration. I have them shown now in the edit profile. In order to get the variables in the array I added them to common.inc like you did for states. It gives me those options now, but I have screwed up my signup file and get this error:

    Parse error: parse error in /home/romorrow/public_html/amember/smarty/SmartyNoWrite.class.php(159) : eval()'d code on line 335

    Also, when I tried to edit my profile (as a test), my name and address were shown (retrieved from the database) but my added variables were not.

    I emailed a similar question to you on Friday but didn't know if you answer faster here or on email.

    Thanks for your time.
    Ron
  2. alex-adm

    alex-adm Guest

    THere was an error in template - {/if} has been repeated twice
  3. ncaahperd

    ncaahperd New Member

    Joined:
    Sep 20, 2003
    Messages:
    6
    Alex:
    I am still getting this error
    Parse error: parse error in /home/romorrow/public_html/amember/smarty/SmartyNoWrite.class.php(159) : eval()'d code on line 352

    what is wrong with this line of code? this is from set-up.php

    $error = plugin_do_payment($paysys_id, $payment_id, $member_id,
    is_array($product_id) ? $product_id[0] : $product_id,
    $price, $begin_date, $expire_date, $vars);
    if ($error) {
    $db->delete_payment($payment_id);
    if (!$member_id_exists)
    $db->delete_user($member_id);
    break;
    }
    exit();
    } while (0); ---------------Line 352
    }

    show_payment_form();
  4. ncaahperd

    ncaahperd New Member

    Joined:
    Sep 20, 2003
    Messages:
    6
    Alex or advanced user:
    OK. I started over. Not sure what happened but it's working now. If I want all fields to be listed in Edit Profile(like name, address,email are now), what is the code for that and where specically (which file) does it go in?

    thanks.

    ron
  5. alex-adm

    alex-adm Guest

    it is add_member_field function
  6. ncaahperd

    ncaahperd New Member

    Joined:
    Sep 20, 2003
    Messages:
    6
    Clarification:

    I want the 'values' of the fields to show up in the profile/edit screen. Right now only name, address, and email are shown, the other values are blank even after a person has registered. I know to make them 1's and not zeros so they can be changed, but is there a way to have the current values for those fields to show up? Like title, school organization, work address, etc?

    thanks
    ron
  7. alex-adm

    alex-adm Guest

  8. ncaahperd

    ncaahperd New Member

    Joined:
    Sep 20, 2003
    Messages:
    6
    Thanks for your patience. I went through and changed the code per instructions and then got this error

    Parse error: parse error in /home/romorrow/public_html/amember/smarty/SmartyNoWrite.class.php(159) : eval()'d code on line 196

    Can you help?

    thanks
    ron
  9. alex-adm

    alex-adm Guest

    Ron, it is error in template, and it should be better (and faster ;) discussed by email, please email me your template.

Share This Page