Omar Bazavilvazo
Member
For some old SMF forums, the avatars used a different file format not using the hash.
I changed in my local impotrt cariation, so if you want to implement the fix is something like (only change is 1 line before the break)...
In SMF.php change:
	
	
	
		
to this:
	
	
	
		
				
			I changed in my local impotrt cariation, so if you want to implement the fix is something like (only change is 1 line before the break)...
In SMF.php change:
		PHP:
	
	                    // Attachment directory
                    case 0:
                        if (!isset($options['attachmentPaths'][$avatar['id_folder']]))
                        {
                            // Going to have to assume that it was a single attachment directory environment.
                            $attachmentPath = $options['attachmentPaths'][0];
                        }
                        else
                        {
                            $attachmentPath = $options['attachmentPaths'][$avatar['id_folder']];
                        }
                        $filePath = "$attachmentPath/$avatar[id_attach]_$avatar[file_hash]";
                        break;to this:
		PHP:
	
	                    // Attachment directory
                    case 0:
                        if (!isset($options['attachmentPaths'][$avatar['id_folder']]))
                        {
                            // Going to have to assume that it was a single attachment directory environment.
                            $attachmentPath = $options['attachmentPaths'][0];
                        }
                        else
                        {
                            $attachmentPath = $options['attachmentPaths'][$avatar['id_folder']];
                        }
                        if (trim($avatar['file_hash']) != '')
                        {
                            $filePath = "$attachmentPath/$avatar[id_attach]_$avatar[file_hash]";
                        }
                        else
                        {
                            $filePath = "$attachmentPath/$avatar[filename]";
                        }
                        break; 
 
		
 
	
 
 
		