vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   vb3 Attachments - Including Multiple Attachments Option (https://vborg.vbsupport.ru/showthread.php?t=52294)

350Chevy 04-29-2003 11:34 PM

Thnx Link.. That fixed the permissions problem.. But no attachments are showing.. Old or new.. :D

Link14716 04-29-2003 11:37 PM

Another error:

If you do NOT have the "Private Attachments" hack, open attachment.php
Find:
PHP Code:

if (!$attachmentinfo=$DB_site->query_first("SELECT filename,filedata,dateline,visible
                            FROM attachment
                            WHERE attachmentid='
$attachmentid'".iif($privateok==0'AND private=0'''))){ 

Replace With:
PHP Code:

if (!$attachmentinfo=$DB_site->query_first("SELECT filename,filedata,dateline,visible
                            FROM attachment
                            WHERE attachmentid='
$attachmentid'")){ 

Now, with that error gone, all the attachments that I just posted are being cutoff at 65535 bytes. Any ideas why?

EDIT: The images are being cutoff. Here is a link to my test thread...
http://www.vggmn.com/forums/showthre...=&threadid=328

Hobbes 04-29-2003 11:40 PM

YES!!! YES YES YES YES YES YES!!!! IT WORKS!!!!!!....

only thing not working would be the edit post thing....i did the edits....or at least tried (since i got 2.2.6 and the codes are crazily different)...yeah....and i dont have the add attachments when editing hack either....anyway...

/me CLICKS INSTALL....W000T!!!

Hobbes 04-29-2003 11:42 PM

link, you probably have to edit the code and change the "MAX_FILE_SIZE" gto something......or change the max file size in the admin options...or sommat....who knows, i have no idea what im talking about..lol...thanks for that newattachment.php fix....it works ;);):p:p:ninja:

Link14716 04-29-2003 11:43 PM

The max file size is 1 MB, and 65535 bytes is roughly 65 1/2 KB.

350Chevy 04-29-2003 11:45 PM

Yupper.. And the editpost.php is still messed up but it's getting there.. Thanks again Link..

From editpost.php

Code:

Database error in vBulletin 2.3.0:

Invalid SQL: SELECT filename,attachmentid FROM attachment WHERE


Hobbes 04-29-2003 11:50 PM

Quote:

Today at 05:43 PM Link14716 said this in Post #55
The max file size is 1 MB, and 65535 bytes is roughly 65 1/2 KB.

the max file size you have set?...

blarm, jus change it in the admin options....ori could be totally wrong and you can disregard this post :bunny:

350Chevy 04-30-2003 12:04 AM

Any idea on why no attachments show now? Multiple or not? :confused:

Link14716 04-30-2003 12:05 AM

As I said, the current max file size if 1 MB, and those files are well below that. Furthermore, no error was given.

To fix the editpost.php database error:
Open editpost.php:
Find:
PHP Code:

    $attachmentinfo=$DB_site->query("SELECT filename,attachmentid FROM attachment WHERE $qry"); 

Add Above:
PHP Code:

    $att explode(",",$postinfo[attachmentid]);
    foreach(
$att as $value) {
       if(isset(
$qry)) {
        
$qry .= " OR attachmentid='$value'";
       } else {
        
$qry "attachmentid='$value'";
       }
    } 


Link14716 04-30-2003 12:06 AM

Quote:

Today at 09:04 PM 350Chevy said this in Post #58
Any idea on why no attachments show now? Multiple or not? :confused:

Run portattachments.php.
Or, if that's not the problem, upload the attachment.php in the ZIP (applying all applicable fixes posted by me in this thread).


All times are GMT. The time now is 08:00 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.01404 seconds
  • Memory Usage 1,749KB
  • 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
  • (1)bbcode_code_printable
  • (4)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)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