[問題]商店街shop問題(已解決)
發表於 : 2003-06-10 12:14
問題外掛:商店街
參考連結:http://phpbb-tw.net/phpbb/viewtopic.php?t=16651
使用版本:phpBB 2.0.4
網站位置:http://toangel.52-u.com/
mod寫:
------[FIND]------
//
// Note! The order used for parsing the message _is_ important, moving things around could break any
// output
//
------[ADD, BEFORE]------
//start of display-items
$gsql = "select * from " . CONFIG_TABLE . " where config_name='viewtopic'";
if ( !($gresult = $db->sql_query($gsql)) )
{
message_die(CRITICAL_ERROR, 'ERROR: Getting Global Variables!');
}
$grow = mysql_fetch_array($gresult);
if ($grow['config_value'] == images)
{
$itempurge = str_replace("?, "", $postrow[$i]['user_items']);
$itemarray = explode('?,$itempurge);
$itemcount = count ($itemarray);
$user_items = "<br>";
for ($xe = 0;$xe < $itemcount;$xe++)
{
if ($itemarray[$xe] != NULL)
{
if (file_exists("shop/images/".$itemarray[$xe].".jpg"))
{
$user_items .= " <img src=\"shop/images/$itemarray[$xe].jpg\" title=\"$itemarray[$xe]\" alt=\"$itemaray[$xe]\">";
}
elseif (file_exists("shop/images/".$itemarray[$xe].".gif"))
{
$user_items .= " <img src=\"shop/images/$itemarray[$xe].gif\" title=\"$itemarray[$xe]\" alt=\"$itemaray[$xe]\">";
}
}
}
}
$usernameurl = append_sid("shop.".$phpEx."?action=inventory&searchname=".$postrow[$i]['username']);
但我改了以後,出現:
Parse error: parse error in /usr/local/psa/home/vhosts/toangel.52-u.com/httpdocs/viewtopic.php on line 1066
錯誤地方是\r
$itempurge = str_replace("?, "", $postrow[$i]['user_items']);
請大家幫忙!!!
參考連結:http://phpbb-tw.net/phpbb/viewtopic.php?t=16651
使用版本:phpBB 2.0.4
網站位置:http://toangel.52-u.com/
mod寫:
------[FIND]------
//
// Note! The order used for parsing the message _is_ important, moving things around could break any
// output
//
------[ADD, BEFORE]------
//start of display-items
$gsql = "select * from " . CONFIG_TABLE . " where config_name='viewtopic'";
if ( !($gresult = $db->sql_query($gsql)) )
{
message_die(CRITICAL_ERROR, 'ERROR: Getting Global Variables!');
}
$grow = mysql_fetch_array($gresult);
if ($grow['config_value'] == images)
{
$itempurge = str_replace("?, "", $postrow[$i]['user_items']);
$itemarray = explode('?,$itempurge);
$itemcount = count ($itemarray);
$user_items = "<br>";
for ($xe = 0;$xe < $itemcount;$xe++)
{
if ($itemarray[$xe] != NULL)
{
if (file_exists("shop/images/".$itemarray[$xe].".jpg"))
{
$user_items .= " <img src=\"shop/images/$itemarray[$xe].jpg\" title=\"$itemarray[$xe]\" alt=\"$itemaray[$xe]\">";
}
elseif (file_exists("shop/images/".$itemarray[$xe].".gif"))
{
$user_items .= " <img src=\"shop/images/$itemarray[$xe].gif\" title=\"$itemarray[$xe]\" alt=\"$itemaray[$xe]\">";
}
}
}
}
$usernameurl = append_sid("shop.".$phpEx."?action=inventory&searchname=".$postrow[$i]['username']);
但我改了以後,出現:
Parse error: parse error in /usr/local/psa/home/vhosts/toangel.52-u.com/httpdocs/viewtopic.php on line 1066
錯誤地方是\r
$itempurge = str_replace("?, "", $postrow[$i]['user_items']);
請大家幫忙!!!