View previous topic :: View next topic |
Author |
Message |
Resha
Joined: 14 Sep 2004 Posts: 5
|
Posted: Tue Sep 14, 2004 12:08 pm Post subject: Help me! I'm new to this... |
|
|
I guess this is an installation issue, so here goes. I've gotten my b2 installed and all the files in the main folder. I've edited b2config.php, and I've uploaded. I have also made my main page a php file.
So why doesn't my blog show up on the main page?! Do I have to edit one of the templates or something?! If so, how!? I'm sorry; I guess it's a stupppid question to most of you. Humour me?! Lol. |
|
Back to top |
|
 |
Sigg3
Joined: 03 Jul 2003 Posts: 620 Location: Oslo, Norway
|
|
Back to top |
|
 |
Resha
Joined: 14 Sep 2004 Posts: 5
|
Posted: Tue Sep 14, 2004 1:21 pm Post subject: |
|
|
Warning: mysql_fetch_object(): supplied argument is not a valid MySQL result resource in /home/pixelled/public_html/rhythm-gunblade/main.php on line 132
That's what it said when I did what it told me to do! |
|
Back to top |
|
 |
Sigg3
Joined: 03 Jul 2003 Posts: 620 Location: Oslo, Norway
|
|
Back to top |
|
 |
Resha
Joined: 14 Sep 2004 Posts: 5
|
Posted: Tue Sep 14, 2004 2:00 pm Post subject: |
|
|
Ok; my b2 actually works now, BUT THERE'S SOMETHING WRONG WITH THE COMMENTS. The comments doesn't work, and when I try to change the code, I get a Parse error.
Code: |
<!-- // b2 loop start -->
<?php while($row = mysql_fetch_object($result)) { start_b2(); ?>
<?php the_date("","<h4>","</h4>"); ?> , <?php the_time() ?>
<p>
<?php the_content(); ?>
</p>
<?php the_author() ?> - <?php comments_popup_link("Dreams", "//(1) Dream", "(//%) Dreams") ?>
<?php include ("b2comments.php"); ?>
<!-- // this is just the end of the motor - don't touch that line either -->
<?php } ?>
|
|
|
Back to top |
|
 |
Sigg3
Joined: 03 Jul 2003 Posts: 620 Location: Oslo, Norway
|
Posted: Tue Sep 14, 2004 2:08 pm Post subject: |
|
|
IF you are using the b2commentspopup be sure to use this:
in your <head> (no, not your head, but the head section of the php file) be sure to add:
Code: | <?php comments_popup_script(400, 600) ?> |
(400= width, 600= height)
and in the b2-loop add:
Code: | <?php comments_popup_link("comments?", "a single comment", "% comments!") ?> |
IF you are using the b2comments.php (the "regular", integrated stuff), call it using:
Code: | <a href="<?php comments_link() ?>"><?php comments_number("(0) Dreams", "(1) Dream", "(%) Dreams") ?></a> |
_________________ Sigg3 dot net - because you're worth it! | b2 Cafelog Resource Center |
|
Back to top |
|
 |
Resha
Joined: 14 Sep 2004 Posts: 5
|
Posted: Tue Sep 14, 2004 2:21 pm Post subject: |
|
|
You meant add it to the <head> of the b2commentspopup.php file, right? I did that.
But it's still not working. It doesn't popup, neither does it do the other type of comments.
Code: |
<!-- // b2 loop start -->
<?php while($row = mysql_fetch_object($result)) { start_b2(); ?>
<?php the_date("d.m.y","<h1>","</h1>"); ?>
<p>
<?php permalink_anchor(); ?>
<strong><?php the_title(); ?></strong> (category: <strong><?php the_category() ?></strong>)<br />
<?php the_content(); ?><?php link_pages("<br />Pages: ","<br />","number") ?>
<br />
<em>posted by <strong><?php the_author() ?></strong> @ <a href="<?php permalink_link() ?>"><?php the_time() ?></a></em>
<br />
<?php comments_popup_link("comments?", "a single comment", "% comments!") ?>
<?php include ("b2comments.php"); ?>
<!-- // this is just the end of the motor - don't touch that line either -->
<?php } ?>
|
I'll bet you hate me by now. |
|
Back to top |
|
 |
Sigg3
Joined: 03 Jul 2003 Posts: 620 Location: Oslo, Norway
|
Posted: Tue Sep 14, 2004 2:41 pm Post subject: |
|
|
No, I don't.
I was not specific. The code for the <head> goes into your main.php - NOT b2comments or commentspopup.php!
Sorry.
Then, if you're going to use the pop-up, delete the line called:
<?php include ("b2comments.php"); ?>
but keep <?php comments_popup_link("comments?", "a single comment", "% comments!") ?>
(You can edit the stuff within the quotationmarks "".) _________________ Sigg3 dot net - because you're worth it! | b2 Cafelog Resource Center |
|
Back to top |
|
 |
|