![]() |
Recent Attachments
Hack Author: MindTrix
Email: slimshadyandd12@hotmail.com Description: Simply adds a box to your forumhome page displaying the 5 most recent attachments and linking to them. Credits: Thanks go to assassingod for his incredible help and patients with me. He truely deserves his Mod spot so i would like to say thank you, And sorry for beeing such a pain. And thank you to Boofo who moaned at me for beeing a slacker and giving up easily :p Cheers Mate!! Screenshot and installation text file attached. (Sorry for the poor HTML i am useless with the stuff) (15/2/04 Update -- If you have Kentaurus brilliant Attachments In Private Messages hack installed you need to do this fix he posted here https://vborg.vbsupport.ru/showpost....&postcount=113 To stop PM attachments showing on forumhome. |
be amazing if this showed thumbs of the pics :p with an icon for other files :D
|
Yeah i thought the same to be honest. Guess thats something to aim too get done :)
|
You can use the attachment id to fetch a thumbnail of file (for images) ... use and if statement to display thumbs (look into functions_showthread to add more functionality to your hack)
however, you will also have to think about permissions... |
Thanks for the advice ill get right on it
|
First post updated. Attachments now show up as thumbnails. Hope that is better :p
|
Great addon. :) Is it possible to stretch the thumbnails in a horizontal block so you can put it under or above the navbar as in the photoposthack where the latest images are displayed in a similar way?
|
wow thanks.
LOL @ the latest pics in the attachment. :rolleyes: |
Horizontal display:
recent_attachments: Code:
<a href="attachment.php?attachmentid=$recentattachment[attachmentid]" target="_blank"> Code:
<table class="tcat" cellpadding="0" cellspacing="0" border="0" width="100%" align="center" valign="top"> |
hey thnx dark blue thats handy ;) cause we run a small arts community so this hack is a god send :D
*wonders if an external version showing the last attachment on vbindex etc would be poss :D |
Thanks for that Nuclion!!
Colicab-d, what version of vbindex? |
Please, make a 2 and 3 and 4 row mode, so it would be more comact - will you?
Thanks, man - you're only 18, but what you code is really fine. |
latest version mindtrix mate :D
also i know this a bi to ask but.... would it be also possible to show say the latest x attachments, but with only from x forum id :p (if u can accomplish it by mysql ur a god) |
Is it possible to illustrate what this hack does using photographs of people with their clothes on not having sex?
|
MindTrix, could you please upload a non-pornographic attachment please - thanks.
|
My bad :p Didnt realise to be honest, New screenshot uploaded (and they was not pornographic pictures if you saw them in full size)
|
Just noticed by visiting your forum that the attachment thumbnails are broken. Is this because I'm a guest? If so, is this default behaviour of the mod?
If it is, instead of displaying the latest attachments box, you may well just want to hide them from guests all together.. Lots of red x's don't exactly attract guests to registering. Just a suggestion.! |
Sorry i didnt think of that, or try it, Try this
replace the code in the php file with PHP Code:
Its just a rough guess but i assume it will work |
Or you could use:
PHP Code:
|
In the php file?
|
In place of this in your code above. ;)
PHP Code:
|
I thought you would need to check it against 0
|
If you use
PHP Code:
So that won't work. |
Ahh right, thanks for that
|
Steve, you're wrong. What that basically does is ask whether the user has a userid number. Unregsitered users don't. So, yes, it will work. ;)
|
I'll admit when i'm wrong (And I was):p
I'll know next time hehe |
That's ok, buddy. You're not alone. ;)
|
Heck i dont even know what php is
|
What would make this hack very useful is if you could make it so that it shows the latest attachments WITHIN a specific forum or subforums. :)
|
Guess thats what i need to aim for now then huh :) Thanks for the advice Erwin ill try
|
Very Nice , thank MindTrix :)
but, would this be possible to add has this hack the option " contract" (collapse) like origin in Vbulletin ? |
Your making us download fullsize pictures for 62x62 or 50x50 display... so in other words on my forum it's sending 1mb photos for display in a format that could do it in 8000 bytes...
Here's the easy easy easy fix: In recent_attachments template: Change this: PHP Code:
PHP Code:
Also consider using only 1 width or height value rather than both this will allow the ratio between height and width to be maintained since not all images are perfectly square. Nice hack. Clickin install. ;) |
Thanks mate :) HTML is not my strong point, i hate it. Thank you for the fix and install click :)
|
I agree HTML is stupid. :)
|
Hello,
great Idea with the attachments... Would it be possible to show tumbs of attachments in the Forumdisplay? I mean instead of a thread icon show a thumbnail of the attachment inside. So the user can see what is waiting for him inside the post. *G* would really love that. thanks Martin |
Quote:
|
Is it possible to show a 'no thumbnail' image or a default image when someone post a zip, exe etc. file? I've seen it in the forumdisplay attachment addon so maybe it is possible with this to.
|
Is there any way to get the href to point to the originating thread rather than the image. I would like my users to be able to go to the thread by clicking the image.
Thanks! Great hack by the way! |
anybody know a way that this could be done? I have tried everything that I can think of. I have tried a number of things but it seems to pull the most recent thread and the the thread that is associated with the image. I can't seem to wrap my head around this.
|
Yep, i'm also looking for a solution to link the image to the thread it whas placed in. :)
|
All times are GMT. The time now is 04:44 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:
|