Login, tables and menu? Login, tables and menu?
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

Login, tables and menu?

Started by rbaby, June 07, 2005, 04:51:12 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

rbaby

Hey guys,

I want the login page to always be universal, I've left space to the left nav for the login to appear but I cannot seem to figure out how to pull the login form properly.  I'm using the Classic theme so I'm editing that template...but it's an html, I'm sure if I can get it to a PHP it would work but then I wouldn't know how to set the index or initial load to that php.  Any help?

Also, because the login will be universal and always present, I want to get rid of the LOGIN link under the Main Menu but for some reason I cannot seem to find that either--how do I accomplish this? 

Also, my content area is suppose to be limited to 525 pixels, but for some reason, the Login and the Search boxes that load up are ALL too wide, how do I limit this?  Everytime I go to the login.php or search.php it only has the TD's, not the tables they reside in, any insight would be much appreciated!

Nibbler

You can put the login form in normal html, just copy it from the login page you get when you click login. Changing template.html to .php would accomplish nothing. The login link can be commented out of your theme.php, and tables are created using the starttable and endtable functions of the theme.

Please respect the one question per thread policy.

rbaby

#2
Sorry Nibbler, first time on the boards, thanks!  I tried to cut and paste the whole login.php file into the cell I wanted it on and it doesn't work :(...I also just tried cutting and pasting only the form, and that doesn't work either...what am I doing wrong?

Nibbler

Copy the actual html output, not the php code. Posting a link might help.

rbaby

Hi Nibbler,

I got it to work based on what you've said, however when I try to log on, it says welcome, and then I click continue and it gives me a $referer error:

http://ivd2.rtupaz.com/

<!--error
Not Found
The requested URL /coppermine/$referer was not found on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
--!>

Nibbler

Then find
action="login.php?referer=$referer"

in your code and take the $referer off

action="login.php"