1 dwood Apr 15, 2005 01:21
3 dwood Apr 15, 2005 15:09
Topanga,
Are you suggesting that it would be easier to edit index.php? Since the blog will be a separate page off of my main index, that would work. Would I edit the HTML in index.php, the skin, the main template, or all 3?
Thanks for any info/advice/guidance you can provide.
4 topanga Apr 15, 2005 20:45
I have started with a noskin.php
I renamed index.php to indexold.php and noskin.php to index.php
than I putted in the code that I wanted on my indexpage that had nothing to do with the blog.
But since the bare code on that page was already displaying a blog, I had no troubles displaying the blog.
So basicaly, you put your own htm tags and code in between the php-code that is in that php page...
5 dwood Apr 15, 2005 21:30
Now that is an EXCELLENT idea!
I'm off to give it a try!
Thanks Topanga!
6 ma2t Apr 16, 2005 03:55
I know the feeling mate, im for sure no wiz and find this hard, I used the orginal b2 about 3 years ago, and moved to b2e about 4 months ago.
I have just finished setting up my 2nd sit using b2e :)
Anyhow, im sure you have installed it all okay, you have your exsisting layout that you wanna keep right..but want to add the interactive stuff.
I hate template stuff and im sure thats whats causing you trouble.
I know time and time again it says edit the "custom" template, but I for sure dont find that easy, I found the easiest way was to make a new folder in the skin directory, and copy all the files from "custom" into there.
Then get your main html page you have, and save this as a php file.
Download and open _main.php from the "basic" or "orginalb2" skin folder, here you will see all the php eliments you need, parts for the subject, the date, the news content etc...... you can simply copy these into where you want on your orginal html page (now saved as a php file "_main.php") you should then upload this to the new folder you created in the skins directory.
Then hopefuly..... go to where you installed b2e..... and make it use the new skin you made (will be called the folder name you made in the skin dir) you can do this by using
http://blah.com/whatever/index.php?skin=newskinname
Also I belive you need to add the following code to the VERY top of your page, above.... <html><head>
<?php
if( !defined('DB_USER') ) die( 'Please, do not access this page directly.' );
?>
I hope this helps you out mate, and hope this does not confuse you further.... I just found this 200x easier.....itøs easier to paste some php eliments into your exsisting design, rather than edit one to make it look like what you already have!
But please remember, im no pro, not by far, but that works fine for me.
Good luck
7 dwood Apr 16, 2005 04:30
Ma2T is THE MAN!!!
5 minutes later, I'm done!
And the good news is, this is MUCH better, MUCH faster, and MUCH simpler than anything I had been tryiing to do before.
Take Ma2T's post, and put it in the documentation. That works like a charm!!!
Thanks so much Matt! (I assume it IS Matt?). I had been struggling with this for 2-3 days now, and 5 minutes after reading your post, following the steps, and cleaning up a few unneeded tags, I can move on to another page in my design.
Thanks again, I owe you a beer!
8 graham Apr 16, 2005 12:15
And remember that if you want the more advanced features like stats and a linkblog, you'll need to copy the code from custom into your new skin.
9 ma2t Apr 17, 2005 01:24
Wow I feel proud! haha :D im very glad I could help you out! :)
I was not too sure that you would be able to follow my "say it as I thought" explanation, get even more confused! lol
The first time I installed b2 years ago, I did it using the method I just told you, it worked fine, but reading the long docs for b2e(on upgrade), I struggled for a long time..damn long!...but when installing b2e on a new site of mine I used my old way, and worked great! lol, was damn happy lol! and after reading your post, I knew how you felt, and had to reply!
Take Ma2T's post, and put it in the documentation. That works like a charm!!!
lol! now that would be the day!, me? lol... from how the docs are written, it seems like they want people to use the most advanced way, css etc, but for many people they dont want that, they just want a blogging system, and will be confused and put off by this. And well, using the way I said, its praticly just pasting in the parts that you want......now why they cant just tell us this in the first place i really dont know!....(note: you can also simply paste in eliments you want from this page: http://b2evolution.net/man/2004/06/04/template_functions) :)
Once again, im very glad I could help you out! :D haha yeah my name is Matt :) and a beer would be nice! lol
10 jande May 06, 2005 22:35
This solution works quite well, but there seems to be a problem left (correct me, if I'm wrong):
If you use the <moore>-command and you have a static page with a blog area embedded in static content just like this
-------------
static content 1
blog area
static content 2
-------------
a click on "Read more" opens with static content at top and bottom of the page whereas a blank page would be preferred.
Does anybody know how to solve this problem?
Thanks,
Jan
11 jande May 07, 2005 20:02
I found a solution that works for the subweblogs. It is described in http://forums.b2evolution.net/viewtopic.php?p=19439#19439.
So long,
Jan
12 markvp May 16, 2005 23:49
I just glanced through all this real quick. An easy way embed a blog page into an existing site is to use frames. I did this for one of my friends on his site so he can update a couple of the pages. You just use a basic skinless page.
This is example was done using NetObject Fusion and blogger.com
http://christministries.net/html/persenaire_blogs.html
This make it fit seamless into the site. Does it help?
13 dlwlutt Feb 15, 2006 03:14
i tried out what matt suggested but i got an error message can someone help me out there?
Warning: mysql_fetch_object(): supplied argument is not a valid MySQL result resource in /home/debb06/public_html/blog/skins/new/_main.php on line 47
14 nate Feb 15, 2006 21:49
A link to your blog might help us out some, and also, did you look in your skin's _main.php file on line 47? That will give a good clue of what to do next, I think.
15 dlwlutt Feb 16, 2006 04:52
the url's http://www.thou-heart.net/blog
i'm in sch at the mo and cant access via the network. will review the code when i get back.
16 dlwlutt Feb 16, 2006 11:55
this is my entire code for _main.php
<!DOCTYPE HTML
PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<?php
if( !defined('DB_USER') ) die( 'Please, do not access this page directly.' );
?><html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<SCRIPT type="text/javascript" SRC="http://www.freewebs.com/utterdelight/fade.js"></script><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: #000000;
scrollbar-shadow-color: #FFFFFF;
scrollbar-track-color: #FFFFFF;
}
--><!--
a:link, a:active, a:visited {text-decoration: none; font-weight: bold; color: #0e755f}
a:hover {text-decoration: underline; cursor:crosshair; font-weight: bold; color: #77a3c8}
body { font-family:tahoma, sans-serif; font-size:7pt; letter-spacing:1px; line-height:13px; text-decoration:none; color: #0019a8; }
--></style>
<title>thou-heart[dot]net</title>
</head>
<BODY BGCOLOR="e40050" TEXT="#815f3e" LINK="#0e755f" VLINK="#aaa3a3">
<img src="../images/marilyn.jpg" border=0 style="position:absolute; top:0; left:0">
<div id="side" STYLE="position: absolute; top:60px; left:150px; width:376px; HEIGHT:420px; overflow:auto;">
<!-- // b2 loop start -->
<?php while($row = mysql_fetch_object($result)) { start_b2(); ?><font size="1"><b><?php the_date("","",""); ?></b></font>
<br>
<?php permalink_anchor(); ?>
<div class="storyTitle"><?php the_title(); ?>
</div>
<p>
<div class="storyContent">
<?php the_content(); ?>
<br>
<div class="rightFlush">
<?php link_pages("<br />Pages: ","<br />","number") ?>
<br>
Posted by <span class="storyAuthor"><?php the_author() ?> @ <?php the_time() ?></span>
<br>
<a href="<?php permalink_link() ?>"></a><?php comments_popup_link("(0)", "(1)", "(%)") ?><?php trackback_rdf() ?>
<!-- this includes the comments and a form to add a new comment -->
<?php include ("b2comments.php"); ?>
</div><!-- // this is just the end of the motor - don't touch that line either :) -->
<?php } ?></div>
<div id="side" STYLE="position: absolute; top:60px; left:528px; width:200px; HEIGHT:420px; overflow:auto;">
<P align="right">
<B><U>STATS</b></U><BR>
Since - 14 Feb 2006<BR>
Host - <a href="http://e-starr.com" target="_blank">E-STARR</a><BR><P align="right">
<B><U>LAYOUT</b></U><BR>
Version: 1.0<BR>
Featuring: Marilyn Monroe<BR>
Program: <a href="http://adobe.com" target="_blank">Adobe Photoshop CS</a><BR><P align="right">
<B><U>NAVIGATE</b></U><BR>
<a HREF="#" onClick="crush=window.open('../chicka.html','popup','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,width=500,height=300');return false;">Chicka</a><BR>
<a HREF="#" onClick="crush=window.open('../site.html','popup','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,width=500,height=300');return false;">Site</a><BR>
<a HREF="#" onClick="crush=window.open('net.html','popup','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,width=500,height=300');return false;">Net</a><P align="right">
<B><U>THE GIRL</b></u><BR>
<img src="../images/debb.jpg" align="left" style="filter:alpha(opacity=20);-moz-opacity:0.2" onMouseover="high(this)" onMouseout="low(this)"> 061287. 18. Female. Singapore. Ngee Ann Polytechnic. Creative. Outgoing. Emotional. Weird. Shops. Tennis. The Sun. Tans. Photoshop.<br><a href="chicka.html" target="main">More?</a></p></div>
</div></body>
</html>
l></div>
</div></body>
</html>
l>
And still, I'm convinced that you have to do it the other way around.
Not 'embed' your blog in your main page, but build your main page 'around' your blog.