Simple Machines Community Forum

Customizing SMF => SMF Coding Discussion => Topic started by: MrCue on April 13, 2004, 12:24:24 PM

Title: [PHP]Display wierdness
Post by: MrCue on April 13, 2004, 12:24:24 PM
Without changing the post, and just refreshing the page, i get 2 different displays.
See attached shots.
Title: Re: [PHP]Display wierdness
Post by: [Unknown] on April 13, 2004, 02:17:40 PM
Are you sure no one was editing it?

-[Unknown]
Title: Re: [PHP]Display wierdness
Post by: MrCue on April 13, 2004, 02:18:44 PM
positive. My post and only me online.
Title: Re: [PHP]Display wierdness
Post by: [Unknown] on April 13, 2004, 02:19:46 PM
Cannot reproduce.  What were you posting?

-[Unknown]
Title: Re: [PHP]Display wierdness
Post by: MrCue on April 13, 2004, 02:22:49 PM
Each page needs to contain The following.


blah, blah, blah
<?php require_once('includes/load.php'); ?>


blah, blah, blah
<?php require_once('includes/header.php'); ?>


blah, blah, blah
<?php require_once('includes/footer.php'); ?>

And Optionaly

blah, blah, blah
  <?php
$HEAD['title'] = 'page title';
$HEAD['keywords'] = array('test');
require_once('includes/head.php');
        ?>

blah, blah, blah
$HEAD['keywords'] = array('word1', 'word2', 'phrase 1', 'phrase 2');

You can also completley leave out both of the $HEAD lines, in which case, the internal defaults will be used.
setting $HEAD['title'] Overwrites the default.
setting $HEAD['keywords'] Appends to the defaults.
Title: Re: [PHP]Display wierdness
Post by: [Unknown] on April 13, 2004, 02:25:01 PM
I cannot get it to display strangely or wrongly.

-[Unknown]
Title: Re: [PHP]Display wierdness
Post by: MrCue on April 13, 2004, 02:25:59 PM
Neither can i here, nor on one of my other boards.
Title: Re: [PHP]Display wierdness
Post by: MrCue on April 13, 2004, 02:28:56 PM
It just seems to be that one board, what could cause it?
Title: Re: [PHP]Display wierdness
Post by: MrCue on April 13, 2004, 02:43:06 PM
looking through subs, you seem to add a <?php & ?> to the string before colour-ising it. then remove it when done. could something, be stopping that from working from time to time?