×
Kunena 5.1 Released (13 May 2018)

The Kunena team is pleased to announce Kunena 5.1.0 [K 5.1.0].
Please read the blog post for information: www.kunena.org/blog/192-kunena-5-1-released

× Topics that are moved into this category are generally considered to be closed. Users may want to add additional information but these topics should not be resurrected in order to discuss new problems or unrelated matters.

Solved How can I change the BBcode toolbar buttons?

More
3 years 11 months ago #1 by x85301
Hello,

i tried myself in customizing Kunena a little bit. I found a few things in internet, so i managed to inmpelent function to insert a tweet in Kunena.

But, my problem is that i don't manage to insert a button in BB-Code bar for this thing.

I edited "libraries/kunena/bbcode/editor.xml" so that the help-button does what i need. How can i change the button? I don't want this "?" in there but a twitter logo or something like that.

Can anyone help me?


^^sorry for my bad english, i try asking the question in german also, maybe there are germans here:

^^ Ich habe einen Tweet-BB Code ins Forum eingebaut, der Button hierfür ist der "Help" Button. Also von der Funktionalität her, wenn ich draufklicke erscheinen die Tweet-Tags und wenn die ID eines Tweets dort eingefügt wird, erscheint der Tweet im Forum.

Nur, möchte ich den Button an sich austauschen, und habe keine Ahnung wie das geht. Also ein Twitterlogo o.ä. anstelle des Help-Buttons.

Bin langsam am verzweifeln, wäre echt toll wenn mir da jemand weiterhelfen könnte ;-)

Please Log in or Create an account to join the conversation.

More
3 years 11 months ago #2 by rich
You need a image editing program. It is the picture default.png in "components/com_kunena/template/blue_eagle/media/iconsets/editor/default".

Please Log in or Create an account to join the conversation.

More
3 years 11 months ago #3 by 810
This function is added on the new kunena 3.1.
We are fixing the final bugs. Then we are releasing the beta.

Please Log in or Create an account to join the conversation.

More
3 years 11 months ago - 3 years 11 months ago #4 by sozzled
It is possible, instead of changing any of the source code or designing a replacement for the file ../components/com_kunena/template/blue_eagle/media/iconsets/editor/default/default.png, to create your own images for each button in the BBcode editor toolbar.

Let's say that you want to change the image for the "help" button. The image for this button is defined in the Kunena Blue Eagle template with the property
background-position: -396px -18px;

This means that the "question mark" image that you see is defined as a sprite . The easiest way to change this behaviour is to add your own definition at the end of your Joomla site template CSS file, something like this:
#Kunena #kbbcode-help-button {
    background: url('----the URL of the image you want to use instead----') no-repeat !important;
}

This is a "quick fix" to the problem and it's as good as what rich and 810 suggested.
Last edit: 3 years 11 months ago by sozzled.

Please Log in or Create an account to join the conversation.

More
3 years 11 months ago #5 by x85301
thank you guys, managed it :D

Please Log in or Create an account to join the conversation.

  • Not Allowed: to create new topic.
  • Not Allowed: to reply.
  • Not Allowed: to add attachements.
  • Not Allowed: to edit your message.
Time to create page: 0.094 seconds