
08-07-2004, 05:02 AM
|
 |
|
|
Join Date: Mar 2004
Location: Alabama
Posts: 521
Благодарил(а): 0 раз(а)
Поблагодарили:
0 раз(а) в 0 сообщениях
|
|
Quote:
Originally Posted by Dorign
Yeah, it's a simple fix. I'm not even a "coder," but I managed to find out what was causing it.
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).
|
Awsome that worked
|