aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB
diff options
context:
space:
mode:
authorCrizzo <mail@crizzo.de>2014-03-02 20:30:09 +0100
committerCrizzo <mail@crizzo.de>2014-03-02 20:30:09 +0100
commit281df15a5362c60e6b6f3cc35937eb7c020bcca4 (patch)
treebc7f45e404f864abde0e8dc6e32f0bd3f777759d /phpBB
parent046b1b9d9842e8b908ff9c67cee2bd9d669055f6 (diff)
downloadforums-281df15a5362c60e6b6f3cc35937eb7c020bcca4.tar
forums-281df15a5362c60e6b6f3cc35937eb7c020bcca4.tar.gz
forums-281df15a5362c60e6b6f3cc35937eb7c020bcca4.tar.bz2
forums-281df15a5362c60e6b6f3cc35937eb7c020bcca4.tar.xz
forums-281df15a5362c60e6b6f3cc35937eb7c020bcca4.zip
[ticket/12240] Added class code for custom bbcodes based on bbcode_tag
PHPBB3-12240
Diffstat (limited to 'phpBB')
-rw-r--r--phpBB/includes/functions_display.php1
-rw-r--r--phpBB/styles/prosilver/template/posting_buttons.html2
2 files changed, 2 insertions, 1 deletions
diff --git a/phpBB/includes/functions_display.php b/phpBB/includes/functions_display.php
index e663ac90c5..05313e849d 100644
--- a/phpBB/includes/functions_display.php
+++ b/phpBB/includes/functions_display.php
@@ -962,6 +962,7 @@ function display_custom_bbcodes()
'BBCODE_NAME' => "'[{$row['bbcode_tag']}]', '[/" . str_replace('=', '', $row['bbcode_tag']) . "]'",
'BBCODE_ID' => $num_predefined_bbcodes + ($i * 2),
'BBCODE_TAG' => $row['bbcode_tag'],
+ 'BBCODE_TAG_CLEAN' => str_replace('=', '-', $row['bbcode_tag']),
'BBCODE_HELPLINE' => $row['bbcode_helpline'],
'A_BBCODE_HELPLINE' => str_replace(array('&amp;', '&quot;', "'", '&lt;', '&gt;'), array('&', '"', "\'", '<', '>'), $row['bbcode_helpline']),
);
diff --git a/phpBB/styles/prosilver/template/posting_buttons.html b/phpBB/styles/prosilver/template/posting_buttons.html
index 7a169575cc..0fe593e7d8 100644
--- a/phpBB/styles/prosilver/template/posting_buttons.html
+++ b/phpBB/styles/prosilver/template/posting_buttons.html
@@ -93,7 +93,7 @@
</select>
<input type="button" class="button2 bbcode-fontcolor" name="bbpalette" id="bbpalette" value="{L_FONT_COLOR}" onclick="change_palette();" title="{L_BBCODE_S_HELP}" />
<!-- BEGIN custom_tags -->
- <input type="button" class="button2" name="addbbcode{custom_tags.BBCODE_ID}" value="{custom_tags.BBCODE_TAG}" onclick="bbstyle({custom_tags.BBCODE_ID})" title="{custom_tags.BBCODE_HELPLINE}" />
+ <input type="button" class="button2 {custom_tags.BBCODE_TAG_CLEAN}" name="addbbcode{custom_tags.BBCODE_ID}" value="{custom_tags.BBCODE_TAG}" onclick="bbstyle({custom_tags.BBCODE_ID})" title="{custom_tags.BBCODE_HELPLINE}" />
<!-- END custom_tags -->
</div>
<!-- EVENT posting_editor_buttons_after -->