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-05-2004 08:01 PM

Also SmartGnome, you may want the new collapse images, there on this site (vbulletin.org)...

They have no coloured background, the edges are transparent, so they will work well on your silver category title bars.

If you want them, I posted them on the vBulletin downloads section for vb3 on www.vbulletin.com/forum

Boofo 05-06-2004 01:16 AM

Quote:

Originally Posted by DWard
Also SmartGnome, you may want the new collapse images, there on this site (vbulletin.org)...

They have no coloured background, the edges are transparent, so they will work well on your silver category title bars.

If you want them, I posted them on the vBulletin downloads section for vb3 on www.vbulletin.com/forum

Do you have a link for those?

Tim Wheatley 05-06-2004 01:37 AM

I have a rather large amount of attachments... It'd be nice to use this, but I'm a little worried how it may effect my board...

Total Attachments: 163,632
Disk Space Used: 30,045.89 MB
Storage Type: Attachments are currently being stored in the filesystem
Average Attachment Filesize: 188.0 KB
Total Downloads: 22,612,198

Any thoughts? ;)

SmartGnome 05-06-2004 06:55 AM

Quote:

Originally Posted by Boofo
Do you have a link for those?


Here you go :cool: http://www.vbulletin.com/forum/showt...ollapse+images

Boofo 05-06-2004 07:46 AM

Quote:

Originally Posted by SmartGnome

Thank you, sir. At least someone in here answers requests. ;)

goyo 05-06-2004 12:48 PM

Quote:

Originally Posted by Tim Wheatley
I have a rather large amount of attachments... It'd be nice to use this, but I'm a little worried how it may effect my board...

Total Attachments: 163,632
Disk Space Used: 30,045.89 MB
Storage Type: Attachments are currently being stored in the filesystem
Average Attachment Filesize: 188.0 KB
Total Downloads: 22,612,198

Any thoughts? ;)

I have more than 180.000 attachments (around 77 GByte)....don't use this hack...

dstruct2k 05-06-2004 01:29 PM

If this has a "SELECT * FROM attachment" query, it will cause MAJOR lag. You should be specific enough to SELECT all but the actual attached file, and it should be faster. Also, I haven't looked at the hack, but a "perpage" option that adds "LIMIT 30" or whatever to the query would speed it up tremendously.

DWard 05-06-2004 01:35 PM

Quote:

Originally Posted by dstruct2k
If this has a "SELECT * FROM attachment" query, it will cause MAJOR lag. You should be specific enough to SELECT all but the actual attached file, and it should be faster. Also, I haven't looked at the hack, but a "perpage" option that adds "LIMIT 30" or whatever to the query would speed it up tremendously.

There is a perpage function on this hack.

Ronin Six 05-06-2004 04:21 PM

This is getting very close to what I need DWard.

Not sure if there's already a hack for this, but I'd like to see the attachments grouped by User. The attachments are 99% images of my members' work, and I'd like to be able to arrange the images into a gallery where the attachments are sorted by user. But if a user has made no attachments, then an entry for that user is skipped.

More on the above... I have Photopost, and many of my users post their images there. I'd like them to use Photopost exclusively to upload images, but the attachment feature in vb is much more convenient for some and I don't want to force them to do all extra steps necessary to upload photos into photopost, start the thread, get the url for the image they uploaded in PP, the go back to the thread post the image. So in this case, a separate 'gallery' for vb attachments is needed. Unless of course PP can grab a user's attachments from the file system and import them into photopost right when they create the post in vb.

DWard 05-06-2004 04:47 PM

Quote:

Originally Posted by Ronin Six
This is getting very close to what I need DWard.

Not sure if there's already a hack for this, but I'd like to see the attachments grouped by User. The attachments are 99% images of my members' work, and I'd like to be able to arrange the images into a gallery where the attachments are sorted by user. But if a user has made no attachments, then an entry for that user is skipped.

More on the above... I have Photopost, and many of my users post their images there. I'd like them to use Photopost exclusively to upload images, but the attachment feature in vb is much more convenient for some and I don't want to force them to do all extra steps necessary to upload photos into photopost, start the thread, get the url for the image they uploaded in PP, the go back to the thread post the image. So in this case, a separate 'gallery' for vb attachments is needed. Unless of course PP can grab a user's attachments from the file system and import them into photopost right when they create the post in vb.

Hey 'Ronin Six',

In response to the first paragraph, usernames are now shown in the files list, which you can see here: http://www.collegepranks.co.uk/forums/fileslist.php. This version is due to be released here some time next week. The next thing I am working on, is the ability to show thumbnails of any images attached.

In response to the second paragraph, I'm not too sure about this, you will probably need to contact somebody else to see if they can help.

DWard 05-06-2004 04:48 PM

USERNAMES NOW SHOWN IN THE FILELIST
Preview for next version: http://www.collegepranks.co.uk/forums/fileslist.php

SmartGnome 05-06-2004 04:59 PM

Quote:

Originally Posted by DWard
USERNAMES NOW SHOWN IN THE FILELIST
Preview for next version: http://www.collegepranks.co.uk/forums/fileslist.php

Looks nice DWard.... for my forum the name is not so important, knowing in what forum the attachment belongs, should make the life of my mods easier :ermm:

Greetz

DWard 05-06-2004 05:39 PM

ATTACHMENT THUMBNAILS FOR IMAGES IN THE FILELIST
Preview for next version: http://www.collegepranks.co.uk/forums/fileslist.php

DWard 05-06-2004 06:25 PM

OK I have completed two objectives, however there are two left:

:: Upload files in the files list (wont be in the next version, but may in v3)

:: Sort by forum (looked at Boofos code, but it only counts the attachments in a forum, it does not list attachments by forum, because there is no forumid or field alike in the attachment table)

Aurous 05-06-2004 07:19 PM

maybe we can add forumid just the way userid is added in the table?

DWard 05-06-2004 07:26 PM

Yes its possible, but then it requires more queries to slow it down and requires further hacking of attachment posting file and extension to mysql db

DWard 05-07-2004 09:46 AM

I will have a look in to it, but no promises that it will be in the next version, which will be released this weekend now!

DWard 05-07-2004 11:28 AM

FleaBag, where did you get your hits counter at the bottom of pages?

I've been looking for a counter like that for ages, but cant be arsed 2 make one myself.

DWard 05-08-2004 06:14 PM

get the new fileslist and tell me what you think!

SmartGnome 05-08-2004 06:59 PM

I only changes the two templates and uploaded the new php file

Got this error now, the old version did work:

Code:

Database error in vBulletin 3.0.1:

Invalid SQL: SELECT * FROM vb3_attachment LEFT JOIN user ON (user.userid = attachment.userid) ORDER BY filename asc LIMIT 0, 30
mysql error: Table 'adfs_nl_-_vbgold.user' doesn't exist

mysql error number: 1146

Date: Saturday 08th of May 2004 09:55:28 PM
Script: http://anita.adfs.nl/forum/fileslist.php?
Referer:
Username: SmartGnome
IP Address: 62.100.24.35

With the earlier version you gave me another filelist.php cause of same sort of probs.

Thanks Dan.

(edit)
Can this have something to do with my prefix vb3_ in the database ??

DWard 05-08-2004 07:01 PM

Quote:

Originally Posted by SmartGnome
I only changes the two templates and uploaded the new php file

Got this error now, the old version did work:

Code:

Database error in vBulletin 3.0.1:

Invalid SQL: SELECT * FROM vb3_attachment LEFT JOIN user ON (user.userid = attachment.userid) ORDER BY filename asc LIMIT 0, 30
mysql error: Table 'adfs_nl_-_vbgold.user' doesn't exist

mysql error number: 1146

Date: Saturday 08th of May 2004 09:55:28 PM
Script: http://anita.adfs.nl/forum/fileslist.php?
Referer:
Username: SmartGnome
IP Address: 62.100.24.35

With the earlier version you gave me another filelist.php cause of same sort of probs.

Thanks Dan.

yer i see the problem, 2mins

DWard 05-08-2004 07:04 PM

OK, i updated the actual ZIP file, but there is the fileslist file:

DWard 05-08-2004 07:06 PM

tel me if that works plz

SmartGnome 05-08-2004 07:11 PM

Quote:

Originally Posted by DWard
tel me if that works plz


Great !! Works fine now with the usernames at the end :laugh:

Hope for the far future there will be also the forum title there :grins:

Tnx Dan

DWard 05-08-2004 07:48 PM

I'm working on it :)

DWard 05-08-2004 07:53 PM

SuperGnome... please do this when you have some free time, it makes sure the next button is all on one line in your fileslist page number block:

https://vborg.vbsupport.ru/showpost....3&postcount=40

Boofo 05-08-2004 07:55 PM

Quote:

Originally Posted by DWard
I'm working on it :)

DWard, I have fixed your file. You really had some things messed up in it, sorry to say. You CAN'T put table prefixes on userid variables. This:

PHP Code:

$attachment_data $DB_site->query("SELECT * FROM ".TABLE_PREFIX."attachment LEFT JOIN ".TABLE_PREFIX."user ON (".TABLE_PREFIX."user.userid = ".TABLE_PREFIX."attachment.userid) ".$soundclips_filetypes." ORDER BY ".$sorttype." asc LIMIT " . ($minlimit-1) . ", $perpage");


Should be this:

PHP Code:

$attachment_data $DB_site->query("
SELECT * FROM "
.TABLE_PREFIX."attachment AS attachment
LEFT JOIN "
.TABLE_PREFIX."user AS user ON (user.userid = attachment.userid) ".$soundclips_filetypes."
ORDER BY "
.$sorttype." ASC
LIMIT " 
. ($minlimit-1) . ", $perpage"); 

And also, anytime you query more than one table in a query, ALL tables have to have the table AS table to it when someone has a table prefix in their db.

Here is the updated file.

DWard 05-08-2004 07:59 PM

I know its all over the place, it works, just need to get smartgnome to try out the new file to make sure it works, because the fixed file is how it was before i changed it, and supregnome had problems with that.

I promised everybody that I would get the cod out by 2night so I had to post it pretty much how it was :)

Boofo 05-08-2004 08:01 PM

Quote:

Originally Posted by DWard
I know its all over the place, it works, just need to get smartgnome to try out the new file to make sure it works, because the fixed file is how it was before i changed it, and supregnome had problems with that.

I promised everybody that I would get the cod out by 2night so I had to post it pretty much how it was :)

That's because he has a table prefix and you need to use the table as table in queries with more than one table.

Natch 05-09-2004 04:49 AM

Quote:

Originally Posted by DWard
ATTACHMENT THUMBNAILS FOR IMAGES IN THE FILELIST
Preview for next version: http://www.collegepranks.co.uk/forums/fileslist.php

Wasn't this version going to include Thumbnailed Images ??

It's a great hack - but this was what I was waiting for (installed today and it's not there) ... I don't wanna +++++ (by any means) but was just wondering if it might have been an oversight ...

DWard 05-09-2004 07:51 AM

If you read the literature, you will notice the thumbnails are shown in the IMAGES category only. And the thumbnails are only shown if you have them activated in the admin control panel.

DWard 05-09-2004 07:55 AM

If you look at my fileslist which is EXACTLY the same as it is on here, apart from the skin:
http://www.collegepranks.co.uk/forum...ortby=filename

Notice the thumbnails are there. You must have image attachment thumbnails turned ON in the Admin Panel or else it will just show the filename.

Boofo 05-09-2004 08:51 AM

Quote:

Originally Posted by DWard
If you look at my fileslist which is EXACTLY the same as it is on here, apart from the skin:
http://www.collegepranks.co.uk/forum...ortby=filename

Notice the thumbnails are there. You must have image attachment thumbnails turned ON in the Admin Panel or else it will just show the filename.

Then you forgot something because I have thumbnails turned on and I do not get anything but the file listing for them, too.

Natch 05-09-2004 12:53 PM

I have thumbnails turned on, and I thought it might be as you said (about them only being active if you look @ images only) - but last time I looked @ your site, it showed ALT text for your images only - not thumbnails - and mine (see the link) shows the default icon for images ...

I'm not trying to get stuck in mate - I'm just looking forward to a replacement for the old one for vB2 - I'm very appreciative of your efforts on this hack :) ok?

SmartGnome 05-09-2004 06:04 PM

Quote:

Originally Posted by DWard
SuperGnome... please do this when you have some free time, it makes sure the next button is all on one line in your fileslist page number block:

https://vborg.vbsupport.ru/showpost....3&postcount=40

Tnx Dan ... fixed now and ok

SmartGnome 05-09-2004 06:06 PM

Quote:

Originally Posted by Boofo
Then you forgot something because I have thumbnails turned on and I do not get anything but the file listing for them, too.

@Dan

The same with me. Have tried several other settings, but no thumsb.

BTW: On your site I see only the placeholders and no pics

DWard 05-09-2004 07:17 PM

OK, ill look into it, it works fine on mine, I've attached a screenshot.

DWard 05-09-2004 07:20 PM

Ah now I see why, you must be logged in to view the pictures (understandable). I will fix and tidy it up for tomorrow evening if thats ok?

Still dont think you will be able to view the thumbs if you are not logged in, not unless you have allowed guests to view attachments.

DWard 05-09-2004 07:43 PM

If your images are displayed as thumbnails when you attach them, there is no problem.

I have thumbnails on, and my GD version is 2+

Boofo 05-10-2004 01:13 AM

Quote:

Originally Posted by DWard
If your images are displayed as thumbnails when you attach them, there is no problem.

I have thumbnails on, and my GD version is 2+

Same thing on my site. But I don't see any thumbnail code at all in the fileslist.php file that I have. How are you calling it?


All times are GMT. The time now is 12:04 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.01479 seconds
  • Memory Usage 1,849KB
  • 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
  • (2)bbcode_code_printable
  • (2)bbcode_php_printable
  • (16)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