Log in

View Full Version : extended class from attachment


ragtek
08-16-2007, 07:05 AM
i'd like to build an attachmentfunction in my hack

so what is the best way?

calorie
08-16-2007, 07:19 AM
Take a peek at the following:

$upload = new vB_Upload_Image($vbulletin);
...
$upload->process_upload ...

ragtek
08-16-2007, 07:21 AM
yes, i've seen this, but i don't need images
i'd like to upload mp3's

calorie
08-16-2007, 08:10 AM
Copy class vB_Upload_Image extends vB_Upload_Abstract to class vB_Upload_MP3 extends vB_Upload_Abstract, replacing the $this->image if-else block with an MP3 check.

ragtek
08-16-2007, 08:13 AM
yea
good idee
nice approach (hope thats the right word for german: ansatz)

now i know what i have to look for