SitePoint Sponsor

User Tag List

Results 1 to 3 of 3

Thread: VBulletin Question, would love some help

  1. #1
    SitePoint Evangelist
    Join Date
    Jan 2005
    Location
    ireland
    Posts
    482
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    VBulletin Question, would love some help

    I am looking to integrate a new front-end onto my vbulletin installtion. I have nearly completed it now so I am wondering how I can do this.

    I have the following file structure:

    Forum(folder where VB is stored)
    Images2(folder for images for my new interface)
    Includes2(this file contains my header and footer html files)
    Index.php
    Contact.php
    Articles.php
    Etc

    Now here are my includes files where I call my header and footer and also a call to another database I have.

    <?php
    // Include the header file
    include_once ('includes2/header.html');

    // Set the page title and include the header
    $page_title = 'Welcome to askaboutvalidation.com';

    // Include the configuration file
    require_once ('includes2/config.inc');

    // Connect to the database
    require_once ('includes2/mysqlconnect.php');
    ?>

    This is where I want the VB to go

    <?php
    // Include the footer
    include_once('includes2/footer.html');
    ?>


    Basically what I need to find out is where do I place the following code so that my vbulletin forum will have the same header and footer as my new format

    Many Thanks in advance

  2. #2
    SitePoint Enthusiast
    Join Date
    Mar 2006
    Posts
    40
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I was going to suggest getting the contents of your header.html file and pasting that in the header template, but that really doesn't handle php at all (I think they use the a string called php_include which you have to call later). If all you're doing though is calling up database details then you should be okay with leaving out the include for config and connect as vB does that for you.

    Have you got a test forum you can test it out with?
    Even a stopped clock tells the right time twice a day.

  3. #3
    SitePoint Evangelist
    Join Date
    Jan 2005
    Location
    ireland
    Posts
    482
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    That's the problem i don't have a test forum so I'm kind of worried about messing the live forum up. I have tried to get a response from vBulletin but they just referred me to another forum where I got no reply.

    Basically all I really need to know is where do I place the following

    <?php
    // Include the header file
    include_once ('includes2/header.html');
    ?>

    This is where I want the VB to go

    <?php
    // Include the footer
    include_once('includes2/footer.html');
    ?>

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
  •