OK, after spending the day on this, I've got it to work. Here is what I have done so far.
In module B (Members):
action.default.php - I grabbed the value of $params["show"] and if == 'badge' then include action.showbadge.php
action.showbadge.php - displays the login form and any other functionality
I changed the form tag which is located in action.showbadge.php to this:
Code: Select all
$smarty->assign('formStart2', $this->CreateFormStart($id, 'login', $returnid,'post','',true,'',array(),'class="LoginForm"'));
In module A:
on the page that I want the form displayed, I added this: {cms_module module="Members" show="badge" }
This works great, displays the form as needed and the hidden fields of that form are showing this:
When I submit the form, it goes to Members::login authenticates and redirects back to the page they were on.
I hope this helps someone and saves them a day of banging their head against a wall.