分类:技术 相关文章
vanillaforums 文章列表页,帖子详细信息处添加 点击次数。
GAE 数据存储实体和属性
archlinux pacman 报错 pacman: signature from “…” is unknown trust
怎么解决?从官方论坛,得到如下解决方案。 rm -R /etc/pacman.d/gnupg pacman-key –init pacman-key –populate archlinux
vanillaforums 论坛文章标题链接优化,只留文章ID
使用lnmp,nginx版本太低,升级nginx 8.x 到 1.0.5
lnmp 的版本支持到0.8.x 就没有更新的版本了。下面的代码用来把0.8.x的nginx升级到 1.0.5 wget http://nginx.org/download/nginx-1.0.5.tar.gz tar -zxvf nginx-1.0.5.tar.gz cd nginx-1.0.5 ./configure –user=www –group=www –prefix=/usr/local/nginx –with-http_stub_status_module –with-http_ssl_module –with-http_gzip_static_module –wi……
继续阅读»»»
vanillaforums 修改QnA插件默认显示提问问题的顺序
public function PostController_Render_Before($Sender, $Args) { $Form = $Sender->Form; //new Gdn_Form(); $QuestionButton = !C(‘Plugins.QnA.UseBigButtons’) || GetValue(‘Type’, $_GET) == ‘Question’; if (!$Form->IsPostBack()) { //if (!property_exists($Sender, ‘Discussion’)) { if (!property_exists(……
继续阅读»»»
