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 

title not showing up and comments questions

 
Post new topic   Reply to topic    boardom Forum Index -> Template help
View previous topic :: View next topic  
Author Message
boka



Joined: 06 Dec 2004
Posts: 8

PostPosted: Mon Dec 06, 2004 9:57 pm    Post subject: title not showing up and comments questions Reply with quote

This is what I have so far http://heidi-marie.com/v-web/b2/ and I've intergrated a template but i'm having some issues here. The title of my post won't show up. And my other question is why when you click Comments does a pop up show? Can I have comments not be a pop up and show on the page just like the archives page works? This is my code and thank you for any help.

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/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<style type="text/css">
<!--

a:link {color:#996655; text-decoration:none}
a:visited {color:#aa7766; text-decoration:none}
a:hover {color:#000000; text-decoration:underline}

 body {background:#996655 url(http://www.heidi-mariesite/images/blog/booksbk.gif);
 margin:0;
 padding:0;
 color:#000000;
 font:0.7em arial, sans-serif;
 letter-spacing:1px;
 text-align:center}

#main {background:#ffffff url(http://www.heidi-marie.com/images/blog/books.jpg);
background-repeat:no-repeat;
padding-top:220px;
border-right: 1px #000 solid;
border-left: 1px #000 solid;
margin-right:auto;
margin-left:auto;
width:700px
}

#content
{width:450px;
border-right: 1px #000 solid;
text-align:left;
padding-bottom:15px}

#content p {text-indent:10px;
padding-right:10px;
padding-left:5px
}
#content p:first-letter {font:2em georgia, serif;}

#links {float:right;
width:220px;
text-align:left;
font-family:georgia,serif;
padding-right:5px
}

ul {list-style-image:url(http://www.heidi-marie.com/images/blog/booksdot.gif)}

h1 {
   font:3em georgia, serif;
   text-align:right;
   padding-right:5px;
   color: #FFFFFF;
}

h2 {font:2.2em georgia, serif;
text-align:right;
border-bottom:1px #000 solid;
padding-right:5px}

h3 {font-size:0.9em;
text-align:right;
padding-right:5px}

blockquote {background:#eae4e4;
padding:5px;
border-left:1px #000 solid;
font-family:georgia,serif}

input,textarea {background:#eae4e4;
padding:3px;
border:1px #000 solid;
font:11px georgia,serif}
-->
</style>
<title>The Woman I Am</title>
<?php comments_popup_script() ?></head>
<body>
<div id="main">
<h1>The Woman I Am</h1>
<div id="links">
<ul>
<li>Please enter a short paragraph about yourself or your diary</li>
</ul>

<ul><li><a href="<?php previous_posts() ?>" title="previous">previous</a></li><li><a href="<?php next_posts() ?> " title="next">next</a></li><li><a href="index.php">current</a></li> 
<li><a href="older.php">archive</a></li> 
</ul>


<ul>
LINKS
<li><a href="www.tashataylor.com">Tasha Taylor</a></li>
<li><a href="www.kimmykim.com">Kimmy Kim</a></li>
<li><a href="www.trehardson.com">Tre Hardson</a></li>
<li><a href="www.benaturalsoul.com">Benatural Soul</a></li>
<li><a href="www.chrispierce.com">Chris Pierce</a></li>
<li><a href="www.moniquedebose.com">Monique Debose</a></li>
<li><a href="www.deborahhart.com">Deborah Hart</a></li>
</ul>
<ul>
<li><?php include("b2archives.php") ?></li>
</ul>
<ul>
</ul>
<ul>
<li><a href="http://not-that-ugly.co.uk" title="not that ugly">design</a></li>
<li><a href="http://morguefile.com" title="morguefile">image</a></li>
<li><a href="http://cafelog.com">b2</a></li>
<li></li>
</ul>

</div>
<div id="content">
<!-- // b2 loop start -->   <?php while($row = mysql_fetch_object($result)) { start_b2(); ?> <?php permalink_anchor(); ?><h2><?php the_date() ?></h2>
<?php the_content() ?><h3>Heidi Marie wrote at <a href="<?php permalink_link() ?>"><?php the_time() ?></a></h3>
<?php comments_popup_link("comments ?","1 comment", "% comments") ?><?php include ("b2comments.php"); ?><br /><!-- // this is just the end of the motor - don't touch that line either :) --><?php } ?>;</div>
</div>
</body>
</html>

Back to top
View user's profile Send private message
Sigg3



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

PostPosted: Mon Dec 06, 2004 10:41 pm    Post subject: Reply with quote

From the readme
<?php the_title() ?>
The title of the post.
Parameters:

* string to display before the title (default is blank)
* string to display after the title (default is blank)

--\\--

Concerning comments, remove this from <head>:
Code:
<?php comments_popup_script() ?>


and use this:
Code:
<a href="<?php comments_link() ?>"><?php comments_number("no comment","1 comment","% comments") ?></a>


instead of:
Code:
<?php comments_popup_link("comments ?","1 comment", "% comments") ?>

The file you should edit when doing changes in the template is b2comments.php then, and not b2commentspopup.php.
But both should be protected against spam.

http://sigg3.net/cafelog/files/b2anti-spam.zip
_________________
Sigg3.net - You know you're worth it! | b2 Cafelog Resource Center | Fight my BattleImp!
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
boka



Joined: 06 Dec 2004
Posts: 8

PostPosted: Tue Dec 07, 2004 2:34 am    Post subject: thanks sig3 still dealing with title Reply with quote

I still don't understand the parameters you mention. Do I insert <?php the_title() ?> and that's all but where do I insert it? Sorry not an avid php person. Thanks for any help. i did do the comments thing already which that worked fine. I'll tackle the permalink and stuff later if possible but the title thing I really want to get it done.
Thanks
Back to top
View user's profile Send private message
Sigg3



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

PostPosted: Tue Dec 07, 2004 9:47 am    Post subject: Reply with quote

You can put it anywhere you like between
<!-- // b2 loop start --> and <?php } ?> (the ending)

So, if you want it AFTER the content, put it there.
You want it before the date, put it there.

How to make a template the easy way
_________________
Sigg3.net - You know you're worth it! | b2 Cafelog Resource Center | Fight my BattleImp!
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
boka



Joined: 06 Dec 2004
Posts: 8

PostPosted: Tue Dec 07, 2004 10:27 am    Post subject: finally Reply with quote

I got it! thanks for your patience
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    boardom Forum Index -> Template help 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