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

Reply
 
Thread Tools
Latest X Attachments on FORUMHOME and FORUMDISPLAY Details »»
Latest X Attachments on FORUMHOME and FORUMDISPLAY
Version: 1.1, by Hasann Hasann is offline
Developer Last Online: Jun 2021 Show Printable Version Email this Page

Category: Miscellaneous Hacks - Version: 3.7.x Rating:
Released: 03-29-2008 Last Update: 05-10-2008 Installs: 87
Uses Plugins Template Edits Auto-Templates
Translations  
No support by the author.

Latest X Attachments on Forum Index by HASANN

What does it?: Show Latest X Attachments on FORUMHOME Index.
New: Show Latest X Attachments on FORUMDISPLAY

New Install Instructions: its very easy.. just import product-latest_x_attachments.xml file via product manager that's it!!

Find in FORUMDISPLAY template this code

HTML Code:
$navbar
And add below this code

HTML Code:
<if condition="$vboptions['latest_attachments_forum']">
$latest_x_attachments
</if>
Modifications Info

Plugin : 3
Phrases : 33
Template : 1
Setting : 11

Latest X Attachments Settings

Go to your admin cp, then:
vBulletin Options -> Latest X Attachments Options ->

Versions:
v1.0.0 - 30 March 2008
- First release

v1.1 - 11 May 2008
- New Release

Features:
  • Enable Latest Attachments FORUMHOME
  • Display the latest attachments gallery on FORUMHOME?
  • Latest Attachments Show Filename
  • Latest Attachments Show Filename Under Attachments Image Thumbnails Yes No
  • Latest Attachments Show Attachments Thumbnail Link as Filename Link
  • If this enabled to Yes Latest Attachments will be Displayed as Thumbnail with attachment link.
  • If this disabled to No Latest Attachment will be displayed as Filename with attachment link.
  • New: Enable Latest Attachments FORUMDISPLAY
  • Display the latest attachments gallery on FORUMDISPLAY per forum? Yes No
  • Latest Attachments Thumbnails Link
  • If you would like it to link to the post where the attachment is located, choose yes. If you would like the thumbnails to link to the larger image, choose no.
  • Enable Latest Attachments Collapse?
  • If you would like to make the latest attachments collapsable, select this option to yes.
  • Latest Attachments Display Type
  • Latest Attachments or Random Attachments will be displayed in the FORUMHOME
  • Latest Attachments
  • Random Attachments
  • Latest Attachments Location
  • Latest Attachments Location in the FORUMHOME
  • Below Navbar
  • Above Forums
  • Below Forums
  • Below Who's Online
  • Maximum Thumbnails per Row
  • The maximum amount of latest image attachments you would like to display per row.
  • Maximum Thumbnails to Display
  • The maximum amount of latest image attachments you would like to display.
  • Latest Attachment Gallery Name
  • Enter the name which you want the header gallery box to be called.

Supporters / CoAuthors

Show Your Support

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

Comments
  #42  
Old 09-11-2008, 09:40 PM
Butcher's Avatar
Butcher Butcher is offline
 
Join Date: Oct 2004
Location: Lake Distrcit - England
Posts: 118
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

as another option how about when clicking the image you stay in the same window rather than in a new one?
Reply With Quote
  #43  
Old 09-22-2008, 07:13 AM
RS25com RS25com is offline
 
Join Date: Dec 2001
Posts: 87
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by gwerzal View Post
Is there anyway to get this so that it doesnt show image attachments but instead shows zip attachments.

I have a lot of files for my members to download so it would be good to be able to have somewhere that shows all the newest ones.
I just tweaked the XML file to do this.

Find this line:
WHERE a.thumbnail_filesize > '0'

Change it to this:
WHERE a.filesize > '0'

You could easily add a few exceptions for file types, too, such as:

WHERE a.thumbnail_filesize > '0'
AND
(
a.filename LIKE '%.pdf'
OR
a.filename LIKE '%.xls'
)


When you're done with your changes, re-upload the XML file, and select OVERWRITE product. Works fine for me on 3.7.2.
Reply With Quote
  #44  
Old 09-22-2008, 07:20 AM
RS25com RS25com is offline
 
Join Date: Dec 2001
Posts: 87
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

One more thing I noticed - it doesn't work on FORUMHOME - only works on FORUMDISPLAY.
Reply With Quote
  #45  
Old 09-28-2008, 11:16 AM
Adam21 Adam21 is offline
 
Join Date: Apr 2005
Location: In The Network!
Posts: 299
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Butcher View Post
as another option how about when clicking the image you stay in the same window rather than in a new one?
Try in each instance of
Code:
<a href=\"" . $link . "\" target=\"_blank\">$thumbs[filename]</a>\n";
Replace the target=\"_blank\"> into target=\""\
Reply With Quote
  #46  
Old 11-13-2008, 11:12 PM
chesterano chesterano is offline
 
Join Date: Oct 2008
Posts: 27
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi very good mod
And you can add options for exclusion of several forums for example: 2, 4, to with them do not show attachments?
Reply With Quote
  #47  
Old 11-18-2008, 08:37 PM
chesterano chesterano is offline
 
Join Date: Oct 2008
Posts: 27
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Or although options attachments from one forum
Please
Reply With Quote
  #48  
Old 11-30-2008, 06:44 PM
futuredood futuredood is offline
 
Join Date: Jan 2002
Posts: 235
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by corman420 View Post
Is this only for images? This would be sweet if you could only include certain file types. My forum is based around binary files, and I would love to be able to show the last 10 uploaded binary, zip, rar files (and not images). This is an awesome idea
Has anyone tried with this with attachments other than images? I'd like to try this with mp3 files and text files, if it could just list the latest attachments thatd be nice.
Reply With Quote
  #49  
Old 12-07-2008, 01:40 AM
pnosko31 pnosko31 is offline
 
Join Date: May 2006
Posts: 86
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by chesterano View Post
Hi very good mod
And you can add options for exclusion of several forums for example: 2, 4, to with them do not show attachments?


Display Information On a Per Forum Basis
--------------------------------------------------
This conditional allows you to display information on a per forum basis. This can be helpful if you wish to display different advertisements depending on what forum that the user is in. You would simply replace X with the forum id that you wish the information to appear in.
HTML Code:

<if condition="$forum[forumid] == X"></if>

and on the other hand you can use the ! to do the opposite and display the information in every forum but the id you list
HTML Code:

<if condition="$forum[forumid] != X"></if>

or if you have multiple forums you wish to include something with you can use an array such as this
HTML Code:

<if condition="in_array($forum['forumid'], array(1,2,3,6))"></if>
Reply With Quote
  #50  
Old 12-07-2008, 01:54 AM
pnosko31 pnosko31 is offline
 
Join Date: May 2006
Posts: 86
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

k nvm that didnt work for me
Reply With Quote
  #51  
Old 12-07-2008, 08:00 AM
NetRover NetRover is offline
 
Join Date: Jul 2004
Posts: 123
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by thaneck View Post
Is there a way to instead of clicking the pic and seeing the picture full size, it takes you to the thread where the pictures are?
I would also like this or some method so they know who uploaded the image or which thread it is on.

apart from that, great product.
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 04:29 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
  • Page Generation 0.11011 seconds
  • Memory Usage 2,317KB
  • Queries Executed 26 (?)
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
  • (1)bbcode_code
  • (2)bbcode_html
  • (5)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