![]() |
Module CMPS:Recent Attachments
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 |
Reserved
|
Any plans on displaying other attachments? such as docs & archives?
|
Quote:
|
Quote:
|
Wow that was fast, great job! And yes it's exactly what I was looking for.
|
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! |
Quote:
Code:
[ $newattachment['attachment'] .= '<div><img class="inlineimg" src="' . $vbulletin->options['bburl'] . '/attachment.php?' . $session['sessionurl'] . 'attachmentid=' . $attachment['attachmentid'] . '" width="75" height="75"> Code:
$query_attachments = $db->query_read(" |
Brilliant, thanks! :)
|
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 https://vborg.vbsupport.ru/external/2011/07/5.gif Can you please give us one that can also work with images that are attached from some website? Thanks |
Quote:
|
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 https://vborg.vbsupport.ru/external/2011/07/5.gif 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 |
Quote:
|
Yes, I mean that.
And what about my question number 2 and 3? |
Why do I get:
Quote:
Is it because I don't have thumbnails enabled (my images are all viewed inline)? |
Quote:
|
Quote:
Quote:
|
Ok, I will wait for that :)
Thanks |
thanks for module ,
but results not showing on my vba page. vb3.62 b& vba 2.2.1 |
Quote:
and please click installed if you want support |
Quote:
|
Quote:
|
clicked install and thanks for fix, working.
How can exclude 'images' from newattachments files module ? |
Quote:
Fatal error: Call to a member function on a non-object in /home/xxxxxx/public_html/forum/modules/recentattachment.php on line 14 Thanks for trying anyway. |
AWESOME!! been looking for this. will install (when I get home). nice job!!
Quote:
Quote:
I second that !! or at least something LIKE that... ie: doesn't have to show first post...but it would be nice if viewing an attachment lead someone back to the actual thread somehow). maybe just show a linkback to the original post or thread? |
Quote:
|
rgr that!
ps. any chance on a linkback to the thread? just wondering. :) |
Quote:
|
I agree with you sinisterpain
And guess what, now I have come across yet another problem, ever since I have turned off thumbnails, the Mod is not working any more. |
Quote:
|
Quote:
|
Hello,
I use vbportal. Will this work for that or is there something else that I can use to accomplish the same task. thanks jaffy |
Quote:
|
Quote:
Jaffy |
Quote:
|
Hi,some queries::p
Does this Mod allows us to select from which forum,the attachments that should be displayed? Possible to make it that only attachments under the <Manage Attachments> be displayed instead of also user's signatures that have been uploaded through the forum? And any usergroup permissions for it? Great Mod by the way,thanks alot!:up: :) |
Quote:
2. it only displays what has been posted in an attachment using the attachment table. Signitures are usually images using the [IMG] tags. So this module already uses manage attachments. If your using attachments for signitures thats your choice. 3. usergroup permisions are assigned when the module is created. You can edit them by going to your CMPS in the admincp and edit the module. Please click install for support |
Updated for recent requests by members to be able to view the post of the attachment. Enjoy!
|
Hello.I seem to have problem editing the PHP file to - recentattachments.php, "No such file or directory" and the permissions cant be changed too.any idea?
|
Quote:
Go to your admincp->vBa CMPS->edit modules->Recent Attachments in their you will see the usergroup permisions for the module. |
All times are GMT. The time now is 06:09 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|