Show bbcode icon in custom bbcode page!
Posted: 23 Jul 2010, 22:42
this little snippet shows an icon on the right side of the custom bbcodes page, according to the bbcode installed on your board!
DEMO:
[hsimg]http://img291.imageshack.us/img291/9923 ... 412799.png[/hsimg]
REQUIREMENTS:
1.You must have custom bbcode page by Stoker found in this site. viewtopic.php?f=8&t=355
2.If you have bbcodebox light mod installed it will also help, i have my images for the bbcodebox light mod, in a editor directory inside the images folder!
ps. fix path to images depending on where you have them installed.
3.Images should be named according to the bbcode, follow instructions in the bbcodebox light topic!
on to edits!
open boardbbcodes.php
Find:
Add after:
now open prosilver/template/boardbbcodes_body.html
Find:
Add after:
Find:
Add after:
open language/en/common.php
Find:
Add after:
DEMO:
[hsimg]http://img291.imageshack.us/img291/9923 ... 412799.png[/hsimg]
REQUIREMENTS:
1.You must have custom bbcode page by Stoker found in this site. viewtopic.php?f=8&t=355
2.If you have bbcodebox light mod installed it will also help, i have my images for the bbcodebox light mod, in a editor directory inside the images folder!
ps. fix path to images depending on where you have them installed.
3.Images should be named according to the bbcode, follow instructions in the bbcodebox light topic!
on to edits!
open boardbbcodes.php
Find:
Code: Select all
'BBCODE_MATCH' => $row['bbcode_match'],
Code: Select all
'BBCODE_ICON' => ($row['bbcode_tag']) ? '<img src="' . $phpbb_root_path . 'images/editor/' . $row['bbcode_tag'] . '.png" height="16" width="16" align="absmiddle" />' : '<img src="' . $phpbb_root_path . 'images/editor/no_image.png'. '" height="16" width="16" align="absmiddle" />',
Find:
Code: Select all
<th class="info" style="width:150px;">{L_BBCODE_DISPLAY}</th>
Code: Select all
<th class="table1" style="text-align:center;">{L_BBCODE_ICON}</th>
Code: Select all
<td style="text-align:center;"><!-- IF bbcodes.S_BBCODE_DISPLAY -->{L_YES}<!-- ELSE -->{L_NO}<!-- ENDIF --></td>
Code: Select all
<td style="text-align:center;">{bbcodes.BBCODE_ICON}</td>
Find:
Code: Select all
'BBCODES_COUNT' => '%d Custom BBCodes'
Code: Select all
'BBCODE_ICON' => 'Icon',