vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   [VB3 RC3] Attachments in private messages (https://vborg.vbsupport.ru/showthread.php?t=59840)

SnowBot 06-29-2004 12:35 AM

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

luroca 07-03-2004 12:53 PM

With the changes in 3.0.2 this hack needs changes too :)

Boofo 07-03-2004 01:16 PM

Quote:

Originally Posted by SnowBot
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

Check the thread for Erwin's hack. It is in there.

sketch42 07-03-2004 11:09 PM

Boofo... have you gotten this hack to work with 3.0.1??

Boofo 07-04-2004 12:33 AM

Quote:

Originally Posted by sketch42
Boofo... have you gotten this hack to work with 3.0.1??

I don't run 3.0.1. I still run RC3. Sorry. :(

sketch42 07-04-2004 01:04 AM

Quote:

Originally Posted by Boofo
I don't run 3.0.1. I still run RC3. Sorry. :(

can someone update this for 3.0.1??

Ganon 07-09-2004 02:43 AM

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.

luroca 07-09-2004 09:57 AM

Yes, this very useful hack is not compatible with 3.0.3 :(

PKRWUD 07-14-2004 03:06 PM

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?

TTG 07-15-2004 10:48 AM

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
"))

Here's the nearest I could find in attachment.php

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") . "
"))



All times are GMT. The time now is 06:46 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
  • Page Generation 0.01449 seconds
  • Memory Usage 1,746KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete