TinyPortal

Development => Support => Topic started by: sturmkatze on November 16, 2008, 04:25:03 AM

Title: Theme box??
Post by: sturmkatze on November 16, 2008, 04:25:03 AM
D'OH! As soon as I got the search to work, I found it. I KNEW it was something dumb on my part... :P

Okay, I hesitate to ask this, but when I try searching for it I keep getting a crash window thingee. Anyway, this is the first time I would like to actually start allowing people to choose their themes on a site. I assume that's what a theme box is for, right? Anyway... it says "No themes are chosen" but I cannot find where to choose them :tickedoff: Am I missing something? I'm not drunk... Aggravating.

Oh yeah:

Link to my site: http://www.great-war.org
SMF version: 1.1.7
TP version: 1.0.6 beta 2
Theme name and version: War Zone (being tweaked)
Mods installed: Frak, not as many as I normally do:

Related Error messages: I just can't seem to get it to work. New territory for me. I plan to have a different theme for each nationality. I'm doing German (Central Powers) first as that's what I know. Ami's next... then Brit/Commonwealth, French, Russian...
Title: Re: Theme box??
Post by: Ken. on November 16, 2008, 10:57:29 AM
Try this sturmkatze:

Admin>TinyPortal>Settings and Frontpage
Title: Re: Theme box??
Post by: sturmkatze on November 16, 2008, 03:32:34 PM
As soon as the "search" started working again, I found it.... sorry for the trouble. Now if I could just figure out the theme css... I wish there was better instructions for that, just telling me WHAT each thing was... it needs a big graphic. I'll PAY for a poster to put on my wall :P (really, I would).
Thanks for your help, Marsh
Title: Re: Theme box??
Post by: IchBin on November 16, 2008, 04:17:54 PM
sturmkatze, if you're using Firefox the firebug extension is your friend. This sweet little tool allows you to highlight any page on the screen, and it will show you what element is assigned to it in the CSS file. You can even make live changes to see how things will look. Then if it looks good, you actually add your changes to the css file. :)
Title: Re: Theme box??
Post by: sturmkatze on November 17, 2008, 04:09:10 AM
Okay, I go it. Are there instructions? I need to add css definitions for <h1>, etc.
Title: Re: Theme box??
Post by: IchBin on November 17, 2008, 02:21:28 PM
No instructions really needed IMO if you just play around with it a bit. You click on the bug icon in the bottom right of your browser. Then click the inspect button. After that you can highlight and click any element on a page to get the associated css to appear in the right pane of the firebug window. Then you can edit the CSS to see how it works. If you get what you need, then you go and add those exact changes to the files to make it permanent.
Title: Re: Theme box??
Post by: sturmkatze on November 17, 2008, 04:10:12 PM
Wow! Pretty slick. ;) I have been fooling w/ it and right now I am trying to change the weekend days colour on this page/theme: http://www.great-war.org/index.php?theme=6 (http://www.great-war.org/index.php?theme=6) and I can't see where I can do that. Will it mess up something else? Or can I just change that attribute?

I did notice that there weren't any <H> styles, so I made one w/ GoLive (I know, you don't like it, but it works for me in setting up these things as I don't understand css enough)... I have always hated how the leading in TP's <H1> was always too tight and I fixed that. Guess I'll be editing a LOT of styles :buck2: I'm sorta A.R. about typography... One good thing about coming from a typesetting background is I already understand styling text... I try and use styles like the <h1>, <h2>, etc. if I can. You'd crap to see the PageMaker style sheets on some of my publications :o

CSS has always been kind of a black magic thing to me... lotsa troubles getting it to implement things like I want--Firebug might just help me a lot! ;D Thanks Man!!!
Title: Re: Theme box??
Post by: IchBin on November 17, 2008, 07:25:26 PM
By weekend days, I'm assuming you mean in the Calendar block? The calendar code has the color in the style in the HTML code.
Title: Re: Theme box??
Post by: sturmkatze on November 18, 2008, 05:40:50 AM
Ahhhhhhhhh, got it.  So, if I wished to make the Calendar BG as all black so it wouldn't conflict w/ any theme and then style all the stuff in the calendar box, is that doable?
Title: Re: Theme box??
Post by: IchBin on November 18, 2008, 02:29:54 PM
Sure it is. You'll just have to edit  the calendar code in your block, and not the theme files.
Title: Re: Theme box??
Post by: sturmkatze on November 19, 2008, 02:06:51 PM
I guess the calendar can wait... CSS makes my eyes glaze over and little puffs of smoke to start emitting out of my ears.

Am working on another theme for this, and it looks like I will need to add more stuff to the CSS. FOr example, the already mentioned headers and stuff like the BG colour for the main text window... I'd have thought I could find the main text window, but firebug wouldn't show me. Or more likely, I'm missing something. It is remarkably useful in showing what the code does and where.