try to add text to REDIRECTIONG page

Get help with installation and running phpBB 3.0.x here. Please do not post bug reports, feature requests, or MOD-related questions here.
Anti-Spam Guide
Forum rules
END OF SUPPORT: 1 January 2017 (announcement)
Locked
shmar
Registered User
Posts: 62
Joined: Wed Oct 29, 2008 9:42 am

try to add text to REDIRECTIONG page

Post by shmar » Wed Dec 10, 2008 1:21 pm

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
Attachments
this is the page I want to add the text too
this is the page I want to add the text too
hhh.jpg (27.07 KiB) Viewed 54 times

User avatar
Brf
Support Team Member
Support Team Member
Posts: 51890
Joined: Tue May 10, 2005 7:47 pm
Location: {postrow.POSTER_FROM}
Contact:

Re: try to add text to REDIRECTIONG page

Post by Brf » Wed Dec 10, 2008 1:26 pm

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.',

shmar
Registered User
Posts: 62
Joined: Wed Oct 29, 2008 9:42 am

Re: try to add text to REDIRECTIONG page

Post by shmar » Wed Dec 10, 2008 1:33 pm

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
Last edited by shmar on Wed Dec 10, 2008 1:44 pm, edited 1 time in total.

themcman1
Registered User
Posts: 45
Joined: Sat Dec 06, 2008 2:26 pm
Location: modx.prosilver.en.xsl

Re: try to add text to REDIRECTIONG page

Post by themcman1 » Wed Dec 10, 2008 1:36 pm

Yes you can use HTML, so it would be the basic <a href=""></a> code.

User avatar
stevemaury
Support Team Member
Support Team Member
Posts: 50926
Joined: Thu Nov 02, 2006 12:21 am
Location: The U.P.
Name: Steve
Contact:

Re: try to add text to REDIRECTIONG page

Post by stevemaury » Wed Dec 10, 2008 2:30 pm

This is incorrect. You cannot use html in a php page.
For REALLY good and VERY inexpensive hosting CLICK HERE

I can stop all your spam. I can upgrade or update your Board. PM or email me. (Paid support)

User avatar
Brf
Support Team Member
Support Team Member
Posts: 51890
Joined: Tue May 10, 2005 7:47 pm
Location: {postrow.POSTER_FROM}
Contact:

Re: try to add text to REDIRECTIONG page

Post by Brf » Wed Dec 10, 2008 2:53 pm

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.

themcman1
Registered User
Posts: 45
Joined: Sat Dec 06, 2008 2:26 pm
Location: modx.prosilver.en.xsl

Re: try to add text to REDIRECTIONG page

Post by themcman1 » Wed Dec 10, 2008 2:57 pm

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.

User avatar
stevemaury
Support Team Member
Support Team Member
Posts: 50926
Joined: Thu Nov 02, 2006 12:21 am
Location: The U.P.
Name: Steve
Contact:

Re: try to add text to REDIRECTIONG page

Post by stevemaury » Wed Dec 10, 2008 3:03 pm

Sorry, then. Yes, I see that although it is a php file, it is only outputting a string, so html will work.
For REALLY good and VERY inexpensive hosting CLICK HERE

I can stop all your spam. I can upgrade or update your Board. PM or email me. (Paid support)

Locked

Return to “[3.0.x] Support Forum”