Posts Tagged ‘script’
在顯示樓層插件的基礎上加上了引用回復功能
因為是以顯示樓層插件為基礎, 所以要求依然是 firefox+greasemonkey, 並且包括顯示樓層功能
引用回復的 link 只有在鼠標在回復區塊上時才會顯示
如果想引用留言所在頁面不是最後一頁, 因此沒有回復框, 插件會自動在頁面上加上回復框
引用完成後頁面會滾動到底部回復框
* 增加: ctrl+enter 回復功能 (04/06/2009)
* 修正bug: 不能在非第一頁或最後頁創建回復框 (10/06/2009)
* 增加: 如果討論分頁, 在頁首也顯示導航條 (10/06/2009)
如題
requirements 是 firefox + greasemonkey
啟用後的效果如下
first create a file named “php-fastcgi” in /usr/bin/, suppose your spawn-fcgi is in /usr/bin/, don’t forget to chmod +x on the file
1
2
#!/bin/sh
/usr/bin/spawn-fcgi -a 127.0.0.1 -p 9000 -u www-data -f /usr/bin/php5-cgi
then create another file named “init-fastcgi” in /etc/init.d/ and run “sudo update-rc.d init-fastcgi defaults”
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/bash
PHP_SCRIPT=/usr/bin/php-fastcgi
RETVAL=0
case "$1" in
start)
$PHP_SCRIPT
[...]
