The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
![]() |
|||||||||||||||||||||||||||
[VB3 RC3] Attachments in private messages
![]() Developer Last Online: Jul 2014 ![]() ![]()
Unsupported. VB3.5 version is here:
https://vborg.vbsupport.ru/showthread.php?t=91220 Tested on 3.0.3 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
|
Comments |
#142
|
||||
|
||||
![]() Quote:
|
#143
|
||||
|
||||
![]()
I'm sure Kentaurus will upgrade his hack, but I will go through the code and see what needs to be changed in the meantime. There can't be that much to change to make it work. Sit tight.
![]() |
#144
|
||||
|
||||
![]()
I installed it using vb3 gold and I'm having no problems at all. So far, it works just fine.
|
#145
|
||||
|
||||
![]()
Can you post the differences in the code here for those that are having problems?
![]() |
#146
|
|||
|
|||
![]()
Uhm maybe this is a bug? I got an parse error in column 164. It is:
at line 156, search for this code: ------------------------------------------------------------------- verify_forum_password($foruminfo['forumid'], $foruminfo['password']); ------------------------------------------------------------------ change it to: ------------------------------------------------------------------- else if (!($forumperms & CANPOSTNEW) && !$privateattachment) // newthread.php { print_no_permission(); } I removed the else from the if statement... now it works. Ok so? |
#147
|
||||
|
||||
![]()
That's odd, wonder if you copied it right because I didn't need to delete anything for it to work. If you backed up the files, try it one more time. There's no need to delete any part of the code.
|
#148
|
||||
|
||||
![]()
heres a note for everyone thats using this hack
i had my files as attachments but the hack kept giving me invalid attachment error but soon as i moved them back into the database everything was fixed so my question would be is there anyway to make it work with files as attachments |
#149
|
||||
|
||||
![]()
That's how it is set up at my site and as you saw, it works fine.
![]() |
#150
|
||||
|
||||
![]()
So i'm kinda confused, how do u integrate this hack with erwin's quick pm reply hack? I think it was alreayd done but it was kinda vague what to do.
|
#151
|
||||
|
||||
![]()
Kentuarus posted a how-to (either in here or Erwin's thread, I can't remember which now) for adding this to Erwin's Quick Reply.
![]() |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|