Simple Machines Community Forum

Customizing SMF => SMF Coding Discussion => Topic started by: Malibuz0r on April 27, 2012, 08:56:08 PM

Title: Editing board bar / bbc images.
Post by: Malibuz0r on April 27, 2012, 08:56:08 PM
1st question:
How can I edit the following bars?:
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi50.tinypic.com%2F345ov4g.png&hash=6aa6fb66edf8f40237cee7f1a6ac391e72096ca1)
^ Displaying topics in a board

and
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi50.tinypic.com%2F2898rqe.png&hash=c0ef8a0d7699b6395265d8fa0f887c42b3871ce1)
^ Topic


2nd question:
How do I edit the bbc images?
I tried setting a new "Image" for the bbc "i" italic, but I got this instead:
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi48.tinypic.com%2Fra6kjp.png&hash=6c97864fceb2772673bb0bd2b22bc2b162de803a)
As you can see, behind the red image I replaced there, there is that square background, how can I get rid of it?

Thanks.
Title: Re: Editing board bar / bbc images.
Post by: Malibuz0r on May 02, 2012, 10:09:31 AM
Bump!


Also, I might as well just ask here instead of making a new topic.

How can I delete/disable the Underline bb code?
Title: Re: Editing board bar / bbc images.
Post by: MrPhil on May 02, 2012, 10:43:30 AM
QuoteHow can I delete/disable the Underline bb code?

First, try going into Admin to the BBCode section and uncheck the "u" code. If that doesn't work,
in Sources/Subs.php, function parse_bbc(), find
array(
'tag' => 'u',
'before' => '<span class="bbc_u">',
'after' => '</span>',
),


and change it to
/* array(
'tag' => 'u',
'before' => '<span class="bbc_u">',
'after' => '</span>',
),  */


You could probably do something with the "disabled" list, but this is just as easy.
Title: Re: Editing board bar / bbc images.
Post by: Malibuz0r on May 03, 2012, 06:13:49 PM
Thanks it worked. I would appreciate if someone could answer at least the second question!
Title: Re: Editing board bar / bbc images.
Post by: Arantor on May 03, 2012, 07:18:59 PM
Well, actually easier than disabling it via code would be disabling it via the admin panel in Admin > Posts and Topics > Bulletin Board code.

Removing the background of just one item is a bit complicated because they're all generated programmatically in code.