Is it possible to display a message on the login page? Is it possible to display a message on the login page?
 

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

Is it possible to display a message on the login page?

Started by tgontz, November 10, 2007, 04:29:25 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

tgontz

Is it possible to display a message on the login page? Every time I have tried to add any additional code or text to the login.php page I get an error message when trying to view my gallery. The error message is as follows:


Parse error: syntax error, unexpected T_STRING in /home/gontzfam/public_html/gontzfamily/judyandtrevor/family_friends_gallery/login.php on line 21

Here is my situation: I have a new domain for my Coppermine gallery and am using a php redirect to automatically send visitors to my new login location. I would like to be able to inform my visitors right on the login page that they have been redirected and should update their bookmarks.

Thanks!

Joachim Müller

Quote from: tgontz on November 10, 2007, 04:29:25 AM
Is it possible to display a message on the login page?
Sure

Quote from: tgontz on November 10, 2007, 04:29:25 AMEvery time I have tried to add any additional code or text to the login.php page I get an error message when trying to view my gallery. The error message is as follows:


Parse error: syntax error, unexpected T_STRING in /home/gontzfam/public_html/gontzfamily/judyandtrevor/family_friends_gallery/login.php on line 21
You can not just add text anywhere, as PHP will "think" that it is code. Impossible to say what you actually did wrong.
Edit login.php, findecho '<form action="login.php?referer='.$referer.'" method="post" name="loginbox">';and add before it (into a new line) this code:?>
Your custom message here.
<?php

tgontz