Page 1 of 1

try to add text to REDIRECTIONG page

Posted: Wed Dec 10, 2008 1:21 pm
by shmar
hi,

I;m trying to add some text to page that u get after u login and which redirects you to index.php

this is the url of the page im trying to change phpbbtest/ucp.php?mode=login

I've searched ucp.php and tried changing some things but didn't not succeed.

thanks

Re: try to add text to REDIRECTIONG page

Posted: Wed Dec 10, 2008 1:26 pm
by Brf
That is a generic message page, so there is not a "page" that you can edit.
What you will need to do is edit this message in language/en/ucp.php using Notepad++

Code: Select all

	'LOGIN_REDIRECT'			=> 'You have been successfully logged in.',

Re: try to add text to REDIRECTIONG page

Posted: Wed Dec 10, 2008 1:33 pm
by shmar
thanks.
how can I enter a link there?
can i use html?

I added an input field to the login and want it to display on that page.
Where should I put the $_POST['blabla']
and where should the actual echo go?

thank you very much

Re: try to add text to REDIRECTIONG page

Posted: Wed Dec 10, 2008 1:36 pm
by themcman1
Yes you can use HTML, so it would be the basic <a href=""></a> code.

Re: try to add text to REDIRECTIONG page

Posted: Wed Dec 10, 2008 2:30 pm
by stevemaury
This is incorrect. You cannot use html in a php page.

Re: try to add text to REDIRECTIONG page

Posted: Wed Dec 10, 2008 2:53 pm
by Brf
stevemaury wrote:This is incorrect. You cannot use html in a php page.
Yes. You can put HTML into that language string. It is displayed directly on the page when trigger_error is called, so it will be rendered properly on the redirect page. He will not bne able to put a $_POST variable in there though. It is all a string.

Re: try to add text to REDIRECTIONG page

Posted: Wed Dec 10, 2008 2:57 pm
by themcman1
Brf wrote:
stevemaury wrote:This is incorrect. You cannot use html in a php page.
Yes. You can put HTML into that language string. It is displayed directly on the page when trigger_error is called, so it will be rendered properly on the redirect page. He will not bne able to put a $_POST variable in there though. It is all a string.
I was sure you could, because I was doing it when I was messing around with my language files at the weekend.
Cheers for clearing it up with me.

Re: try to add text to REDIRECTIONG page

Posted: Wed Dec 10, 2008 3:03 pm
by stevemaury
Sorry, then. Yes, I see that although it is a php file, it is only outputting a string, so html will work.