修改了The Drupal bbcode.module,加入[ code][ tex],[ emo]标签
示例:
[ tex]x=\frac{-b\pm\sqrt{b^2-4ac}}{2a}[ / tex]
[ emo]:)[/ emo] [ emo]:([/ emo] [ emo]puzzled[/ emo] [ emo]high[/ emo]
%pwd
/www/weblog/images/emot
%ls -l
-rw-r--r-- 1 liukan users 342 Feb 22 23:21 8).gif
-rw-r--r-- 1 liukan users 356 Feb 22 23:23 :(.gif
-rw-r--r-- 1 liukan users 355 Feb 22 23:29 :).gif
-rw-r--r-- 1 liukan users 364 Feb 22 23:22 :?.gif
-rw-r--r-- 1 liukan users 351 Feb 22 23:22 :D.gif
-rw-r--r-- 1 liukan users 351 Feb 22 23:23 :O.gif
-rw-r--r-- 1 liukan users 354 Feb 22 23:24 :P.gif
-rw-r--r-- 1 liukan users 362 Feb 22 23:25 ;).gif
-rwxr-xr-x 1 liukan users 3809 Dec 25 2003 anger.gif
-rwxr-xr-x 1 liukan users 1688 Dec 25 2003 bad.gif
-rwxrw-r-x 1 liukan users 3201 Apr 25 2005 barf.gif
-rwxr-xr-x 1 liukan users 2036 Dec 25 2003 cool.gif
-rwxr-xr-x 1 liukan users 2866 Dec 25 2003 cry.gif
-rwxrw-r-x 1 liukan users 1095 Apr 25 2005 die.gif
-rwxr-xr-x 1 liukan users 1070 Aug 30 2004 dog.gif
-rwxr-xr-x 1 liukan users 1509 Dec 25 2003 envy.gif
-rw-r--r-- 1 liukan users 364 Feb 22 23:22 evil.gif
-rwxr-xr-x 1 liukan users 2928 Dec 25 2003 fear.gif
-rwxr-xr-x 1 liukan users 1443 Dec 25 2003 grin.gif
-rw-r--r-- 1 liukan users 315 Feb 22 23:38 han.gif
-rwxrw-r-x 1 liukan users 689 Apr 25 2005 high.gif
-rw-r--r-- 1 liukan users 337 Feb 22 23:38 huaxin.gif
-rwxrw-r-x 1 liukan users 689 Apr 25 2005 jawdrop.gif
-rwxr-xr-x 1 liukan users 1406 Sep 15 18:20 kill.gif
-rw-r--r-- 1 liukan users 351 Feb 22 23:22 lol.gif
-rwxr-xr-x 1 liukan users 1289 Aug 30 2004 love.gif
-rw-r--r-- 1 liukan users 1069 Feb 22 23:37 lu.gif
-rw-r--r-- 1 liukan users 413 Feb 22 23:39 meiyan.gif
-rwxr-xr-x 1 liukan users 1091 Aug 30 2004 pig.gif
-rwxr-xr-x 1 liukan users 3698 Dec 25 2003 puke.gif
-rw-r--r-- 1 liukan users 364 Feb 22 23:22 puzzled.gif
-rwxr-xr-x 1 liukan users 2314 Aug 30 2004 question.gif
-rw-r--r-- 1 liukan users 356 Feb 22 23:23 sad.gif
-rwxr-xr-x 1 liukan users 1944 Dec 25 2003 shock.gif
-rwxr-xr-x 1 liukan users 271 Sep 15 18:20 shuai.gif
-rwxr-xr-x 1 liukan users 1579 Dec 25 2003 shy.gif
-rwxr-xr-x 1 liukan users 2256 Sep 15 18:20 sleepy.gif
-rwxr-xr-x 1 liukan users 1662 Dec 25 2003 smile.gif
-rwxr-xr-x 1 liukan users 2273 Sep 15 18:20 smoke.gif
-rwxr-xr-x 1 liukan users 1418 Dec 25 2003 stupid.gif
-rwxr-xr-x 1 liukan users 1879 Dec 25 2003 sweat.gif
-rwxr-xr-x 1 liukan users 1205 Aug 30 2004 thumbdown.gif
drwxr-xr-x 2 liukan users 512 Feb 11 18:47 thumbnail
-rw-r--r-- 1 liukan users 354 Feb 22 23:24 tongue.gif
-rwxr-xr-x 1 liukan users 1237 Dec 25 2003 unhappy.gif
-rwxr-xr-x 1 liukan users 1536 Sep 15 18:20 uplook.gif
-rw-r--r-- 1 liukan users 362 Feb 22 23:25 wink.gif
-rwxr-xr-x 1 liukan users 1205 Dec 25 2003 zan.gif
示例:
[ tex]x=\frac{-b\pm\sqrt{b^2-4ac}}{2a}[ / tex]
[ emo]:)[/ emo] [ emo]:([/ emo] [ emo]puzzled[/ emo] [ emo]high[/ emo]
%pwd
/www/weblog/images/emot
%ls -l
-rw-r--r-- 1 liukan users 342 Feb 22 23:21 8).gif
-rw-r--r-- 1 liukan users 356 Feb 22 23:23 :(.gif
-rw-r--r-- 1 liukan users 355 Feb 22 23:29 :).gif
-rw-r--r-- 1 liukan users 364 Feb 22 23:22 :?.gif
-rw-r--r-- 1 liukan users 351 Feb 22 23:22 :D.gif
-rw-r--r-- 1 liukan users 351 Feb 22 23:23 :O.gif
-rw-r--r-- 1 liukan users 354 Feb 22 23:24 :P.gif
-rw-r--r-- 1 liukan users 362 Feb 22 23:25 ;).gif
-rwxr-xr-x 1 liukan users 3809 Dec 25 2003 anger.gif
-rwxr-xr-x 1 liukan users 1688 Dec 25 2003 bad.gif
-rwxrw-r-x 1 liukan users 3201 Apr 25 2005 barf.gif
-rwxr-xr-x 1 liukan users 2036 Dec 25 2003 cool.gif
-rwxr-xr-x 1 liukan users 2866 Dec 25 2003 cry.gif
-rwxrw-r-x 1 liukan users 1095 Apr 25 2005 die.gif
-rwxr-xr-x 1 liukan users 1070 Aug 30 2004 dog.gif
-rwxr-xr-x 1 liukan users 1509 Dec 25 2003 envy.gif
-rw-r--r-- 1 liukan users 364 Feb 22 23:22 evil.gif
-rwxr-xr-x 1 liukan users 2928 Dec 25 2003 fear.gif
-rwxr-xr-x 1 liukan users 1443 Dec 25 2003 grin.gif
-rw-r--r-- 1 liukan users 315 Feb 22 23:38 han.gif
-rwxrw-r-x 1 liukan users 689 Apr 25 2005 high.gif
-rw-r--r-- 1 liukan users 337 Feb 22 23:38 huaxin.gif
-rwxrw-r-x 1 liukan users 689 Apr 25 2005 jawdrop.gif
-rwxr-xr-x 1 liukan users 1406 Sep 15 18:20 kill.gif
-rw-r--r-- 1 liukan users 351 Feb 22 23:22 lol.gif
-rwxr-xr-x 1 liukan users 1289 Aug 30 2004 love.gif
-rw-r--r-- 1 liukan users 1069 Feb 22 23:37 lu.gif
-rw-r--r-- 1 liukan users 413 Feb 22 23:39 meiyan.gif
-rwxr-xr-x 1 liukan users 1091 Aug 30 2004 pig.gif
-rwxr-xr-x 1 liukan users 3698 Dec 25 2003 puke.gif
-rw-r--r-- 1 liukan users 364 Feb 22 23:22 puzzled.gif
-rwxr-xr-x 1 liukan users 2314 Aug 30 2004 question.gif
-rw-r--r-- 1 liukan users 356 Feb 22 23:23 sad.gif
-rwxr-xr-x 1 liukan users 1944 Dec 25 2003 shock.gif
-rwxr-xr-x 1 liukan users 271 Sep 15 18:20 shuai.gif
-rwxr-xr-x 1 liukan users 1579 Dec 25 2003 shy.gif
-rwxr-xr-x 1 liukan users 2256 Sep 15 18:20 sleepy.gif
-rwxr-xr-x 1 liukan users 1662 Dec 25 2003 smile.gif
-rwxr-xr-x 1 liukan users 2273 Sep 15 18:20 smoke.gif
-rwxr-xr-x 1 liukan users 1418 Dec 25 2003 stupid.gif
-rwxr-xr-x 1 liukan users 1879 Dec 25 2003 sweat.gif
-rwxr-xr-x 1 liukan users 1205 Aug 30 2004 thumbdown.gif
drwxr-xr-x 2 liukan users 512 Feb 11 18:47 thumbnail
-rw-r--r-- 1 liukan users 354 Feb 22 23:24 tongue.gif
-rwxr-xr-x 1 liukan users 1237 Dec 25 2003 unhappy.gif
-rwxr-xr-x 1 liukan users 1536 Sep 15 18:20 uplook.gif
-rw-r--r-- 1 liukan users 362 Feb 22 23:25 wink.gif
-rwxr-xr-x 1 liukan users 1205 Dec 25 2003 zan.gif