Login Block not appearing in add a block

Login Block not appearing in add a block

by nadia ahmad -
Number of replies: 9

Hi, I'm using Moodle 2.0, 

I need to add/enable/visible the login block on the front page. Currently it's like this.

http://e-klmu.net/E-Learning/

where the usual login is at the top right corner of the site.

I need it to be like this,

http://lms.aeu.edu.my/

where the login block appears in at the left side. 

How do I make it appear like that? I've read thru the thread and solution by Mat Cannings here, http://moodle.org/mod/forum/discuss.php?d=64081 

but I'm not up to the job to edit the database.

I've also check to see the Login block in Manage Block, it's not hidden (eye not closed). I've tried closing & opening it, try adding it, but to no avail. 

Please help.

Thank you

Average of ratings: -
In reply to nadia ahmad

Re: Login Block not appearing in add a block

by azlan idris -

Salam Nadia,

what i did is login as admin. go to the frontpage, add the login block. and set the login block to appear on every page of the site. the login block will appear, and once the student login it will disappear.

hope it helps.

- Azlan

In reply to azlan idris

Re: Login Block not appearing in add a block

by nadia ahmad -

Salam Azlan

Thank you for your assistance and reply.

I am the admin. I'm logged in as admin. I still could not see the Login block in my dropdown choices of Blocks. 

sad 

a thread suggest to re-install this Login, and see if it works. Does anyone know how to re-install just the Login module, if this could be the case?

Thank you

In reply to nadia ahmad

Re: Login Block not appearing in add a block

by azlan idris -

take a look at this page

http://www.e-klmu.net/E-Learning/admin/blocks.php

do you have any login block or not....

usually you will have it.

if not, just use this plugin

http://moodle.org/plugins/view.php?plugin=block_login_logout

and follow the instruction to install the login block... 

you should then be able to insert the login block..

hope it helps.

- Azlan

ps : I am in Malaysia too smile

In reply to azlan idris

Re: Login Block not appearing in add a block

by nadia ahmad -

Thank you for your reply and assistance. 

I've looked into my /admin/blocks.php, and there's no login block. 

Either I don't know how to search for it, or someone really deleted it, or it was never installed. 

Anyhow, yet to try ur solution. Not looking for fancy login-logout box, a simple standard one would do. But if all else fails, that might just solve my headache as well. 

In reply to nadia ahmad

Re: Login Block not appearing in add a block

by nadia ahmad -

No success. Error appeared. Below is the error

Plugin "block_login_logout" (2012042819) could not be installed. It requires a newer version of Moodle (currently you are using 2011033005.06, you need 2011120100).

More information about this error

Stack trace:
  • line 619 of \lib\upgradelib.php: upgrade_requires_exception thrown
  • line 273 of \lib\upgradelib.php: call to upgrade_plugins_blocks()
  • line 1427 of \lib\upgradelib.php: call to upgrade_plugins()
  • line 311 of \admin\index.php: call to upgrade_noncore()

So I guess, I'm back to square one. Still looking for help. Thank you-Nadia-
In reply to nadia ahmad

Re: Login Block not appearing in add a block

by azlan idris -

if it is not there, someone might have deleted it. just install the login box. it is not fancy. just like the regular one. the only different is that it will show who is currently log in.

hope it helps.

- Azlan

In reply to azlan idris

Re: Login Block not appearing in add a block

by azlan idris -

take a look at this page and download the one for version 2.0

http://moodle.org/plugins/pluginversions.php?plugin=block_login_logout

- Azlan

In reply to azlan idris

Re: Login Block not appearing in add a block (SOLVED)

by nadia ahmad -

I have found it! I managed to get the Login block to appear on the main page. It's pretty much accidental. Anyway, here's how i did it

1. Login as Admin

2. Turn editing on / Blocks editin on

3. At the Settings block, click the Assign Roles at the left most.

4. Click Permissions

5. Add your role to the current list. Default for Edit a block's settings should be only Teacher, View is Authenticated user, Guest, Student, Non-editing teacher, Teacher

6. Click the + icon at the bottom of each list, and choose your current role.

7. Go to the Add a Block block, and choose Login from there.

8. Your login block should appear by now. Mine appeared at the bottom of the right side.

Hope this helps all lost newbies like me!