WebsiteBaker Support (2.8.x) > Templates, Menus & Design

Login box

<< < (2/3) > >>

kweitzel:
Just make a menu link to the login form ... that will do what you want.

cheers

Klaus

orko3001:

--- Quote ---Just make a menu link to the login form ... that will do what you want.
cheers
Klaus
--- End quote ---

That'll log you into the backend. I want people to stay with the frontend. But I only want a login box on one page.

I put the above code into a code box and got this:

Parse error: syntax error, unexpected '<' in /home/site/public_html/modules/code/view.php(30) : eval()'d code on line 4

The code box seems to delete my php tags once saved :s

Cheers

Ari Lindholm:
Have you tried to leave <? and ?> marks out from that code (if you want to use paste that code trick)?
< http://forum.WebsiteBaker.org/index.php/topic,3773.0.html#msg23496 >

Other method: Personally i would try to use 2 almost similar templates, one with login code-part in template and other without it. And assign those templates right pages.
This could keep your things much clearer i think...

gilly:
Im having the exact same issue as Orko.

I want my login form to be on its own page, with a simple text link to it on each page. When the user logs in they get to see content in the navigation that they wouldnt see if they werent logged in.

I get the same parse error when I put the login script into the Code box, and I have tried both with and without the php tags at the start and end.

I have tried using the 2 templates method, and although this works, is not at all suitable. If its setup like this, and I need to change the CSS or the layout in one template, means I need to make the change in both templates, repackage them, reupload them both. Doesnt sound like a very efficient solution to me.

Could the code be somehow built into the template, but only be displayed when the user is visiting a certain page (eg on a member-login.php page?

Orko, did you come up with a solution?

ruebenwurzel:
Hello,

so why didn't you simply do what you wanna do?

1. Create a "hidden" WYSIWYG Page by using the default template with a login form in it.
2. Place a link to this page in the index.php of your template.

This way, if a user hits the login link a new page is openene with only your login form.

Matthias

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version