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 

number of comments is not correct!
Goto page 1, 2  Next
 
Post new topic   Reply to topic    boardom Forum Index -> How to ?
View previous topic :: View next topic  
Author Message
hazel



Joined: 20 Jan 2004
Posts: 34
Location: Philippines

PostPosted: Tue Jan 20, 2004 10:03 am    Post subject: number of comments is not correct! Reply with quote

HELP! The number of comments that appear on my site http://sweet.strawberryshake.net is not correct? What will I do? Also is it okay that I use the b2.php not index.php in my blog?

Okay, I also have OTHER questionS.. and I'm really in need because this is my first time to use b2.. anyway,
1. when I add an entry or when I blog my site is not updated with the new entry.. i don't know why.. and how will i fix it.
2. how can I change the srcollbar colors used in b2.ph.. where will i put it under?
3. how can i make the comments not pop up in a new window instead under my post...
4. how can i change the comment link into something like "3 strawberries" ...
5. if you see on my site there is something that appears like "category:general".. how can I erase that? and how will I make the title bigger and in different font!

That's ALL... PLEASE!!!!!! feedbacks are need urgently.. thanks! I'm reall confused...
Back to top
View user's profile Send private message Visit poster's website Yahoo Messenger
Timi



Joined: 23 Jul 2003
Posts: 75
Location: Hungary

PostPosted: Tue Jan 20, 2004 4:03 pm    Post subject: Reply with quote

I don't understand your complaining about the comments, it seems okay to me.

1, Make sure you set the correct time zone after logging into your b2edit.php, under options!
Uncorrect time zone causes delaying.
2, Add this tag to your CSS file:

Code:
body { scrollbar-3dlight-color: #CCCCCC;
  scrollbar-arrow-color: #000000;
  scrollbar-base-color: #666666;
  scrollbar-darkshadow-color: #000000;
  scrollbar-face-color: #FFFFFF;
  scrollbar-highlight-color: #999999;
  scrollbar-track-color: transparent;
  scrollbar-shadow-color: #000000;
  } 


Or add this to your index.php or blog.php or whatever if you don't have a CSS file:
Code:
<style type="text/css">
<!--

body {scrollbar-3dlight-color: #CCCCCC;
  scrollbar-arrow-color: #000000;
  scrollbar-base-color: #666666;
  scrollbar-darkshadow-color: #000000;
  scrollbar-face-color: #FFFFFF;
  scrollbar-highlight-color: #999999;
  scrollbar-track-color: transparent;
  scrollbar-shadow-color: #000000;
}

-->
</style>

These codes work only with IE.

3, I can't recommend the readme file enough times. Open your blog in a text editor, delete the commentspopup script from the head section, and edit the PHP part, get "comments_popup_link" out and replace with
Code:
 <?php comments_popup_link("no comments", "1 comment", "% comments") ?>


4, I think you have figured out how to change the comments into strawberries. You just replace the above-mentioned "no comments", "1 comment", "% comments" with custom ones. Smile

5, Again, got back into your blog in a text editor, and where you eded the comment stuff as mentioned above, you'll find the PHP code for the title, the content, the category etc. Simply delete the script to category.
To make the title bigget, but its PHP script between
Code:
<font face="Verdana, Arial, Helvetica, sans-serif etc... REPLACE WITH CUSTOM" size="2... SET A CUSTOM SIZE" color="#022464...SET A CUSTOM COLOR">......HERE COMES THE PHP SCRIPT TO TITLE</font>


Just ask for more
Back to top
View user's profile Send private message Visit poster's website
hazel



Joined: 20 Jan 2004
Posts: 34
Location: Philippines

PostPosted: Thu Jan 22, 2004 12:41 pm    Post subject: Reply with quote

I don't know how to write the correct time zone..

and I added a new entry to my blog but it doesn't appear.. why? and how?
Back to top
View user's profile Send private message Visit poster's website Yahoo Messenger
Timi



Joined: 23 Jul 2003
Posts: 75
Location: Hungary

PostPosted: Thu Jan 22, 2004 5:51 pm    Post subject: Reply with quote

I told you. Log into your blog, into the options part and set the time zone. That's it.
Back to top
View user's profile Send private message Visit poster's website
hazel



Joined: 20 Jan 2004
Posts: 34
Location: Philippines

PostPosted: Fri Jan 23, 2004 1:14 pm    Post subject: Reply with quote

1. okay now that i'm log in my blog.. what is the format in writing the time zone? like GMT+8:00 .. ?
2. can i use the b2.php instead of the index.php? isn't it that posts will go to both?
3. how can i put smilies so people could use it for commenting?
4. lastly, how can i make the comments appear just below the post?
Back to top
View user's profile Send private message Visit poster's website Yahoo Messenger
Timi



Joined: 23 Jul 2003
Posts: 75
Location: Hungary

PostPosted: Fri Jan 23, 2004 9:11 pm    Post subject: Reply with quote

1. okay now that i'm log in my blog.. what is the format in writing the time zone? like GMT+8:00 .. ?
I have "1" in that box. You might have to put 8 in there then.

2. can i use the b2.php instead of the index.php? isn't it that posts will go to both?
yeah sort of..

3. how can i put smilies so people could use it for commenting?
http://cafelog.com/board/viewtopic.php?t=978

4. lastly, how can i make the comments appear just below the post?
I told you this too.
Quote:
can't recommend the readme file enough times. Open your blog in a text editor, delete the commentspopup script from the head section, and edit the PHP part, get "comments_popup_link" out and replace with
Code:
<?php comments_link("no comments", "1 comment", "% comments") ?>

Back to top
View user's profile Send private message Visit poster's website
hazel



Joined: 20 Jan 2004
Posts: 34
Location: Philippines

PostPosted: Sat Jan 24, 2004 12:47 am    Post subject: Reply with quote

I give up.. I have these codes in b2.php .. kindly figure out which one will i have to delete.. or add.. or something so the post will appear below the post.. because I've tried already but it still pops up.. and the timezone is still incorrect.. I wrote 8 on the box but nothing happens.. so the number of comments is still not correct! Sad

Quote:
<?php /* Don't remove this line, it calls the b2 function files ! */ $blog=1; include ("blog.header.php"); ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml/DTD/xhtml-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title><?php echo $blogname ?></title>

<!-- Change charset if needed(?) But please do not remove this metatag -->
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<meta http-equiv="reply-to" content="[email protected]" />
<meta http-equiv="imagetoolbar" content="no" />
<meta content="TRUE" name="MSSmartTagsPreventParsing" />
<link rel="alternate" type="text/xml" title="RDF" href="%3C?php bloginfo('rdf_url'); ?>" />
<link rel="alternate" type="text/xml" title="RSS" href="%3C?php bloginfo('rss2_url'); ?>" />
<link rel="pingback" href="%3C?php bloginfo('pingback_url'); ?>" />
<?php comments_popup_script() ?>
<style type="text/css">
<!--
BODY{
scrollbar-face-color: #FFEAFF;
scrollbar-highlight-color: #FFEAFF;
scrollbar-shadow-color: #FFEAFF;
scrollbar-3dlight-color: #FFEAFF;
scrollbar-arrow-color: #000000;
scrollbar-track-color: #FFEAFF;
scrollbar-darkshadow-color: #FFEAFF;
}

-->

<!--
A:link{color:#000000; text-decoration:none;cursor:"crosshair"}
A:visited{color:#000000;text-decoration:none;font-weight:none}
A:hover{color:#FFE1FF;text-decoration:none;background-color:none;font-weight:none;cursor:"help"}-->
-->
</style>

</head>

<body bgcolor="#FFEAFF">
<font face="verdana" size="1 pt">
<!-- // b2 loop start -->
<?php while($row = mysql_fetch_object($result)) { start_b2(); ?>


<?php the_date("l M j, Y","<h1>","</h1>"); ?>

<p>
<?php permalink_anchor(); ?>

<strong><?php the_title(); ?></strong><br />
<?php the_content() ?> <?php link_pages("<br />Pages: ","<br />","number") ?>
<br />
<br><br>
<strong><?php the_author() ?></strong>@
<a href="%3C?php permalink_link() ?>"><?php the_time() ?></a></em>
<br />
<?php comments_link("no strawberry", "1 strawberry", "% strawberries") ?>

</p>

<?php include ("b2comments.php"); ?>


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

<div align="center">[powered by <a href="http://cafelog.com" target="_blank"><b>b2</b></a>.]<br />
 </div>

<?php
if ($debug=="1") {
echo "<p>$querycount queries - ".number_format(timer_stop(),3)." seconds</p>";
}
?>
</font>
</body>
</html>
Back to top
View user's profile Send private message Visit poster's website Yahoo Messenger
Timi



Joined: 23 Jul 2003
Posts: 75
Location: Hungary

PostPosted: Sat Jan 24, 2004 1:48 pm    Post subject: Reply with quote

You wrote 8 in the box and clicked update below, right? Now go to posting and see if your actual time appears under the text box. Change the number until you don't see the actual time of yours in there.

Code:
<?php /* Don't remove this line, it calls the b2 function files ! */ $blog=1; include ("blog.header.php"); ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml/DTD/xhtml-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title><?php echo $blogname ?></title>

<!-- Change charset if needed(?) But please do not remove this metatag -->
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<meta http-equiv="reply-to" content="[email protected]" />
<meta http-equiv="imagetoolbar" content="no" />
<meta content="TRUE" name="MSSmartTagsPreventParsing" />
<link rel="alternate" type="text/xml" title="RDF" href="%3C?php bloginfo('rdf_url'); ?>" />
<link rel="alternate" type="text/xml" title="RSS" href="%3C?php bloginfo('rss2_url'); ?>" />
<link rel="pingback" href="%3C?php bloginfo('pingback_url'); ?>" />
<style type="text/css">
<!--
BODY{
scrollbar-face-color: #FFEAFF;
scrollbar-highlight-color: #FFEAFF;
scrollbar-shadow-color: #FFEAFF;
scrollbar-3dlight-color: #FFEAFF;
scrollbar-arrow-color: #000000;
scrollbar-track-color: #FFEAFF;
scrollbar-darkshadow-color: #FFEAFF;
}

-->

<!--
A:link{color:#000000; text-decoration:none;cursor:"crosshair"}
A:visited{color:#000000;text-decoration:none;font-weight:none}
A:hover{color:#FFE1FF;text-decoration:none;background-color:none;font-weight:none;cursor:"help"}-->
-->
</style>

</head>

<body bgcolor="#FFEAFF">
<font face="verdana" size="1 pt">
<!-- // b2 loop start -->
<?php while($row = mysql_fetch_object($result)) { start_b2(); ?>


<?php the_date("l M j, Y","<h1>","</h1>"); ?>

<p>
<?php permalink_anchor(); ?>

<strong><?php the_title(); ?></strong><br />
<?php the_content() ?> <?php link_pages("<br />Pages: ","<br />","number") ?>
<br />
<br><br>
<strong><?php the_author() ?></strong>@
<a href="%3C?php permalink_link() ?>"><?php the_time() ?></a></em>
<br />
<?php comments_link("no strawberry", "1 strawberry", "% strawberries") ?>

</p>

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

<div align="center">[powered by <a href="http://cafelog.com" target="_blank"><b>b2</b></a>.]<br />
 </div>

<?php
if ($debug=="1") {
echo "<p>$querycount queries - ".number_format(timer_stop(),3)." seconds</p>";
}
?>
</font>
</body>
</html>


There's the one where comments will appear below the post when clicking on the link.
Back to top
View user's profile Send private message Visit poster's website
hazel



Joined: 20 Jan 2004
Posts: 34
Location: Philippines

PostPosted: Sat Jan 24, 2004 2:16 pm    Post subject: Reply with quote

This appears.. not the comment links
Code:
no strawberry?p=7&c=1#comments
Back to top
View user's profile Send private message Visit poster's website Yahoo Messenger
Timi



Joined: 23 Jul 2003
Posts: 75
Location: Hungary

PostPosted: Sat Jan 24, 2004 11:18 pm    Post subject: Reply with quote

Oh god this whole PHP code is damaged...... I think you should go over here: http://cafelog.com/board/viewtopic.php?t=420, delete the PHP and start with the first post.
Back to top
View user's profile Send private message Visit poster's website
hazel



Joined: 20 Jan 2004
Posts: 34
Location: Philippines

PostPosted: Sun Jan 25, 2004 2:57 am    Post subject: Reply with quote

what do you mean damaged? I knew it.. there must be something wrong here.. So what should I do? Delete all my posts and start all over again.. and change the whole b2.php?
Back to top
View user's profile Send private message Visit poster's website Yahoo Messenger
hazel



Joined: 20 Jan 2004
Posts: 34
Location: Philippines

PostPosted: Mon Jan 26, 2004 10:29 am    Post subject: Reply with quote

Well,, are there no people here who could help me? PLEASE.. this is really urgent!!! DO I NEED TO INSTALL ANOTHER B2 because as Timi said it is damaged... what shall i do???????????????????
Back to top
View user's profile Send private message Visit poster's website Yahoo Messenger
Cyberian75



Joined: 26 Sep 2002
Posts: 1005
Location: Washington

PostPosted: Mon Jan 26, 2004 8:37 pm    Post subject: Reply with quote

Your blog entries are saved in a database, so modifying your files won't affect them at all. As for your other issues, please utilize the search feature of this board as they have come up many times before.
_________________
Michael P.
Back to top
View user's profile Send private message Visit poster's website AIM Address
cherrigirl



Joined: 26 Oct 2003
Posts: 4
Location: USA

PostPosted: Tue Jan 27, 2004 1:45 am    Post subject: Reply with quote

I believe timi meant that your php code was messed up, not you blog...your best bet is to start with a new template like they suggested...you won't loose your archives or comments...you'll jsut have a fresh new template to start with!

if you need help you coan contact me, I'm okay with the basics of b2.
Back to top
View user's profile Send private message Visit poster's website AIM Address
Timi



Joined: 23 Jul 2003
Posts: 75
Location: Hungary

PostPosted: Tue Jan 27, 2004 1:28 pm    Post subject: Reply with quote

Yeah I meant that. If you re-unzip the b2.php and use its code, you'll be okay Smile
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    boardom Forum Index -> How to ? All times are GMT + 1 Hour
Goto page 1, 2  Next
Page 1 of 2

 
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