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 

Template w/ Tables
Goto page 1, 2  Next
 
Post new topic   Reply to topic    boardom Forum Index -> Template help
View previous topic :: View next topic  
Author Message
quietsnooze



Joined: 06 Oct 2003
Posts: 6

PostPosted: Mon Oct 06, 2003 10:58 pm    Post subject: Template w/ Tables Reply with quote

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
View user's profile Send private message
epolady



Joined: 30 Jul 2002
Posts: 800
Location: Texas

PostPosted: Mon Oct 06, 2003 11:26 pm    Post subject: Reply with quote

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
View user's profile Send private message
quietsnooze



Joined: 06 Oct 2003
Posts: 6

PostPosted: Tue Oct 07, 2003 1:07 am    Post subject: Reply with quote

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 Smile -->
<?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
View user's profile Send private message
epolady



Joined: 30 Jul 2002
Posts: 800
Location: Texas

PostPosted: Tue Oct 07, 2003 2:17 am    Post subject: Reply with quote

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
View user's profile Send private message
quietsnooze



Joined: 06 Oct 2003
Posts: 6

PostPosted: Tue Oct 07, 2003 10:05 pm    Post subject: Reply with quote

Thanks, it worked perfectly Very Happy
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
View user's profile Send private message
epolady



Joined: 30 Jul 2002
Posts: 800
Location: Texas

PostPosted: Wed Oct 08, 2003 12:38 am    Post subject: Reply with quote

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
View user's profile Send private message
ludvig87



Joined: 08 Aug 2003
Posts: 54
Location: Denmark

PostPosted: Wed Oct 08, 2003 6:17 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website MSN Messenger
quietsnooze



Joined: 06 Oct 2003
Posts: 6

PostPosted: Wed Oct 08, 2003 8:34 pm    Post subject: Reply with quote

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
View user's profile Send private message
epolady



Joined: 30 Jul 2002
Posts: 800
Location: Texas

PostPosted: Wed Oct 08, 2003 9:20 pm    Post subject: Reply with quote

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
View user's profile Send private message
quietsnooze



Joined: 06 Oct 2003
Posts: 6

PostPosted: Wed Oct 08, 2003 9:26 pm    Post subject: Reply with quote

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
View user's profile Send private message
epolady



Joined: 30 Jul 2002
Posts: 800
Location: Texas

PostPosted: Wed Oct 08, 2003 9:41 pm    Post subject: Reply with quote

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
View user's profile Send private message
ludvig87



Joined: 08 Aug 2003
Posts: 54
Location: Denmark

PostPosted: Thu Oct 09, 2003 2:44 pm    Post subject: Reply with quote

The last comment - is that for me or??
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
epolady



Joined: 30 Jul 2002
Posts: 800
Location: Texas

PostPosted: Thu Oct 09, 2003 5:16 pm    Post subject: Reply with quote

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
View user's profile Send private message
quietsnooze



Joined: 06 Oct 2003
Posts: 6

PostPosted: Thu Oct 09, 2003 7:45 pm    Post subject: Reply with quote

Thanks a lot, it works now! Very Happy
Back to top
View user's profile Send private message
ludvig87



Joined: 08 Aug 2003
Posts: 54
Location: Denmark

PostPosted: Fri Oct 10, 2003 1:42 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    boardom Forum Index -> Template help 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