Originally posted by:andow... (code.google.com)@gmail.com
1.templates/default/js/post.js has defined a bbtags array for bbcode tags.
So each tag's array index is equal to the number behind the form element's name prefixed by 'addbbcode'.
For example: [b] is addbbcode0, and [i] is addbbcode2.
2.color and font are not defined in bbtags. so their index should be after the last bbtags index.
3.Fix:
The post_form.htm should be modified as follows:
<select onmouseover="helpline('s')" onchange="bbfontstyle('[color=' + this.form.addbbcode30.options[this.form.addbbcode30.selectedIndex].value + ']', '[/color]')" name="addbbcode30">
<select onmouseover="helpline('f')" onchange="bbfontstyle('[size=' + this.form.addbbcode32.options[this.form.addbbcode32.selectedIndex].value + ']', '[/size]')" name="addbbcode32">
Status: Accepted
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Also you might want to check the following as it is an error in 2.1.8.
If you set a color to some text. The color selector stays on that color. If you want to add the same color to other text you have to first give it another color then change the colortext manually.
I do not know if this is a problem in 2.3.5 since setting the color do not work.
I am really happy to see that jforum continous to live. Good work :-)
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Originally posted by:andow... (code.google.com)@gmail.com
If you change onchange to onblur, you will get what you want.
onblur="bbfontstyle('[color=' + this.form.addbbcode30.options[this.form.addbbcode30.selectedIndex].value + ']', '[/color]')"
However, you will need to click back the textarea, and then onblur() starts to trigger the bbcode style. The response time is not as good as onchange.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
View and moderate all "tickets Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Tickets"
Originally posted by: andow... (code.google.com)@gmail.com
1.templates/default/js/post.js has defined a bbtags array for bbcode tags.
So each tag's array index is equal to the number behind the form element's name prefixed by 'addbbcode'.
For example: [b] is addbbcode0, and [i] is addbbcode2.
2.color and font are not defined in bbtags. so their index should be after the last bbtags index.
3.Fix:
The post_form.htm should be modified as follows:
<select onmouseover="helpline('s')" onchange="bbfontstyle('[color=' + this.form.addbbcode30.options[this.form.addbbcode30.selectedIndex].value + ']', '[/color]')" name="addbbcode30">
<select onmouseover="helpline('f')" onchange="bbfontstyle('[size=' + this.form.addbbcode32.options[this.form.addbbcode32.selectedIndex].value + ']', '[/size]')" name="addbbcode32">
Status: Accepted
View and moderate all "tickets Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Tickets"
Originally posted by: ronny.na... (code.google.com)@gmail.com
Nice.
Also you might want to check the following as it is an error in 2.1.8.
If you set a color to some text. The color selector stays on that color. If you want to add the same color to other text you have to first give it another color then change the colortext manually.
I do not know if this is a problem in 2.3.5 since setting the color do not work.
I am really happy to see that jforum continous to live. Good work :-)
View and moderate all "tickets Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Tickets"
Originally posted by: andow... (code.google.com)@gmail.com
If you change onchange to onblur, you will get what you want.
onblur="bbfontstyle('[color=' + this.form.addbbcode30.options[this.form.addbbcode30.selectedIndex].value + ']', '[/color]')"
However, you will need to click back the textarea, and then onblur() starts to trigger the bbcode style. The response time is not as good as onchange.
View and moderate all "tickets Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Tickets"
Originally posted by: andow... (code.google.com)@gmail.com
commit in [[r328]]
Status: Fixed