View previous topic :: View next topic |
Author |
Message |
quietsnooze
Joined: 06 Oct 2003 Posts: 6
|
Posted: Mon Oct 06, 2003 10:58 pm Post subject: Template w/ Tables |
|
|
Hullo :3 I've been wondering if there was a way to make a b2 template with tables. For example (even though this is greymatter, it still shows how I'd like to have mine set up) http://www.joobilee.org
I've fiddled but I haven't become successful in a few areas, including 1) making the tables line up and 2) keeping the blog part from extending the table.
I hope someone can help me |
|
Back to top |
|
 |
epolady
Joined: 30 Jul 2002 Posts: 800 Location: Texas
|
Posted: Mon Oct 06, 2003 11:26 pm Post subject: |
|
|
Okay, instead of having one of us do a sample template, let's work on the codes that you're "fiddling" with. Please paste what you have so far. Thanks. _________________ No more support from me. Goodbye!
Go upgrade to WordPress, you'll find better support there. |
|
Back to top |
|
 |
quietsnooze
Joined: 06 Oct 2003 Posts: 6
|
Posted: Tue Oct 07, 2003 1:07 am Post subject: |
|
|
Alright, this is what I've done so far.. It doesn't look right, though o_o The width isn't set *squints*
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>
<body bgcolor="#FFFFFF" link="#4386B5" vlink="#4386B5">
<style type="text/css">
A:link {text-decoration: none; color: #000000}
A:visited {text-decoration: none; color: #FFFFFF}
A:active {text-decoration: none; color: #FFFFFF}
A:hover {text-decoration: none; color: #FFFFFF; border-bottom: 1px solid #4386B5}
body
{scrollbar-face-color: #CCCCCC;
scrollbar-highlight-color: #CCCCCC;
scrollbar-shadow-color: #4386B5;
scrollbar-3Dlight-color: #CCCCCC;
scrollbar-arrow-color: #4386B5;
scrollbar-track-color: #CCCCCC;
scrollbar-darkshadow-color: #CCCCCC;
scrollbar-base-color: #CCCCCC;
font: 11px tahoma;}
</style>
<body background="../images/bg1.png" bgproperties="fixed">
<link rel=stylesheet type="text/css" href="code.css">
<!-- 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="<?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>
<p>
<font color="4386B5"><b>HULLO</b></font> visitor and welcome to Anti Ordinary! This is my blog/collective/hosting domain. This layout features
Hanson, the greatest band in the world, who I'm going to their concert on October 10th. I won this domain with this layout (YAY! Love you Hannah!) Navigation is at the side, just scroll
down far enough until you find the large words within lyrics. Hopefully I can make this domain into something really good.
<br><br><hr color="#293F4C" width="50%" size="3">
<body>
<!-- // b2 loop start -->
<?php while($row = mysql_fetch_object($result)) { start_b2(); ?>
<center>
<table style="border:1pt solid #000000; filter: alpha(opacity=70); width:390; cellpadding="1" cellspacing="1" bgcolor="#4386B5">
<tr>
<td bordercolor="#000000"><font size="1" face="tahoma"><center><strong>                                     
                                <?php the_date("d.m.y"); ?></strong><?php permalink_anchor(); ?></center></font></td>
</tr></td>
</table>
<table style="border:1pt solid #888888">
<tr>
<table style="border:1pt solid #cccccc; width:392; cellpadding="1" cellspacing="1" bgcolor="#CCCCCC" >
<tr><td>
<font color=#000000><font face="tahoma"><font size="1">
<?php the_content(); ?><?php link_pages("<br />Pages: ","<br />","number") ?>
<br />
<br><strong><?php the_author() ?></strong> blogged @ <a href="<?php permalink_link() ?>"><?php the_time() ?></a>
<br />
</tr></td></table>
<table style="border:1pt solid #000000; filter: alpha(opacity=70); width:390; cellpadding="1" cellspacing="1" bgcolor="#293F4C">
<tr>
<td bordercolor="#000000"><font size="1" face="tahoma"><div align="right">                                     
                                  
<?php comments_popup_link("c0mments ?", "c1mment", "c%mments") ?>
<?php include ("b2comments.php"); ?></br></align></font></div>
</tr></td>
</table></p>
<!-- // this is just the end of the motor - don't touch that line either -->
<?php } ?>
<div align="right">[powered by <a href="http://cafelog.com" target="_blank"><b>b2</b></a>.]<br />
<br /></div>
<?php
if ($debug=="1") {
echo "<p>$querycount queries - ".number_format(timer_stop(),3)." seconds</p>";
}
?>
</body>
</html> |
What I would like it to look like is for it to fit : http://www.antiordinary.com <- like the manual blog here (which this is my site, btw) |
|
Back to top |
|
 |
epolady
Joined: 30 Jul 2002 Posts: 800 Location: Texas
|
Posted: Tue Oct 07, 2003 2:17 am Post subject: |
|
|
Eep, tables. Okay, let's see here. I hate them. But try this
<?php /* Don't remove this line, it calls the b2 function files ! */ $blog=1; include ("blog.header.php"); ?>
<!-- // b2 loop start -->
<?php while($row = mysql_fetch_object($result)) { start_b2(); ?>
<div align="center">
<table style="border:1pt solid #000000; filter: alpha(opacity=70); width:390; cellpadding="1" cellspacing="1" bgcolor="#4386B5">
<tr>
<td bordercolor="#000000"><font size="1" face="tahoma">
<div align="right"><?php the_date("d.m.y"); ?><?php permalink_anchor(); ?> </div>
<div align="center"><?php the_title() ?></div>
</font></td></tr>
</table>
<table style="border:1pt solid #888888">
<tr>
<table style="border:1pt solid #cccccc; width:390; cellpadding="1" cellspacing="1" bgcolor="#CCCCCC" >
<tr><td>
<font color=#000000><font face="tahoma"><font size="1">
<?php the_content(); ?>
</tr></table>
<table style="border:1pt solid #000000; filter: alpha(opacity=70); width:390; cellpadding="1" cellspacing="1" bgcolor="#293F4C">
<tr>
<td bordercolor="#000000"><font size="1" face="tahoma">
<div align="right">
<?php comments_popup_link("c0mments ?", "c1mment", "c%mments") ?></div></font></td></tr></table><br>
<?php include ("b2comments.php"); ?>
<!-- // this is just the end of the motor - don't touch that line either -->
<?php } ?>
</div>
Just copy all put all your codes in there..... _________________ No more support from me. Goodbye!
Go upgrade to WordPress, you'll find better support there. |
|
Back to top |
|
 |
quietsnooze
Joined: 06 Oct 2003 Posts: 6
|
Posted: Tue Oct 07, 2003 10:05 pm Post subject: |
|
|
Thanks, it worked perfectly
One more quick question - what would I change to make the comment link pop up (as well as have the comments pop up in it)? Because it currently just comes up underneath the entry.. |
|
Back to top |
|
 |
epolady
Joined: 30 Jul 2002 Posts: 800 Location: Texas
|
Posted: Wed Oct 08, 2003 12:38 am Post subject: |
|
|
Put
Code: | <?php comments_popup_script() ?> |
In your <HEAD> _________________ No more support from me. Goodbye!
Go upgrade to WordPress, you'll find better support there. |
|
Back to top |
|
 |
ludvig87
Joined: 08 Aug 2003 Posts: 54 Location: Denmark
|
Posted: Wed Oct 08, 2003 6:17 pm Post subject: |
|
|
Can anyone edit the above code, so I can edit only my stylesheet instead of that one?
Or should I edit those codes each time I change the layout? |
|
Back to top |
|
 |
quietsnooze
Joined: 06 Oct 2003 Posts: 6
|
Posted: Wed Oct 08, 2003 8:34 pm Post subject: |
|
|
Quote: | Fatal error: Call to undefined function: comments_popup_script() in /home/antiordi/public_html/blog/main.php on line 1
|
This is the only thing that comes up when I added that tag. And I don't suppose its a good thing o_o; |
|
Back to top |
|
 |
epolady
Joined: 30 Jul 2002 Posts: 800 Location: Texas
|
Posted: Wed Oct 08, 2003 9:20 pm Post subject: |
|
|
Can you post your source code for main.php here please? _________________ No more support from me. Goodbye!
Go upgrade to WordPress, you'll find better support there. |
|
Back to top |
|
 |
quietsnooze
Joined: 06 Oct 2003 Posts: 6
|
Posted: Wed Oct 08, 2003 9:26 pm Post subject: |
|
|
Quote: | <HEAD><?php comments_popup_script() ?>
<body bgcolor="#FFFFFF" link="#4386B5" vlink="#4386B5">
<style type="text/css">
A:link {text-decoration: none; color: #000000}
A:visited {text-decoration: none; color: #FFFFFF}
A:active {text-decoration: none; color: #FFFFFF}
A:hover {text-decoration: none; color: #FFFFFF; border-bottom: 1px solid #4386B5}
body
{scrollbar-face-color: #CCCCCC;
scrollbar-highlight-color: #CCCCCC;
scrollbar-shadow-color: #4386B5;
scrollbar-3Dlight-color: #CCCCCC;
scrollbar-arrow-color: #4386B5;
scrollbar-track-color: #CCCCCC;
scrollbar-darkshadow-color: #CCCCCC;
scrollbar-base-color: #CCCCCC;
font: 11px tahoma;}
</style>
<body background="../images/bg1.png" bgproperties="fixed">
<link rel=stylesheet type="text/css" href="code.css"></HEAD>
<p>
<font color="4386B5"><b>HULLO</b></font> visitor and welcome to Anti Ordinary! This is my blog/collective/hosting domain. This layout features
Hanson, the greatest band in the world, who I'm going to their concert on October 10th. I won this domain with this layout (YAY! Love you Hannah!) Navigation is at the side, just scroll
down far enough until you find the large words within lyrics. Hopefully I can make this domain into something really good.
<br><br><hr color="#293F4C" width="50%" size="3">
<!-- // b2 loop start -->
<?php while($row = mysql_fetch_object($result)) { start_b2(); ?>
<div align="center">
<table style="border:1pt solid #000000; filter: alpha(opacity=70); width:390; cellpadding="1" cellspacing="1" bgcolor="#4386B5">
<tr>
<td bordercolor="#000000"><font size="1" face="tahoma">
<div align="right"><?php the_date("d.m.y"); ?><?php permalink_anchor(); ?> </div>
<div align="center"><?php the_title() ?></div>
</font></td></tr>
</table>
<table style="border:1pt solid #888888">
<tr>
<table style="border:1pt solid #cccccc; width:390; cellpadding="1" cellspacing="1" bgcolor="#CCCCCC" >
<tr><td>
<font color=#000000><font face="tahoma"><font size="1">
<?php the_content(); ?>
</tr></table>
<table style="border:1pt solid #000000; filter: alpha(opacity=70); width:390; cellpadding="1" cellspacing="1" bgcolor="#293F4C">
<tr>
<td bordercolor="#000000"><font size="1" face="tahoma">
<div align="right">
<?php comments_popup_link("c0mments ?", "c1mment", "c%mments") ?></div></font></td></tr></table><br>
<?php include ("b2comments.php"); ?>
<!-- // this is just the end of the motor - don't touch that line either -->
<?php } ?>
</div>
|
That's everything. |
|
Back to top |
|
 |
epolady
Joined: 30 Jul 2002 Posts: 800 Location: Texas
|
Posted: Wed Oct 08, 2003 9:41 pm Post subject: |
|
|
Okay, this is what it should look like:
Code: | <?php /* Don't remove this line, it calls the b2 function files ! */ $blog=1; include ("blog.header.php"); ?>
<html>
<head>
<title>Blah blah blah</title>
<?php comments_popup_script() ?>
________CSS______HERE_______
</head>
<body>
blah blah blahb lah
<!-- // b2 loop start -->
<?php while($row = mysql_fetch_object($result)) { start_b2(); ?>
Blah blah blahb lablk
<!-- // this is just the end of the motor - don't touch that line either -->
<?php } ?> |
_________________ No more support from me. Goodbye!
Go upgrade to WordPress, you'll find better support there. |
|
Back to top |
|
 |
ludvig87
Joined: 08 Aug 2003 Posts: 54 Location: Denmark
|
Posted: Thu Oct 09, 2003 2:44 pm Post subject: |
|
|
The last comment - is that for me or?? |
|
Back to top |
|
 |
epolady
Joined: 30 Jul 2002 Posts: 800 Location: Texas
|
Posted: Thu Oct 09, 2003 5:16 pm Post subject: |
|
|
ludvig87 wrote: | The last comment - is that for me or?? | It was for the threadstarter.
Ludvig, what exactly are you trying to do again? _________________ No more support from me. Goodbye!
Go upgrade to WordPress, you'll find better support there. |
|
Back to top |
|
 |
quietsnooze
Joined: 06 Oct 2003 Posts: 6
|
Posted: Thu Oct 09, 2003 7:45 pm Post subject: |
|
|
Thanks a lot, it works now!  |
|
Back to top |
|
 |
ludvig87
Joined: 08 Aug 2003 Posts: 54 Location: Denmark
|
Posted: Fri Oct 10, 2003 1:42 pm Post subject: |
|
|
I want to put a table around the date and around the "louise blogged here at ???? comments" thing..
Like this girl: http://www.so-addicted.com |
|
Back to top |
|
 |
|