Simple Machines Community Forum

Customizing SMF => SMF Coding Discussion => Topic started by: Ostro on August 15, 2008, 08:31:43 AM

Title: Change quote-style (in Subs.php)
Post by: Ostro on August 15, 2008, 08:31:43 AM
I want to design a nice "quote"-box for my board.

Now, border-image only works with CSS3 = not yet
so I'm not able to change it through the style.css (well, at least I don't know how - if you do, could you tell me?)
That's why I want to change the output of quotes right in the code but I can't find the lines that describe it. I looked through display.php like 3 times and a few other files of which I thought it wouldn't be in there. (actually, right now I've searched for class="quote" in each .php and looked for any quote related stuff in each .js)

Where did developers put the look/creation of the quotes?

Forum Version: SMF 1.1.5
http://poa.mkrevo.de/forum/index.php

Thanks a lot for your help
Title: Re: Change quote-style
Post by: [SiNaN] on August 15, 2008, 10:44:58 AM
Style is in ../Themes/default/style.css defined under .quote and .quoteheader.

Though class is assigned in Subs.php file where BBC tags are defined.
Title: Re: Change quote-style
Post by: Ostro on August 15, 2008, 11:12:53 AM
Quote from: [SiNaN] on August 15, 2008, 10:44:58 AM
Though class is assigned in Subs.php file where BBC tags are defined.
Thanks. I will try if this works
Title: Re: Change quote-style
Post by: [SiNaN] on August 15, 2008, 11:15:35 AM
But do you really need to change the class?
Title: Re: Change quote-style
Post by: Ostro on August 15, 2008, 11:47:37 AM
No, I wanted to change the style of the class "quote" because I didn't find anything about how and where BBC was defined. But border-image doesn't work yet. So I was kinda lost.

Subs.php was the right hint and I got round to change it. I will work a little more on this probably
Result:
http://poa.mkrevo.de/forum/index.php?topic=1.msg8#msg8

Thanks a lot, really. I would have never looked that deep into the software itself.
Title: Re: Change quote-style (in Subs.php)
Post by: [SiNaN] on August 15, 2008, 11:52:09 AM
Ah, I understand. It looks good. :)
Title: Re: Change quote-style (in Subs.php)
Post by: Ostro on August 15, 2008, 12:08:39 PM
Thanks :)
I want the forum to look more Mario Kart related but I'm not too good at designing. I have to work with little details here and there ;D

The support on SMF is really great, I have never experienced any support that is this fast, friendly and, most important, actually helping!
Title: Re: Change quote-style (in Subs.php)
Post by: [SiNaN] on August 15, 2008, 12:15:18 PM
Understand. Maybe you look for a more colorful theme in the Theme Site (http://custom.simplemachines.org/themes/). I'm sure you can find one suits Mario Kart. ;)

Thanks really. You're always welcome. :)