Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Module CMPS:Recent Attachments Details »»
Module CMPS:Recent Attachments
Version: 1.01, by sinisterpain sinisterpain is offline
Developer Last Online: Nov 2013 Show Printable Version Email this Page

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.

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

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #22  
Old 03-28-2007, 01:24 PM
Pottsy Pottsy is offline
 
Join Date: Sep 2006
Location: UK
Posts: 130
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by sinisterpain View Post
I dont believe so, its usually caused by a plugin or a function not being globaled. Try uploading the attached file to your modules folder (overwriting old) and let me know if you still have the issue. If you do try disabling plugins. I will udate the modules to reflect the change for the query call.
Tried that file in modules with all plugins disabled, and still the same error.
Reply With Quote
  #23  
Old 03-28-2007, 09:04 PM
sinisterpain's Avatar
sinisterpain sinisterpain is offline
 
Join Date: Feb 2006
Location: New Hampshire
Posts: 571
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Pottsy View Post
Tried that file in modules with all plugins disabled, and still the same error.
I edited the file I attached to my post above please re-upload it to your forum/modules directory and overwrite. Since this works for the majority I feel that there is something possibly in your settings or a hook from another hack conflicting with the attachments query.
Reply With Quote
  #24  
Old 03-29-2007, 09:17 AM
maxicep maxicep is offline
 
Join Date: Oct 2006
Location: California
Posts: 288
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

clicked install and thanks for fix, working.
How can exclude 'images' from newattachments files module ?
Reply With Quote
  #25  
Old 03-29-2007, 12:15 PM
Pottsy Pottsy is offline
 
Join Date: Sep 2006
Location: UK
Posts: 130
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by sinisterpain View Post
I edited the file I attached to my post above please re-upload it to your forum/modules directory and overwrite. Since this works for the majority I feel that there is something possibly in your settings or a hook from another hack conflicting with the attachments query.
Tried again with the updated file and all plugins disabled, and still:

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.
Reply With Quote
  #26  
Old 03-29-2007, 04:45 PM
GrendelKhan{TSU's Avatar
GrendelKhan{TSU GrendelKhan{TSU is offline
 
Join Date: Jun 2005
Location: Boston | Seoul, S. Korea
Posts: 1,311
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

AWESOME!! been looking for this. will install (when I get home). nice job!!


Quote:
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
-- it can NOT do 1 and 2 because its not MEANT to do 1 and 2. What you are referring to are NOT attachments, those are called "hotlinks" and are completely different (I know terms can be confusing). Attachments are actually hosted on your site... not linked in from another site.


Quote:
Originally Posted by sinisterpain View Post
Question 2 has been answer

Your 3rd question involves a change in code to accomplish, not sure if others want the same thing. If there are more members requesting it, I will add it as an update.

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?
Reply With Quote
  #27  
Old 03-29-2007, 07:54 PM
sinisterpain's Avatar
sinisterpain sinisterpain is offline
 
Join Date: Feb 2006
Location: New Hampshire
Posts: 571
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by GrendelKhan{TSU View Post
AWESOME!! been looking for this. will install (when I get home). nice job!!




-- it can NOT do 1 and 2 because its not MEANT to do 1 and 2. What you are referring to are NOT attachments, those are called "hotlinks" and are completely different (I know terms can be confusing). Attachments are actually hosted on your site... not linked in from another site.





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?
Dont forget to click install if you like it
Reply With Quote
  #28  
Old 03-30-2007, 12:10 PM
GrendelKhan{TSU's Avatar
GrendelKhan{TSU GrendelKhan{TSU is offline
 
Join Date: Jun 2005
Location: Boston | Seoul, S. Korea
Posts: 1,311
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

rgr that!

ps. any chance on a linkback to the thread? just wondering.
Reply With Quote
  #29  
Old 03-30-2007, 07:05 PM
sinisterpain's Avatar
sinisterpain sinisterpain is offline
 
Join Date: Feb 2006
Location: New Hampshire
Posts: 571
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by GrendelKhan{TSU View Post
rgr that!

ps. any chance on a linkback to the thread? just wondering.
Shouldnt be too hard but I dont have time right now but I will get to it
Reply With Quote
  #30  
Old 03-31-2007, 03:51 PM
Invalid ID's Avatar
Invalid ID Invalid ID is offline
 
Join Date: Apr 2006
Location: Karachi. Pakistan
Posts: 411
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #31  
Old 04-02-2007, 11:49 AM
maxicep maxicep is offline
 
Join Date: Oct 2006
Location: California
Posts: 288
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by maxicep View Post
clicked install and thanks for fix, working.
How can exclude 'images' from newattachments files module ?
up..
Reply With Quote
Reply


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

Forum Jump


All times are GMT. The time now is 09:08 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.06311 seconds
  • Memory Usage 2,319KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (8)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete