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 

Total newbie 2 B2

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



Joined: 06 May 2004
Posts: 7

PostPosted: Thu May 06, 2004 6:03 pm    Post subject: Total newbie 2 B2 Reply with quote

Hi i was looking for a nice blog for my site since i'm i am remodeling it completely
i saw b2 and it was pretty cool
my cpanel has a script for b2 but i have know clue how to edit the template to fit in to my site and most importantly put the blog on my page

i don't want to copy this persons blog but im going to use it as an example

http://so-outrageous.com/

you see how she has a background for her blog and an image with each post and comments

also what is a plug how would some one plug their site

please im clueless and would really appreciate if someone could help me out Very Happy
Back to top
View user's profile Send private message
juliagizzle



Joined: 06 May 2004
Posts: 7

PostPosted: Fri May 07, 2004 12:34 am    Post subject: Reply with quote

please i really need someone help 2 get started
i hope i was not ignored for asking a dumb question or something like that
Back to top
View user's profile Send private message
shinobi168



Joined: 15 Mar 2004
Posts: 9
Location: Indiana

PostPosted: Fri May 07, 2004 12:49 am    Post subject: Reply with quote

To make your own template, the file has to be PHP. If you're coding in Notepad, select file type -> All Files then put a .php extension to make it PHP.
These are the PHP tags you need in your custom template:
Code:

<?php /* Don't remove this line, it calls the b2 function files ! */ $blog=1; include ("blog.header.php"); ?>

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

<?php while($row = mysql_fetch_object($result)) { start_b2(); ?>
<?php the_title(); ?>
<?php the_date("m.d.y","",""); ?>
<?php permalink_anchor(); ?>
<?php the_content() ?><?php link_pages("<br>Pages: ","<br>","number") ?>
<a href="<?php comments_link() ?>"><?php comments_number("0 Comments","1 Comment","% Comments") ?></a>

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

Now for the explaination...

<?php /* Don't remove this line, it calls the b2 function files ! */ $blog=1; include ("blog.header.php"); ?> Put that above your HTML tag. It starts all the b2 crap.

<link rel="stylesheet" type="text/css" media="print" href="print.css">
<link rel="alternate" type="application/rdf+xml" title="RDF" href="<?php bloginfo('rdf_url'); ?>">
<link rel="alternate" type="application/rss+xml" title="RSS" href="<?php bloginfo('rss2_url'); ?>">
<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>">
<?php comments_popup_script() ?>
Put that in between your Head tags.

<?php while($row = mysql_fetch_object($result)) { start_b2(); ?>
<?php the_title(); ?>
<?php the_date("m.d.y","",""); ?>
<?php permalink_anchor(); ?>
<?php the_content() ?><?php link_pages("<br>Pages: ","<br>","number") ?>
<a href="<?php comments_link() ?>"><?php comments_number("0 Comments","1 Comment","% Comments") ?></a>
That's your blog. Put it all in between your Body tags.
<?php the_title(); ?> is the title of your post.
<?php the_date("m.d.y","",""); ?> is the date. The lower-case letters show 2 digit representation of the date (d being day, etc.). You can change that to whatever you want. There are also tags for time, if you so desire. The periods in between the letters (m.d.y) separates each letter with a period. Again, changeable.
<a href="<?php comments_link() ?>"><?php comments_number("0 Comments","1 Comment","% Comments") ?></a> Comments link. The only thing you need to change is all the "1 Comment" etc. stuff. If you care for it to say different things.
The other stuff above the Comment tag, don't mess with.

<?php include ("b2comments.php"); ?>
<?php } ?>
The first tag calls the comments page. This isn't the popup comments (I have no idea how to get that) so if you want that, you'll have to ask someone else. The very last tag (<?php } ?>) is incredibly important: it closes the b2 crap. That's the end of the blog. Integrate this into HTML and viola, you have your own template!
_________________
shinobi168

I'm not in the business of faking to please vain opposers
A dead legion of new, cloned followers

Fake Sky
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address MSN Messenger
juliagizzle



Joined: 06 May 2004
Posts: 7

PostPosted: Fri May 07, 2004 5:35 pm    Post subject: Reply with quote

i'm still a bit confused

b2 was one of the featurers of my control panel
are you saying in order to make my own template i have to make another
php file i cant change the one i have?

and how do i get an image to come up with each post and comment?
also how do i change the comment template
also if anyone know how to do the pop up comments i would really appreciate it.
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