SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Zealot mcdanielnc89's Avatar
    Join Date
    Feb 2008
    Location
    Missouri
    Posts
    153
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    integrating forum

    I'm trying to integrate my layout around my forums however i'm having a difficult time. it's not wanting to match up..

    you can see it in action at http://www.newbreedjesusfreaks.com/forum/

    I have included my index.php file which has to be split up and part in the overall_header and the bottom part in the overall _footer,.. if anyone ca help it's greeatly appreciated...


    i attached the forum files that have to be edited.. here is the index page..

    HTML Code:
    <?php
    // check the $_GET['page'] variable
    $page = ((isset($_GET['page']) && $_GET['page'] != '') ? $_GET['page'] : 'home');
    // prevent file browsing
    $page=(preg_match('/(\.\.|\/)/i',$page)?'home':$page);
    // replace illegal characters
    $page = preg_replace('/[^a-zA-Z0-9 \._-]/','',$page);
    // check if the requested file exists
    $page = (file_exists('./pages/'.$page.'.php') ? $page : 'error');
    include('./pages/'.$page.'.inc.php');
    ?>
    <!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">
    <head>
    <title><?php echo $title; ?></title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <link REL="SHORTCUT ICON" HREF="http://newbreedjesusfreaks.com/images/nbjf.ico" />
    <link href="includes/style.css" rel="stylesheet" type="text/css" />
    <link href="includes/layout.css" rel="stylesheet" type="text/css" />
    <link href="includes/current.css" rel="stylesheet" type="text/css" />
    <link href="includes/menu.css" rel="stylesheet" type="text/css" />
    </head>
    <body id="<?php echo $thisPage; ?>">
    <div id="outer">
      <div id="header">
        <div id="head"> <img src="images/nbjflogo.png" alt="NBJF Banner" />
          <div id="black"> </div>
        </div>
      </div>
    <div id="left">
        <ul id="nav">
          <li><a href="/" id="homenav">Home</a></li>
          <li><a href="/aboutus" id="aboutusnav">About Us</a></li>
          <li><a href="/statementoffaith" id="statementoffaithnav">Statement of Faith</a></li>
          <li><a href="/forum/" id="forumsnav">Forum</a></li>
          <li><a href="/rules" id="rulesnav">Rules</a></li>
          <li><a href="/chat" id="chatnav">Chat</a></li>
          <li><a href="/download" id="downloadnav">Downloads</a></li>
          <li><a href="/tencommandments" id="tencommandmentsnav">Ten Commandments</a> </li>
          <li><a href="/staff" id="staffnav">Staff</a></li>
          <li><a href="/links" id="linksnav">Links</a></li>
          <li><a href="/search" id="searchnav">Search</a></li>
          <li><a href="/donate" id="donatenav">Donate</a></li>
          <li><a href="/contactus" id="contactusnav">Contact Us</a></li>
       </ul>
       </div>
      <div id="clearheader"></div>
      <!-- to clear header -->
      <div id="centrecontent">
        <!--centre content goes here -->
        <?php // and include the page
    include('./pages/'.$page.'.php'); ?>
      </div>
      <div id="clearfooter"></div>
      <!-- to clear footer -->
    </div>
    <!-- end outer div -->
    <div id="footer"> <a href="#" style="position: absolute; left: 2px; top: -10px;" class="adminlogin" onclick="window.open('http://cpanel.newbreedjesusfreaks.com');">Admin Login</a>
      <div id="copy">
        <p>Copyright &copy; 2003-2008 New Breed Jesus Freaks. All Rights Reserved. <br />
          Web Design &amp; Development by New Breed Jesus Freaks</p>
      </div>
    </div>
    </body>
    </html>

  2. #2
    SitePoint Zealot mcdanielnc89's Avatar
    Join Date
    Feb 2008
    Location
    Missouri
    Posts
    153
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    i really do need some help with this.. can anyone help me?

  3. #3
    SitePoint Zealot mcdanielnc89's Avatar
    Join Date
    Feb 2008
    Location
    Missouri
    Posts
    153
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    am i a ghost? I was told this is the best forum to get help. but no one seems to liek helping me, lol


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •