Custom Page Help!!

Need some coding help with a MOD or tweak you are working on? - Ask here.
Forum rules
Ask for support specifically regarding coding help with phpBB3.
Not for generic usability questions or support.

Custom Page Help!!

Postby rhyno006 » 25 Apr 2011, 15:18

ok, i want to have a page outside the phpbb directory. I have created the page and the css etc is not showing. when i put it in the phpbb directory, it displays perfectly. I dont want to put it in phpbb directory. Here is source code:

Code: Select all
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="en-gb" xml:lang="en-gb">
<head>

<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<meta http-equiv="content-style-type" content="text/css" />
<meta http-equiv="content-language" content="en-gb" />
<meta http-equiv="imagetoolbar" content="no" />
<meta name="resource-type" content="document" />
<meta name="distribution" content="global" />
<meta name="copyright" content="2000, 2002, 2005, 2007 phpBB Group" />
<meta name="keywords" content="" />
<meta name="description" content="" />
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7; IE=EmulateIE9" />

<title>Precision Darts &bull; The Darts Forum</title>


<!--
   phpBB style name: prosilver Special Edition
   Based on style:   prosilver (this is the default phpBB3 style)
   Original author:  Tom Beddard ( http://www.subBlue.com/ )
   Modified by: phpBB Styles Team     
   
   NOTE: This page was generated by phpBB, the free open-source bulletin board package.
         The phpBB Group is not responsible for the content of this page and forum. For more information
         about phpBB please visit http://www.phpbb.com
-->

<script type="text/javascript">
// <![CDATA[
   var jump_page = 'Enter the page number you wish to go to:';
   var on_page = '';
   var per_page = '';
   var base_url = '';
   var style_cookie = 'phpBBstyle';
   var style_cookie_settings = '; path=/; domain=.precisiondarts.co.uk';
   var onload_functions = new Array();
   var onunload_functions = new Array();

   

   /**
   * Find a member
   */
   function find_username(url)
   {
      popup(url, 760, 570, '_usersearch');
      return false;
   }

   /**
   * New function for handling multiple calls to window.onload and window.unload by pentapenguin
   */
   window.onload = function()
   {
      for (var i = 0; i < onload_functions.length; i++)
      {
         eval(onload_functions[i]);
      }
   }

   window.onunload = function()
   {
      for (var i = 0; i < onunload_functions.length; i++)
      {
         eval(onunload_functions[i]);
      }
   }

// ]]>
</script>
<script type="text/javascript" src="./styles/prosilver_se/template/styleswitcher.js"></script>
<script type="text/javascript" src="./styles/prosilver_se/template/forum_fn.js"></script>

<link href="./styles/prosilver_se/theme/print.css" rel="stylesheet" type="text/css" media="print" title="printonly" />
<link href="./style.php?id=2&amp;lang=en" rel="stylesheet" type="text/css" media="screen, projection" />

<link href="./styles/prosilver_se/theme/normal.css" rel="stylesheet" type="text/css" title="A" />
<link href="./styles/prosilver_se/theme/medium.css" rel="alternate stylesheet" type="text/css" title="A+" />

<link href="./styles/prosilver_se/theme/large.css" rel="alternate stylesheet" type="text/css" title="A++" />



</head>

<body id="phpbb" class="section-index ltr">

<div id="wrap">
    <div class="border-left">
    <div class="border-right">
    <div class="border-top">
    <div class="border-top-left">

    <div class="border-top-right">
        <div class="inside" style="direction: ltr;">
           <a id="top" name="top" accesskey="t"></a>
           <div id="page-header">
              <div class="headerbar">
                 <div class="inner"><span class="corners-top"><span></span></span>
       
                 <div id="site-description">
                        
                    <p class="skiplink"><a href="#start_here">Skip to content</a></p>

                 </div>
       
      </div>
              </div>
       
      CONTENT WILL BE HERE!!
<div>
   <a id="bottom" name="bottom" accesskey="z"></a>

   
</div>

</body>
</html>
rhyno006    
Crewman
Crewman
 
Posts: 2
Joined: 13 Mar 2011, 13:33
Gender: Male
phpBB Knowledge: 1




phpBB Academy at StarTrekGuide
Support STG
Using PayPal Donate

Re: Custom Page Help!!

Postby topdown » 25 Apr 2011, 16:19

You have to change all of the paths to the correct paths once moved outside phpBB
All of these need to be corrected with the correct path. ./styles/prosilver_se/
If your phpBB is yoursite.com/forum/
Then they should be ./forum/styles/prosilver_se/ if it is back one directory or web root.
Do not PM me for Support unless I give permission in a post......PM's only help one, posts help everyone !
User avatar
topdown    
STG Styles Leader
STG Styles Leader
 
Posts: 3027
Joined: 01 Oct 2007, 22:56
Location: Handyman's harddrive
Favorite Team: STG Teams
Gender: Male
phpBB Knowledge: 9


Return to phpBB3 Coding Assistance

Who is online

Users browsing this forum: No registered users and 19 guests

cron