ATutor

Learning Management Tools







Pages:1 2 3 4 5 6 7 8 9 10 11 12 13 14 15


Force names to be entered


  • 2006-03-24 11:04:08

    Force names to be entered

    Is it possible to force the first and last names to be entered? Is there a place to set a switch or some such?

    Dumarest

    If you are asking for help, provide lots of detail so problems can be reproduced.

    Things to describe:
    operating system -
    version of ATutor - 1.5.2
    versions of php -
    version of mysq l -
    webserver & version -
    copies of error messages -
    changes to default settings -
    web browser being used -
    and anything else relevant -

  • 2006-03-24 11:16:32

    Re: Force names to be entered

    Possible with some minor programming adjustments, but there isn't a switch.

    One of the things on our todo list is a registration form builder, which will give admins the ability to define which fields are in the form, and which ones are required. It probably won't make it into the next release though. It might make it into the year end release.

  • 2006-03-26 00:20:01

    Re: Force names to be entered

    Can you tell me why if I add a single additional field to the AT_members table that the Registration form fails. I have created it with the ability to be NULL.

    Dumarest

    If you are asking for help, provide lots of detail so problems can be reproduced.

    Things to describe:
    operating system -
    version of ATutor -
    versions of php -
    version of mysq l -
    webserver & version -
    copies of error messages -
    changes to default settings -
    web browser being used -
    and anything else relevant -

  • 2006-03-26 08:57:35

    Re: Force names to be entered

    That's not really somethng we can answer without seeing the code you've written.

    For purposes of checking if first/last name have been entered, you just need duplicate the check for login name, password, or email, and adjust them accordingly.

    in /registration.php


    something like

    [php]

    if ($_POST['first_name'] == '') {
    $msg->addError('FIRST_NAME_MISSING');
    }


    [/php]

  • 2006-03-26 09:33:49

    Re: Force names to be entered

    All I did was use phpMyAdmin and add a single field to the table AT-members.. I made the field NULL so it would not be forced to be entered. I then tried to run the Registration Program - NO CODE CHANGES and I get an error.

    Dumarest

    If you are asking for help, provide lots of detail so problems can be reproduced.

    Things to describe:
    operating system -
    version of ATutor -
    versions of php -
    version of mysq l -
    webserver & version -
    copies of error messages -
    changes to default settings -
    web browser being used -
    and anything else relevant -

  • 2006-03-26 10:16:05

    Re: Force names to be entered

    If you change the db structure, you'll need to adjust the INSERT SQL about line 140 in registration.php in the source code to reflect the change. You may also have to change the SELECT SQL where the information is retrieved, eg in profile.php.

    You are starting to get a little beyond the kind of help we can offer in the forums. PHP/SQL basics is something you'll need to learn on your own.

    What is the error message?

    Describe in detail what you are trying to do.

    What's the new field for?

  • 2006-03-26 10:58:57

    Re: Force names to be entered

    Hi Greg:

    I am not asking you to teach me MySQL or PHP <grin>! Those I have SOME understanding of and will learn more as time goes by. I am more use to the windows world and there - I can add a new field to a table without programs crashing <grin>... The reason for asking is that I was wondering if there was an aTutor reason for the crash of the web page. Since it is not aTutor but MySQL specific - you're right I expect to be on my own. Thank you for at least pointing out that it is a MySQL problem - not aTutor.

    The reason for adding a field to AT-members is that I wish to keep a PICTURE of the individual who registers AND I want to track from WHOM were they referred to our LCMS. I will need to allow certain Instructors access to specific students if the student was referred BY THEM (looking at the tracking data). In fact I would like the PRIVILAGES part of the system to work - as that may solve some of the problem. Especially if that part recorded who allowed the ENROLLMENT. As I understand it - as the TEACHER, I can take a STUDENT and give them privilages and turn them into a TeachingAssistant (sort of) This would be great so that my clients could ENROLL their own people. Since that module doesn't seem to work for us - I need some way to track which students come from whom. I had decided to add a field called COUPON as a marketing ploy to track this and give the pseudo TA's some feeling of being able to control their own students. I would use this in tracking to allow them to see and only see their own students.

    I hope this makes sense. If you'd like a phone conversation and have the time - I'd be willing to chat with you at your convenience. Today is fine with me if it is with you. I do respect your privacy - so don't want to PUSH!

    The error message is:

    The following error has occurred.
    Information could not be aqdded to the database.

    Is there anyway we could track down the problem with the privilages? Do you have it running in your development? Perhaps I could get the same web pages / files you're susing for that part of the application to fix the problem??

    Thanks

    Dumarest

  • 2006-03-27 08:43:16

    Re: Force names to be entered

    I can not find anything wrong with the privilage system. You can try it yourself on our demo site. There's no differecne between the files in our demo and those you have with 1.5.2.

    There is no function that would assign enrollment privileges to specific teaching assistants.

    Re: pictures and coupons, you'd be better off containing them in their own table.

    We might be able to help if we knew a little more about the system you have ATutor running on. Provide the details outlined when you post a message.

  • 2006-03-27 09:01:35

    Re: Force names to be entered

    As I understand it - a STUDENT can be granted PRIVILAGES. Enrollment seems to be one of those privilages. Does this mean they can enroll themselves without approval or that they can enroll others?

    Good suggestion about a separate table - especially when it comes to future upgrades.

    Do you want to see the error for yourslef at our site??

    Things to describe:
    - operating system - FreeBSD 4.1
    - version of ATutor 1.5.2
    - versions of php - PHP V5.0.4
    - version of mysq l - MySQL 3.23.47
    - webserver & version - Apache/1.3.31 (Unix) mod_ssl/2.8.19 OpenSSL/0.9.7d PHP/5.0.4

    Dumarest

  • 2006-03-27 09:53:48

    Re: Force names to be entered

    They are already enrolled so they could not enroll themselves. Of course you'd need to trust enrollment privileged users to behave themselves. They would have all the powers of the instructor, so yes they could enroll others.

    I don't see anything in the system specs that would explain privileges not working.

    send us a link and some login info