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)

Hasann 03-29-2008 10:00 PM

Latest X Attachments on FORUMHOME and FORUMDISPLAY
 
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

HTML Code:

$navbar
And add below this code

HTML 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

HTML Code:

$navbar
And add below this code

HTML 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

Quote:

Originally Posted by lasto (Post 1478407)
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
HTML Code:

$latest_x_attachments
to your FORUMHOME template under this code:
HTML 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

Quote:

Originally Posted by lasto (Post 1478431)
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
Quote:

Originally Posted by ChurchMedia (Post 1478612)
Perfect! :)

you have before requested this hack tought :)
Quote:

Originally Posted by romanticyao (Post 1478669)
can I set this to display on forumdisplay and have attachment show from each forum?

okei
Quote:

Originally Posted by Barakat (Post 1478754)
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

Quote:

Originally Posted by romanticyao (Post 1478669)
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

HTML Code:

$navbar
And add below this code

HTML Code:

<if condition="$vboptions['latest_attachments_forum']">
$latest_x_attachments
</if>


Fulla 05-11-2008 11:50 AM

Quote:

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

Quote:

Originally Posted by Fulla (Post 1515847)
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
Quote:

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

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?

and can choose forum id to show the attachment on the next version ?

Adam21 08-30-2008 09:45 AM

Quote:

Originally Posted by EvilArcana (Post 1590147)
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


All times are GMT. The time now is 06:42 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.01406 seconds
  • Memory Usage 1,829KB
  • 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
  • (8)bbcode_html_printable
  • (11)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