Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.0 > vBulletin 3.0 Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Files List v3.01 Details »»
Files List v3.01
Version: 1.00, by DWard DWard is offline
Developer Last Online: Mar 2018 Show Printable Version Email this Page

Version: 3.0.0 Rating:
Released: 05-03-2004 Last Update: Never Installs: 34
 
No support by the author.

Hey,

VERSION 3.01
[25/05/2004]

-----------------------------------------------

This Hack is released under an EverythingvB.com FullAttribution-LimitedDerivs-LimitedTranslation License
-----------------------------------------------

This new hack gives you the function of grouping all your attachments in one single list, divided into pages and with the option of viewing files by category, eg Video Clips, Archives and Excecutables etc.

All installation instructions are provided in the install file, and modification details are in the php file included in the zip. All images used for some files are also attached.

Any problems, queries or errors, please report here or PM me so I can sort them out as soon as possible, to ensure this hack is to your standards.

Current key functions:


  • Lists all attachments and spans over pages. You can specifiy the amount of attachments per page.
  • Specify usergroups who you do not wish to view the attachments.
  • Set out the same as attachments in posts, with icon, size and views.
  • Categories, so you can quickly view one type of file.
  • Display username.
  • Sort by username or filename.
  • If enabled, images category shows thumbnails.
  • Table row colours altered to make it easier to read username.
  • Shows forum name and a link to the parent thread.
  • Ability to sort by forum name.
  • Set the amount of files to view per page.
An example of the hack can be found here:
http://www.collegepranks.co.uk/forums/fileslist.php

Note to current users about upgrading:
  • Replace your fileslist.php file with the new one.
  • Replace the attachment_view and attachment_view_bits with the ones in the install file.
FOR THE BEST AND QUICKEST SUPPORT TIME, PLEASE POST HERE.

PLEASE CLICK INSTALL

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #92  
Old 05-10-2004, 10:32 AM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I've also fixed the problem with unregistered users being able to view the files listing. On my board I have it set up the same way as the member's list. If they can view the member's list (which unregistered users can't) then they can view the files listing.

In fileslist.php

Find:


PHP Code:
// EDITABLE ///////////////////////////////////////////////////////////////
// Change the the number below to the amount of files you wish to display per page
//
$perpage '30';
//
// End of files per page script
// EDITABLE /////////////////////////////////////////////////////////////// 
BELOW it add:


PHP Code:
// permissions check
 
if (!($permissions['forumpermissions'] & CANVIEW) OR !($permissions['genericpermissions'] & CANVIEWMEMBERS))
 {
      
print_no_permission();
 } 
Reply With Quote
  #93  
Old 05-10-2004, 10:46 AM
DWard's Avatar
DWard DWard is offline
 
Join Date: Mar 2004
Location: Peterborough, UK
Posts: 320
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yer dont make much difference for me, Boofo. The permission thing is quite good, even though guests are not allowed to view thumbs anway.

Need some feedback from current users.
Reply With Quote
  #94  
Old 05-10-2004, 10:54 AM
DWard's Avatar
DWard DWard is offline
 
Join Date: Mar 2004
Location: Peterborough, UK
Posts: 320
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Unless anybody is having trouble, please do not use the template changes posted as they change so often and newer ones may have functions missing.

Please wait for a day when v2.02 is realeased.
Reply With Quote
  #95  
Old 05-10-2004, 11:47 AM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The code I posted above doesn't allow them to view the file listing at all unless they are registered. That is way better than not being able to view just the thumbnails.

And if you don't add the $mode == image to the second part of that line, you get it trying to make thumbnails out of php and zip files in the allfiles area.

I hope in the next version you get the queries finally straightened around. They are a mess.
Reply With Quote
  #96  
Old 05-10-2004, 11:59 AM
SmartGnome's Avatar
SmartGnome SmartGnome is offline
 
Join Date: Mar 2003
Location: Amsterdam
Posts: 128
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Still no thumbs at my site :tired:

@Boofo, also your mod give me no thumbs

@Dan, Yes I tried ctrl+F5. What I don't understand is that you can see them and I not <gggrrrr>
Reply With Quote
  #97  
Old 05-10-2004, 12:03 PM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by SmartGnome
Still no thumbs at my site :tired:

@Boofo, also your mod give me no thumbs

@Dan, Yes I tried ctrl+F5. What I don't understand is that you can see them and I not <gggrrrr>
You would only see them when you pick the Image listing with my mod. Do you have thumbnails everywhere else on your board?

Also, if you use a Firewall, try disabling that and see if you can see them then.
Reply With Quote
  #98  
Old 05-10-2004, 12:49 PM
DWard's Avatar
DWard DWard is offline
 
Join Date: Mar 2004
Location: Peterborough, UK
Posts: 320
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Let me just add: Im confused!
Reply With Quote
  #99  
Old 05-10-2004, 06:07 PM
SmartGnome's Avatar
SmartGnome SmartGnome is offline
 
Join Date: Mar 2003
Location: Amsterdam
Posts: 128
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

@Boofo

Quote:
You would only see them when you pick the Image listing with my mod. Do you have thumbnails everywhere else on your board?
Yes, thumbnails in the postings is working ok.

Quote:
Also, if you use a Firewall, try disabling that and see if you can see them then.
Switch on or off make no difference.

@Dan
Quote:
Let me just add: Im confused!
Don't hurry, I'm confused too :laugh The users can see at least the filenames and the usernames and if they click the filename they will see the attachment :tu
Reply With Quote
  #100  
Old 05-10-2004, 10:50 PM
Natch's Avatar
Natch Natch is offline
 
Join Date: Nov 2002
Location: Australia
Posts: 851
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Boofo
Ok I fixed it for you again. The third line is what had to be changed.

HTML Code:
<tr>
<td class="alt1" width="100%" align="center">
<div class="smallfont" style="text-align: left;">$attach[username]  <if condition="$mode == images and $vboptions[attachthumbs] == 1 or $mode == images and $vboptions[attachthumbs] == 2">
<a href="attachment.php?$session[sessionurl]attachmentid=$attach[attachmentid]" target="_blank"><img class="thumbnail" src="attachment.php?$session[sessionurl]attachmentid=$attach[attachmentid]&amp;stc=1&amp;thumb=1" border="0" alt="Click image for larger version
Name: $attach[filename]
Views: $attach[counter]
Size: $attach[filesize]" /></a>
  <else />
<img class="inlineimg" src="$stylevar[imgdir_attach]/$attach[attachmentextension].gif" alt="<phrase 1="$attachment[attachmentextension]">$vbphrase[file_type_x]</phrase>" width="16" height="16" border="0" style="vertical-align:baseline" />
<a href="attachment.php?attachmentid=$attach[attachmentid]" target="_blank">$attach[filename]</a> ($attach[filesize], $attach[counter] views)</div>
  </if>
</td>
</tr>
Works for me mate only on the "Images" mode as said in the spec - but good work

Thanks as well DWard - looking forward to v2.01

Question: how difficult would it be to have the list of attachments in rows as well as columns ... like a gallery ...

Currently (for any resolutions higher than 800X600, there is a whole lotta wasted screen real-estate ...
Reply With Quote
  #101  
Old 05-11-2004, 02:19 AM
M.C. M.C. is offline
 
Join Date: Jan 2002
Posts: 463
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

perfect!

Just ONE addon will be nice to see:

- add link to thred or post where is that file attached


question for tumbs addon:

why some pictures are not shown? but they OK when i click on them... the size is not so big actually....
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 01:21 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.07556 seconds
  • Memory Usage 2,323KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_html
  • (2)bbcode_php
  • (5)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete