The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
[VB3 RC3] Attachments in private messages Details »» | |||||||||||||||||||||||||||
[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 |
#192
|
||||
|
||||
Any updates in getting this to show and work in Erwins quick reply pm hack? I know it was mensioned but i have read the thread and couldnt find anything. I know Boofo has it on his site so please
Thanks |
#193
|
|||
|
|||
With the changes in 3.0.2 this hack needs changes too
|
#194
|
||||
|
||||
Quote:
|
#195
|
||||
|
||||
Boofo... have you gotten this hack to work with 3.0.1??
|
#196
|
||||
|
||||
Quote:
|
#197
|
||||
|
||||
Quote:
|
#198
|
|||
|
|||
The hack worked fine for me on 3.0.0, but I've recently upgraded to 3.0.3, and it is incompatable. Some of the file edits no longer work (searching for the code brings no result), and my best guesses to fix it don't work. I can attach files to PM's, but it brings up an error message when the user tries to view those files.
|
#199
|
|||
|
|||
Yes, this very useful hack is not compatible with 3.0.3
|
#200
|
||||
|
||||
I am using 3.0.0, and am getting the following error when I try to view the attachment (both in the PM and in my CP)...
Parse error: parse error, expecting `T_STRING' or `T_VARIABLE' or `T_NUM_STRING' in /home/pkrwud/public_html/vbulletin/attachment.php on line 79 Any thoughts? |
#201
|
||||
|
||||
Was hoping to get this working in 3.0.1 :ermm:
Got stuck with this :- # Code modifications in file "attachment.php" search for this code: Code:
if (!$attachmentinfo = $DB_site->query_first(" SELECT filename, filesize, postid, attachment.userid, " . iif(!$vboptions['attachfile'] AND !$thumb, 'filedata,') . " " . iif($thumb, 'thumbnail, thumbnail_dateline AS dateline,', 'dateline,') . " visible, mimetype, NOT ISNULL(deletionlog.primaryid) AS isdeleted FROM " . TABLE_PREFIX . "attachment AS attachment LEFT JOIN " . TABLE_PREFIX . "attachmenttype AS attachmenttype ON(attachmenttype.extension = SUBSTRING_INDEX(attachment.filename, '.', -1)) LEFT JOIN " . TABLE_PREFIX . "deletionlog AS deletionlog ON(attachment.postid = deletionlog.primaryid AND type = 'post') WHERE attachmentid = $attachmentid ")) Code:
if (!$attachmentinfo = $DB_site->query_first(" SELECT filename, attachment.postid, attachment.userid, attachmentid, " . iif($thumb, 'thumbnail AS filedata, thumbnail_dateline AS dateline, thumbnail_filesize AS filesize,', 'attachment.dateline, filedata, filesize,') . " attachment.visible, mimetype, NOT ISNULL(deletionlog.primaryid) AS isdeleted, thread.forumid, forum.password, thread.threadid FROM " . TABLE_PREFIX . "attachment AS attachment LEFT JOIN " . TABLE_PREFIX . "attachmenttype AS attachmenttype ON(attachmenttype.extension = SUBSTRING_INDEX(attachment.filename, '.', -1)) LEFT JOIN " . TABLE_PREFIX . "deletionlog AS deletionlog ON(attachment.postid = deletionlog.primaryid AND type = 'post') LEFT JOIN " . TABLE_PREFIX . "post AS post ON (post.postid = attachment.postid) LEFT JOIN " . TABLE_PREFIX . "thread AS thread ON (post.threadid = thread.threadid) LEFT JOIN " . TABLE_PREFIX . "forum AS forum ON (forum.forumid = thread.forumid) " . iif($postid, "WHERE attachment.postid = $postid", "WHERE attachmentid = $attachmentid") . " ")) |
Thread Tools | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|