boardom Forum Index boardom
b2 message board
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Help me! I'm new to this...

 
Post new topic   Reply to topic    boardom Forum Index -> Installation issues
View previous topic :: View next topic  
Author Message
Resha



Joined: 14 Sep 2004
Posts: 5

PostPosted: Tue Sep 14, 2004 12:08 pm    Post subject: Help me! I'm new to this... Reply with quote

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
View user's profile Send private message Visit poster's website MSN Messenger
Sigg3



Joined: 03 Jul 2003
Posts: 620
Location: Oslo, Norway

PostPosted: Tue Sep 14, 2004 1:05 pm    Post subject: Reply with quote

Check this post:
http://www.cafelog.com/board/viewtopic.php?t=420

or mirror:
http://www.sigg3.net/cafelog/files/b2_temp_easy.txt
_________________
Sigg3 dot net - because you're worth it! | b2 Cafelog Resource Center
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Resha



Joined: 14 Sep 2004
Posts: 5

PostPosted: Tue Sep 14, 2004 1:21 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website MSN Messenger
Sigg3



Joined: 03 Jul 2003
Posts: 620
Location: Oslo, Norway

PostPosted: Tue Sep 14, 2004 1:49 pm    Post subject: Reply with quote

Can you post the code to main.php here, pls?
_________________
Sigg3 dot net - because you're worth it! | b2 Cafelog Resource Center
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Resha



Joined: 14 Sep 2004
Posts: 5

PostPosted: Tue Sep 14, 2004 2:00 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website MSN Messenger
Sigg3



Joined: 03 Jul 2003
Posts: 620
Location: Oslo, Norway

PostPosted: Tue Sep 14, 2004 2:08 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website MSN Messenger
Resha



Joined: 14 Sep 2004
Posts: 5

PostPosted: Tue Sep 14, 2004 2:21 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website MSN Messenger
Sigg3



Joined: 03 Jul 2003
Posts: 620
Location: Oslo, Norway

PostPosted: Tue Sep 14, 2004 2:41 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    boardom Forum Index -> Installation issues All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB 2 © 2001, 2002 phpBB Group