代码相关
https://github.com/superwbd/youBBS-ACICFG/blob/master/index.php#L24
这里,isred/isunderline之类的代码,建议改用 `titlestyle` SET ('red', 'blue', ....... , 'underline', 'bold') 来做,然后用css class来渲染标题。
像你们这么改代码的话界面逻辑就混了。
还有 https://github.com/superwbd/youBBS-ACICFG/blob/master/index.php#L14 这,大致要改成
WHERE `visible` != '0' OR `uid` = 用户id OR 用户是管理员
否则帖子就失踪了。
另外,渲染文本的时候加个markdown支持吧 -_-
@beining 如果有qq群/gtalk什么的话可以当面联系比较方便
http://forum.chineseaci.com/t-51 这帖子里的地址似乎是写错了
然后早上我发了封邮件Ping过去好像没有人回
CSS的话,模板那边 https://github.com/superwbd/youBBS-ACICFG/blob/master/templates/default/home.php#L29
<h1><a href="/t-',$article['id'],'">',$article['title'],'</a></h1>
改成
<h1><a href="/t-',$article['id'],'"><span class="',$article['titlestyle'],'">',$article['title'],'</span></a></h1>
比如说加粗红色是 class="red bold"
然后你写个css:
h1 .red { color: red; }
h1 .blue { color: blue; }
h1 .bold { font-weight: bold; }
h1 .underline { text-decoration: underline; }
这么样就行了。
visible的话 (我怎么觉得你这句判断有问题)
$isadmin = $cur_user && $cur_user['flag'] >= 99;
$sql = ".....
WHERE `visible` = 0 OR `uid` = {$cur_user[id]} OR $isadmin
markdown的话有现成的函数库可以用吧……