BBCode_Ironie
Verfasst: 26.07.2007 11:19
Hi
ich suche den BBCode_Ironie mod.
Der Link in der mod datenbank geht leider nicht mehr.
ich suche den BBCode_Ironie mod.
Der Link in der mod datenbank geht leider nicht mehr.
Code: Alles auswählen
// [b] and [/b] for bolding text.
$text = str_replace("[b:$uid]", $bbcode_tpl['b_open'], $text);
$text = str_replace("[/b:$uid]", $bbcode_tpl['b_close'], $text);
Code: Alles auswählen
// Begin 'Ironie'
// [Ironie] and [/Ironie] for Ironie
$text = str_replace("[Ironie:$uid]", $bbcode_tpl['Ironie_open'], $text);
$text = str_replace("[/Ironie:$uid]", $bbcode_tpl['Ironie_close'], $text);
Code: Alles auswählen
// [b] and [/b] for bolding text.
$text = preg_replace("#\[b\](.*?)\[/b\]#si", "[b:$uid]\\1[/b:$uid]", $text);
Code: Alles auswählen
// Begin 'Ironie'
// [Ironie] and [/Ironie] for setting spoiler-textblocks
$text = preg_replace("#\[Ironie\](.*?)\[/Ironie\]#si", "[Ironie:$uid]\\1[/Ironie:$uid]", $text);
// End 'Ironie'
Code: Alles auswählen
<!-- BEGIN b_open --><span style="font-weight: bold"><!-- END b_open -->
<!-- BEGIN b_close --></span><!-- END b_close -->
Code: Alles auswählen
<!-- BEGIN Ironie_open --></span>
<table width="90%" cellspacing="1" cellpadding="3" border="0" align="center">
<tr>
<td><span class="genmed"><b>Achtung Ironie:</b></span></td>
</tr>
<tr>
<td class="ironie"><!-- END Ironie_open -->
<!-- BEGIN Ironie_close --></td>
</tr>
</table>
<span class="postbody"><!-- END Ironie_close -->
Code: Alles auswählen
/* Quote & Code blocks */
.code {
[...]
[...]
[...]
}
Code: Alles auswählen
.Ironie{
font-family: {T_FONTFACE1}; font-size: {T_FONTSIZE2}px; color: {T_FONTCOLOR1}; line-height: 125%;
background-color: 1E90FF; border: {T_TR_COLOR3}; border-style: solid;
border-left-width: 1px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px
}
Code: Alles auswählen
<td><span class="genmed">
<input type="button" class="button" accesskey="w" name="addbbcode16" value="URL" style="text-decoration: underline; width: 40px" onClick="bbstyle(16)" onMouseOver="helpline('w')" />
</span></td>
Code: Alles auswählen
<td><span class="genmed">
<input type="button" class="button" accesskey="h" name="addbbcode16" value="Iro" style="text-decoration: none; width: 40px" onClick="javascript:bbfontstyle('[ironie]','[/ironie]');" onMouseOver="" />
</span></td>