Dorign |
08-06-2004 02:12 AM |
Quote:
Originally Posted by BrentWilson
Sigh anyone else?
|
Yeah, it's a simple fix. I'm not even a "coder," but I managed to find out what was causing it. :D
In the instructions of the mod, it tells you this..
PHP Code:
Open: /forum/image.php & Find (around line 177):
if ($_REQUEST['type'] == 'profile')
{
$data = 'profilepicdata';
$table = 'customprofilepic';
// No permissions to see profile pics
if (!$vboptions['profilepicenabled'] OR (!($permissions['genericpermissions'] & CANSEEPROFILEPIC) AND $bbuserinfo['userid'] != $userid))
{
header('Content-type: image/gif');
readfile("./$vboptions[cleargifurl]");
exit;
}
}
Under Add:
if ($_REQUEST['type'] == 'siguploader')
{
$data = 'siguploaderdata';
$table = 'customsiguploader';
}
Doing that divides an "else" code from the profile picture code. So instead of adding that code there, add it under..
PHP Code:
if ($_REQUEST['type'] == 'profile')
{
$data = 'profilepicdata';
$table = 'customprofilepic';
// No permissions to see profile pics
if (!$vboptions['profilepicenabled'] OR (!($permissions['genericpermissions'] & CANSEEPROFILEPIC) AND $bbuserinfo['userid'] != $userid))
{
header('Content-type: image/gif');
readfile("./$vboptions[cleargifurl]");
exit;
}
}
else
{
$data = 'avatardata';
$table = 'customavatar';
}
That way, the code stays together, the profile pictures work, and the signature uploader works too, or so I think..
Which brings me to my problem.. if a user is in multiple usergroups, s/he cannot upload a picture (uploading just refreshes the page, showing no error and no confirmation).
|