- Details
-
Category: Moodle
-
Published: Friday, 21 March 2014 17:19
-
Written by Super User
-
Hits: 44
Όταν στο moodle έχουμε ενεργοποιήσει το self-registration και θέλουμε να παίρνουμε ως administrator ένα e-mail που να μας ειδοποιεί ότι κάποιος χρήστης έχει κάνει εγγραφή κάνουμε τα παρακάτω:
Send a duplicate of the registration email to the administrator
(Moodle 1.8) In /lib/moodlelib.php, search for the function send_confirmation_email (around line 3629 in 1.8.4+). At the end of the function there is a line that reads (2):
return email_to_user($user, $from, $subject, $message, $messagehtml);
Just before that line, add a line like this:
email_to_user($from, $from, $subject, $message, $messagehtml);
(Moodle 1.9) In /lib/moodlelib.php, search for the function send_confirmation_email (around line 4468 in 1.9.4+). At the end of the function there is a line that reads:
return email_to_user($user, $supportuser, $subject, $message, $messagehtml);
Just before that line, add a line like this:
email_to_user($supportuser, $supportuser, $subject, $message, $messagehtml);
(Moodle 2.0) In /lib/moodlelib.php, search for the function send_confirmation_email (around line 4468 in 1.9.4+). At the end of the function there is a line that reads:
return email_to_user($user, $contact, $subject, $message, $messagehtml);
Just before that line, add a line like this:
email_to_user($contact, $contact, $subject, $message, $messagehtml);
This can also be changed in '\moodle\enrol\self\lib.php' to send emails to '$contact' when someone self enrols.
Πηγή
http://docs.moodle.org/20/en/Administration_hacks
- Details
-
Category: Moodle
-
Published: Wednesday, 27 November 2013 07:23
-
Written by Super User
-
Hits: 51
Για να αλλάξετε τη διεύθυνση της ιστοσελίδας που βγαίνει το moodle από "http://ipserver/moodle" σε "http://ipserver" θα πρέπει να κάνουμε τα εξής:
Κάνουμε εγκατάσταση τον PHP Accelerator:
sudo apt-get install php-apc
Κάνουμε επανεκκίνηση τον apache για να ισχύσουν οι αλλαγές:
sudo service apache2 restart
Ο PHP Accelerator εγκαταστάθηκε και λειτουργεί. Στη συνέχεια ανοίγουμε το παρακάτω αρχείο για να αλλάξουμε τον αρχικό κατάλογο του apache:
sudo gedit /etc/apache2/sites-available/default
Στην 2η ή 3η γραμμή του αρχείου υπάρχει η ρύθμιση για τον αρχικό κατάλογο (document root):
Αλλάξτε το από: DocumentRoot /var/www
Σε: DocumentRoot /var/www/moodle
Λίγο πιο κάτω λέει "Directory /var/www/"
Αλλάξτε το από: Directory /var/www/
Σε: Directory /var/www/moodle/
Κάνουμε πάλι επανεκκίνηση στον apache για να ισχύσουν οι αλλαγές.
sudo service apache2 restart
Σημαντικό!
Θα πρέπει να αλλάξουμε το configuration file του moodle και συγκεκριμένα την παράμετρο wwwroot
Έτσι λοιπόν στο αρχείο config.php του moodle αλλάζουμε την τιμή της παραμέτρου $CFG->wwwroot σε:
http://ip.address.of.server/ αντί για http://ip.address.of.server/moodle
Πηγή: http://docs.moodle.org/25/en/Step-by-step_Installation_Guide_for_Ubuntu
- Details
-
Category: Moodle
-
Published: Wednesday, 18 September 2013 15:15
-
Written by Super User
-
Hits: 60
'Εστω ότι θέλετε να στήσετε στο σχολείο σας το moodle. Το moodle θα πρέπει να στηθεί σε έναν web server. Αυτό σημαίνει ότι θα πρέπει είτε να το στήσετε στο Πανελλήνιο σχολικό δίκτυο είτε σε κάποια εταιρία που παρέχει φιλοξενία ιστοσελίδων και domain name. Υπάρχει όμως και μια τρίτη λύση το "TurnKey moodle".
Σε αυτή τη λύση το moodle στήνετε μέσα στο σχολείο, σε έναν υπολογιστή ακόμα και περιορισμένων δυνατοτήτων ο οποίος βέβαια θα πρέπει να παραμένει ανοιχτός μέρα-νύχτα. Θα πρέπει να επισκεφτείτε την ιστοσελίδα http://www.turnkeylinux.org/moodle από την οποία θα κατεβάσετε ένα αρχείο ISO (live cd) και θα το κάψετε σε ένα CD. Θα εισάγετε το cd στον υπολογιστή που ....