Quote:
Originally Posted by sensimilla
Outstanding! I have almost payed for this hack !  5 stars and MOTM
Thumbnail creation isnt perfect, they are deformed.
I would request the possibilty to
- not display file title ( with large titles it doesnt look good )
- select forum from which they should be grabbed
- select number of attachments to display
great job! keep up developing this mod!
|
If your using the image only zip file you can adjust the size of the picture you want by editing the php file. I think I set it to 75 width 75 height. Change the code in red to what ever size you want.
Code:
[ $newattachment['attachment'] .= '<div><img class="inlineimg" src="' . $vbulletin->options['bburl'] . '/attachment.php?' . $session['sessionurl'] . 'attachmentid=' . $attachment['attachmentid'] . '" width="75" height="75">
You can also change the number of files displayed by changing the query from the current 4 to what ever you wish to display. Change the red 4 to what you want.
Code:
$query_attachments = $db->query_read("
SELECT *
FROM " . TABLE_PREFIX . "attachment
WHERE visible = 1 AND dateline < " . TIME() ." ORDER BY dateline DESC LIMIT 4");
Glad you could use it. Enjoy