1 briand Dec 03, 2007 00:15
3 briand Dec 03, 2007 18:19
Thanks for the info. I tried iframe, but not really want I want, at least I couldn't get it to look like I want. So I did some more searching, and went with including the b_stub. I had to create a new skin and remove the sidebar for now, but I'm getting pretty close.
Thanks for the help.
Brian
4 afwas Dec 03, 2007 18:21
BrianD wrote:
So I did some more searching, and went with including the b_stub. I had to create a new skin and remove the sidebar for now, but I'm getting pretty close.
Thanks for the help.
Brian
That's the other solution. It works even better but requires you're familiar with styling.
Good luck
5 briand Dec 03, 2007 18:58
One quick question. This is probably a prettty basic PHP question, but I haven't found an answer yet. After including the b_stub.php file, all of my images further down the page are missing. I'm using relative paths, and it appears after the b_stub file is included, since it is in another directory, my paths are all wrong. It actually looks like my path is now where my new skin and _main.php are located.
Is there an easy way to reset the path?
Thanks,
Brian
6 edb Dec 04, 2007 16:18
b2evolution uses the "base url" in the head section for links relative to your skin, as you've discovered. To change that means to break something else. Therefore the best way to do it is to use full URLs to point to images. But you can simplify that quite a bit by using some of the shortcuts b2evolution uses to find various paths. For example
<img src="<?php echo $baseurl ?>/image_name.jpg" alt="my image" />
will give you an image located in your installation's base url. If your images are located in the media folder you can use
<img src="<?php echo $media_url ?>/image_name.jpg" alt="my image" />
to access the image.
Hope it helps!
Just use an <iframe> for that. Quick and easy does the trick.
Good luck