Hi Moodle users!
I need some help.
In the top right hand corner of Moodle is a "You are not logged in" block.
I would ONLY like to show this when someone is logged in.
--------------
I am editing /theme/formal_white/header.html
On line 25, I have edited:
To:
--------------------
But this doesn't show the "logged in" block even if someone is logged in.
Is there a better variable to detect is someone is logged in or not?
Thanks for reading!
My last post didn't format very well! (shouldn't have used Opera!)
Anyway I'll just repost the above in a more, friendly-to-read format!
-----------------
I need some help.
In the top right hand corner of Moodle is a "You are not logged in" block.
I would only like to show this when someone is logged in.
Right now, I am editing /theme/formal_white/header.html.
On line 25, I have edited:
<div class="headermenu"><?php echo $menu ?></div>
To:
<div class="headermenu"><?php if ($username != "") {echo $menu;} ?></div>
------------------------
But this doesn't show the "logged in" block even if someone is logged in.
Is there a better variable to detect is someone is logged in or not?
Thanks for reading!
Anyway I'll just repost the above in a more, friendly-to-read format!
-----------------
I need some help.
In the top right hand corner of Moodle is a "You are not logged in" block.
I would only like to show this when someone is logged in.
Right now, I am editing /theme/formal_white/header.html.
On line 25, I have edited:
<div class="headermenu"><?php echo $menu ?></div>
To:
<div class="headermenu"><?php if ($username != "") {echo $menu;} ?></div>
------------------------
But this doesn't show the "logged in" block even if someone is logged in.
Is there a better variable to detect is someone is logged in or not?
Thanks for reading!
Hi,
You can do it easily.
( you need to study the documentation about "language editing").
Follow the steps given below
1. login as admin
2. Go to "site administration->language->language editing
3. click on "edit words or phrases" (now you will see the files and words used in moodle).
4. select "moodle.php"
5. After that(you still in same page), click the button "switch lang directory"
6. Now you can modify the any words you required( you can find the sentence "you are not logged in", modify it as your requirement).
I'm sure it definitely works
Rate me.
Have a nice day