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 

comment problem

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



Joined: 02 Dec 2003
Posts: 7

PostPosted: Wed Dec 17, 2003 3:38 am    Post subject: comment problem Reply with quote

I installed b2 into it's own folder and everything is working out great until I find out that visutors can't post comments. when they try to, a pop-up window shows up with a 404 error. I've tried everyting i can think of to fix it, even re-installed b2. Can anyone tell me what's going on?
Back to top
View user's profile Send private message
sk4nkORG



Joined: 16 Dec 2003
Posts: 2

PostPosted: Wed Dec 17, 2003 3:54 am    Post subject: Reply with quote

in your b2config.php file, is the $siteurl and $pathserver variables pointing to the correct locations ...and is there no / at the end of them?
Back to top
View user's profile Send private message
kryren



Joined: 02 Dec 2003
Posts: 7

PostPosted: Wed Dec 17, 2003 6:15 am    Post subject: Reply with quote

yes, $siteurl is pointing to my main page and $pathserver is pointing to the folder I put b2 in.
Back to top
View user's profile Send private message
epolady



Joined: 30 Jul 2002
Posts: 800
Location: Texas

PostPosted: Wed Dec 17, 2003 6:37 am    Post subject: Reply with quote

See sig.
_________________
No more support from me. Goodbye!
Go upgrade to WordPress, you'll find better support there.
Back to top
View user's profile Send private message
kryren



Joined: 02 Dec 2003
Posts: 7

PostPosted: Wed Dec 17, 2003 6:30 pm    Post subject: Reply with quote

Code:
# $siteurl is your blog's URL: for example, 'http://mydomain.com' (no trailing slash !)
# $blogfilename is the name of the default file for your blog
# $blogname is the name of your blog

$siteurl = 'http://sanitys-requiem.net';
$blogfilename = 'index.php';
$blogname = "sanity gone";
$blogdescription = "randomness !";

Code:

# $pathserver is where you have uploaded b2: for example, 'http://mydomain.com' (no ending slash !)
#   by default b2 is set to run in the folder your blog resides, same as $siteurl

$pathserver = 'http://sanitys-requiem.net/b2';


that coding help or would you refer the whole b2config.php file?
Back to top
View user's profile Send private message
epolady



Joined: 30 Jul 2002
Posts: 800
Location: Texas

PostPosted: Wed Dec 17, 2003 6:38 pm    Post subject: Reply with quote

I'm going to assume (by the source of your blog) that you're PHP including your blog?
_________________
No more support from me. Goodbye!
Go upgrade to WordPress, you'll find better support there.
Back to top
View user's profile Send private message
kryren



Joined: 02 Dec 2003
Posts: 7

PostPosted: Wed Dec 17, 2003 10:42 pm    Post subject: Reply with quote

no, I'm using a header.php file that has a DIV tage that holds the page contents and is closed by a footer.php file.
Back to top
View user's profile Send private message
epolady



Joined: 30 Jul 2002
Posts: 800
Location: Texas

PostPosted: Wed Dec 17, 2003 10:47 pm    Post subject: Reply with quote

Post your index.php here please. Or at least the blog portion.
_________________
No more support from me. Goodbye!
Go upgrade to WordPress, you'll find better support there.
Back to top
View user's profile Send private message
kryren



Joined: 02 Dec 2003
Posts: 7

PostPosted: Wed Dec 17, 2003 10:49 pm    Post subject: Reply with quote

ok, all it is is the blog and some css, so i'll post all of it:
Code:
<?php
include("header.php");
?>
<?php /* Don't remove this line, it calls the b2 function files ! */ $blog=1; include ("b2/blog.header.php"); ?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<!-- layout credits goto http://bluerobot.com/web/layouts/layout2.html -->

<head>
<title><?php bloginfo('name') ?><?php single_post_title(' :: ') ?><?php single_cat_title(' :: ') ?><?php single_month_title(' :: ') ?></title>

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<meta http-equiv="reply-to" content="<?php bloginfo('admin_email'); ?>" />
<meta http-equiv="imagetoolbar" content="no" />
<meta content="TRUE" name="MSSmartTagsPreventParsing" />

<style type="text/css" media="screen">
<title>Sanity's Requiem | Draco</title>
   <style type ="text/css"><!--
a{text-decoration:none}
a:link { color:#D7C9C9 ; text-decoration: bold}
a:visited { color: #ABC5B2; text-decoration: none}
a:hover { color: #ABC5B2; text-decoration: none}
a:active { color: #ABC5B2; text-decoration: none}

body {
  margin : 0px ;
  background-color:#000000;
  background-attachment: fixed;
  color :#D7C9C9 ;
  font-family : times new roman;
  font-size : 13px ;
scrollbar-face-color:#000000;
scrollbar-arrow-color:#D7C9C9;
scrollbar-track-color:#000000;
scrollbar-shadow-color:#D7C9C9;
scrollbar-highlight-color:#D7C9C9;
scrollbar-3dlight-color:#000000;
scrollbar-darkshadow-color:#D7C9C9;
             }

  //--></style>
</style>
<link rel="stylesheet" type="text/css" media="print" href="print.css" />
<link rel="alternate" type="text/xml" title="RDF" href="<?php bloginfo('rdf_url'); ?>" />
<link rel="alternate" type="text/xml" title="RSS" href="<?php bloginfo('rss2_url'); ?>" />
<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
<?php comments_popup_script() ?>

</head>
<body>
<div id="content">


<!-- // b2 loop start -->
   <?php while($row = mysql_fetch_object($result)) { start_b2(); ?>


<?php the_date("","<h4>","</h4>"); ?>
<?php permalink_anchor(); ?>
<div class="storyTitle"><?php the_title(); ?>
      -+-   <a href="<?php permalink_link() ?>"><?php the_time() ?></a><br>
</div>

<div class="storyContent">
<?php the_content(); ?>
<div class="rightFlush" align=right>
<?php link_pages("<br />Pages: ","<br />","number") ?>
<?php comments_popup_link("Comments (0)", "Comments (1)", "Comments (%)") ?>
<p>
<!-- this includes the comments and a form to add a new comment -->
<?php include ("b2/b2comments.php"); ?>

</div>

</div>


<!-- // this is just the end of the motor - don't touch that line either :) -->
   <?php } ?>


</div>

<p class="centerP"><?php timer_stop(1); ?>
[powered by <a href="http://cafelog.com" target="_blank"><b>b2</b></a>.]
</p>

</div>
<!-- BlueRobot was here. -->
<?php
include("footer.php");
?>
Back to top
View user's profile Send private message
epolady



Joined: 30 Jul 2002
Posts: 800
Location: Texas

PostPosted: Thu Dec 18, 2003 1:29 am    Post subject: Reply with quote

Because you're using popup comments you need to edit a file. Taken from my own tutorial:

Open /b2-include/b2template.functions.php.

Find the lines:
Quote:
function comments_popup_script($width=400, $height=400,
$file='b2commentspopup.php',
$trackbackfile='b2trackbackpopup.php',
$pingbackfile='b2pingbackspopup.php')


Change to:
Quote:
function comments_popup_script($width=400, $height=400,
$file='b2/b2commentspopup.php',
$trackbackfile='b2/b2trackbackpopup.php',
$pingbackfile='b2/b2pingbackspopup.php')

----------------------------------
Save and close b2template.functions.php
_________________
No more support from me. Goodbye!
Go upgrade to WordPress, you'll find better support there.
Back to top
View user's profile Send private message
kryren



Joined: 02 Dec 2003
Posts: 7

PostPosted: Thu Dec 18, 2003 5:28 am    Post subject: Reply with quote

yay! thank you so much! it works now. thank you thank you thank you!
Back to top
View user's profile Send private message
epolady



Joined: 30 Jul 2002
Posts: 800
Location: Texas

PostPosted: Thu Dec 18, 2003 6:21 am    Post subject: Reply with quote

'Welcome. Cool
_________________
No more support from me. Goodbye!
Go upgrade to WordPress, you'll find better support there.
Back to top
View user's profile Send private message
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