Questions about modifing the bbcode plugin

Creating and modifying plugins.
Post Reply
Schamsen
Regular
Posts: 19
Joined: Mon Jun 19, 2006 6:36 pm

Questions about modifing the bbcode plugin

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

Re: Questions about modifing the bbcode plugin

Post 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
# 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/
Schamsen
Regular
Posts: 19
Joined: Mon Jun 19, 2006 6:36 pm

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

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