2 yabba Dec 29, 2008 10:29

Thanks for your quick answer, but that would duplicate code too, wouldn'it (css code, here)? I would like to avoid any duplication, and get b2evolution to work too...
It would only be a replication of the colour/image definitions
¥
Let's say I have about 7000 blogs, with 2000 blogs with the green skin. I am not going to copy the green image files in each blog directory, am I ?
Well, the only other thing I can think of is abusing the blog notes field and then amending your skins index.main.php to include the correct file.
¥
:-/ blog_notes field? What is the matter with this field? I can't figure out what it is :
select blog_notes from evo_blogs where blog_notes!="";
Empty set (0.01 sec)
I thought the problem was with the evo_skins__container tables... thanks for your help anyway.
Ok, unless you can symlink all the folders together you need to either
Have a copy of all files ( and just specific css ) in each folder
or
Use /media/blogs/[blog]/style.css
or
get creative and use the blog notes field to store "this colour" and then add the relevant <link> in _html_header.inc.php
or
Use a freehtml widget for the same purpose and add a container to your skins _html_header.inc.php
The choice is yours, if it was me I'd symlink the folders, but you'd need ssh access to your server to do that
¥
Great! Thank you for your solutions, I am going to discuss this with my team.
Just thought of another solution that may suit you better
Create 1 folder ( that actually holds the skin files )
Create a copy folder for each colour variation that has it's own style.css && images folder
Create a dummy php file that just has each of the skins container in it ( doesn't need all the params just container and name should do )
Create index/posts/single/page.main.php that just include the relevant file from the "real" skins home.
Evo should read the containers in teh dummy file, your skin list will have 1 entry per colour and ( barring all the dummy files ) you'll only have 1 *real* set of skin files.
All these options ;)
¥
I think this solution is the smartest one! Thanks a lot, I am going to do as you wrote. :D
I'd just have one skin and then upload the required "colour" css to media/blogs/[blog]/style.css
¥