Δημοσιεύτηκε: 14 Μάιος 2009, 18:50
simosx έγραψε:bullgr έγραψε:Έχεις δίκιο Σίμο, αλλά αυτά προϋποθέτουν σωστή οργάνωση και μελέτη από την αρχή.
...
Καταλαβαίνω αυτό που θέλεις να πεις.
Για το http://www.ubuntu-gr.org/webchat
όταν κάνεις επεξεργασία σελίδας, είναι τεχνικά εφικτό να προστεθεί κώδικας (PHP?) ώστε το σημείο που καθορίζει το username του χρήστη να μπορούμε να βάζουμε το όνομα χρήστη από την εγγραφή στο http://www.ubuntu-gr.org;
Απαντώ στον εαυτό μου.
έγραψε:
<simosx> <simosx> <- total drupal ignoramus: Is it possible in drupal to write PHP code in the content of an article; For example, so that the code can show the username of the logged in user when she views the page;
<simosx> <geerlingguy> simosx: yes - you can set the input format to PHP... or make your node.tpl.php have a section that has the logged in user name, but this question might be better in #drupal-support
<simosx> <geerlingguy> simosx: it's best to not allow anyone besides (maybe) the administrator to use the PHP input format, though (enabled at the module admin page)
(από το #drupal@Freenode)
Οπότε είναι εφικτό να φτιαχτεί η σελίδα αυτή ώστε να απαιτεί από τα μέλη να συνδεθούν στο λογαριασμό τους πρώτα.