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!
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, find
echo '<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
Thank you very much! This is now what my login page looks like:
http://gontzfamily.org/judyandtrevor/family_friends_gallery/login.php
Thanks again!