The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Private Attachments! (Attachments in Private Messages) Details »» | |||||||||||||||||||||||||||
Private Attachments! (Attachments in Private Messages)
Developer Last Online: Nov 2024
*drums*
This hack is now out of beta! Safe to use. My latest and one of the more extensive hacks -- Private Attachments! This huge (I ain't kidding, it's pretty big) hack will allow your members to send private messages with attachments in them, so they don't need to use e-mail for that. Since this hack requires a large number of edits, this is how I recommend installing it: (a) Run the queries. (b) Edit all the files, offline. (c) When you are done with (b) upload all the files at once. (d) Perform the template edits. If you do all actions in this order your users shouldn't notice you are installing the hack. All feature requests (except for limiting this for usergroups -- if you want that do it yourself it's not hard but I'm tired of adding permissions to the dreaded usergroup.php) are welcome before this goes out of beta. As always, have fun. Show Your Support
|
Comments |
#72
|
|||
|
|||
I have ran the
query(s): ALTER TABLE attachment ADD private TINYINT(1) UNSIGNED DEFAULT "0" NOT NULL AFTER visible; ALTER TABLE privatemessage ADD attachmentid SMALLINT(5) UNSIGNED NOT NULL; Which produced these lines in the db. Database dsstv_forum2 - table privatemessage Field = attachmentid Type = SMALLINT Length/Values* = 5 Attributes = UNSIGNED Null = not null default = 0 Extra = Database dsstv_forum2 - table attachment running on localhost Field = private Type = TINYINT Length/Values* = 1 Attributes = UNSIGNED Null = not null Default = 0 Extra = ~ So much for not following the instructions ~ |
#73
|
||||
|
||||
Quote:
13 tables ... 12 Values |
#74
|
||||
|
||||
Quote:
Second, look at the attachment.php for that SQL INSERT string and look for anything that might not seem valid on or around the column name. Make sure that the column inside the database has the same name that the query is trying to enter data to ... |
#75
|
||||
|
||||
Quote:
Now onto the next problem... Nothing "major", but the paperclip.gif image is not appearing next to the PM title. Here's what I have in Private.php: PHP Code:
|
#76
|
||||
|
||||
My Question ....
How many themes are you working with? Also, i'd check the spelling of the paperclip image for caps ... I had a simular problem like that and that was the problem. Make sure it's in lower case! |
#77
|
||||
|
||||
Just a single theme on my test board, and the code I pasted is taken directly from my private.php file...paperclip.gif is in all lowercase. Just to cleare it up, I'm not getting a "broken image"...theres just nothing showing up where paperclip.gif should be. Weird.
|
#78
|
|||
|
|||
Quote:
I have gone back to the Org. php files and added all the lines need to them. I have added the new lines to Template and created the new template. Uploaded all files And Im right back to the Org. error: Database error in vBulletin 2.2.8: Invalid SQL: INSERT INTO attachment (attachmentid,userid,dateline,filename,filedata,vi sible,private) VALUES (NULL,1,1036627824,'newbie guide.txt',','1','1') mysql error: Unknown column 'private' in 'field list' mysql error number: 1054 Date: Wednesday 06th of November 2002 05:10:24 PM Script: http://dev.*********.com/private.php Referer: http://dev.*********.com/private.php...age&userid=218 How do I fix this And yes the tables where added to the DB. |
#79
|
|||
|
|||
I need help
I installed the hack fine with out any problems but when someone clicks the attachments in the PM they get the following error Parse error: parse error in /home/mike1121/public_html/board/attachment.php on line 100 here are lines 89 to 102 in my attachments.php file Code:
if ($extension=='gif') { header('Content-type: image/gif'); } elseif ($extension=='jpg' or $extension=='jpeg') { header('Content-type: image/jpeg'); } elseif ($extension=='png') { header('Content-type: image/png'); } elseif ($extension=='pdf') { header('Content-type: application/pdf'); } else { header('Content-type: unknown/unknown'); } echo $attachmentinfo[filedata]; ?> |
#80
|
|||
|
|||
anyone?
|
#81
|
|||
|
|||
I wonder if it is possible to limit this function to only certain user groups?
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|