Recent Topics

1 Apr 15, 2005 01:21    

Folks,
I know this has been answered 1.64 bazillion times, but if I can figure it out, with your assistance, I promise to write a document and post it on my site for ANYONE to freely distribute, thus helping stop the flood of dorks like me who come here every day and ask "How do I get this thing into my site?"

The obligagtory qualifiers (please, if you are ENTIRELY SICK of suffering through what you know is coming....look away now):

1. I have searched the forums. 1,207 times. I have seen shiny things, that appeared to be the answer, but upon closer inspection, were only a piece of the puzzle. Surely...somewhere....there exists the "b1e Scrolls of Harmony" which include the key to unlocking the mystery of b2e?
2. I know a little HTML.
3. My design uses some css, and some static pages. I'm no wizard with css, but I can generally struggle through.
4. It is not live, but I do have a page or two for example, if needed.
5. I know NOTHING, perhaps LESS than nothing about php...other than I can usually spell it correctly.
6. I have successfully installed 0.9.0.10 , have customized the "custom" template to look "ok" but would really prefer to embed b2e into my existing design.
7. I have looked at a_noskins.php. I remain convinced that it is a menu of appetizers from a Greek restaurant.

Again.....look away now, for here it comes:

How do I embed the EXACT data and layout called by index.php into an existing page?

Thank you in advance for ANY help you can provide :)

2 Apr 15, 2005 08:50

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.

3 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 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 Apr 15, 2005 21:30

Now that is an EXCELLENT idea!

I'm off to give it a try!

Thanks Topanga!

6 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 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 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 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 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

12 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 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 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.

16 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>


Form is loading...