![]() |
Attachment Database
It's self-explanatory and easy to install. You can view a demo here: http://forums.ffdiscovery.com/attach.php
Instalation =========== Installation is extremely easy. First open the attach.php file and check the configuration. It's designed to work with the private attachments hack and the attachment viewer. After checking the config, upload the file to your forums directory, create a new template called attachment with the contents of the attachment.txt file and a new template called attachmentbit with the contents of the attachmentbit.txt file. That's it. Feedback is always appreciated. You can get assistance, if needed, either through an e-mail or through my forums. |
Nice Idea!
Is it possible to grant moderators and admins delete privileges? This would be a great addon for managing the amount of attachments you currently have! EDIT: Listing of file size would be pretty groovy too... :) |
Quote:
|
kool ive been lookin for something like this , cheers ... i have the hack thing "attactments : 112" and i was lookin 2 put a link on that to goto all the attatchment and this hack wood b perfect thanks alot.
|
damn im getting this error
Quote:
this is how i have set up the attatc.php file PHP Code:
|
I'm using the attachments as files hack, is this compatabul with it?
|
Quote:
|
they are other hacks
Private attachment : allows u 2 attactch files in a pm Attachment viewer: shows the attachment within a page looking like your forum, ie includes the header/footer and shows who posted the attactment |
Quote:
sorry about that. re-download the file |
same error :(
|
check for this line:
$getattach = $DB_site->query("SELECT attachment.attachmentid,attachment.userid,attachme nt.dateline,attachment.filenam e,attachment.visible ".iif($privattach,',attachment.private','').",atta chment.counter,post.postid,pos t.threadid,thread.title,user.username FROM attachment LEFT JOIN post on attachment.attachmentid=post.attachmentid LEFT JOIN thread USING(threadid) LEFT JOIN user on attachment.userid=user.userid WHERE attachment.visible=1 AND post.attachmentid<>0 ".iif($privattach,'AND private=0','')." LIMIT $min,$perpage"); |
mine says
$getattach = $DB_site->query("SELECT attachment.attachmentid,attachment.userid,attachme nt.dateline,attachment.filenam e,attachment.visible,attachment.private,attachment .counter,post.postid,post.thre adid,thread.title,user.username FROM attachment LEFT JOIN post on attachment.attachmentid=post.attachmentid LEFT JOIN thread USING(threadid) LEFT JOIN user on attachment.userid=user.userid WHERE attachment.visible=1 AND post.attachmentid<>0 ".iif($privattach,'AND private=0','')." LIMIT $min,$perpage"); |
replace it with the one i posted above and it will work.
|
i replaced my code with the one you said and its working now , thanks alot ;)
|
Very nice, this is one I will be sure to install, but an even more efficient attachment database is one that categorizes the attachments by the forum they are in. I'll consider revising it with this improvement if you don't want to yourself, and then posting it.
[high]* Velocd clicks install ;)[/high] |
Thats pretty damn cool...
- miSt |
wood there be a way to order the attactments by a value set in the attach.php file ie, order by filesize, number of times downloaded, or extension. ? ?
|
Does this work with the "Attachments as Files" hack? Otherwise I would have to rewrite it and don't have the time to do it...
|
Very cool Hack, great! thx
|
Quote:
|
Quote:
|
Database error in vBulletin 2.2.8:
Invalid SQL: SELECT COUNT(*) FROM attachment WHERE visible=1 AND private=0 mysql error: Unknown column 'private' in 'where clause' mysql error number: 1054 Date: Monday 18th of November 2002 08:08:53 PM Script: http://www.impulseownersgroup.com/vb/vb/attach.php Referer: Is what I am getting Larry |
I'm not sure why, but I installed this hack to test it out, and as I tried to load attach.php my server load on a semi dedicated server wen't through the roof and stalled MySQL on my forums. I think something needs some optimization maybe.
|
Quote:
|
Quote:
I need the another two hacks to make work this one? I set to 0 the options, and use all te posibble combinations.. but don't work Help please .. this hack looks SO Cool! |
Quote:
And FWC, would you mind running the script with explain=1 and posting the results? It might help finding the cause. |
Hello..
I added the templates but as soon as I did that it got very very very slow... Weird... |
ok.. I removed the templates and everything became very fast again..
does VB have a template limit or something? |
You showed me this hack earlier, and I was amazed. Now, when releasing it, it will soon become a part of my own community. Thanks for the contribution.
|
i love it rake, but, for some reason, it makes the whole damn server run so slow, especially that page O_o
|
beware if installing this hack
it works fine but causes your database to overload mines simply shutdown because of this and the server had to be restarted |
Quote:
|
Quote:
Quote:
Quote:
Quote:
|
the server im on is dedicated p3 1ghz 1gb of ram
and when i executed attach.php it worked but took about 3 minutes to load hit the arrow for the next page and it wouldnt load server went down |
It loads fine for me o-O
|
Quote:
Please update the attached file... (still wrong) |
i've identified the problem. I'll release a patch soon. Sorry for the trouble everyone.
|
Great job Alex. It's great how you can both wow myself aswell as Eric. Lol.
- Anthony AKA CS |
!!!,
You are appearing as unlicensed. To download hacks you will need to go to this page and enter your email address, to show you are licensed. (you will need to use your customer number and password to access that page) Thank you. |
rake,
You are appearing as unlicensed. Get your admin to do the following: To download hacks you will need to go to this page and enter your email address, to show you are licensed. (you will need to use your customer number and password to access that page) Thank you. |
All times are GMT. The time now is 05:33 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|