Page 1 of 2

New theme based on Bulletprooved?

Posted: Wed Aug 29, 2007 3:04 pm
by blog.brockha.us
Hi.

I would like to do a new theme based on the bp themes. How do I start? Do I copy the hole folder and start from scratch or do I simply produce a new css file and add it into the configuration and language files?

What is the way you would propose?

I think, there is some mechanism missing detecting new CSS files added to the bp theme. It would be a nice feature, if I could just drop my css file into the BP folder and the theme would be able to add it to the css selector itself.

Posted: Wed Aug 29, 2007 6:57 pm
by blog.brockha.us
I have a problem with the Footer:

Using the purple css the credit_line and the bp_button layer are displayed outside (below) the footer layer, when viewed with FF. Viewed with IE they are insinde the footer layer.

This looks a little rotten when viewed with FF. Is there a chance to fix this?

Posted: Wed Aug 29, 2007 8:45 pm
by Don Chambers
Yes - we just became aware of the problem.... it only happens when the footer navigation is not displayed.

Answering your first question - start by copying bulletproof to a new folder and go forward from there.

I would have loved for bulletproof to simply "see" newly added stylesheets, but the config.inc.php file defines which stylesheets exist, and the language files provide language specific translations for the names of those stylesheets.

Posted: Wed Aug 29, 2007 9:56 pm
by garvinhicking
Hi!

The idea of simply dropping a CSS file is sweet. If it only came before the 1.2 release! :)

I made a patch to config.inc.php to support this:

http://svn.berlios.de/viewcvs/serendipi ... ig.inc.php

Regards,
Garvin

Re: New theme based on Bulletprooved?

Posted: Thu Aug 30, 2007 1:34 am
by yellowled
blog.brockha.us wrote:I would like to do a new theme based on the bp themes. How do I start? Do I copy the hole folder and start from scratch or do I simply produce a new css file and add it into the configuration and language files?

What is the way you would propose?
Shoot, I meant to post an article to the doc site right about this, but I ran out of time (day job). However, Garvin's solution looks smooth, and I'm pretty sure you can figure out how to use it yourself :wink: All non-coders will simply have to wait for BP 1.1 :)

YL

Posted: Thu Aug 30, 2007 1:59 am
by Don Chambers
Does this mean we are dropping the colorset language variables?

Posted: Thu Aug 30, 2007 11:18 am
by seraphyn
That's a very nice Idea, i asked myself how this would be possible.
With a nice uploadpossibility for images and css-file within the themeconfig if possible.
This would be great and make it possible for noncoding bloggers to build up very simple an own template.
I wouldn't be greedy and i hope you don't disunderstand me.

Greetings Seraphyn

Posted: Thu Aug 30, 2007 11:40 am
by blog.brockha.us
Hi Garvin.
The idea of simply dropping a CSS file is sweet. If it only came before the 1.2 release! Smile
I made a patch to config.inc.php to support this:
You are too fast.. :lol:
I planed to do this patch today.. Thanks for doing it for me! :-)
Do you support a meta file? I was thinking of adding meta data as comments into the css file. Name of the css and something..

Later: berlios seems to be offline at the moment?

Don:
Yes - we just became aware of the problem.... it only happens when the footer navigation is not displayed.
Do you know a solution for that already? It is the last thing to do for me before setting my new template online, so I'm very interested in it..

Later: It seems to work, if I leave the div for the sitemap. Instead

Code: Select all

{if ($template_option.sitenavpos != 'none' and $template_option.sitenav_footer == 'true')}
   <div id="footer_sitenav">
   </div>
{/if}
I have now:

Code: Select all

   <div id="footer_sitenav">
{if ($template_option.sitenavpos != 'none' and $template_option.sitenav_footer == 'true')}
{/if}
   </div>
Now my footer looks okay.

Posted: Thu Aug 30, 2007 1:01 pm
by garvinhicking
Hi seraphyn!

No, adding an CSs-upload manager to that interface is IMHO not good, as it would require write access to the template. You should upload files via FTP for some security. :)

Regards,
Garvin

Posted: Thu Aug 30, 2007 1:33 pm
by blog.brockha.us
Another idea: Before using BP I had some sidebar plugins only visible, if the user was logged on. I know, there is a plugin for that, but that slows down my site a lot, so I decided to do this by coding it into the index.tpl.

It would be very nice to have a configuration input, where I could name plugins comma separated, that should only be displayed when logged in. This shouldn't be too hard to implement, I guess, but BerliOS is down at the moment, and I wanted to have Garvins Patch first..

Posted: Thu Aug 30, 2007 2:08 pm
by yellowled
Don Chambers wrote:Does this mean we are dropping the colorset language variables?
I'll have to see Garvin's solution "in action" first, and since berlios indeed seems to be down ...

YL

Posted: Thu Aug 30, 2007 2:11 pm
by blog.brockha.us
It could be done by merging original css files (with lang entries) with new found one. But BerliOS and Garvin seem to be down at the moment ;-), so I'm just guessing..

Posted: Thu Aug 30, 2007 2:12 pm
by yellowled
blog.brockha.us wrote:Later: berlios seems to be offline at the moment?
Still is.
blog.brockha.us wrote:Do you know a solution for that already? It is the last thing to do for me before setting my new template online, so I'm very interested in it..
Haven't checked it in IE yet, but an additional float: left; for #footer in base.css seems to do the trick. It might need (that's the part I'll have to check) a float: none!important; for #footer in both ie6.css and ie7.css, though.

YL

Posted: Thu Aug 30, 2007 2:20 pm
by blog.brockha.us
yellowled wrote:Haven't checked it in IE yet, but an additional float: left; for #footer in base.css seems to do the trick. It might need (that's the part I'll have to check) a float: none!important; for #footer in both ie6.css and ie7.css, though.
Checked it with FF and IE7. You are right, float none is needed for IE. But now it is working! Very cool, thanks a lot!

Posted: Thu Aug 30, 2007 2:31 pm
by yellowled
blog.brockha.us wrote:Checked it with FF and IE7. You are right, float none is needed for IE. But now it is working! Very cool, thanks a lot!
You're welcome :) We had that before we made some final changes (i.e. added the #footer_sitenav). I guess we got carried away by the fact that it didn't seem to need any IE hacks at all, which is probably why no one checked it out in detail :oops:

YL