1 頁 (共 1 頁)

[問題]Forum Statistic Signature

發表於 : 2003-06-23 15:40
kkf
問題外掛:Forum Statistic Signature
參考連結:http://william91.no-ip.com/phpbb/viewtopic.php?t=305
使用版本:phpBB 2.0.5
網站位置:http://kkfexe.host.sk/phpbb2/signature/signature.php
狀況描述:
按照說明檔所說安裝,連往http://kkfexe.host.sk/phpbb2/signature/signature.php之後,出現這樣的訊息:

代碼: 選擇全部

Hacking attemptHacking attempt
Fatal error: Call to undefined function: session_pagestart() in /mnt/host-users/kkfexe/phpbb2/signature.php on line 22
發覺問題在這裡:
$userdata = session_pagestart($user_ip, PAGE_INDEX);

請問已安裝此外掛的朋友,我的signature.php究竟出了甚麼問題???

另外,我不明白說明檔所說的:
Run the cron jobs to update the image.
Example:
Update every 15 minutes
0,15,30,45 * * * * wget -q http://www.yourforum.com/signature.php > /dev/null

Update evey 30 minutes
0,30 * * * * wget -q http://www.yourforum.com/signature.php > /dev/null
麻煩解釋一下...........

發表於 : 2003-06-23 15:41
小竹子
你安裝的時候改了什麼?

發表於 : 2003-06-23 15:44
kkf
我的設定檔:
$width = 365; //Width in pixel of signature image
$height = 30; //Height in pixel of signature image
$left = 10; //Indent of Stats from left edge
$top = 14; //Distance from top of signature image
$spacing = 11; //Line spacing of stats text
$signImage = "http://kkfexe.host.sk/phpbb2/signature/sign.jpg"; //Relative path to underlying signature image
$newImage = "http://kkfexe.host.sk/phpbb2/signature/newimage.jpg"; //Relative path and Name to new signature image with stats
$compression = 50; //Compression of signature image with stats (100 = No Compression)

define('IN_PHPBB', true);
$phpbb_root_path = 'http://kkfexe.host.sk/phpbb2/';
include($phpbb_root_path . 'extension.inc');
include($phpbb_root_path . 'common.'.$phpEx);
include($phpbb_root_path . 'fetchposts.'.$phpEx);

發表於 : 2003-06-23 17:51
Mac
cron job (工作流程排序/自動流程管理設定) 應該是只有 Unix/Linux 的 OS 可以使用\r

那樣子的寫法是讓主機來規定更新的時間
目前讓在簽名檔的話會每次含有簽名檔的打開一次,就要更新一次(需要注意頻寬喔)

~Mac

發表於 : 2003-06-23 18:50
Aratsuki
我從心情小品轉過來這邊喇...
都不行哦...依然是空白http://aratsuki.no-ip.com/forum/signature.php

Mac你說要Unix/Linux嗎?
我的是Xp Pro, CABLE連線, FOXser
是不行的嗎?

檔案在我的電腦(伺服器)裡\r
C:\apache\htdocs\forum\sign.jpg
C:\apache\htdocs\forum\signature.php
應該沒有錯嘛,怎會空白的

代碼: 選擇全部

$signImage = [b]"/forum/sign.jpg[/b]";  //Relative path to underlying signature image
$newImage = [b]"/forum/test.gif[/b]"; //Relative path and Name to new signature image with stats
$compression = 100; //Compression of signature image with stats (100 = No Compression)

define('IN_PHPBB', true);
$phpbb_root_path = '[b]./[/b]';
include($phpbb_root_path . 'extension.inc');
include($phpbb_root_path . 'common.'.$phpEx);
include($phpbb_root_path . 'fetchposts.'.$phpEx);

發表於 : 2003-06-23 20:53
Mac
都說是絕對路徑了,你要寫這樣:

代碼: 選擇全部

$signImage = "C:/apache/htdocs/forum/sign.jpg";  //Relative path to underlying signature image 
\n$newImage = "C:/apache/htdocs/forum/enreimage.jpg"; //Relative path and Name to new signature image with stats
~Mac

發表於 : 2003-06-24 14:26
Aratsuki
真是多謝你如此不厭其煩的幫助我
但問題還是未能解決\r
signature.php這樣顯示:

代碼: 選擇全部

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=big5"></HEAD>
<BODY></BODY></HTML>