ATutor

Learning Management Tools







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


Parameter passing


  • 2006-02-13 11:30:12

    Parameter passing

    banderson407 Subject: parameter passing
    I know that you can jump to the E-mail the course instructor by using:
    www.yoursite.com/inbox/send_message.php?id=1

    Is there a way to also pass the subjets as well so the user only has to enter comments if wanted and then submit ?
    Posted: 2006-02-12 23:35:05
    ========================================
    greg Subject: Re: parameter passing
    I don't which version of ATutor you are referring to, but the subject is inserted in the subject form field of the Inbox automatically in the current versions.

    Questions like this would be better posted to the support forum.
    =========================================

    It is ver. 1.5.2 runnin on windows with the current easy PHP build from this site.

    You lost me when you state that the subject is automatically filled in on this version.

    I know if I link to send_message.php and pass ?id=# I get the form with the recipient filled in but also want the subject filled in and the cursor waiting in the comment box.

    So for example I want to insert an quick link in a course for a student to send a request for instructor audit, is there a paramater I can pass as well to have "Instructor audit requested" automatically inserted as the subject of the e-mail ?

    Thanks in advance

  • 2006-02-14 10:23:41

    Re: Parameter passing

    You would need to modify the code on lines 181 and 187 of inbox/send_message.php from POST['subject'] to REQUEST['subject']

    Then you could attach "?subject=something" to the end of the link you create to the inbox.