Closed Thread
Results 1 to 6 of 6

Thread: Make a blank page for phpbb3.

  1. #1
    Daniel S's Avatar
    Daniel S is offline x10 Spammer Daniel S is an unknown quantity at this point
    Join Date
    Dec 2007
    Posts
    2,395

    Make a blank page for phpbb3.

    Hi. Does anybody know how i can make a blank page that i can use with phpbb3 tha uses my header and footer.

    An example if you go to my error page on my website so to access that you could just type in http://www.thecomputerforum.co.uk/dfsdfsdfsdf

    If you look where it says error 404 i would like the page like that except it would have links and titles of other websites that link to us.

    Thank you.
    -Daniel S, X10 Senior Account Manager.

  2. #2
    DarkDragonLord's Avatar
    DarkDragonLord is offline x10 Elder DarkDragonLord is an unknown quantity at this point
    Join Date
    Mar 2007
    Location
    Brazil
    Posts
    782

    Re: Make a blank page for phpbb3.

    could you open the 'error.php' and show us the code?
    mayb i can help you ^^
    Regards,
    Raphael DDL

    Designing Solutions for You
    *Web Design;
    *Coding;
    Free Downloads;
    and all related Stuff
    .


    My Tutorials:
    | Multi-Language Websites | Rotative Banners |
    | Bookmark Script for All Browsers
    |
    |
    PHP Switching/Including Content|
    |


  3. #3
    Daniel S's Avatar
    Daniel S is offline x10 Spammer Daniel S is an unknown quantity at this point
    Join Date
    Dec 2007
    Posts
    2,395

    Re: Make a blank page for phpbb3.

    Ok here is the code of error.php

    PHP Code:
    <?php
    /** 
    *
    * @package phpBB3
    * @version $Id: $
    * @copyright (c) 2008 Francis W. Fisher (Phantom) http://radoncube.com/
    * @license http://opensource.org/licenses/gpl-license.php GNU Public License 
    *
    */
    /**
    * @ignore
    */
    define('IN_PHPBB'true);
    $phpbb_root_path = (defined('PHPBB_ROOT_PATH')) ? PHPBB_ROOT_PATH './';
    $phpEx substr(strrchr(__FILE__'.'), 1);
    include(
    $phpbb_root_path 'common.' $phpEx);
    // Start session management
    $user->session_begin();
    $auth->acl($user->data);
    $user->setup('mods/error');
    $base_url generate_board_url() . '/';
    $template->assign_vars(array(
     
    'S_ERROR_PAGE' => true,
     
    'U_FORUM_BASE' => $base_url,
    ));
    //set title of error page
    $msg_title $user->lang['ERROR_TITLE'];
    $mode request_var('mode'0);
    switch (
    $mode)
    {
     case 
    '400':
     
    trigger_error('ERROR_BAD_REQUEST');
     break;
     case 
    '401':
      
    trigger_error('ERROR_AUTH_REQUIRED');
     break;
     case 
    '403':
      
    trigger_error('ERROR_FORBIDDEN');
     break;
     case 
    '404':
      
    trigger_error('ERROR_NOT_FOUND');
     break;
     case 
    '500':
      
    trigger_error('ERROR_INT_SERVER');
     break;
     default:
      
    trigger_error('ERROR_UNKNOWN');
     break;
    }
    ?>
    -Daniel S, X10 Senior Account Manager.

  4. #4
    LHVWB's Avatar
    LHVWB is offline Lord Of The Keys LHVWB is an unknown quantity at this point
    Join Date
    Jan 2008
    Location
    Australia
    Posts
    1,308

    Re: Make a blank page for phpbb3.

    Maybe instead of calling the trigger_error() function for every case, you could just echo the text which you want to show or include a file that you want to show.

    For your case put in some code like this, instead of the "case 404" code (also change the filename based on what you want it to be.). ;)

    PHP Code:

     
    case '404':
      include(
    $phpbb_root_path.'404_error.php'); 
    Last edited by LHVWB; 04-29-2008 at 06:20 PM.

  5. #5
    Daniel S's Avatar
    Daniel S is offline x10 Spammer Daniel S is an unknown quantity at this point
    Join Date
    Dec 2007
    Posts
    2,395

    Re: Make a blank page for phpbb3.

    i have tried that but it does not seam to work.
    -Daniel S, X10 Senior Account Manager.

  6. #6
    Daniel S's Avatar
    Daniel S is offline x10 Spammer Daniel S is an unknown quantity at this point
    Join Date
    Dec 2007
    Posts
    2,395

    Re: Make a blank page for phpbb3.

    I have now got this sorted.

    [closed]

    EDIT:

    Except i have noticed i can not close the thread lol.
    Last edited by Starshine; 05-03-2008 at 09:19 AM.
    -Daniel S, X10 Senior Account Manager.

Closed Thread

Similar Threads

  1. Blank page on phpbb3 install
    By northsider1983 in forum Free Hosting
    Replies: 8
    Last Post: 04-12-2008, 07:10 PM
  2. CMS edit caused blank page
    By Brokenfor in forum Free Hosting
    Replies: 5
    Last Post: 03-26-2008, 09:58 AM
  3. Blank Page Forum
    By Hauzer in forum Free Hosting
    Replies: 7
    Last Post: 03-26-2008, 09:40 AM
  4. How do i make the index page my homepage
    By jpz17 in forum Scripts & 3rd Party Apps
    Replies: 3
    Last Post: 09-19-2007, 03:39 PM
  5. Unexpected Wordpress page blank
    By crazywhite1989 in forum Free Hosting
    Replies: 2
    Last Post: 09-17-2007, 06:08 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers