New theme based on Bulletprooved?

Skinning and designing Serendipity (CSS, HTML, Smarty)
blog.brockha.us
Regular
Posts: 695
Joined: Tue Jul 03, 2007 3:34 am
Location: Berlin, Germany
Contact:

New theme based on Bulletprooved?

Post 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.
- Grischa Brockhaus - http://blog.brockha.us
- Want to make me happy? http://wishes.brockha.us/
blog.brockha.us
Regular
Posts: 695
Joined: Tue Jul 03, 2007 3:34 am
Location: Berlin, Germany
Contact:

Post 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?
- Grischa Brockhaus - http://blog.brockha.us
- Want to make me happy? http://wishes.brockha.us/
Don Chambers
Regular
Posts: 3652
Joined: Mon Feb 13, 2006 2:40 am
Location: Chicago, IL, USA
Contact:

Post 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.
=Don=
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post 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
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
yellowled
Regular
Posts: 7111
Joined: Fri Jan 13, 2006 11:46 am
Location: Eutin, Germany
Contact:

Re: New theme based on Bulletprooved?

Post 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
Don Chambers
Regular
Posts: 3652
Joined: Mon Feb 13, 2006 2:40 am
Location: Chicago, IL, USA
Contact:

Post by Don Chambers »

Does this mean we are dropping the colorset language variables?
=Don=
seraphyn
Regular
Posts: 211
Joined: Fri Dec 01, 2006 8:42 am
Contact:

Post 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
blog.brockha.us
Regular
Posts: 695
Joined: Tue Jul 03, 2007 3:34 am
Location: Berlin, Germany
Contact:

Post 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.
- Grischa Brockhaus - http://blog.brockha.us
- Want to make me happy? http://wishes.brockha.us/
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post 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
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
blog.brockha.us
Regular
Posts: 695
Joined: Tue Jul 03, 2007 3:34 am
Location: Berlin, Germany
Contact:

Post 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..
- Grischa Brockhaus - http://blog.brockha.us
- Want to make me happy? http://wishes.brockha.us/
yellowled
Regular
Posts: 7111
Joined: Fri Jan 13, 2006 11:46 am
Location: Eutin, Germany
Contact:

Post 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
blog.brockha.us
Regular
Posts: 695
Joined: Tue Jul 03, 2007 3:34 am
Location: Berlin, Germany
Contact:

Post 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..
- Grischa Brockhaus - http://blog.brockha.us
- Want to make me happy? http://wishes.brockha.us/
yellowled
Regular
Posts: 7111
Joined: Fri Jan 13, 2006 11:46 am
Location: Eutin, Germany
Contact:

Post 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
blog.brockha.us
Regular
Posts: 695
Joined: Tue Jul 03, 2007 3:34 am
Location: Berlin, Germany
Contact:

Post 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!
- Grischa Brockhaus - http://blog.brockha.us
- Want to make me happy? http://wishes.brockha.us/
yellowled
Regular
Posts: 7111
Joined: Fri Jan 13, 2006 11:46 am
Location: Eutin, Germany
Contact:

Post 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
Post Reply