1 allakefak Jul 14, 2004 17:34
3 graham Jul 14, 2004 19:35
What is in the text file? Why not use one skin, and use the long description for each blog, for example? It seems a lot less complicated...
4 isaac Jul 15, 2004 00:05
Here's the problem.
<?php include("blogs/index.php?blog=2"); ?>
That's not correct. You only use ?param=val when you're sending vars in through the GET request, and then they show up as $_GET['param'] = 'val';
<?php include("blogs/index.php?blog=2"); ?>
shoudl be
<?php
$blog=2;
include(dirname(__FILE__) . '/blogs/index.php');
?>
Note that I also added dirname(__FILE__) which means "the directory that this file is in."
5 allakefak Jul 15, 2004 01:26
So far, the a_noskin.php has been working well for displaying the blog posting, but all the rest of the "linked" pages (add/view comment, trackback, etc.) lead me out to the default skin.
How do I fit those into the same website template as the blog posts?
6 fplanque Jul 16, 2004 14:18
That's what stub files are for!
Just use a stub file as your base "top level includer" and add includes for your header and your footer into the stubfile. Of course you'll also need a skin that works with your header and footer. (Or you can include header and footer directly into the skin),
But anyway, trying to include "index.php" is the least efficient way to do the job.
take a look on a_noskin.php on how to include a blog in a "normal" website.