Customizing SMF > SMF Coding Discussion

[PHP]Display wierdness

(1/2) > >>

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(&#39;includes/load.php&#39;); ?>
blah, blah, blah
 <?php require_once(&#39;includes/header.php&#39;); ?>
blah, blah, blah
 <?php require_once(&#39;includes/footer.php&#39;); ?>
And Optionalyblah, blah, blah
  <?php 
$HEAD[&#39;title&#39;] = &#39;page title&#39;;
$HEAD[&#39;keywords&#39;] = array(&#39;test&#39;);
require_once(&#39;includes/head.php&#39;); 
        ?>

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

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