![]() |
I set it up and it caused my PM to stop working. So I un-installed the hack and now this is what I get when I click on my normal attachments. :(
------------------------------------ Database error in vBulletin 3.0.0 Release Candidate 2: Invalid SQL: SELECT filename, filesize, postid, attachment.userid, filedata, dateline, visible, mimetype, NOT ISNULL(deletionlog.primaryid) AS isdeleted, private FROM vb3_attachment AS attachment LEFT JOIN vb3_attachmenttype AS attachmenttype ON(attachmenttype.extension = SUBSTRING_INDEX(attachment.filename, '.', -1)) LEFT JOIN vb3_deletionlog AS deletionlog ON(attachment.postid = deletionlog.primaryid AND type = 'post') WHERE attachmentid = 1 mysql error: Unknown column 'private' in 'field list' mysql error number: 1054 --------------------------------- Any idea to at least fix my attachment table so I can try again? |
Quote:
ALTER TABLE attachment add private int not null; ALTER TABLE pmtext add attach int not null; ALTER TABLE attachment add index (private); You can run any query in the admin control panel, almost at the end in a section called "Execute SQL Query", for you to be able to run any query in the config.php you should have a line like $canrunqueries = '1'; changing that 1 for whatever your userid is, that is. Or, if your host provides you with phpmyadmin then you can run queries from that. Please be aware that depending on the size of your attachment table the first query can take a while. |
I will redo everything. I think I messed up because that was the first file and not the updated version. Will tell you if everything works :)
|
How about who it is from? And the title (if there's room)?
|
Edit: Yay it works now. I think it was the way I was executing the queries. I did them one by one instead of my usual all at once and it worked. Works like a charm :) My post attachments have also started to work fine again. Nice hack *clicks install* :D
thx for the help also |
I wouldn't mind installing this, but only if the attachments are deleted after they download them. I sure don't want my db getting abused like that. :eek:
|
Excellent. I was wondering why it didn't work the first time....I was so intent on not making any mistakes as this was my first sql query update that I forgot to upload the files. Yes, stop laughing at me now.
Works first time. Excellent instructions, for a very useful hack! |
Does this hack follow what you have set for the attchment storage as far as where they are stored? I have mine stored on the disk and not the db.
|
Quote:
This hack uses the same quotas and options that you have already defined for your attachments so if you have a quota for each user no matter if they attach files to posts or private message once they reach their limit they would have to delete some to continue attaching files. |
Quote:
|
All times are GMT. The time now is 09:15 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|