Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
Module CMPS:Recent Attachments Details »
Module CMPS:Recent Attachments
Mod Version: 1.01, by sinisterpain (Member) sinisterpain is offline
Developer Last Online: Nov 2013 I like it Show Printable Version Email this Page

This modification is in the archives.
vB Version: 3.6.8 Rating: (4 votes - 4.75 average) Installs: 42
Released: 25 Mar 2007 Last Update: 09 Aug 2007 Downloads: 455
Not Supported Template Edits  

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.

Files and Templates added:

CMPS_recent_attachment_images.zip
recentattachment.php
adv_portal_newattachments

CMPS_newattachments_files.zip
newattachment.php
adv_portal_recentattachments

Tested on vb3.6.4

Installation:

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

Download Now

Only licensed members can download files, Click Here for more information.

Screenshots

Click image for larger version

Name:	Image2.jpg
Views:	357
Size:	24.7 KB
ID:	62783   Click image for larger version

Name:	Image1.jpg
Views:	316
Size:	16.8 KB
ID:	62784  

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • If you like this modification support the author by donating.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Comments
  #2  
Old 25 Mar 2007, 21:06
sinisterpain's Avatar
sinisterpain sinisterpain is offline
 
Join Date: Feb 2006
Real name: Glenn
Reserved
__________________

My vBulletin Mods
Reply With Quote
  #3  
Old 25 Mar 2007, 21:33
tehPARADOX tehPARADOX is offline
 
Join Date: Feb 2007
Any plans on displaying other attachments? such as docs & archives?
__________________
Reply With Quote
  #4  
Old 25 Mar 2007, 21:36
sinisterpain's Avatar
sinisterpain sinisterpain is offline
 
Join Date: Feb 2006
Real name: Glenn
Originally Posted by tehPARADOX View Post
Any plans on displaying other attachments? such as docs & archives?
I plan on playing around with different options so its a possibility
__________________

My vBulletin Mods
Reply With Quote
  #5  
Old 26 Mar 2007, 03:28
sinisterpain's Avatar
sinisterpain sinisterpain is offline
 
Join Date: Feb 2006
Real name: Glenn
Originally Posted by tehPARADOX View Post
Any plans on displaying other attachments? such as docs & archives?
Updated and added additional zip file for your request. Hopefully its what you where looking for.
__________________

My vBulletin Mods
Reply With Quote
  #6  
Old 26 Mar 2007, 03:40
tehPARADOX tehPARADOX is offline
 
Join Date: Feb 2007
Wow that was fast, great job! And yes it's exactly what I was looking for.
__________________
Reply With Quote
  #7  
Old 26 Mar 2007, 07:36
sensimilla sensimilla is offline
 
Join Date: Dec 2004
Real name: Eric Estrada
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!

Last edited by sensimilla; 26 Mar 2007 at 07:45.
Reply With Quote
  #8  
Old 26 Mar 2007, 21:09
sinisterpain's Avatar
sinisterpain sinisterpain is offline
 
Join Date: Feb 2006
Real name: Glenn
Originally Posted by sensimilla View Post
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.

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

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.

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Glad you could use it. Enjoy
__________________

My vBulletin Mods

Last edited by sinisterpain; 26 Mar 2007 at 21:27.
Reply With Quote
  #9  
Old 26 Mar 2007, 22:17
FleaBag's Avatar
FleaBag FleaBag is offline
 
Join Date: Dec 2001
Brilliant, thanks!
Reply With Quote
  #10  
Old 27 Mar 2007, 02:17
Invalid ID's Avatar
Invalid ID Invalid ID is offline
 
Join Date: Apr 2006
Real name: Wahab Hameed
It's just great. But there's one problem, it's also showing the attachments members using for their signature.

Also, it does not show the pictures attached using

Can you please give us one that can also work with images that are attached from some website?

Thanks
Reply With Quote
  #11  
Old 27 Mar 2007, 03:06
sinisterpain's Avatar
sinisterpain sinisterpain is offline
 
Join Date: Feb 2006
Real name: Glenn
Originally Posted by Invalid ID View Post
It's just great. But there's one problem, it's also showing the attachments members using for their signature.

Also, it does not show the pictures attached using

Can you please give us one that can also work with images that are attached from some website?

Thanks
Im a little confused by what your problem is.
__________________

My vBulletin Mods
Reply With Quote
  #12  
Old 27 Mar 2007, 15:18
Invalid ID's Avatar
Invalid ID Invalid ID is offline
 
Join Date: Apr 2006
Real name: Wahab Hameed
Ok, I rephrase.

1) Members also attach photos as their signature. This Mod is showing their signature photos also.

2) This Mod is showing only the photos attached using "Manage Attachment" option. But it does not work with the photos that are attached using

3) When you click on the photo, it only opens the photo, it should open the first page of the topic where the image was posted to expect some comment on that image.

Thanks
Reply With Quote
  #13  
Old 27 Mar 2007, 16:34
tehPARADOX tehPARADOX is offline
 
Join Date: Feb 2007
Originally Posted by Invalid ID View Post
Ok, I rephrase.

1) Members also attach photos as their signature. This Mod is showing their signature photos also.

2) This Mod is showing only the photos attached using "Manage Attachment" option. But it does not work with the photos that are attached using

3) When you click on the photo, it only opens the photo, it should open the first page of the topic where the image was posted to expect some comment on that image.

Thanks
is used for hotlinking images, it's not really an attachment. And when you say members attach photos as their signatures, did you mean with the default signature upload?
__________________
Reply With Quote
  #14  
Old 27 Mar 2007, 18:03
Invalid ID's Avatar
Invalid ID Invalid ID is offline
 
Join Date: Apr 2006
Real name: Wahab Hameed
Yes, I mean that.

And what about my question number 2 and 3?
Reply With Quote
  #15  
Old 27 Mar 2007, 19:15
Pottsy Pottsy is offline
 
Join Date: Sep 2006
Why do I get:

Fatal error: Call to a member function on a non-object in /home/xxxxx/public_html/forum/modules/recentattachment.php on line 14

Is it because I don't have thumbnails enabled (my images are all viewed inline)?
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Mod Options

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 01:23.

Layout Options | Width: Wide Color: