View previous topic :: View next topic |
Author |
Message |
Laura
Joined: 09 Feb 2003 Posts: 9
|
Posted: Wed Feb 19, 2003 11:04 am Post subject: I need some Help Please. |
|
|
Quote: | <?php /* Don't remove this line, it calls the b2 function files ! */ $blog=1; include ("blog.header.php"); ?>
<!-- // b2 loop start -->
<?php while($row = mysql_fetch_object($result)) { start_b2(); ?>
<?php the_date("","<h2>","</h2>"); ?>
<?php permalink_anchor(); ?>
<div class="storyTitle"><?php the_title(); ?>
<a href="?cat=<?php the_category_ID() ?>" title="category: <?php the_category() ?>"><span class="storyCategory">[<?php the_category() ?>]</span></a> -
<span class="storyAuthor"><?php the_author() ?> - <?php the_author_email() ?></span> @ <a href="<?php permalink_link() ?>"><?php the_time() ?></a>
</div>
<div class="storyContent">
<?php the_content(); ?>
<div class="rightFlush">
<?php link_pages("<br />Pages: ","<br />","number") ?> <?php comments_popup_link("comments ?", "1 comment", "% comments") ?>
<?php include ("b2comments.php"); ?>
</div>
</div>
<!-- // this is just the end of the motor - don't touch that line either -->
<?php } ?> |
Then I get this on the Front of my Website.
Quote: | Warning: Failed opening 'blog.header.php' for inclusion (include_path='') in /home/spargel/public_html/TheElders/index.php on line 125
Warning: mysql_fetch_object(): supplied argument is not a valid MySQL result resource in /home/spargel/public_html/TheElders/index.php on line 127 |
I'm trying to put it on my Main index.php page of my website. Only the News area that shows up. Here is a link to my website so you see what I am talking about. http://www.deadlygames.org/TheElders Some of you already tried to help me. But i'm a blonde when it comes to this stuff. Please forgive me for being a pain in the butt. I gave up on this and took a break to get the anger out of my system, so now I'm back. If any of you know this very well maybe I can put some trust into you to help me by doing it yourself?
Thanks.
Laura. |
|
Back to top |
|
 |
GamerZ
Joined: 15 May 2002 Posts: 537 Location: Singapore
|
Posted: Wed Feb 19, 2003 1:38 pm Post subject: |
|
|
how come this is sticky? _________________
++ GamerZ.Per.Sg - Complex Simplicity |
|
Back to top |
|
 |
Laura
Joined: 09 Feb 2003 Posts: 9
|
Posted: Wed Feb 19, 2003 3:16 pm Post subject: |
|
|
So it will be notice and I get some help. Thats how come.
Laura |
|
Back to top |
|
 |
eadz
Joined: 06 Apr 2003 Posts: 28 Location: Auckland, New Zealand
|
Posted: Sun Apr 06, 2003 2:30 pm Post subject: |
|
|
well it says it can't include blog.header.php...
so if your index.php ( the file you are trying to work on ) is here :
/index.php
and blog.header.php is here :
/b2/blog.header.php
then you need to change include ("blog.header.php");
to
include ("/b2/blog.header.php");
although that may mean more problems as blog.header.php tries to include more files. Basicly, if it cant include something, make sure the path is right. _________________
|
|
Back to top |
|
 |
dtdgoomba
Joined: 05 Aug 2002 Posts: 179 Location: Cambridge, MA
|
Posted: Sun Apr 06, 2003 5:52 pm Post subject: |
|
|
The typical problem is that the files were unzipped and the directory structure was not kept. That's what I see happening in these forums a lot, so you should make sure that was done correctly first. If it was and you changed some settings or moved files, just like eadz said, make sure your paths point to where you moved things. _________________ Goombalooza! | Last X posts from Y Category | Login Box |
|
Back to top |
|
 |
|