Recent Topics

1 Oct 28, 2005 00:52    

So here's my blog http://www.creativewebsights.com/b2evolution/blogs/index.php?blog=6

I like it a lot but I want to embedd it in my website, located here. http://www.creativewebsights.com/journal1.htm BUT when I put it in my website I don't want the sidebar to show. How do I do that?

2 Oct 28, 2005 00:54

I'm pretty new to this so I'll need a lot of help.

3 Oct 28, 2005 02:26

You should go into the directory of the skin you are using and find the _main.php file. Open it up with an editor and find the part that is labeled the Sidebar. It's probably going to begin with a div tag labeled bSideBar. You can safely delete the entire sidebar and keep the main post area. That might be all you need.

Give it a try and if it doesn't work let us know...

5 Oct 31, 2005 18:35

This is not too difficult. All you need to do is add a little code to check for a specific parameter (I'll call it 'nosidebar'), and hide the bSideBar div if it finds that parameter. Then, you pass that parameter from the IFRAME in your website.

In your _main.php file, add the following code, just before (above) the </head> tag:

<?php if ($_GET['nosidebar']) { ?>
<style type='text/css'>
.bSideBar { display: none ! important; }
</style>
<?php } >

Then, change your IFRAME tag in your website to look like this:

<IFRAME NAME="cal" SRC="http://www.creativewebsights.com/b2evolution/blogs/index.php?blog=6&nosidebar=true" frameborder=0 height=780 width=100%></IFRAME>

The end result should be that your sidebar is hidden whenever your page is called within the IFRAME of your website, but it shows up normally otherwise.


Form is loading...