Log in Register FAQ Memberlist Search Welcome to RCF - WHF Forum Index
alt : test.swf
Welcome to RCF - WHF
4fx3.gif 
calendar_open_closeCalendar 
You'll be the one to know..
Post new topic   Reply to topic View previous topic :: View next topic
Welcome to RCF - WHF Forum Index -> Talk PC Add To Bookmarks
You'll be the one to know..
PostPosted: 05/25/2007 2:32 PM Reply with quote
Citation
poomerio
Citation
Posts 407
Word Cnt. 10,993
BDay May 28
Sign Gemini
Sex Sex:Male
Joined: Feb 25, 2007
Local time: 12:38 AM
Location: SE England
greatbrE.gif
Hey Nightrider Smile
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
View user's profile Find all posts by poomerio Send private message   Phoogle Map
Re: You'll be the one to know..
PostPosted: 05/25/2007 2:57 PM Reply with quote
Site Admin
Nightrider
Site Admin
Posts 30757
Word Cnt. 2,628,690
BDay Jul 28
Sign Leo
Sex Sex:Male
Joined: Sep 25, 2004
Local time: 8:38 PM
Location: St Pete, FL
peace.gif
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...

headbang
Back to Top
View all pictures posted by this userView user's profile Find all posts by Nightrider Send private message   AIM Address Yahoo Messenger Phoogle Map ICQ Number
Re: You'll be the one to know..
PostPosted: 05/25/2007 3:05 PM Reply with quote
Citation
poomerio
Citation
Posts 407
Word Cnt. 10,993
BDay May 28
Sign Gemini
Sex Sex:Male
Joined: Feb 25, 2007
Local time: 12:38 AM
Location: SE England
greatbrE.gif
OK, I will try and find it in the phpBB code Smile

- Poomie
Back to Top
View user's profile Find all posts by poomerio Send private message   Phoogle Map
Re: You'll be the one to know..
PostPosted: 05/25/2007 3:08 PM Reply with quote
Citation
poomerio
Citation
Posts 407
Word Cnt. 10,993
BDay May 28
Sign Gemini
Sex Sex:Male
Joined: Feb 25, 2007
Local time: 12:38 AM
Location: SE England
greatbrE.gif
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
View user's profile Find all posts by poomerio Send private message   Phoogle Map
Re: You'll be the one to know..
PostPosted: 05/25/2007 5:26 PM Reply with quote
Site Admin
Nightrider
Site Admin
Posts 30757
Word Cnt. 2,628,690
BDay Jul 28
Sign Leo
Sex Sex:Male
Joined: Sep 25, 2004
Local time: 8:38 PM
Location: St Pete, FL
peace.gif
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...

headbang
Back to Top
View all pictures posted by this userView user's profile Find all posts by Nightrider Send private message   AIM Address Yahoo Messenger Phoogle Map ICQ Number
Re: You'll be the one to know..
PostPosted: 05/29/2007 2:51 AM Reply with quote
Citation
poomerio
Citation
Posts 407
Word Cnt. 10,993
BDay May 28
Sign Gemini
Sex Sex:Male
Joined: Feb 25, 2007
Local time: 12:38 AM
Location: SE England
greatbrE.gif
I got it to work Smile
I used a different script though.
Thanks for the help!

- Poomie
Back to Top
View user's profile Find all posts by poomerio Send private message   Phoogle Map
 Post new topic  Reply to topic
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

 
  
  


  Google

Powered by phpBB © 2001, 2005 phpBB Group

Page generation time: 0.0658s (PHP: 78% - SQL: 22%) - SQL queries: 45 - GZIP disabled - Debug on