If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 2 of 2

Thread: Templates?

  1. #1
    Junior Member
    Join Date
    Oct 2003
    Member #
    My clans website, only really has two pages. The main page (news) and the matches page.

    A while ago the entire page was automated by a php system, but not anymore. Finally we got the matches system working and everything is automated except the very left side (roster) of the page and the very right side of the page (awards, sponsors). Now, at the moment when we want to edit the roster or awards, we have to edit two files, the matches and index pages.

    How can we create 1 file that has the roster, matches, etc. as a template and then just the middle table changes (on both pages the middle table is a php include for cutenews and vwar)?


  3. #2
    Join Date
    Oct 2003
    Member #
    Create two new files: roster.php, and awardssponsors.php (you can give the files any name you want).

    Inside those files put the html and/or php code that you want to be displayed on both pages.

    Then in the two different parent pages call the appropriate page with the following php code:

    <?php include "filenamegoeshere.php"; ?>
    Does that help?

Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
All times are GMT -6. The time now is 02:00 PM.
Powered by vBulletin® Version 4.2.3
Copyright © 2020 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: