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-30-2003 12:06 AM

Something in functions.. I just added my old functions and the old attachments show again.. but multiple ones do not.. Just the first picture in a multiple attachment thread.

350Chevy 04-30-2003 12:12 AM

BTW... Thnx for the fix for the editpost.php still doesn't work right though.. It will delete all content out of a post if I click on edit post. I think it has to do with the recycle bin mod.. (not worried about that ATM.) Still wondering why functions.php wont show any images.. :disappointed:

Link14716 04-30-2003 12:18 AM

Quote:

Today at 09:12 PM 350Chevy said this in Post #62
BTW... Thnx for the fix for the editpost.php.. Works fine on posts with single attachments or no attachments..
Whoops...

Change
PHP Code:

       if(isset($qry)) {
        
$qry .= " OR attachmentid='$value'";
       } else {
        
$qry "attachmentid='$value'";
       } 

To
PHP Code:

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

Even still, when I submit the edited post, it gives me a blank page and I look at the post and it is now completely blank... :(

EDIT: Whoops, I made anopther mistake in the above code. Re-apply that change if you have already applied it.

350Chevy 04-30-2003 12:24 AM

That seemed to fix editpost.. thnx.. I'm quite tired.. going to bed.. I'm confused on why the old functions shows the first image attached while the edited one shows nothing.. Oh well.. :)

Thnx for all the help.. :D

translucent 04-30-2003 12:26 AM

I'm getting blank pages whenever I hit showpost.php, editpost.php, etc. During the install process, was I supposed to use sections labeled 'Find - This works with the "add attachment on edit post" hack' if I don't have that hack installed?

350Chevy 04-30-2003 12:28 AM

Quote:

Today at 02:26 AM translucent said this in Post #65
was I supposed to use sections labeled 'Find - This works with the "add attachment on edit post" hack' if I don't have that hack installed?

No.. You weren't..

I was a little confused with that part of the hack as well (due to the type of wording he used.) Just skip anything that references "add attachment". I think there are only 2 instances of it and they're both in editpost.php.

That shouldn't effect they way you view posts. It's just the editpost part of it.

350Chevy 04-30-2003 12:33 AM

Quote:

Today at 02:18 AM Link14716 said this in Post #63
Whoops...

Change
PHP Code:

       if(isset($qry)) {
        
$qry .= " OR attachmentid='$value'";
       } else {
        
$qry "attachmentid='$value'";
       } 

To
PHP Code:

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

Even still, when I submit the edited post, it gives me a blank page and I look at the post and it is now completely blank... :(

EDIT: Whoops, I made anopther mistake in the above code. Re-apply that change if you have already applied it.

That works fine for editing posts with one attachment or no attachments.. but I get this when trying to edit a post with multiple attachments:

Code:

Database error in vBulletin 2.3.0:

Invalid SQL: SELECT filename FROM attachment WHERE attachmentid=2940,2941,2942
mysql error: You have an error in your SQL syntax near '2941,2942' at line 1

mysql error number: 1064

Date: Tuesday 29th of April 2003 09:37:55 PM
Script: http://www.ls6.com/forums/forums/edi...xxxxxxxxxxxxxx
Referer: http://www.ls6.com/forums/showthread...xxxxxxxxxxxxxx


Hobbes 04-30-2003 12:43 AM

could be that you didnt change ,'attachmentid' to 'attid' in one of the edits....dunno know...>.>

also, i was veryyyy confused on the editpost.php file edits....i still havent gotten it to work....i think i'll try again soon :bunny:

Boofo 04-30-2003 01:10 AM

Does this work with the old attachments we already have now?

Link14716 04-30-2003 01:12 AM

Yes, but I wouldn't recommend installing this right now. This has so many errors in it. This should be in Beta Hacks...


All times are GMT. The time now is 10:38 AM.

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.01505 seconds
  • Memory Usage 1,755KB
  • 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
  • (3)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