This hack enables you to send attachments in a private message. This feature was really useful to me in vb2 and I kind of missed it on vb3 so I rehacked it myself.
When a user writes a private message they will be given the option to add an attachment, the same as when writing a post. It uses the same rules you have defined for a convencional attachment including file types, quotas, etc. It is only an extension for attachments to be used in private messages.
As always it is advised to backup your files before hacking in case you want to go back, this is some big hack including modification of multiple files, some templates and adding two extra columns in the database tables.
Instructions are provided in the txt, and some screenshots on where the attachment option appears.
Info for hackers:
You may modify, improve, upgrade, redistribute this hack, include it
in another hack or yours or translate it provided you do it free of
charge and you distribute it in www.vbulletin.org at least, there is no
need to pm me asking for permission
Some portions of the code are (c) Jelsoft Enterprises Ltd.
Edit by MarcoH64:
Because of multiple requests to make this hack work on vB3.0.7 i created upgrade instructions. These upgrade instructions can be followed after the original instructions (the 3.0.3 version). The original coder can not be held responsible for my modification.
Show Your Support
This modification may not be copied, reproduced or published elsewhere without author's permission.
I wrote an updated version for 3.0.1, I tested it in a blank copy of vbulletin with attachments in the database and attachments as files and it worked ok If you find any bugs please let me know, it has been running on my forum for some time now anyway.
I wrote an updated version for 3.0.1, I tested it in a blank copy of vbulletin with attachments in the database and attachments as files and it worked ok If you find any bugs please let me know, it has been running on my forum for some time now anyway.
OH my god, I'm getting these errors again... recipient gets an error page saying they do not have permission to view the attachment. WHAT am I donig wrong? I started on a clean VB installation, copied everything right, and think I did the SQL queries correctly... HELP!
Here's what I got for the sql queries... here's what it setup on my database:
Code:
Table Field Name Type Allow Nulls Key Default Value
attachment private int(11) No Indexed 0
pmtext attach int(11) No None 0
attachment private int(11) No Indexed 0
OH my god, I'm getting these errors again... recipient gets an error page saying they do not have permission to view the attachment. WHAT am I donig wrong? I started on a clean VB installation, copied everything right, and think I did the SQL queries correctly... HELP!
are you using attachments as files
because it doesn't work with them as of vbulletin 3.0
i had to move my attachments back into the database before they started to work again
if thats not it then i hope you have a good backup :nervous: