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.


All times are GMT. The time now is 03:32 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.01191 seconds
  • Memory Usage 1,740KB
  • 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
  • (1)bbcode_code_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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