Recent Topics

1 Dec 03, 2007 00:15    

My b2evolution Version: Not Entered

I current use b2evolution as a weblog for my community site, and I have the styles integrated with my site. I would like to use Blog B to post announcements, news, and events on the main page of my site. Just display some number of posts, maybe trimming them if over a certain length, but usually displaying the full post.

I'm wondering if this is easily accomplished using b2evolution? I've searched through the Forums, and was able to find examples of post listings, but not full posts.

I'm not a programmer, but use some PHP and MySQL on my site, and can usually make required modifications if I can find something close to what I need.

Using version 1.9.3

Thanks,
Brian

2 Dec 03, 2007 00:19

Just use an <iframe> for that. Quick and easy does the trick.

Good luck

3 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 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 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 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!


Form is loading...