View previous topic :: View next topic |
Author |
Message |
kryren
Joined: 02 Dec 2003 Posts: 7
|
Posted: Wed Dec 17, 2003 3:38 am Post subject: comment problem |
|
|
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 |
|
 |
sk4nkORG
Joined: 16 Dec 2003 Posts: 2
|
Posted: Wed Dec 17, 2003 3:54 am Post subject: |
|
|
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 |
|
 |
kryren
Joined: 02 Dec 2003 Posts: 7
|
Posted: Wed Dec 17, 2003 6:15 am Post subject: |
|
|
yes, $siteurl is pointing to my main page and $pathserver is pointing to the folder I put b2 in. |
|
Back to top |
|
 |
epolady
Joined: 30 Jul 2002 Posts: 800 Location: Texas
|
Posted: Wed Dec 17, 2003 6:37 am Post subject: |
|
|
See sig. _________________ No more support from me. Goodbye!
Go upgrade to WordPress, you'll find better support there. |
|
Back to top |
|
 |
kryren
Joined: 02 Dec 2003 Posts: 7
|
Posted: Wed Dec 17, 2003 6:30 pm Post subject: |
|
|
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 |
|
 |
epolady
Joined: 30 Jul 2002 Posts: 800 Location: Texas
|
Posted: Wed Dec 17, 2003 6:38 pm Post subject: |
|
|
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 |
|
 |
kryren
Joined: 02 Dec 2003 Posts: 7
|
Posted: Wed Dec 17, 2003 10:42 pm Post subject: |
|
|
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 |
|
 |
epolady
Joined: 30 Jul 2002 Posts: 800 Location: Texas
|
Posted: Wed Dec 17, 2003 10:47 pm Post subject: |
|
|
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 |
|
 |
kryren
Joined: 02 Dec 2003 Posts: 7
|
Posted: Wed Dec 17, 2003 10:49 pm Post subject: |
|
|
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 |
|
 |
epolady
Joined: 30 Jul 2002 Posts: 800 Location: Texas
|
Posted: Thu Dec 18, 2003 1:29 am Post subject: |
|
|
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 |
|
 |
kryren
Joined: 02 Dec 2003 Posts: 7
|
Posted: Thu Dec 18, 2003 5:28 am Post subject: |
|
|
yay! thank you so much! it works now. thank you thank you thank you! |
|
Back to top |
|
 |
epolady
Joined: 30 Jul 2002 Posts: 800 Location: Texas
|
Posted: Thu Dec 18, 2003 6:21 am Post subject: |
|
|
'Welcome.  _________________ No more support from me. Goodbye!
Go upgrade to WordPress, you'll find better support there. |
|
Back to top |
|
 |
|