扫一扫,手机访问本帖
|
刚发现了一个很有色彩的BBcode。看看合不合你用?
输入
[code:1][g]北美户外俱乐部[/g][/code:1]
就能出现下面的彩字
安装容易哦!只需要改两个档案,不到一份钟。 8)
[code:1]##############################################################
## MOD Title: Fancy Graphic Font BBCode MOD
## MOD Author: iGOGO8 < igogo8@126.com > http://bbs.igogo8.com
## MOD Description: Allows you to install BBCode MODs that
## add Fancy Graphic Fonts on your forum.
##
## MOD Version: 1.0 beta
##
## Installation Level: EASY
## Installation Time: 1 minutes
## Files To Edit: includes/bbcode.php
## templates/subSilver/bbcode.tpl
## Included Files: n/a
##
##
## License : http://opensource.org/licenses/gpl-license.php GNU Public License v2
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################
#
#
#-----[ OPEN ]---------------------------------
#
includes/bbcode.php
#
#-----[ FIND ]---------------------------------
#
$bbcode_tpl['email'] = str_replace('{EMAIL}', '\\1', $bbcode_tpl['email']);
#
#-----[ AFTER, ADD ]---------------------------------
#
$bbcode_tpl['g'] = str_replace('{g}', '\\1', $bbcode_tpl['g']);
#
#-----[ FIND ]---------------------------------
#
// user@domain.tld code..
$patterns[] = "#\[email\]([a-z0-9&\-_.]+?@[\w\-]+\.([\w\-\.]+\.)?[\w]+)\[/email\]#si";
$replacements[] = $bbcode_tpl['email'];
#
#-----[ AFTER, ADD ]---------------------------------
#
// [g]text[/g] code..
$patterns[] = "#\[g\](.+?)\[/g\]#si";
$replacements[] = $bbcode_tpl['g'];
#
#-----[ OPEN ]---------------------------------
#
templates/subSilver/bbcode.tpl
#
#-----[ FIND ]---------------------------------
#
<!-- BEGIN email --><a href="mailto:{EMAIL}">{EMAIL}</A><!-- END email -->
#
#-----[ AFTER, ADD ]---------------------------------
#
<!-- BEGIN g -->
<a href="http://www.iGOGO8.com/" target=_blank alt="Color Your Forum" name="igg8link">
<img src="http://www.iGOGO8.com/img/igoogle8/bbscolor.gif" alt="{g}" name="igg8" border="0"></a>
<script type="text/javascript">o=document.getElementsByName("igg8");ol=document.getElementsByName("igg8link");if(o)if(o.length>0){for(i=0;i<o.length;i++){oo=o[0+i+0];olo=ol[0+i+0];if(oo.name=="igg8"){oo.src="http://www.iGOGO8.com/igoogle8/makebbs/"+escape(escape(encodeURIComponent(oo.alt+".gif")));olo.href=oo.src+"?bbs";oo.name="igg8_ok";}}}
</script><!-- END g -->
#
#-----[ SAVE/CLOSE ALL FILES ]---------------------------------
#
# EoM[/code:1]
使用方法
http://www.web4chinese.com/forum/viewtopic.php?p=9657#9657
欢迎转贴。哈哈 8) |
|