Recent Topics

1 Mar 27, 2008 21:32    

My b2evolution Version: Not Entered

Hi,
I've developed a website (http://www.amaranthsgardens.com) using what I felt was pretty standard PHP includes for the header, content, and footer. The header contains the main website title banner and menu. The footer is just your typical odds and ends.

I want to integrate my http://www.amaranthsgardens.com/CSS/mm_entertainment.css stylesheet into my b2evo News blog. I definitely don't want to have to edit two different style templates for the same website. I also don't want the b2evolution aspect of the website to engulf my website. That is - I don't want every page to be forced to integrate with a b2evo template or skin if it wants to include any of my postings. I'm not so stubborn and inflexible that I'm unwilling to do that, I just want b2evo to integrate into my website without it looking like it was forced in.

So what's the best way to go about this? Create a new template for the website? Create a stub file for use in a column of certain pages? Can this stub file be deployed with certain categories of news articles that are appropriate to each page? Can I add links to new articles to my NEWS menu item?

Reading through the options just gets too overwhelming and confusing and before I really muck about I'd like more suggestions on whether the approach I choose to take will not end up being inviable after days of study ,research and coding.

Thanks,
Jeff

2 Mar 30, 2008 09:51

First of all, get familiar with B2Evo, and how the skins work. The new 2.4x versions make skinning fast and relatively simple(in comparison to old version). When you are comfortable, go ahead and make the skin looking the same as your website. That way you are in control of the CSS the whole way, you decide what goes where, including posts, archives, links, whatever.
The right includes files just need to be called, and you can work magic.

3 Mar 30, 2008 15:12

First, thanks for the reply.

So the best thing would be to create a new "skin 2.0"? Not to try and use a stub file to include the news section into my .php page?

I have several questions about the skins after reading the http://manual.b2evolution.net/Skins_2.0 page. Most importantly is the meaning of the $disp column of the table under the Main Display section of this page. I assume that $disp indicates the way certain pieces of the page are displayed and/or layed out on the main page. I didn't see anywhere that they actually explain what each one is for. I can only guess that:

    'arcdir' is for the display of the list of archived articles? Or is it the articles themselves? 'catdir' is for the display of the list of categories that visitors may choose from? 'comments' is for the display of any comments on the articles entered by visitors? 'feedback-popup' is for the display of the...? I have no idea other than it's for photos in some way. 'mediaidx' is for the display of...? The photos themselves? 'msgform' is for the display of the form for emailing posters and the admin? 'page' is for the display...? I assume it can't be for the entire page in general because that's what index.main.php does. 'posts' is for the display of the list of articles? 'profile' is for the display of the list of any avatars and such? 'single' is for the display of a single news article? 'subs' is for the display of...?[/list:u] I think I understand the Disp Templates section. It seems that rather than mucking about with the re-coding of the index.main.php file of a template whose layout I like, I can alter the layout of the individual pieces of the page to suit my liking? The Include Files section has me flumoxed and makes me wonder if I was right about my previous assumptions. It says that you can include common header and footer include files in the Main and Disp templates. You mean I can have a _body_header.inc.php file inside my _arcdir.disp.php file? Or do they mean as part of the index.main.php page? And why bother telling me this and suggesting that I name any header/footer files as listed? Can't I throw any old name for a header or footer into the file and call it myself? I won't even worry about the Styling Widgets section for now. Any advice or guides to creating skins would be appreciated! Thanks, Jeff


Form is loading...