Like on this forum I use Comment Quicktags for bbPress for the comment quicktags.
Is there a way to use images instead of text for the buttons?
PHP related forum, discuss snippets, classes and tutorials
Like on this forum I use Comment Quicktags for bbPress for the comment quicktags.
Is there a way to use images instead of text for the buttons?
This would be a "stronger" modification...
Meaning?
Quote from: fl00r
"Meaning?"
you need to check all the code, next you need to replace all the buttons and finally hope that everything will work after that
I think it's not very difficult but it's a lot of work for the result. I think the only possible problem could be that the behavior for each button is "connected" to each button element. Spoken in HTML a button form element is different from an image. I each button is identified by an ID, there is nor problem, otherwise ... I don't know
Nevermind
I wil keep it simple
I just want to change the words in the buttons (translate them in to Dutch).
So I opened comment_QT_4_bbpress.php and change the code:
// below here are the extended buttons
edButtons[edButtons.length] =
new edButton('ed_strong'
,'Vet'
,'<strong>'
,'</strong>'
,'b'
);
edButtons[edButtons.length] =
new edButton('ed_em'
,'Schuin'
,'<em>'
,'</em>'
,'i'
);
Bold --> Vet
Italic --> Schuin
But nothing changed
Thats a good idea, this way it's also possible to add more styles
I thought it was a good idea indeed but somehow it doesn't change a thing in my site.
The button text stays the same.
Quote from: fl00r
"I thought it was a good idea indeed but somehow it doesn't change a thing in my site.
The button text stays the same. :("
there are two files (I have no idea why), but you need to change both of them
It's the js_quicktags.js that needs to be edit.
Took me three hours to find that out.....
You must log in to post.