Recent Topics

1 Nov 16, 2007 12:13    

My b2evolution Version: 1.10.x

I have several blogs on one domain and I want to make them all similar in style, only changing the colours. The skin that suits me best is nescafe, so I renamed a copy for each blog and changed the stylesheet as required and the link to each stylesheet in each main.php. I uploaded the different skin folders and they show up in the backoffice as available skins but when I try to display the blogs in them I get a parser error in line one. But line 1 is the 'not meant to be displayed line' and I can't figure out what I need to change. I've searched the forum but can't find anyone who's had a similar problem.
Can anyone help? Thanks

2 Nov 16, 2007 12:30

I suspect your editor screwed the first line (<?php), but that should give another error. For the rest: the description of your actions sound correct.
What you can do is the following:
In one of the new folders, copy the original _main.php. Change the stylesheet to your wishes but do not rename the sylesheet and upload to the new folder. The original _main.php will look for the original stylesheet's name. If this cures the error you are certain your manipulation of _main.php caused the problem.

Good luck

3 Nov 16, 2007 13:09

Thank you. Yes that did cure the problem. But I can't see any changes made to<?php it looks exactly the same! There must be something though. Another workround I thought of while I was hoping for a reply was to create subdirectories in the media folder named for each blog and upload individual style.css into each. Then overide the stylesheet.css by checking the box in the backoffice. As a matter of interest, would that have worked?
Thanks again

Afwas wrote:

I suspect your editor screwed the first line (<?php), but that should give another error. For the rest: the description of your actions sound correct.
What you can do is the following:
In one of the new folders, copy the original _main.php. Change the stylesheet to your wishes but do not rename the sylesheet and upload to the new folder. The original _main.php will look for the original stylesheet's name. If this cures the error you are certain your manipulation of _main.php caused the problem.

Good luck

4 Nov 16, 2007 13:24

What editor are you using?

You could/can place the css file anywhere you want and even other files that are shared (files that are the same in every folder). But you wouldn't gain anything unless you are extremely tight in diskspace :p .

You can cut the css file in pieces and call all pieces in the _main.php. That way you can have a basic css file that is the same for every skin and a custum css file different for every skin (colours in your example). If you ever need to change something in every skin, you can change the custom css file and distribute that along the various folders.

Good luck

5 Nov 16, 2007 13:40

I use AceHTML as an editor. It's never altered anything before but I'll have to keep an eye on it now especially with php files. Since it's all working perfectly nowas in your first suggestion, I'm not going to change it. If it ain't broke etc, etc. Thanks Afwas.

7 Nov 16, 2007 14:49

I'll have a look at that, thanks


Form is loading...