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

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

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