vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Files List v3.01 (https://vborg.vbsupport.ru/showthread.php?t=64734)

DWard 05-03-2004 10:00 PM

Files List v3.01
 
Hey,

VERSION 3.01
[25/05/2004]

-----------------------------------------------
https://vborg.vbsupport.ru/external/2004/05/2.gif
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 :)

FleaBag 05-04-2004 05:50 PM

Excellent, thanks mate. :)

Vivi Ornitier 05-04-2004 06:36 PM

is it possile to add who posted the attachment on there?

DWard 05-04-2004 06:50 PM

I will look into it as a new function, then I will post the next version in about 2 weeks time

Oblivion Knight 05-04-2004 07:06 PM

Any ideas on how this will affect server load?
There was a hack similar to this on vB2 that brought the server speed down to a snail's pace, and some hosts even banned the hack from being used.

DWard 05-04-2004 07:08 PM

Its been fine for me, just 2 simple SQL queries operate on each page load, my web host hasnt mentioned any server load problem at all

PixelFx 05-04-2004 07:38 PM

is it possible with this hack to upload attachments with out having to use a post somewhere first, then have it goto the catitory you choose above? Also with usergroup restrictions. Download counter etc?

I've been looking for something like your hack with the above for a while now. thanks for the hard work.

DWard 05-04-2004 07:55 PM

Download counter is on it already where it shows how many views (downloads)...

Also the code for blocking certain usergroups is in the fileslist.php file, you just need to uncomment the code and enter in the usergroup ids you wish to deny access to.

The upload thing I will take down as another sugesstion for the next version in 2 weeks

Ryan Ashbrook 05-04-2004 11:19 PM

Great mod. I'm definately installing. :)

Aurous 05-05-2004 12:33 AM

Great work on Scrubs hack. Any chance of adding a jumpbox to view attachments from particular forums?

Boofo 05-05-2004 05:38 AM

Looks good! I will definately install this when you get everything done. ;)

DWard 05-05-2004 07:10 AM

Quote:

Originally Posted by Aurous
Great work on Scrubs hack. Any chance of adding a jumpbox to view attachments from particular forums?

There is a way I could do it, I will consider it, however it will only work on the new attachments because it will require another field on the attacment database of the location, because at the moment, as far as I am aware, there is no entry for the forum location.

Boofo 05-05-2004 07:16 AM

Take a look at my forumdisplay stats hack. I pull out the attachments for each forum with the query in there. ;)

DWard 05-05-2004 07:19 AM

I will give it some thought, just keep looking

Boofo 05-05-2004 07:23 AM

Isn't that all you are wanting to do, list them on a per forum basis?

DWard 05-05-2004 07:27 AM

Aurous wants me to display attachments from different forums, so they want to be able to select the forum from the list and display the attachments in that forum

Phalynx 05-05-2004 07:28 AM

Nice Hack. Does is take care of permissions?

Boofo 05-05-2004 07:29 AM

Quote:

Originally Posted by DWard
Aurous wants me to display attachments from different forums, so they want to be able to select the forum from the list and display the attachments in that forum

That should be easy to adjust the query in my hack for. ;)

DWard 05-05-2004 07:55 AM

Quote:

Originally Posted by Phalynx
Nice Hack. Does is take care of permissions?

Do you mean blocking out certain usergroups of seeing the list... yes.
Also, when you try to view an attachment, the standard usergroup permissions take hold.

goyo 05-05-2004 09:24 AM

It's EXTREMELY slow on a dedicated Dual Xeon.... :ermm:
Maybe it's because we have 180.000 attachments...

DWard 05-05-2004 09:57 AM

Yer thats probably why. As I say, it only calls 2 queries, works fine with my attachments.

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

Just a note to all, the example page for the hack may have a few errors here and there, as I am trying to add the new suggested features.

Pitman 05-05-2004 01:45 PM

What about a way to specify what types of files to list (such as images) and putting them in a table with columns with a preview of the image?

ChrisSy 05-05-2004 01:49 PM

does this work if your attachments are in the filesystem rather than the database?

DWard 05-05-2004 02:43 PM

Quote:

Originally Posted by ChrisSy
does this work if your attachments are in the filesystem rather than the database?

Yes, no matter where your attachments are, it will work.

DWard 05-05-2004 02:44 PM

Quote:

Originally Posted by Pitman
What about a way to specify what types of files to list (such as images) and putting them in a table with columns with a preview of the image?

Image thumbnails are another function to be added to the suggesstions list for the next version.

Aurous 05-05-2004 04:14 PM

Dward, any luck with Boofo's suggestion?

DWard 05-05-2004 04:17 PM

The 'who posted attachment' suggestion? not yet

DWard 05-05-2004 04:21 PM

I havnt yet begun on the other sugesstions.

This is what people have suggested so far:
  • Sort by category, AND BY FORUM
  • Show the user who posted the attachment
  • Upload files in the file viewer
  • Show thumbnails of images

Boofo 05-05-2004 04:22 PM

I think he means the attachments by forum idea. ;)

DWard 05-05-2004 04:26 PM

OK i will work on that soon

Boofo 05-05-2004 05:19 PM

Quote:

Originally Posted by DWard
OK i will work on that soon

If you need any help, pm me. ;)

SmartGnome 05-05-2004 05:39 PM

Code:

Database error in vBulletin 3.0.1:

Invalid SQL:
        SELECT COUNT(*) AS count
        FROM vb3_ attachment

mysql error: Table 'adfs_vbgold.vb3_' doesn't exist

mysql error number: 1146

Date: Wednesday 05th of May 2004 08:37:33 PM
Script: http://anita.xxxx.nl/forum/fileslist.php?
Referer: http://anita.xxxx.nl/forum/
Username: SmartGnome
IP Address:

The table attachment do exist in my database, so I'm stucked :disappointed:

Greetz

Boofo 05-05-2004 05:48 PM

Quote:

Originally Posted by SmartGnome
Code:

Database error in vBulletin 3.0.1:

Invalid SQL:
        SELECT COUNT(*) AS count
        FROM vb3_ attachment

mysql error: Table 'adfs_vbgold.vb3_' doesn't exist

mysql error number: 1146

Date: Wednesday 05th of May 2004 08:37:33 PM
Script: http://anita.xxxx.nl/forum/fileslist.php?
Referer: http://anita.xxxx.nl/forum/
Username: SmartGnome
IP Address:

The table attachment do exist in my database, so I'm stucked :disappointed:

Greetz

In the filelist.php, you need to make this:

PHP Code:

FROM ".TABLE_PREFIX." attachment 

into this for each occurrance:

PHP Code:

FROM ".TABLE_PREFIX."attachment 


SmartGnome 05-05-2004 06:16 PM

Thnx Boofo,

But now I get this one :disappointed:

Code:

Database error in vBulletin 3.0.1:

Invalid SQL: SELECT attachmentid, filename, filesize, counter, dateline, postid FROM attachment ORDER BY 'filename' 'asc' LIMIT 0, 30
mysql error: Table 'adfs_vbgold.attachment' doesn't exist

mysql error number: 1146

Date: Wednesday 05th of May 2004 09:13:57 PM
Script: http://anita.adfs.nl/forum/fileslist.php?
Referer:
Username: SmartGnome
IP Address: 62.100.24.35


Aurous 05-05-2004 06:22 PM

Quote:

Originally Posted by Boofo
I think he means the attachments by forum idea. ;)

correct :)

Boofo, can you please look at this hack and maybe try to merge your hack with it?

Boofo 05-05-2004 06:29 PM

Quote:

Originally Posted by SmartGnome
Thnx Boofo,

But now I get this one :disappointed:

Code:

Database error in vBulletin 3.0.1:

Invalid SQL: SELECT attachmentid, filename, filesize, counter, dateline, postid FROM attachment ORDER BY 'filename' 'asc' LIMIT 0, 30
mysql error: Table 'adfs_vbgold.attachment' doesn't exist

mysql error number: 1146

Date: Wednesday 05th of May 2004 09:13:57 PM
Script: http://anita.adfs.nl/forum/fileslist.php?
Referer:
Username: SmartGnome
IP Address: 62.100.24.35


Use this filelist.php. It is all fixed for you. ;)

SmartGnome 05-05-2004 06:38 PM

Boofo you're the greatest.. :applaude

Now it's working fine, will have a look into the file tomorrow to see what was wrong.

Many Tnx

Ad

Pitman 05-05-2004 06:49 PM

Quote:

Originally Posted by DWard
I havnt yet begun on the other sugesstions.

This is what people have suggested so far:
  • Sort by category, AND BY FORUM
  • Show the user who posted the attachment
  • Upload files in the file viewer
  • Show thumbnails of images

What about arranging the files in columns? :)

DWard 05-05-2004 07:35 PM

Quote:

Originally Posted by Pitman
What about arranging the files in columns? :)

The whole idea of Files List is to keep the attachment look exactly as it is in posts, therefore looks like a standard vBulletin feature.

DWard 05-05-2004 07:58 PM

I noticed on a few fileslist.php pages of yours, the last link on the page is on two lines.

Just open the pagenav template under Page Navigation in the templates list and do this:

find:
Code:

<if condition="$show['last']"><td class="alt1"
after add this:
Code:

nowrap="nowrap"
Then your done, doesnt go onto two lines then, I think its fine in IE anyway, but not in Mozilla


All times are GMT. The time now is 01:40 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.01424 seconds
  • Memory Usage 1,827KB
  • 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
  • (6)bbcode_code_printable
  • (2)bbcode_php_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