Page 1 of 1

Questions about modifing the bbcode plugin

Posted: Fri Feb 09, 2007 11:09 pm
by Schamsen
First of all, is it alloud to modify the code of the plugin ?

if its allowed, i need helt, becaus i whant another "background" color and an other font. but i can't find where in the serendipity_event_bbcode.php i coult change that, possible because i had no skills in php :D

would be really nice if anybody could give me some hints.

Thanks in advance.

Re: Questions about modifing the bbcode plugin

Posted: Sat Feb 10, 2007 10:54 am
by garvinhicking
Hi!
Schamsen wrote:First of all, is it alloud to modify the code of the plugin ?
Serendipity is OpenSource, so yes. We appreciate contributions. :-)
if its allowed, i need helt, becaus i whant another "background" color and an other font. but i can't find where in the serendipity_event_bbcode.php i coult change that, possible because i had no skills in php :D
You don't need to change the plugin for that. It's all CSS that controls the appearance of bbcodes. Have a look at the HTML output where the HTML classes are used, you can then style those elements via CSS in your template's style.css file.

Best regards,
Garvin

Posted: Sat Feb 10, 2007 11:30 am
by Schamsen
Ah ok, but the answer is not better for me as a webprogramming idiot :oops:
but i understand ist, mostly :D

So just allow me to ask another question:
Where ist the currently used style stored ? or can i edit the things from the templates folder ?

Posted: Sat Feb 10, 2007 11:32 am
by garvinhicking
Hi!

You must edit the files in the templates/XXX/style.css - where 'XXX' stands for your currently selected template. Like 'carl_contest' for the Serendipity 3.0 template, which is used by default.

In there you can add things like

Code: Select all

.bb-code {
  background-color: red;
}
HTH,
Garvin