2
Upload them to the uploads directory, then make a little php file with the following contents:
<?php
include mainfile.php
$avatars = [Number of avatars] //write a number here
for ($i = 0; $i < $avatars; $i++) {
$k = $i;
if ($i < 100) { //add one zero in front of number
$k = "0".$k;
}
if ($i < 10) { //add another zero
$k = "0".$k;
}
$xoopsDB->query("INSERT INTO ".$xoopsDB->prefix("avatar")." VALUES ('ava$k.gif', 'ava$k', 'image/gif', ".time().", 1,0,'C')");
echo "ava$k inserted";
}
include footer.php
?>
If the avatars are jpeg, change the extension in the query and the image/gif to image/jpeg
Just drop that little php file in the XOOPS root and run it once.
It may take a little more to get them to be choosable by the users - someone else able to elaborate?