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 06-19-2004 05:20 PM

ChuanSE, could you click install plese?!?!? :):)

ChuanSE 06-20-2004 05:40 AM

OMG, mate, I always do it, seems I have forgotten it this time :/

[high]* ChuanSE is sorry
[/high]
[high]* ChuanSE clicks install :D[/high]

ChuanSE 06-20-2004 05:42 AM

Quote:

Originally Posted by Natch
Any chance we can have it so that it only shows in the list the attachments you have permissions for - I know you say it shows the no_permission thing, but this is not ideal....

This is indeed a very important issue...
Any updates yet?

Smitty 06-20-2004 05:56 AM

Quote:

Originally Posted by Natch
Any chance we can have it so that it only shows in the list the attachments you have permissions for - I know you say it shows the no_permission thing, but this is not ideal....

Actually, it's what I want. I want people to be able to see all the file names so they 'know what they're missing'. They can see the filename but permissions keep them from actually downloading a file unless they have the appropriate permissions. So I guess it really depends upon what each person wants in their forum.

ChuanSE 06-20-2004 06:02 AM

Then their should be a option to choose hiding or showing.
I have my reason not to show files to the public ;-)

Let's say i attach a doc in the admin (hidden) forum, it will appear in the list. Maybe the file can't be accessed, but the title alone can do some harm in some cases (imho)

bhutz 06-20-2004 01:53 PM

This looks good and installed ok (I think/hope) :rolleyes:

In the install file it says...

Code:

## You must add the following TWO styles to your desired style:                              ##
## attachment_view, attachment_view_bits

I am guessing this means go to style manager and choose add new template so it appears like in the attachment



I tried add new child style but something just didn't seem right...gonna go and do some tests in my brand new forum with a file list, although to do this I think I'll need some attachments :o

Pitman 06-20-2004 10:17 PM

I have modified the templates a bit and I was wondering if there was anyway to limit the attatchments to only get them from one forum? The forumid that I would like to pull them from is "26" if anyone can help me it would be greatly appreciated. :)

I have attached a screen shot of what I have right now, I would like to remove the "Forum:" box if at all possible ;)

Pitman 06-21-2004 02:14 AM

A search feature would be great for this... it could search the filenames and display the ones that match. :)

DWard 06-21-2004 04:34 AM

Some really kool suggestions, sorry I havn't replied much, but I have been snowed under with work lately, but in a week or so my priority can rest on this for a bit :)

Mijae 06-21-2004 10:50 PM

Code:

Database error in vBulletin 3.0.0:

Invalid SQL:
        SELECT * FROM attachment AS attachment
        LEFT JOIN user AS user ON (user.userid = attachment.userid)
        INNER JOIN post AS post ON (attachment.postid = post.postid)
        INNER JOIN thread AS thread ON (post.threadid = thread.threadid)
        INNER JOIN forum AS forum ON (thread.forumid = forum.forumid)
        ORDER BY username ASC
        LIMIT 0, 30
mysql error: Column: 'username' in order clause is ambiguous

mysql error number: 1052

Date: Monday 21st of June 2004 11:57:49 AM
Script: http://www.blank.com/forum/fileslist...name&pageamt=2
Referer:
Username: kannsational
IP Address: 172.196.14.15

Whazzat? I am using the first version of the hack.

Pitman 06-21-2004 11:59 PM

Quote:

Originally Posted by Pitman
I have modified the templates a bit and I was wondering if there was anyway to limit the attatchments to only get them from one forum? The forumid that I would like to pull them from is "26" if anyone can help me it would be greatly appreciated. :)

I have attached a screen shot of what I have right now, I would like to remove the "Forum:" box if at all possible ;)

Anybody gonna help me out with that? :(

bhutz 06-22-2004 06:41 AM

Quote:

Originally Posted by Pitman
Anybody gonna help me out with that? :(

From what I am guessing to remove the forum box you would have to edit something in the 'attachment_view_bits' template as this is what I understand determines the layout of your output. Post 'attachment_view_bits' template here maybe? No gurantees I will be able to do it but worth a shot.

Also I think I would need to some how limit the attachments where the attachments are coming from, any ideas anyone?

Pitman 06-22-2004 03:01 PM

Well, I can get it to only display the attachments from a certain forum, but it doesn't count right. It will only take out the ones that's not in that forum and display what it has left out of the number that was already pulled. I can't seem to get the counting to work with a specific forum :(

bhutz 06-22-2004 05:01 PM

Quote:

Originally Posted by Pitman
Well, I can get it to only display the attachments from a certain forum, but it doesn't count right. It will only take out the ones that's not in that forum and display what it has left out of the number that was already pulled. I can't seem to get the counting to work with a specific forum :(

What did you do to get it to only show certain files from a certain forum? Have you made it so you can select multiple forums?

Pitman 06-22-2004 05:06 PM

You can block what it displays, but the numbering and all will be messed up the way that I did it, it counts how many attatchments it's going to display first and splits up the pages by that count. I can't figure out how to make it only count from a specific forum, mainly because the attachments doesn't store what forum they are from and I don't know much about PHP and SQL and stuff.

DWard 06-23-2004 04:32 AM

I will look into it

Mijae 06-23-2004 08:55 PM

Anyone want to help me?

bhutz 06-23-2004 08:56 PM

try user.username

Vivi Ornitier 06-24-2004 05:15 AM

is it possible to sort the attachments by date? lik the most recent tot he oldest and vice versa?

DWard 06-24-2004 07:53 AM

Yes, it's not on the current version, but will be on the next.

Mijae 06-29-2004 01:40 AM

????

Natch 06-29-2004 01:49 AM

Quote:

Originally Posted by Mijae
????

Upgrade - or listen to those who offer assistance ...

chenge:
Code:

ORDER BY username ASC
to:
Code:

ORDER BY user.username ASC
Or use the latest version of the script

DWard 07-05-2004 03:06 PM

OK, any modifications you would like for the next version, please mention below. There are a few bugs in the code, but very few as far as I am aware. There will be an admin control panel area for the next version, which will give you more flexibility.

Cheers,
Dan.

Pitman 07-05-2004 05:13 PM

Quote:

Originally Posted by DWard
OK, any modifications you would like for the next version, please mention below. There are a few bugs in the code, but very few as far as I am aware. There will be an admin control panel area for the next version, which will give you more flexibility.

Cheers,
Dan.

Ability to pull attachments from a specific forum

DWard 07-29-2004 07:30 PM

Quote:

Originally Posted by Pitman
Ability to pull attachments from a specific forum

Working on it :)

Functions to expect from new version:
Ability to retireve attachments from a specific forum
Non-retrieval of private attachments

alapo 08-03-2004 04:13 AM

Hey DWard. Your script would be PERFECT for those looking for a vbulletin gallery. It just needs two little features (one of which I cant do). The ability to just list certain users photos with thumbnails. With this feature, your program would have "personal galleries".

The second would be maybe an optional skin which has like 5 thumbnails horizontally by 5 vertically and lists info below. Would be great if you could try on the sort feature, as listing it in "gallery style" is something I might be able to do.

DWard 08-03-2004 05:43 AM

Quote:

Originally Posted by alapo
Hey DWard. Your script would be PERFECT for those looking for a vbulletin gallery. It just needs two little features (one of which I cant do). The ability to just list certain users photos with thumbnails. With this feature, your program would have "personal galleries".

The second would be maybe an optional skin which has like 5 thumbnails horizontally by 5 vertically and lists info below. Would be great if you could try on the sort feature, as listing it in "gallery style" is something I might be able to do.

Theres some things I would need to do.

I would need to give users the ability to upload images to the gallery, which may be difficult but ive not looked. Then I will need to be able to list all users of the forum so you can click on one and see the pictures.

I can see it working, but theres a few things I will need to learn about before I can do it. But if I can do it, that would be the first ever vB photo album, as most of the others just have compatability with vb.

Theater 08-03-2004 08:40 PM

Is there a way to limit access to the mod itself by usergroup? If for example you only wanted paid subscription members to have access since they'll obviously consume more bandwidth with the easier access of files. I don't have time to read word for word all 13 pages of posts, but saw "file storage" mentioned a few times. I use this, so would I still be able to use this mod? Thank you! :)

DWard 08-04-2004 08:57 AM

Watch out for the new version out soon. I will try to include an admin panel for the next version.

Smitty 08-06-2004 03:55 PM

I hesitate to add this because I'm very happy with it all in all. I personally use it a lot and I know people coming to my site do as well. Before this 'hack' I made lists in the admincp and copied the source, edited it, added links and ended up with a static html file I linked to to show people what attachments there are. So - this has been very nice for me.

Using it a lot, I find the link to 'Parent Thread' in the listing would be much more convenient if it was a link to the actual post the attachment is in rather than to the thread. Some of the threads in my forums are rather long so finding the post with the attachment can take a minute or so of going through several pages or more.

Oh - and for the admin to be able to 'omit' specific forums from the listing.

Sadie Frost 08-11-2004 05:42 PM

Quote:

Originally Posted by Smitty
I hesitate to add this because I'm very happy with it all in all. I personally use it a lot and I know people coming to my site do as well. Before this 'hack' I made lists in the admincp and copied the source, edited it, added links and ended up with a static html file I linked to to show people what attachments there are. So - this has been very nice for me.

Using it a lot, I find the link to 'Parent Thread' in the listing would be much more convenient if it was a link to the actual post the attachment is in rather than to the thread. Some of the threads in my forums are rather long so finding the post with the attachment can take a minute or so of going through several pages or more.

Oh - and for the admin to be able to 'omit' specific forums from the listing.

I second that - making only the attachments you have permission to view show up in the list. :)

CarCdr 08-11-2004 06:20 PM

Quote:

Originally Posted by Sadie Frost
I second that - making only the attachments you have permission to view show up in the list. :)

https://vborg.vbsupport.ru/showthread.php?t=66800

DWard and I should probably get together and merge these two hacks. DWard -- PM me if that strikes you as a good idea.

Smitty 08-11-2004 09:42 PM

Definitely. No doubt about it. Combine them. Now I'm excited!

NietzscheKid 08-11-2004 09:50 PM

Quote:

Originally Posted by Smitty
Definitely. No doubt about it. Combine them. Now I'm excited!

Me too!! This would indeed be amazing! :)

CarCdr 08-12-2004 01:03 AM

I'll be talking to DWard about it. As far as I am concerned, anyone can take my code and do whatever the heck they want with it. I don't get attached to such things. It ain't rocket science. :)

Question:

As far as I can tell, the only feature in the current Files List that is not in Attachment Browser, is the ability to list files by category, such as graphics files.

Is there anything else to consider for a possible merge of these scripts?

ChuanSE 08-12-2004 05:13 AM

i won't use this untill those permissions issues are solved.

CarCdr 08-12-2004 11:21 AM

Quote:

Originally Posted by ChuanSE
i won't use this untill those permissions issues are solved.

Attachment Browser already handles permissions. Eventually, I expect that the two hacks will merge, so at this point, it matters little which one you use.

gvtexas 08-20-2004 05:39 PM

This is a terrific addition, Dan, compliments to the chef!

I'm trying to think how I can use it for my needs, and hopefully your new version might address some of these, or others might have an idea how to use FL for this specific use:
  • Control what forums are included or excluded in FL (as in, include 21, 23, 26 or exclude 21, 23, 26, etc.)
  • Use the file list within a section more like a post than a full page (in this use FL acts as a sticky master list for that forum's attachments and wouldn't appear on the navbar or in userCP)
  • Forum IDs passed as part of the url: /forumlist.php?forum_id=26 (not correct, but shows what I mean)
Cheers,
Gary

DWard 08-20-2004 05:50 PM

I'm having some difficulty with making a list of forums to chose from etc, but to only include certain forum id's is pretty simple. I will take a look.

Cerb 08-21-2004 08:11 PM

Quote:

Originally Posted by DWard
I'm having some difficulty with making a list of forums to chose from etc, but to only include certain forum id's is pretty simple. I will take a look.

How?

Haven't looked much into the hack but

INNER JOIN " . TABLE_PREFIX . "forum AS forum ON (thread.forumid = 70) ".$something_filetypes."

does not work. Well actually it does, the problem is that it returned the same attachment over and over.


All times are GMT. The time now is 12:49 PM.

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.01376 seconds
  • Memory Usage 1,831KB
  • 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
  • (4)bbcode_code_printable
  • (14)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)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