View Full Version : Miscellaneous Hacks - Latest X Attachments on FORUMHOME and FORUMDISPLAY
Hasann
03-29-2008, 10:00 PM
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
$navbar
And add below this 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.
Hasann
03-30-2008, 03:30 PM
Versions:
v1.0.0 - 30 March 2008
-First release
11.May.08 upgraded to v1.1
-New Release
Changes since v1.0
added show latest x attachments on forumdisplay and have attachment show from each forum
added one admincp option to enable forumdisplay latest x attachments showing
compatible with all styles
compatible with vBulletin version 3.7 Gold and v3.6.10
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
$navbar
And add below this code
<if condition="$vboptions['latest_attachments_forum']">
$latest_x_attachments
</if>
lasto
03-30-2008, 03:50 PM
nice one m8 shame it dont work on vb3.6.8 as just tested it.
Hasann
03-30-2008, 03:54 PM
nice one m8 shame it dont work on vb3.6.8 as just tested it.
I think you should add on vb 3.6 series this code $latest_x_attachments to your FORUMHOME template under this code: $navbar than I hope it will works
lasto
03-30-2008, 04:20 PM
ive added the product file and added the text into the forumhome template.
$latest_x_attachments
Does not call anything in.I can see all the options in admincp but nothing on main page.
ChurchMedia
03-30-2008, 09:43 PM
Perfect! :)
romanticyao
03-30-2008, 11:15 PM
very nice, thanx! installed!
romanticyao
03-30-2008, 11:17 PM
can I set this to display on forumdisplay and have attachment show from each forum?
Barakat
03-31-2008, 01:22 AM
installed and great one ....... love it
Hasann
03-31-2008, 06:19 AM
ive added the product file and added the text into the forumhome template.
$latest_x_attachments
Does not call anything in.I can see all the options in admincp but nothing on main page.
I will try it to make new for 3.6.x series
Perfect! :)
you have before requested this hack tought :)
can I set this to display on forumdisplay and have attachment show from each forum?
okei
installed and great one ....... love it
don't forget clicking install button :)
jeddah_eyes
03-31-2008, 11:13 AM
great job
Installed
lasto
04-02-2008, 05:01 PM
any news on why this wont work on 3.6.8 as yet m8 ?
Pistils
04-08-2008, 08:38 PM
I have upgraded my board to version 3.69 and i can get it to work , but if i activate it, my board crawls, takes forever to load.. i mean, literally 5 minutes.. if i dwitch it off in settings, the page loads instantly, switch it on and it crawls..
i wonder if any knowledgeable peeps here could examine this xml and maybe see what its doing to cause this crawl of pageload? its a really nice mod and its a shame to haev it lurking behind teh scenes never to see daylight, well, nbot till vb goes 3.7 gold.
just thought id let anyone thats is script savvy that if you want this for 3.6.9 you can prob tweak the code causing the lag..
regards
Pistils
kruchczan
04-30-2008, 06:37 PM
please update gold version :)
Hasann
05-11-2008, 11:22 AM
can I set this to display on forumdisplay and have attachment show from each forum?
11.May.08 upgraded to v1.1
-New Release
Changes since v1.0
added show latest x attachments on forumdisplay and have attachment show from each forum
added one admincp option to enable forumdisplay latest x attachments showing
compatible with all styles
compatible with vBulletin version 3.7 Gold and v3.6.10
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
$navbar
And add below this code
<if condition="$vboptions['latest_attachments_forum']">
$latest_x_attachments
</if>
Fulla
05-11-2008, 11:50 AM
vBulletin version 3.7 Gold and v3.6.10
Sry if this is a silly question, but:
So its not compatible with 3.6.9 but is with 3.6.10? :/
Hasann
05-11-2008, 11:59 AM
Sry if this is a silly question, but:
So its not compatible with 3.6.9 but is with 3.6.10? :/
just try it I am not sure but I hope it will works
stef1372
05-12-2008, 01:46 PM
Great mod ! Thank's.
Just one question : How to select the forum where the thumb is coming from ?
(Sorry for my english... :p )
numsi
05-13-2008, 06:40 AM
Hi Hasann
I have installed your Mod on 3.7 Final.
But after the installation the Server Load increase very high.
I have disabled it for this Moment, to figure out whats going on.
Maybe you have some idea that will help to find the problem.
Thanks in advance.
sensimilla
05-13-2008, 09:22 AM
Somehow its not working for me. nothing is displayed.
edit: ok now i get
There are no attachments in this forum.
and there are many of them
Fulla
05-13-2008, 12:52 PM
Ok, I added/imported the plug-in, then replaced template code.
Can't see it appearing in the vb options thou.
Is there anything else I need to do?
Apologies I'm a little new to this.
EDIT: Pretty sure Ive followed the instructions to the letter.
If you add the plugin, is there anything else needed to make it appear in vb options?
Fulla
05-14-2008, 07:41 PM
Ok I've now installed 3.7.0.
Unfortunetly I'm still getting the same problem :-/
Plugin added, template changed, but doesn't appear in the options.
gwerzal
05-14-2008, 11:21 PM
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.
lazytown
05-15-2008, 08:07 AM
Great Mod.. Found a couple of bugs..
If you only want to display attachment thumbs in your forums and not forum home, there is no way to do it.. Once you set "Enable Latest Attachments FORUMHOME" to NO, the displays in the forums themselves will always show "There are no attachments in this forum" even if there are... Set it to yes, and they magically appear in each of your forums. Some logic in the plug-in is wrong there.
Another minor bug... "Latest Attachments Thumbnails Link" works exactly the opposite as it's supposed to.. Even the opposite of the description.. If you want thumbnails to link to the post, you have to select NO.
Feature Requests: It would be nice if we had the option for the filename link to the picture and the thumbnail link to the post (at the same time).
It would be REALLY nice if one plug-in grabbed x new pictures from user albums and x new pictures from the attachments and displayed them on the same line.
thanks
-vissa
davis31b
05-21-2008, 09:26 AM
Is there anyway we can get it to:
Exclude certain Usergroups (comma separated ID list)
as an option in the VBulletin settings?
sarum
05-21-2008, 02:36 PM
or how about a way to exclude certain types of files
i only want the latest pdf's to show, not pictures
readjono
05-22-2008, 02:31 PM
Why are they so big :(
mindhunter77
07-20-2008, 05:37 AM
The thumbs will display the same size as you display thumbs in your posts. It would be nice to somehow be able to adjust the size for the thumbnails though. As I for one use a rather large thumbnail for in post attachments so this mod won't work as even displaying one thumbs totally throws of the layout of my template.
b6gm6n
07-23-2008, 08:23 PM
Doesn't work, uninstalled.
corman420
07-26-2008, 02:35 PM
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 :)
lazytown
07-31-2008, 12:49 AM
Very very nice mod.. Would be great if we could exclude certain forums.
-vissa
CardMafia
07-31-2008, 01:50 AM
excellent! thank you
bago200
07-31-2008, 04:29 AM
I have a problem, when hitting the image file it is not showing the thread location of the image
EvilArcana
08-02-2008, 07:49 PM
I tried this but unfortunately I can't use it with the size of the thumbnails on my site...and I think my users would kill me if I shrunk the in-post thumbnails. if you were to add a thumbnail width option that would change my mind. I'll be watching this.
EvilArcana
08-02-2008, 09:08 PM
I edited the plugin code and added a width to the two img lines...worked fine...installed. Nice mod!
vitalie
08-15-2008, 06:44 PM
Good work! :up:
thaneck
08-18-2008, 05:18 PM
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?
GaiLoan
08-28-2008, 11:29 PM
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?
and can choose forum id to show the attachment on the next version ?
Adam21
08-30-2008, 09:45 AM
I edited the plugin code and added a width to the two img lines...worked fine...installed. Nice mod!
You could also edit the template.Works fine with that.:)
kottemann
08-30-2008, 02:50 PM
Teşekkür ederim
Butcher
09-11-2008, 09:40 PM
as another option how about when clicking the image you stay in the same window rather than in a new one?
RS25com
09-22-2008, 07:13 AM
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. :cool:
RS25com
09-22-2008, 07:20 AM
One more thing I noticed - it doesn't work on FORUMHOME - only works on FORUMDISPLAY. :(
Adam21
09-28-2008, 11:16 AM
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 <a href=\"" . $link . "\" target=\"_blank\">$thumbs[filename]</a>\n";
Replace the target=\"_blank\"> into target=\""\
chesterano
11-13-2008, 11:12 PM
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?
chesterano
11-18-2008, 08:37 PM
Or although options attachments from one forum
Please
futuredood
11-30-2008, 06:44 PM
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.
pnosko31
12-07-2008, 01:40 AM
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>
pnosko31
12-07-2008, 01:54 AM
k nvm that didnt work for me
NetRover
12-07-2008, 08:00 AM
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.
Filmkolik
12-29-2008, 03:57 AM
Abi eline emeğine saglık g?zel bi eklenti uzun zamandır arıyodum ?zellikle film siteleri i?in gayet hoş demo (http://filmkolik.net)
jbldesign
01-10-2009, 08:55 AM
If I only want the first uploaded attachment to show from each thread - how would I change the code.
Anybody knows, thx?
t.uzuner
01-16-2009, 08:34 PM
eklenti çok şahane fakat resme tıklayınca resimin olduğu konuyu açsa site içi kullanıcı sadakati daha artar sanki
mod is wonderfull but not show click to thread
Filmkolik
01-28-2009, 09:14 AM
eklenti ?ok şahane fakat resme tıklayınca resimin olduğu konuyu a?sa site i?i kullanıcı sadakati daha artar sanki
mod is wonderfull but not show click to thread
dostum zaten resme tıkladıgında konuya y?nleniyor site dışı ama xmlden target_blank kodunu kaldırdım ben site i?inde y?nleniyor gayet hoş oldu
can we have the option Display Latest Attachment from Certain Forum?
chesterano
02-26-2009, 04:10 PM
which temple edit to display Latest X Attachments to inside page thread context?
bisbos
03-02-2009, 04:53 PM
Display the latest attachments gallery on FORUMDISPLAY per forum? Yes No
is the update working on 3.8.1 ????
(i install it on 3.7 butt i make update my forum to 3.8.1 )
thanks
and execuse me for my english
pierians
03-16-2009, 10:05 PM
Does not work wright at 3.8.1
It doesn't show the thread and the user who posted the attachement.
Is it possible to update for 3.8.1?
Larz979
05-22-2009, 05:00 PM
Any progress on a 3.8.x version? Does anyone know if there is a gallery system for all attachments posted by users? how hard would it be to build one. This seems like a good start.
z0diac
06-04-2009, 02:38 AM
Works GREAT on my 3.7.4 - BUT... when you switch it to "random" it still says "Last x uploaded".
Maybe the text should say "x Random Uploaded Images" when it's set to random?
z0diac
06-04-2009, 02:48 AM
Works on vB 3.6.8 too (my other forum).
BUT... selecting Yes/No for "Latest Attachments Thumbnails Link" option doesn't do anything. It always displays the full image.
EDIT: IT'S BACKWARDS!
It says "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."
BUT actually - if you select YES it will NOT show the post - it will show the image. And if you select NO, it will link to the post.
:)
Awesome product though !
The only thing I'd like to see is:
- have the # times viewed counter go up when someone views it in the "latest attachments" display
- have mouse-over work the same, showing filename, times viewed, etc... the same as regular thumbs in posts
Good work!
Limode
06-23-2009, 02:31 PM
Hi,
How to clear files type like vBulletin style one.zip to vBulletin style one
Thanks
z0diac
06-26-2009, 09:41 PM
Great mod!
1 request:
Have it display one attachment from each of the last X threads.
ie: find the last X messages that have attachments, pick one out of each, and display them.
z0diac
08-25-2009, 03:58 PM
Working on 3.8x
kalisekj
08-26-2009, 08:26 PM
Can a coder help Please?
Here is How You Change the Thumbnail Sizes $thumbs[dateline] . "\" border=\"0\" style=\"vertical-align:middle\" alt=\"\" width=\"200\" height=\"250\"></a><br />\n";
Add in those alt parameters in both plugins for forum display and forumhome. Via Plugin Manager edit. Of Course change the numbers to your desired sizes.
2nd I also would like it to open the page in the same window instead of opening in a new window, I tried the change suggested in an earlier post but it just resulted in an error and the thumbnails stopped working.
Thank You!
animcentral
09-19-2009, 06:37 PM
hi hassan, is it possible to show attachment from specified forums?
i have some wallpapers/cover forums that user attach their wallpaper/cover there,so it's really great if i able to show only those forums attachments
monica
09-21-2009, 08:30 PM
Hi to anyone who can help.
I followed the instructions.
1. imported the xml, went through fine.
2. added the code to forumdisplay, went through fine
3. am able to see the latest x attachments option under vbulletin options.
but nothing is displaying even on forums that have attachments. e.g
http://forums.immigration.com/forumdisplay.php?f=235&styleid=2
thanks to help.
Monica
kalisekj
10-08-2009, 03:45 PM
Hi,
I truly need to exclude 1 forum from the ForumHome Listing of latest attachments since that forum is an adult forum and we do not want adult material showing to the kiddies.
Can Anyone Help?
angeljs
10-10-2009, 01:38 PM
I love this, it's just what I need. :D Is there a way to make the links open in the same window instead of a new window?
angeljs
10-10-2009, 04:41 PM
Is there a way to add this to vBadvanced?
JHarford
11-11-2009, 06:10 PM
This is a great plugin- It works fine in chrome but firefox will not display the thumbnails. Any advice would be appreciated.. thanks
Moondust
01-23-2010, 08:39 AM
i need this for VB 4.0.1 !!!!
:)
Rickpwns
01-28-2010, 10:57 PM
Its very nice very good job
Thanks!
Rickpwns
01-30-2010, 12:45 AM
Hi! I have a problem with the program put the module in vbulletin 3.8.4. but I do not display the photo; Nothing displays; I did everything right referred to the post sas.Don't I find edge; What is the problem;
Please help me!!
fridolin
04-04-2010, 01:22 PM
Hello Hasann,
Show random attachments in the child forum's header (attachments of this child forum only).
Is it possible?
Thank you.
Xtrigit
05-03-2010, 03:18 PM
How can I modify this so it shows latest x thread thumbnails ?
kalisekj
08-11-2010, 09:49 PM
Hasann is obviously no longer supporting this mod , sad because it could use some tweaking. I have sent him multiple Pm's with no responses but he does come on site and do things for VB 4.0
angeljs
10-13-2010, 03:55 PM
Hi, I absolutely love this mod and was wondering if there was a way to configure it so that only the first attachment from each post is shown, and not all of them? :D
kalisekj
11-02-2010, 03:59 PM
sorry the coder for this mod refuses to work on this mod :(
Sure would be awesome to choose what forums to exclude on forum home page. HINT Like Adult Forum Attachments don't belong on the home page.
lazytown
12-06-2010, 10:27 PM
Would be awesome if we could have this for vb 4.x
giotis9
12-09-2010, 06:02 PM
can you do it for 4.1 ?
thanks
bybart
01-30-2011, 09:30 PM
i need this for VB 4.0.1
galerio
04-03-2011, 08:50 PM
I want it for vb 4 too (also as a widget)
Kirschtorte
08-21-2011, 11:27 AM
I would be also very amused about this plugin for vB3.8.x with 2 new options:
1.) settings with per forum (forum ID)
2.) showing up the latest x attachments from the latest x threads (each first uploaded attachment)
Is Hasann still alive???
testerv
01-22-2012, 03:07 AM
Anyone using this mod and willing to show us it in action?
lazytown
02-02-2012, 07:03 PM
This really was an incredible mod.. I would love to see it for vb4. The awesome thing is it would show attachments above each forum (for that forum) and if users clicked on them, it would take them to the post that had the attachment.. So each forum would have pictures above it that related to that subject. My members LOVED it.
lazytown
02-02-2012, 07:20 PM
Has anyone actually TRIED running this on 4.1.10? You would probably have to change the version check, but I wonder how much of it is functional.
t.uzuner
12-16-2013, 04:51 AM
4.2.0 a göre olanı bekliyoruz
ozzy47
12-16-2013, 04:56 AM
4.2.0 a g?re olanı bekliyoruz
Please keep all posts in English.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.