country codes?

Discussion in 'Templates customization' started by Gail, Apr 30, 2004.

  1. Gail

    Gail Guest

    Help, I'm UK based with a mainly UK audience and want to change the preselected country in the dropdown box on the sign up page to reflect that, but can't find where to do this?
  2. alex

    alex aMember Pro Customer Staff Member

    Joined:
    Jan 24, 2004
    Messages:
    6,021
    just set links to signup page like
    /amember/signup.php?country=UK
  3. Gail

    Gail Guest

    counties vs states

    Thanks Alex, I've done that, just one more thing. How can I get the 'State' lookup to include a list of UK Counties rather than US states?
  4. alex

    alex aMember Pro Customer Staff Member

    Joined:
    Jan 24, 2004
    Messages:
    6,021
    You can edit states list in file amember/common.inc.php
  5. pauln

    pauln Guest

    editing common.inc.php

    I've just installed a test version of amember... picking up on this thread - this file
    (common.inc.php) is encrypted, so how can you edit it?

    P.N.
  6. Gail

    Gail Guest

    paid version

    Must not be encrypted in paid version because I edited it OK in Dreamweaver
  7. skippybosco

    skippybosco Guest

    couple of questions about pre-filling fields like country code.

    1. How do you pre-fill multiple fields (ie. what would the URL string look like to prefill country and coupon code for example.

    2. Is it possible to pre-fill custom fields? If so what code changes are required?
  8. Gail

    Gail Guest

  9. skippybosco

    skippybosco Guest

    Thanks for the help Gail.

    Have you tried this with custom fields? I'm trying to figure out what field name will be added to the URL and if any changes to the PHP code will be required.
  10. Gail

    Gail Guest

    Basically, whatever the input box is called, which comes from the internal 'name' field in the table on the admin page where you added the field. For example I have a field Account Number whose internal name is 'account', so if I wanted to prepoulate this field I would link to http://www.in2networking.com/amember/signup.php?account=1234 and a sponsor's surname fields, internal name sponsor, so this would be
    http://www.in2networking.com/amember/signup.php?sponsor=seymour
    Logically if I wanted to prepopulate both fields I would link to
    http://www.in2networking.com/amember/signup.php?account=1234&sponsor=seymour
  11. pauln

    pauln Guest

    Thanks for the reply.

    If this is the case, then the 30-day trial download isn't the same as the version you
    purchase, which makes evaluation of it somewhat problematic.

    P.N.
  12. Gail

    Gail Guest

    ask Alex

    try emailing Alex using the support desk and ask him to make the changes for you so you can upload the changed file.
    Honestly though, if you get the rest of the system set up and working how you want it, you can always make these minor adjustments once you've bought the pro version. I did and I'm not familiar with php at all.
  13. dstig

    dstig Guest

    my counties code

    I've attached the list of UK counties I made for my amember pro (counties.txt)

    I hope this helps others UK users.

    Duncan
  14. Pangdene

    Pangdene New Member

    Joined:
    Aug 17, 2004
    Messages:
    26
    Thanks - you're a star! :cool:
  15. Pangdene

    Pangdene New Member

    Joined:
    Aug 17, 2004
    Messages:
    26
    Hi,

    just gone through your list of counties - there seem to be a lot of cities in there!

    Forgive me if I'm wrong, but since when has Portsmouth, Southampton, Leeds, Cardiff or Middlesborough been counties?...

    Could you please tell me where you compiled the list from?

    Many Thanks,
    :confused:
  16. moonie

    moonie New Member

    Joined:
    Jul 2, 2004
    Messages:
    8
    Hi

    I also looked at creating the counties file, see attached, the list covers the whole of the UK and was extracted from the following site

    http://www.internet-promoter.com/code-UK-county-drop-list.htm

    However, I decided to go for the option of not using the standard address fields and opted for creating my own using the control panel to create user fields, this gave me the option of having County as an input field as I didn't want to exclude oversees users! I was able to make the address fields compulsary - I can give you the code if you are interested. I am not sure whether the normal address fields automatically populate the data in the payment system (can anyone tell me whether it does?) but it doesn't my way, I am on Worldpay.

    Brian
  17. Pangdene

    Pangdene New Member

    Joined:
    Aug 17, 2004
    Messages:
    26
    Hi,

    that would be very helpful!
    Could you post it here?

    Thanks
    :)
  18. moonie

    moonie New Member

    Joined:
    Jul 2, 2004
    Messages:
    8
    Hi

    I wanted to add an additional field for "Town" to the address details, Alex gave me the following:

    Add this to config.inc.php:
    add_member_field('town', 'Town', 'text');
    Then modify signup.html template and add html for this field.

    And I needed the field to be required, he gave me this script

    in signup.php check_payment_form function add this: (for example)
    if (!strlen($vars['field_name'])){
    $error[] = 'Please specify field name';
    }

    I hope this is useful

    Regards

    Brian
  19. conan

    conan Guest

    Message for Gail

    Hi Gail.

    Sorry to jump in on this thread but I noticed the company Kleeneze on one of the links that were added to a reply. Is that by any chance based in or near Leeds? I did a demo website for them about 4 years ago :D

    Just Curious

    Andrew

Share This Page