10-31-2000, 12:42 AM
The following hack is to add the and functions for posting.
Usage of the funtions:
[size=12] word will seet the "word" size to 10
[color=#555555] color of 555555 set the color to that of #555555
Implementation:
in global.php
find:
if ($dobbcode==1) {
// user defined bb codes
replace with
if ($dobbcode==1) {
$bbcode=eregi_replace("\\*)\\]","<font color=\\1>",$bbcode);
$bbcode=eregi_replace(quotemeta(""),quotemeta("</font>"),$bbcode);
$bbcode=eregi_replace("\\*)\\]","<font size=\\1>",$bbcode);
$bbcode=eregi_replace(quotemeta(""),quotemeta("</font>"),$bbcode);
// user defined bb codes
done!
Usage of the funtions:
[size=12] word will seet the "word" size to 10
[color=#555555] color of 555555 set the color to that of #555555
Implementation:
in global.php
find:
if ($dobbcode==1) {
// user defined bb codes
replace with
if ($dobbcode==1) {
$bbcode=eregi_replace("\\*)\\]","<font color=\\1>",$bbcode);
$bbcode=eregi_replace(quotemeta(""),quotemeta("</font>"),$bbcode);
$bbcode=eregi_replace("\\*)\\]","<font size=\\1>",$bbcode);
$bbcode=eregi_replace(quotemeta(""),quotemeta("</font>"),$bbcode);
// user defined bb codes
done!