Hi,
i want to create a front page for anonymous users. The page will contain a flash slide show and login form in Full Front page, not themed. I created it like this;

print drupal_get_form('user_login');

But login form doesnt work (not submit form), if i change themed front page, it works. How can i use login form in my full front page.

Thanks,

Comments

dublin drupaller’s picture

Assigned: Unassigned » dublin drupaller
Status: Active » Closed (fixed)

works fine for me. Make sure you select the ALLOW EMBEDDED PHP option.

open this back up if you're still having problems.

mrpauldriver’s picture

I am trying to achieve this with Drupal 7.

Is the php code different in 7?

EDIT
------
I managed to hack something together using the instructions found here http://drupal.org/node/1230136.

It begs the question of whether this very useful module should have an option to include a standard login block.

mrpauldriver’s picture

Version: 6.x-1.2 » 7.x-2.0-rc1
Component: User interface » Feature Request
Status: Closed (fixed) » Active
timhilliard’s picture

Status: Active » Closed (works as designed)

Hi Paul,

In the Drupal 7 version we have taken the checkbox away that enables PHP in favour of using the Drupal filters system. To enable this block of PHP you will need to create a filter type that allows PHP execution and then use that on the field.

Let me know if you need more informaiton.

Thanks,
Tim