Version: 1.01, by sinisterpain
Developer Last Online: Nov 2013
Category: Add-On Releases -
Version: 3.6.8
Rating:
Released: 03-24-2007
Last Update: 08-08-2007
Installs: 43
Template Edits
No support by the author.
Module CMPS Recent Attachments
Idea was based on original hack by MindTrix
A request from a member for showing document such as text and zip files prompted me to add an additional zip file to this hack. Please be sure you download the correct file. The CMPS_recent_attachment_images.zip is for showing pictures only. The CMPS_newattachments_files.zip will display both but will only output the extension image with the file name and info (see Screenshot below).
What it does:
It will query attachments from the database for the latest 4 images or files posted, and output it to the module created on your home page. I believe I have seen this requested both here and at vBadvanced.
Will add 1 query to the home page.
1. Extract the module file from the zip to your desktop.
2. Go to your admincp->vBa CMPS->Download/Upload Module.
3. Browse to where you put the module file click submit.
4. Make sure you set all options and permisions for the module.
5. Be sure that you enable the module in your default home page or it will not show.
Change log:
version 1.00 - First release. Added additional module for files and docs.
version 1.01 - Added ability to view the members post of the image or file attachment in a new window from CMPS module.
Added update for CMPS 3.0 module Please be sure to click installed if you want support
Show Your Support
This modification may not be copied, reproduced or published elsewhere without author's permission.
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
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.
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");