dmoore |
06-15-2006 04:54 PM |
Is anyone still supporting this?
I have a minor issue. When I make the changes that are required to image.php, all avatars disappear. I have searched this thread and the original mod author's thread and could not find anyone with a similiar issue. I know that the problem lies in image.php and have narrowed it down to the following code block. I just can't figure out where the problem lies exactly. I have commented the code accordingly...
PHP Code:
if ($vbulletin->GPC['type'] == 'profile') { $table = 'customprofilepic'; // No permissions to see profile pics if (!$vbulletin->options['profilepicenabled'] OR (!($vbulletin->userinfo['permissions']['genericpermissions'] & $vbulletin->bf_ugp_genericpermissions['canseeprofilepic']) AND $vbulletin->userinfo['userid'] != $vbulletin->GPC['userid'])) { exec_shut_down(); // Update location with 'No permission to view profile picture' header('Content-type: image/gif'); readfile(DIR . '/' . $vbulletin->options['cleargifurl']); exit; } //Modded code for Timeslips Database mod, June 15th, 2006 //Problem is in here somewhere... else if ($_REQUEST['type'] == 'timeslip') { $data = 'timeslippicdata'; $table = 'customfile'; //Remove hack from this line up } else { $table = 'customavatar'; }
Thanks for your time. If you need any more info, just let me know.
-Derek
|