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 

Making your own template the easy way
Goto page Previous  1, 2, 3, 4, 5, 6
 
Post new topic   Reply to topic    boardom Forum Index -> Template help
View previous topic :: View next topic  
Author Message
Norayah



Joined: 01 Apr 2004
Posts: 1

PostPosted: Thu Apr 01, 2004 1:40 pm    Post subject: Reply with quote

I tried modifying the template and I get the following messages.
This on the top of the page:

Warning: main(blog.header.php): failed to open stream: No such file or directory in /home/lozza82/public_html/nora/blog/index.php on line 1

Warning: main(): Failed opening 'blog.header.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/lozza82/public_html/nora/blog/index.php on line 1


and this where the entries should be:

Warning: mysql_fetch_object(): supplied argument is not a valid MySQL result resource in /home/lozza82/public_html/nora/blog/index.php on line 14
Back to top
View user's profile Send private message
kindofperfect



Joined: 02 Apr 2004
Posts: 1
Location: North Beach Haven, NJ

PostPosted: Fri Apr 02, 2004 6:15 pm    Post subject: Reply with quote

help! I have read through all these messages and you all seem very helpful and very nice! Although, I am still having trouble with my template. I can not get anything to show up on my page:

Quote:

<?php /* Don't remove this line, it calls the b2 function files ! */ $blog=1; include ("blog.header.php"); ?>
<html>
<head>
<title>[hit&miss]</title>

<style type="text/css">


A:link {COLOR: #CC0066; CURSOR: none; TEXT-DECORATION: none}
A:visited {COLOR: #009933; CURSOR: none; TEXT-DECORATION: none}
A:active {COLOR: #0099CC; CURSOR: none; TEXT-DECORATION: none}
A:hover {COLOR: #FFCC00; CURSOR: ne-resize; TEXT-DECORATION: none}


BODY {
margin: 0px;
padding: 0px;
color: #000000;
font: 8pt Arial;
line-height: 12.5pt;
letter-spacing: 1pt;

scrollbar-face-color: #FFFFFF;
scrollbar-shadow-color: #FFFFFF;
scrollbar-highlight-color: #FFFFFF;
scrollbar-3dlight-color: #FFFFFF;
scrollbar-darkshadow-color: #FFFFFF;
scrollbar-track-color: #FFFFFF;
scrollbar-arrow-color: #FFCC00;

}
</style>




</head>
<body>

<!-- // b2 loop start -->
<?php while($row = mysql_fetch_object($result)) { start_b2(); ?>


<?php the_date("d.m.y","<h5>","</h5>"); ?>
<br>
<?php permalink_anchor(); ?>

<strong><?php the_title(); ?></strong><br>
<?php the_content(); ?><?php link_pages("<br />Pages: ","<br />","number") ?>
<br />
posted by <strong><a href="mailto:[email protected]"><?php the_author() ?></a></strong> @ <a href="<?php permalink_link() ?>"><?php the_time() ?></a>
<br />
<center>
[<a href="<?php comments_link() ?>"><?php comments_number("no comments", "1 comment", "% comments") ?></a> ]
</center>
</p>

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


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

</html>


my URL is: http://kindofperfect.net/ipw-web/b2/index.php
any help would be FABULOUS. thank you & hopefully someone can help me out.
Back to top
View user's profile Send private message Visit poster's website AIM Address
imaginarylight



Joined: 20 Apr 2004
Posts: 6

PostPosted: Tue Apr 20, 2004 12:30 am    Post subject: My blog isn't showing up Reply with quote

www.toxic-eyes.net/emily Here's the site and here's the code

Code:

<?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(); ?>


<?php the_date("d.m.y","<h1>","</h1>"); ?>

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

<strong><?php the_title(); ?></strong> (category: <strong><?php the_category() ?></strong>)<br />
<?php the_content(); ?><?php link_pages("<br />Pages: ","<br />","number") ?>
<br />
<em>posted by <strong><?php the_author() ?></strong> @ <a href="<?php permalink_link() ?>"><?php the_time() ?></a></em>
<br />
<a href="<?php comments_link() ?>"><?php comments_number("no comments", "1 comment", "% comments") ?></a>

</p>

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


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

for the blog on the side. I don't know why my blog doesn't show up in the iframe
Back to top
View user's profile Send private message Visit poster's website AIM Address
imaginarylight



Joined: 20 Apr 2004
Posts: 6

PostPosted: Tue Apr 20, 2004 12:31 am    Post subject: My blog isn't showing up Reply with quote

www.toxic-eyes.net/emily Here's the site and here's the code

Code:

<?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(); ?>


<?php the_date("d.m.y","<h1>","</h1>"); ?>

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

<strong><?php the_title(); ?></strong> (category: <strong><?php the_category() ?></strong>)<br />
<?php the_content(); ?><?php link_pages("<br />Pages: ","<br />","number") ?>
<br />
<em>posted by <strong><?php the_author() ?></strong> @ <a href="<?php permalink_link() ?>"><?php the_time() ?></a></em>
<br />
<a href="<?php comments_link() ?>"><?php comments_number("no comments", "1 comment", "% comments") ?></a>

</p>

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


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

for the blog on the side. I don't know why my blog doesn't show up in the iframe
Back to top
View user's profile Send private message Visit poster's website AIM Address
Sigg3



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

PostPosted: Tue Apr 20, 2004 8:32 am    Post subject: Reply with quote

It may seem there's an empty line at the top there. It might help removing it..
_________________
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
Erebus



Joined: 12 Jun 2004
Posts: 2
Location: Austin, TX

PostPosted: Tue Jun 15, 2004 9:00 pm    Post subject: Reply with quote

I'm having trouble getting everything to work.

http://chocobos.com/luminesce/index.php

The error displayed is:

Warning: mysql_fetch_object(): supplied argument is not a valid MySQL result resource in /home/chocobo/public_html/luminesce/index.php on line 123

It kinda hard to catch it (depending on how fast the connection is), but there's another error underneath the divs:

Code:
Warning: main(blog.header.php): failed to open stream: No such file or directory in /home/chocobo/public_html/luminesce/index.php on line 1

Warning: main(): Failed opening 'blog.header.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/chocobo/public_html/luminesce/index.php on line 1



Help would be greatly appreciated!
Back to top
View user's profile Send private message Visit poster's website
Lennon



Joined: 05 Jul 2004
Posts: 3

PostPosted: Wed Jul 07, 2004 7:15 pm    Post subject: Reply with quote

Ok, to get the whole background story of what I'm trying to do click here.

After reading through this thread, I realized that I was trying to do in a html file instead of php. So, I basically copied my html and saved it as php and tried to do it again. Alas, I'm no closer than I was before.

I did get some advice from someone before, but I had no idea what he was talking about since I'm new to ALL of this. Here's what he said to do:

Quote:
I just did it to see if I could. In the page you want to use, put this at the top:
<?php require_once('path-to/cg-feedread-plugin.php'); ?>
and where you want to show:
<?php
$feedUrl = "http://yoursite/wp-directory/feed/rss";
$feedOut = parseURL($feedUrl, 4, true, "feed-weblogname", '', 36, false);
if ($feedOut)
echo $feedOut;
?>
and in the css, something like:
.feedDescription {font-size:18px;margin-top:10px}
.feeditem {list-style:none; text-align:left}
.feedItemDescription {text-align:left} //had to add this for FF


Any suggestions? I would like your input on this and hopefully it'll work!
Back to top
View user's profile Send private message
derdincheehoo



Joined: 13 Jul 2004
Posts: 1

PostPosted: Tue Jul 13, 2004 5:17 am    Post subject: Reply with quote

i did what the first post said, but my blogs don't show up on the page. here's the code i have in my templates:

Code:

<?php /* Don't remove this line, it calls the b2 function files ! */ $blog=1; include ("blog.header.php"); ?>
<html>
<head>
<title>iridescence v8.0     feat. sarah mclachlan</title>
<style type="text/css">
<!--body {
scrollbar-3dlight-color: #FFFFFF;
scrollbar-arrow-color: #000000;
scrollbar-base-color: #FFFFFF;
scrollbar-darkshadow-color: #FFFFFF;
scrollbar-face-color: #FFFFFF;
scrollbar-highlight-color: #FFFFFF;
scrollbar-shadow-color: #FFFFFF;
scrollbar-track-color: #FFFFFF;
}
-->

<!--
A:link { COLOR: #483D8B ; text-decoration: none;}
A:visited { COLOR: #483D8B ; text-decoration: none; cursor:default;}
A:active { COLOR: #483D8B ; TEXT-DECORATION: none;}
A:hover { text-decoration: none; color:#483D8B ;}

-->

<!--
body,tr,td, h6, p, li
{font-size: 8pt;
font-family: verdana;
color:#000000;
line-height:15px;
letter-spacing:0pt;
-->

<!-- h6
{font-size: 8pt;
font-weight:normal}
-->
</style>
</head>
<body bgcolor=#FFFFFF background="bg.png">
   <div style="position: absolute; top: 0; left: 0">
      <img src="top1.png"><br>
      <img src="top2.png"><br>
      <img src="top3.png"><br>
      <img src="top4.png"><br>
      <img src="top5.png">
   </div>
   <div style="position: absolute; top: 453; left: 74; width: 385; height: 800">
<!-- // b2 loop start -->
   <?php while($row = mysql_fetch_object($result)) { start_b2(); ?>


<?php the_date("F d, Y","<h3>","</h3>"); ?>

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

<strong><?php the_title(); ?></strong> <br />
<?php the_content(); ?><?php link_pages("<br />Pages: ","<br />","number") ?>
<br />
<br />
<em>posted by <strong><?php the_author() ?></strong> @ <a href="<?php permalink_link() ?>"><?php the_time() ?></a></em>
<br />
<a href="<?php comments_link() ?>"><?php comments_number("no hugs", "1 hug", "% hugs") ?></a>

</p>

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


   <!-- // this is just the end of the motor - don't touch that line either :) -->
   <?php } ?>
   </div>
   <div style="position: absolute; top: 453; left: 547; width: 175; height: 800">
      Hello, you've reached the blog of Christine, a sixteen year-old girl living in California. Her interests include piano, wushu (a contemporary form of kung fu), cross-country, and being a nerd. Her <i>obsessions</i> include rabbits and <a href="http://kingdomofloathing.com" target="_blank">KoL</a>.
      <p><b>Loves</b><br>
         <a href="http://frenetica.net" target="_blank">Amy</a><br>
         <a href="mailto:[email protected]">Wanna be here?</a>
      <p><b>Joined</b><br>
         I love <a href="http://www.geocities.com/daproduceaisle/" target="_blank">canned peaches</a><br>
         *<a href="http://www.cruel-angels.com/forget/" target="_blank">i won't forget</a></b> Meiran<br>
         <a href="http://mysti-moon.net/notjustcharas/" target="_blank">not just characters</a><br>

         <a href="http://www.pianoclique.cjb.net" target="_blank"><img src="88x31.gif" width=88 height=31 border=0 alt="i play piano"></a>
         <img src="relbutton.jpg" border=0 alt="i support relena. the site's dead but i still do.">
         <a ONMOUSEOVER="window.status='I believe in...'; return true" ONMOUSEOUT="window.status='  '; return true" href="http://www.hammah.net/believe/" target="_blank"><img src="belbutton.jpg" border="0" alt="general craziness"></a>
         <a href="http://www.geocities.com/lozerpryde" target="_blank"><img src="loserpryde.png" border=0></a>
         <a href="http://adorkable.cogdreams.com/index-.html" target="_blank"><img src="adorkable.gif" border=0 alt="i'm adorkable!"></a> 
         <a href="http://www.hayama.ws/nolife/" target="_blank"><img src="nolife.gif" border=0 alt="i have no life"></a>
           <a href="http://rabbit.riddel.nu/" target="_blank"><img src="rabbit.gif" border=0></a>
           <a href="http://magic.associo-poetic-leaps.org/" target="_blank"><img src="hhr.gif" border=0 alt="H/Hr forever!"></a>
           <a href="http://www.poetic-genius.org/black" target="_blank"><img src="sirius.gif" border=0 alt="Sirius isn't dead! I'm in denial."></a><br>
         <a href="http://fan.tinyblob.net/bunnies/" target="_blank"><img src="bunnies.gif" border=0></a>
         <a href="http://fanlists.hoshichan.com/heero/" target="_blank"><img src="heero.gif" border=0></a>
         <a href="http://iron-lily.org/sen/" target="_blank"><img src="spiritedaway.jpg" border=0></a>
         <a href="http://www.sorata-arashi.net/sorashi/" target="_blank"><img src="sorataxarashi.jpg" border=0></a>
         <a href="http://www.witch-hunter.net/arashi/" target="_blank"><img src="arashi.jpg" border=0></a>
         <a href="http://sorata.kamui.nu/fan/" target="_blank"><img src="sorata.gif" border=0></a>
         
      <p><b>Adopted</b><br>
         <a href="http://sprites.shirahime.net/" target="_blank"><img src="sprites/heero.png" border=0 alt="HEERO!! *glompsquish*"></a>
         <a href="http://sprites.shirahime.net/" target="_blank"><img src="sprites/relena.png" border=0 alt="Relena"></a>
         <a href="http://sprites.shirahime.net/" target="_blank"><img src="sprites/duo.png" border=0 alt="Duo"></a>
         <a href="http://sprites.shirahime.net/" target="_blank"><img src="sprites/trowa.png" border=0 alt="Trowa"></a>
         <a href="http://sprites.shirahime.net/" target="_blank"><img src="sprites/quatre.png" border=0 alt="Quatre*"></a>
         <a href="http://sprites.shirahime.net/" target="_blank"><img src="sprites/wufei.png" border=0 alt="Wuffie"></a>
         <a href="http://scrump.net/onering/" target="_blank"><img src="sprites/ken.gif" border=0 alt="Ken Hidaka"></a>
         <a href="http://scrump.net/onering/" target="_blank"><img src="sprites/kamui.gif" border=0 alt="Kamui"></a>
         <a href="http://scrump.net/onering/" target="_blank"><img src="sprites/aragorn.gif" border=0 alt="Aragorn"></a>
         <a href="http://scrump.net/onering/" target="_blank"><img src="sprites/stitch.gif" border=0 alt="Stitch!"></a>
         <a href="http://www.sprites.flamesniper.net" target="_blank"><img src="sprites/kenshin.gif" border=0 alt="Kenshin"></a>
         <a href="http://www.sprites.flamesniper.net" target="_blank"><img src="sprites/kaoru.gif" border=0 alt="Kaoru"></a>
         <a href="http://www.sprites.flamesniper.net" target="_blank"><img src="sprites/sanosuke.gif" border=0 alt="Sano"></a>
         <a href="http://www.studio69.org/amiry/adopt/" target="_blank"><img src="sprites/harry.gif" border=0 alt="Harry"></a>
         <a href="http://www.studio69.org/amiry/adopt/" target="_blank"><img src="sprites/hermione.gif" border=0 alt="Hermione"></a>
         <a href="http://www.studio69.org/amiry/adopt/" target="_blank"><img src="sprites/ron.gif" border=0 alt="Ron"></a>
         <a href="http://www.studio69.org/amiry/adopt/" target="_blank"><img src="sprites/fredandgeorge.gif" border=0 alt="Fred and George *squeeze*"></a>
         <a href="http://www.studio69.org/amiry/adopt/" target="_blank"><img src="sprites/sirius.gif" border=0 alt="Sirius...*wail*"></a>
         <a href="http://www.studio69.org/amiry/adopt/" target="_blank"><img src="sprites/padfoot.gif" border=0 alt="Aaand Padfoot"></a><br>
         <a href="http://cloudypark.cjb.net/" target="_blank"><img src="sprites/heero.gif" border=0 alt="HEERO! *glomp*"></a>
      
   </div>
</body>
</html>
Back to top
View user's profile Send private message
crimsondesigns



Joined: 10 Aug 2004
Posts: 4

PostPosted: Wed Aug 11, 2004 4:58 pm    Post subject: Help with sorting comments. Reply with quote

Ok first of here is my website:
www.crimsondesigns.ca
What I am trying to do is have one comment go into its own news box.
I am not sure how to make it create another set of images foor the box and then place the second comment into that box, and so on for multiples of one.
Sorry if it sounds confusing but if anyone can help or needs me to clarify please let me know.
Thanks!
Back to top
View user's profile Send private message
reika



Joined: 01 Nov 2004
Posts: 1
Location: Ontario

PostPosted: Mon Nov 01, 2004 4:53 am    Post subject: I've tried it all Reply with quote

All i want is my blog to be in a different font, and in i-frames on another page. I've read all of these posts, I've changed my file to php, and tried many codes but nothing will work. Sad I still get:

Quote:
","

"); ?>
<?php permalink_anchor(); ?> (category: )
Pages: ","
","number") ?>
posted by @


on where I want my blog to show up.

this is my code that i used:
Quote:

<html>

<head>

<style type="text/css">
<!--
A:link {color:#A2A7AE; text-decoration: none; cursor:help;}
A:visited {color:#A2A7AE; text-decoration: none; cursor:help;}
A:active {color:#A2A7AE; text-decoration: none; cursor:help;}
A:hover {color:#A2A7AE; text-decoration: underline; cursor:help;}
-->

<!--
body,tr,td, h6, p, li
{font-size: 8pt;
font-family: arial;
color:#000000;
line-height:11px;
letter-spacing:0pt;
text-align: justify;
font-weight:normal;}
--> }</style>

</head>

<body bgcolor="#E3BDC0">


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


<?php the_date("d.m.y","<h1>","</h1>"); ?>

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

<strong><?php the_title(); ?></strong> (category: <strong><?php the_category() ?></strong>)<br />
<?php the_content(); ?><?php link_pages("<br />Pages: ","<br />","number") ?>
<br />
<em>posted by <strong><?php the_author() ?></strong> @ <a href="<?php permalink_link() ?>"><?php the_time() ?></a></em>
<br />
<a href="<?php comments_link() ?>"><?php comments_number("no comments", "1 comment", "% comments") ?></a>

</p>

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


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

</html>


some one please help me.. my blog is http://x.chocolate-frog.com/blog/huzah2.php
Back to top
View user's profile Send private message
Sigg3



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

PostPosted: Mon Nov 01, 2004 12:16 pm    Post subject: Reply with quote

Read the first post of this thread.
_________________
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
Sassafrood



Joined: 04 Nov 2004
Posts: 1
Location: Greenville, South Carolina

PostPosted: Thu Nov 04, 2004 2:11 am    Post subject: Blog into the Site Reply with quote

Hello, i am new to B2 and a new web designer attempting to put together a personal site [url]http//www.sassafrood.com[/url] . The B2 blog was included in the hosting, so I am trying to make it work. Currently, the default template is in an Iframe, but I want it to match the design of the website.

I have very limited knowledge of HTML.

Any suggestions would be wonderful, I read the posts in the thread.... but I am still confused.

Please assist
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 -> Template help All times are GMT + 1 Hour
Goto page Previous  1, 2, 3, 4, 5, 6
Page 6 of 6

 
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