Hi, i noticed that when i browse users in the admin area of the script there are certian fields that exist which ar not present in the sign-up form. I would just like to ask if there was anywa in which i could include those fields in the sign-up form. Any help would be greatly appreciated. Thank you, Saqib Mughal saqibisdon@hotmail.com
Sorry, i would just like to add that i am using the latest free version of the script. Thank you, Saqib Mughal saqibisdon@hotmail.com
There is documentation here about adding extra fields. But I am not sure if it applies to the free version also or just the pro version: http://www.cgi-central.net/amemberdocs/cus.../new_fields.htm
Yes, the files from section 1 (address, city and so on) may be used in Free version. In pro version, you can enable their with one setting in aMember CP: "Use Address Info".
[/QUOTE]Hi again. In section 1 of that link it gives the instructions: I would like to point out that in the amember free version admin control panel there is no (as told in step 2 above). Also, step 3 refers to rather then the free version. As such, using the information in section 1 of the guide, i could not add the fields already present in the database. Please could further help be given. It would be greatly appreciated! Thank you, Saqib Mughal
In the free version you need to open the file config.inc.php and change the line that refers to including address information from =0 to =1 I have not used the free version and have not got a copy handy, but it should be easy enough to see that line.
Thank you for your help abbeyvet! But no such line is in the config.inc.php file! Here is the file: Code: <? /** * Main aMember Config * You can edit it manually or using /admin/setup.php * Don't wrap any strokes. It should still one-line! * * Author: Alex Scott * Email: alex@cgi-central.net * Web: http://www.cgi-central.net * Details: Plugins config * FileName $RCSfile: config-dist.inc.php,v $ * Release: 1.8.5 ($Revision: 1.19 $) * * Please direct bug reports,suggestions or feedback to the cgi-central forums. * http://www.cgi-central.net/forum/ * * aMember is free for both commercial and non-commercial use providing that the * copyright headers remain intact and the links remain on the html pages. * Re-distribution of this script without prior consent is strictly prohibited. * * */ define('INCLUDED_AMEMBER_CONFIG', 1); error_reporting(E_ALL ^ E_NOTICE); /** * Global Script Config * @global mixed $config */ $config = array(); $config['root_dir'] = dirname(__FILE__); $config['root_url'] = 'http://***********.co.uk/member'; $config['admin_email'] = 'staff@***********.co.uk'; $config['admin_login'] = 'admin'; $config['admin_pass'] = '82peYo03WCfOY'; $config['admin_pass_encrypted'] = 1; $config['tpl_cache_level'] = 0; $config['send_signup_mail'] = 1; $config['display_member_pw_urls'] = 0; ############################################# # predefined variables # $config['plugins_dir']['payment'] = "$config[root_dir]/plugins/payment"; $config['plugins_dir']['protect'] = "$config[root_dir]/plugins/protect"; $config['plugins_dir']['db'] = "$config[root_dir]/plugins/db"; $config['data_dir'] = "$config[root_dir]/data"; include_once("$config[root_dir]/smarty/Smarty.class.php"); include_once("$config[root_dir]/common.inc.php"); include_once("$config[root_dir]/db.inc.php"); include_once("$config[root_dir]/paysys.inc.php"); include_once("$config[root_dir]/member.inc.php"); include_once("$config[root_dir]/product.inc.php"); include_once("$config[root_dir]/plugins.inc.php"); ?> Thank you, Saqib Mughal saqibisdon@hotmail.com
....yes.....Yes....YEs....YES!!!!!!!! I AM THE BEST!!! I did it! I do not think there is no easy way to add the existing fields in the easy version(well i don't think so anyway!),so i had to go the LONG way round. Firstly, i had to add the fields to the signup.html page, following the patterns of the fields that were already present. i.e: Code: <tr> <th width=40%><b>Street</b><br> <small>your current street address</small></th> <td nowrap><input type=email name=street value="{$smarty.request.street|escape}" size=30> </td> </tr> I did this for all the missing fields. When trying to sign up, i was still getting errors. I viewed the signup.php code and realised all the other fields had checks to see if they were filled in. So then i added checks for the new fields that i had added in the signup.html page and...it worked!! Thank you for all your help!! I'm, so glad i finally got it to work! If any one who is wishing to add the fields which alread exist in the database of the free version of the aMember scripts and did not understand a word of what i just said above, can email me at: saqibisdon@hotmail.com for more detailed instructions or for help. Thank you, Saqib Mughal saqibisdon@hotmail.com
well I guess I am one of the people that don't understand........so you will be hearing from me......
Hi, I am new here and try to customize the free version to see if the product is suitable for me. I edited the config.inc.php, added a line add_member_field('company', 'Company Name', 'text', 'company of member'); but I get an error message :Fatal error: Call to undefined function: add_member_field() in crogram fileseasyphpwwwamemberconfig.inc.php on line 66 what did I do wrong..? thanks for your help!
Hi, I am new here and try to customize the free version to see if the product is suitable for me. I edited the config.inc.php, added a line add_member_field('company', 'Company Name', 'text', 'company of member'); but I get an error message :Fatal error: Call to undefined function: add_member_field() in crogram fileseasyphpwwwamemberconfig.inc.php on line 66 what did I do wrong..? thanks for your help!