Customizing SMF > SMF Coding Discussion
[PHP]Display wierdness
MrCue:
Without changing the post, and just refreshing the page, i get 2 different displays.
See attached shots.
[Unknown]:
Are you sure no one was editing it?
-[Unknown]
MrCue:
positive. My post and only me online.
[Unknown]:
Cannot reproduce. What were you posting?
-[Unknown]
MrCue:
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 Optionalyblah, 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.
Navigation
[0] Message Index
[#] Next page
Go to full version