 | You'll be the one to know.. |  |
Posted: 05/25/2007 2:32 PM |
|
|
|
|
|
| Citation |
| Posts |
407 |
| Word Cnt. |
10,993 |
| BDay |
May 28 |
| Sign |
Gemini |
| Sex |
 |
|
|
|
Joined: Feb 25, 2007
Local time: 12:38 AM
Location: SE England
|

|
|
|
|
 |
Hey Nightrider
Sorry I haven't been helping around lately, but I'm a little tied up.
Anyways. You'll be the one to know - how do you get index.php to display index.php and then index.php=contact as different pages?
At the moment, I have created a page:
http://poomerio.freehostia.com/index.php
as a test site.
Thanks,
- Poomie |
|
|
 |
 |
| Back to Top |
|
|
 | Re: You'll be the one to know.. |  |
Posted: 05/25/2007 2:57 PM |
|
|
|
|
|
| Site Admin |
| Posts |
30757 |
| Word Cnt. |
2,628,690 |
| BDay |
Jul 28 |
| Sign |
Leo |
| Sex |
 |
|
|
|
Joined: Sep 25, 2004
Local time: 8:38 PM
Location: St Pete, FL
|

|
|
|
|
 |
In the index.php file, you will need to add code that determines whether the contact parameter had been passed in the URL and if so, to display a separate page from default. You can see a clear example of this being used in the phpBB profile.php file. Depending on the parameters in the profile URL, the code can direct the View Profile, the Edit Profile, User Registration, the Confirm, the Send Password, the Activate, or the Email page to be displayed...
 |
|
|
 |
 |
| Back to Top |
|
|
 | Re: You'll be the one to know.. |  |
Posted: 05/25/2007 3:05 PM |
|
|
|
|
|
| Citation |
| Posts |
407 |
| Word Cnt. |
10,993 |
| BDay |
May 28 |
| Sign |
Gemini |
| Sex |
 |
|
|
|
Joined: Feb 25, 2007
Local time: 12:38 AM
Location: SE England
|

|
|
|
|
 |
OK, I will try and find it in the phpBB code
- Poomie |
|
|
 |
 |
| Back to Top |
|
|
 | Re: You'll be the one to know.. |  |
Posted: 05/25/2007 3:08 PM |
|
|
|
|
|
| Citation |
| Posts |
407 |
| Word Cnt. |
10,993 |
| BDay |
May 28 |
| Sign |
Gemini |
| Sex |
 |
|
|
|
Joined: Feb 25, 2007
Local time: 12:38 AM
Location: SE England
|

|
|
|
|
 |
OK, well I found this snippet of code in the file:
| Code:
|
//
// Start of program proper
//
if ( isset($HTTP_GET_VARS['mode']) || isset($HTTP_POST_VARS['mode']) )
{
$mode = ( isset($HTTP_GET_VARS['mode']) ) ? $HTTP_GET_VARS['mode'] : $HTTP_POST_VARS['mode'];
$mode = htmlspecialchars($mode);
if ( $mode == 'viewprofile' )
{
include($phpbb_root_path . 'includes/usercp_viewprofile.'.$phpEx);
exit;
}
else if ( $mode == 'editprofile' || $mode == 'register' )
{
if ( !$userdata['session_logged_in'] && $mode == 'editprofile' )
{
redirect(append_sid("login.$phpEx?redirect=profile.$phpEx&mode=editpr ofile", true));
}
include($phpbb_root_path . 'includes/usercp_register.'.$phpEx);
exit;
}
else if ( $mode == 'confirm' )
{
// Visual Confirmation
if ( $userdata['session_logged_in'] )
{
exit;
}
include($phpbb_root_path . 'includes/usercp_confirm.'.$phpEx);
exit;
}
else if ( $mode == 'sendpassword' )
{
include($phpbb_root_path . 'includes/usercp_sendpasswd.'.$phpEx);
exit;
}
else if ( $mode == 'activate' )
{
include($phpbb_root_path . 'includes/usercp_activate.'.$phpEx);
exit;
}
else if ( $mode == 'email' )
{
include($phpbb_root_path . 'includes/usercp_email.'.$phpEx);
exit;
}
}
redirect(append_sid("index.$phpEx", true));
|
I suppose that is what I'm looking for?
- Poomie |
|
|
 |
 |
| Back to Top |
|
|
 | Re: You'll be the one to know.. |  |
Posted: 05/25/2007 5:26 PM |
|
|
|
|
|
| Site Admin |
| Posts |
30757 |
| Word Cnt. |
2,628,690 |
| BDay |
Jul 28 |
| Sign |
Leo |
| Sex |
 |
|
|
|
Joined: Sep 25, 2004
Local time: 8:38 PM
Location: St Pete, FL
|

|
|
|
|
 |
Yes, each of those ifs and else ifs is determining what was passed in the URL and opening a different file. In this example, when it includes the file, it runs the code in the file from the include statement...
 |
|
|
 |
 |
| Back to Top |
|
|
 | Re: You'll be the one to know.. |  |
Posted: 05/29/2007 2:51 AM |
|
|
|
|
|
| Citation |
| Posts |
407 |
| Word Cnt. |
10,993 |
| BDay |
May 28 |
| Sign |
Gemini |
| Sex |
 |
|
|
|
Joined: Feb 25, 2007
Local time: 12:38 AM
Location: SE England
|

|
|
|
|
 |
I got it to work
I used a different script though.
Thanks for the help!
- Poomie |
|
|
 |
 |
| Back to Top |
|
|
 | Information |  |
Welcome to RCF - WHF Forum Index
-> Talk PC
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum
|
All times are GMT - 5 Hours
Page 1 of 1
Add To Bookmarks
|
|
|
|
|