vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.7 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=228)
-   -   Miscellaneous Hacks - Latest X Attachments on FORUMHOME and FORUMDISPLAY (https://vborg.vbsupport.ru/showthread.php?t=174592)

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

Quote:

Originally Posted by gwerzal (Post 1519970)
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

Quote:

Originally Posted by Butcher (Post 1620154)
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=\""\

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

Quote:

Originally Posted by corman420 (Post 1584664)
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

Quote:

Originally Posted by chesterano (Post 1665220)
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

Quote:

Originally Posted by thaneck (Post 1601611)
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

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

Quote:

Originally Posted by t.uzuner (Post 1715068)
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 01-30-2009 03:42 PM

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

Quote:

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
Code:

$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/forumd...=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


All times are GMT. The time now is 02:28 AM.

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.01461 seconds
  • Memory Usage 1,819KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (7)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete