PDA

View Full Version : Miscellaneous Hacks - Latest X Attachments on FORUMHOME and FORUMDISPLAY


Hasann
30 Mar 2008, 17:03
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
30 Mar 2008, 17:30
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
30 Mar 2008, 17:50
nice one m8 shame it dont work on vb3.6.8 as just tested it.

Hasann
30 Mar 2008, 17:54
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
30 Mar 2008, 18:20
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
30 Mar 2008, 23:43
Perfect! :)

romanticyao
31 Mar 2008, 01:15
very nice, thanx! installed!

romanticyao
31 Mar 2008, 01:17
can I set this to display on forumdisplay and have attachment show from each forum?

Barakat
31 Mar 2008, 03:22
installed and great one ....... love it

Hasann
31 Mar 2008, 08:19
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
31 Mar 2008, 13:13
great job

Installed

lasto
02 Apr 2008, 19:01
any news on why this wont work on 3.6.8 as yet m8 ?

Pistils
08 Apr 2008, 22:38
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
30 Apr 2008, 20:37
please update gold version :)

Hasann
11 May 2008, 13:22
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
11 May 2008, 13:50
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
11 May 2008, 13:59
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
12 May 2008, 15:46
Great mod ! Thank's.

Just one question : How to select the forum where the thumb is coming from ?

(Sorry for my english... :p )

numsi
13 May 2008, 08:40
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
13 May 2008, 11:22
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
13 May 2008, 14:52
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
14 May 2008, 21:41
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
15 May 2008, 01:21
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
15 May 2008, 10:07
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
21 May 2008, 11:26
Is there anyway we can get it to:

Exclude certain Usergroups (comma separated ID list)

as an option in the VBulletin settings?

sarum
21 May 2008, 16:36
or how about a way to exclude certain types of files
i only want the latest pdf's to show, not pictures

readjono
22 May 2008, 16:31
Why are they so big :(

mindhunter77
20 Jul 2008, 07:37
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
23 Jul 2008, 22:23
Doesn't work, uninstalled.

corman420
26 Jul 2008, 16:35
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
31 Jul 2008, 02:49
Very very nice mod.. Would be great if we could exclude certain forums.

-vissa

CardMafia
31 Jul 2008, 03:50
excellent! thank you

bago200
31 Jul 2008, 06:29
I have a problem, when hitting the image file it is not showing the thread location of the image

EvilArcana
02 Aug 2008, 21:49
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
02 Aug 2008, 23:08
I edited the plugin code and added a width to the two img lines...worked fine...installed. Nice mod!

vitalie
15 Aug 2008, 20:44
Good work! :up:

thaneck
18 Aug 2008, 19:18
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
29 Aug 2008, 01:29
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
30 Aug 2008, 11:45
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
30 Aug 2008, 16:50
Teşekkür ederim

Butcher
11 Sep 2008, 23:40
as another option how about when clicking the image you stay in the same window rather than in a new one?

RS25com
22 Sep 2008, 09:13
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
22 Sep 2008, 09:20
One more thing I noticed - it doesn't work on FORUMHOME - only works on FORUMDISPLAY. :(

Adam21
28 Sep 2008, 13:16
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
14 Nov 2008, 01:12
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
18 Nov 2008, 22:37
Or although options attachments from one forum
Please

futuredood
30 Nov 2008, 20:44
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
07 Dec 2008, 03:40
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
07 Dec 2008, 03:54
k nvm that didnt work for me

NetRover
07 Dec 2008, 10:00
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
29 Dec 2008, 05:57
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
10 Jan 2009, 10:55
If I only want the first uploaded attachment to show from each thread - how would I change the code.

Anybody knows, thx?

t.uzuner
16 Jan 2009, 22:34
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
28 Jan 2009, 11:14
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

Icy
30 Jan 2009, 17:42
can we have the option Display Latest Attachment from Certain Forum?

chesterano
26 Feb 2009, 18:10
which temple edit to display Latest X Attachments to inside page thread context?

bisbos
02 Mar 2009, 18:53
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
17 Mar 2009, 00:05
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
22 May 2009, 19:00
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
04 Jun 2009, 04:38
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
04 Jun 2009, 04:48
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
23 Jun 2009, 16:31
Hi,
How to clear files type like vBulletin style one.zip to vBulletin style one
Thanks

z0diac
26 Jun 2009, 23:41
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
25 Aug 2009, 17:58
Working on 3.8x

kalisekj
26 Aug 2009, 22:26
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
19 Sep 2009, 20:37
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
21 Sep 2009, 22:30
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
08 Oct 2009, 17:45
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 Oct 2009, 15:38
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 Oct 2009, 18:41
Is there a way to add this to vBadvanced?

JHarford
11 Nov 2009, 20:10
This is a great plugin- It works fine in chrome but firefox will not display the thumbnails. Any advice would be appreciated.. thanks

Moondust
23 Jan 2010, 10:39
i need this for VB 4.0.1 !!!!



:)

Rickpwns
29 Jan 2010, 00:57
Its very nice very good job
Thanks!

Rickpwns
30 Jan 2010, 02:45
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 Apr 2010, 15:22
Hello Hasann,
Show random attachments in the child forum's header (attachments of this child forum only).
Is it possible?
Thank you.

Xtrigit
03 May 2010, 17:18
How can I modify this so it shows latest x thread thumbnails ?

kalisekj
11 Aug 2010, 23:49
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
13 Oct 2010, 17:55
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
02 Nov 2010, 17:59
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
07 Dec 2010, 00:27
Would be awesome if we could have this for vb 4.x

giotis9
09 Dec 2010, 20:02
can you do it for 4.1 ?

thanks

bybart
30 Jan 2011, 23:30
i need this for VB 4.0.1

galerio
03 Apr 2011, 22:50
I want it for vb 4 too (also as a widget)

Kirschtorte
21 Aug 2011, 13:27
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
22 Jan 2012, 04:07
Anyone using this mod and willing to show us it in action?

lazytown
02 Feb 2012, 20:03
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 Feb 2012, 20:20
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
16 Dec 2013, 05:51
4.2.0 a göre olanı bekliyoruz

ozzy47
16 Dec 2013, 05:56
4.2.0 a göre olanı bekliyoruz

Please keep all posts in English.