Log in

View Full Version : What's The Prob?


That Rob Guy
12-26-2004, 08:26 PM
It's a problem in the profile.php file when you go to change your avatar, sig, etc...

Parse error: parse error, expecting `')'' in /home/httpd/vhosts/ewnweb.net/subdomains/community/httpdocs/profile.php on line 111

Line 111 specifically is...

WHERE pm.userid = $bbuserinfo[userid]

The surrounding code is below...help would be appreciated.

// ###################### Start pm update counters #######################
// update the pm counters for $bbuserinfo
function build_pm_counters()
{
global $DB_site, $bbuserinfo;

$pmcount = $DB_site->query_first("
SELECT
COUNT(pmid) AS pmtotal,
SUM(IF(messageread = 0 AND folderid = 0, 1, 0)) AS pmunread
FROM " . TABLE_PREFIX . "pm AS pm
WHERE pm.userid = $bbuserinfo[userid]
");

$pmcount['pmtotal'] = intval($pmcount['pmtotal']);
$pmcount['pmunread'] = intval($pmcount['pmunread']);

if ($bbuserinfo['pmtotal'] != $pmcount['pmtotal'] OR $bbuserinfo['pmunread'] != $pmcount['pmunread'])
{
$DB_site->query("
UPDATE " . TABLE_PREFIX . "user SET
pmtotal = $pmcount[pmtotal],
pmunread = $pmcount[pmunread]
WHERE userid = $bbuserinfo[userid]
");
}
}

Dan
12-26-2004, 08:34 PM
Did you add any hacks recently? If so retrace the hack instructions of the profile.php and see where the problem lies. If not go ask the hack author about where it may have went wrong.

That Rob Guy
12-26-2004, 08:48 PM
Yea, the ibpro arcade and the vb chat...:-\

Dan
12-26-2004, 09:28 PM
Yea, the ibpro arcade and the vb chat...:-\
Well which one made file edits to profile.php ? Once you find that out go double check you didn't miss anything.... OR upload a fresh copy of profile.php

assassingod
12-26-2004, 09:40 PM
The only file I can find that code in is private.php rather than profile.php - are you sure you have the right file?