Serendipity-Buch

Handbuch für Serendipity bestellen

Das offizielle, umfassende Serendipity-Handbuch für Einsteiger und Profis ist nun im Handel und kann online bei Amazon oder OpenSourcePress, oder auch bei jedem Buchhändler, bestellt werden!

Forum-Information

Before posting about errors, make sure that the answer cannot already be found in our FAQ or by searching this forum!
Posting is restricted to registered users (registering is free and simple!) due to recent spam attacks. When having trouble with this board, contact garvin(-at)s9y(-dot)org.

Board index Themes New theme based on Bulletprooved?

Skinning and designing Serendipity (CSS, HTML, Smarty)
User avatar
blog.brockha.us
Regular
 
Posts: 467
Joined: Tue Jul 03, 2007 3:34 am

Postby blog.brockha.us » Wed Aug 29, 2007 3:04 pm

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/
- s9y twitter plugin - http://7ax.de/s9ytwitter

User avatar
blog.brockha.us
Regular
 
Posts: 467
Joined: Tue Jul 03, 2007 3:34 am

Postby blog.brockha.us » Wed Aug 29, 2007 6:57 pm

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/
- s9y twitter plugin - http://7ax.de/s9ytwitter

User avatar
Don Chambers
Regular
 
Posts: 2613
Joined: Mon Feb 13, 2006 3:40 am
Location: Chicago, IL, USA

Postby Don Chambers » Wed Aug 29, 2007 8:45 pm

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.

User avatar
garvinhicking
Core Developer
 
Posts: 26735
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany

Postby garvinhicking » Wed Aug 29, 2007 9:56 pm

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/

User avatar
yellowled
Regular
 
Posts: 3104
Joined: Fri Jan 13, 2006 12:46 pm
Location: Eutin, Germany

Postby yellowled » Thu Aug 30, 2007 1:34 am

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
Did I help you?/Konnte ich helfen?
Custom s9y template? Contact me via Email or PM.
Eigenes s9y-Template? Fragt per Email oder PM an.

User avatar
Don Chambers
Regular
 
Posts: 2613
Joined: Mon Feb 13, 2006 3:40 am
Location: Chicago, IL, USA

Postby Don Chambers » Thu Aug 30, 2007 1:59 am

Does this mean we are dropping the colorset language variables?

User avatar
seraphyn
Regular
 
Posts: 57
Joined: Fri Dec 01, 2006 9:42 am

Postby seraphyn » Thu Aug 30, 2007 11:18 am

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

User avatar
blog.brockha.us
Regular
 
Posts: 467
Joined: Tue Jul 03, 2007 3:34 am

Postby blog.brockha.us » Thu Aug 30, 2007 11:40 am

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/
- s9y twitter plugin - http://7ax.de/s9ytwitter

User avatar
garvinhicking
Core Developer
 
Posts: 26735
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany

Postby garvinhicking » Thu Aug 30, 2007 1:01 pm

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/

User avatar
blog.brockha.us
Regular
 
Posts: 467
Joined: Tue Jul 03, 2007 3:34 am

Postby blog.brockha.us » Thu Aug 30, 2007 1:33 pm

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/
- s9y twitter plugin - http://7ax.de/s9ytwitter

User avatar
yellowled
Regular
 
Posts: 3104
Joined: Fri Jan 13, 2006 12:46 pm
Location: Eutin, Germany

Postby yellowled » Thu Aug 30, 2007 2:08 pm

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
Did I help you?/Konnte ich helfen?
Custom s9y template? Contact me via Email or PM.
Eigenes s9y-Template? Fragt per Email oder PM an.

User avatar
blog.brockha.us
Regular
 
Posts: 467
Joined: Tue Jul 03, 2007 3:34 am

Postby blog.brockha.us » Thu Aug 30, 2007 2:11 pm

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/
- s9y twitter plugin - http://7ax.de/s9ytwitter

User avatar
yellowled
Regular
 
Posts: 3104
Joined: Fri Jan 13, 2006 12:46 pm
Location: Eutin, Germany

Postby yellowled » Thu Aug 30, 2007 2:12 pm

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
Did I help you?/Konnte ich helfen?
Custom s9y template? Contact me via Email or PM.
Eigenes s9y-Template? Fragt per Email oder PM an.

User avatar
blog.brockha.us
Regular
 
Posts: 467
Joined: Tue Jul 03, 2007 3:34 am

Postby blog.brockha.us » Thu Aug 30, 2007 2:20 pm

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/
- s9y twitter plugin - http://7ax.de/s9ytwitter

User avatar
yellowled
Regular
 
Posts: 3104
Joined: Fri Jan 13, 2006 12:46 pm
Location: Eutin, Germany

Postby yellowled » Thu Aug 30, 2007 2:31 pm

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
Did I help you?/Konnte ich helfen?
Custom s9y template? Contact me via Email or PM.
Eigenes s9y-Template? Fragt per Email oder PM an.

Next


Return to Themes

Who is online

Users browsing this forum: Google [Bot] and 0 guests