您好,我需要每天运行两次:
UPDATE wp_posts SET post_content = REPLACE ( post_content, \'[img]\', \'<img src="\' );
UPDATE wp_posts SET post_content = REPLACE ( post_content, \'[IMG]\', \'<img src="\' );
UPDATE wp_posts SET post_content = REPLACE ( post_content, \'[/img]\', \'" />\' );
UPDATE wp_posts SET post_content = REPLACE ( post_content, \'[/IMG]\', \'" />\' );
UPDATE wp_posts SET post_content = REPLACE ( post_content, \'[b]\', \'<strong>\' );
UPDATE wp_posts SET post_content = REPLACE ( post_content, \'[B]\', \'<strong>\' );
UPDATE wp_posts SET post_content = REPLACE ( post_content, \'[/b]\', \'</strong>\' );
UPDATE wp_posts SET post_content = REPLACE ( post_content, \'[/B]\', \'</strong>\' );
怎么能做到呢?我不想手动运行它,也不能每次发布帖子时都这么做,因为我运行的是MU网站,我的作者太懒了,无法将他们的代码从bbCode修改为HTML。我使用的是cPanel,所以如果你教我如何添加CronJob,我可以很容易地添加它。谢谢大家!