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)

Boofo 05-02-2003 03:20 PM

rake, did you get the pm?

Freddie Bingham 05-02-2003 04:38 PM

Just change the SQL calls that reference

WHERE attachmentid=67,68

to

WHERE attachmentid IN (67,68)

and it will work for everyone.

Boofo 05-02-2003 04:49 PM

You mean like this?

PHP Code:

$DB_site->query("DELETE FROM attachment WHERE attachmentid IN ($postinfo[attachmentid])"); 


rake 05-02-2003 07:47 PM

Quote:

Today at 06:38 PM freddie said this in Post #172
Just change the SQL calls that reference

WHERE attachmentid=67,68

to

WHERE attachmentid IN (67,68)

and it will work for everyone.


I never thought of that! I can lose the code for splitting the attachmentid field! :D Thanks Freddie!

Link14716 05-02-2003 08:50 PM

rake, I recommend making two files: one for a clean install and another for upgrade. That'll save a lot of confusion.

Austin Dea 05-03-2003 04:46 AM

Attachment viewer integration? =)

Hobbes 05-03-2003 11:47 PM

still, one question, what exactly does 'comment out' mean? </n00bish>


edit3: and in the 1.2 upgrade you say to find
PHP Code:

$postinfo[filename] .= "<a href=\"attachment.php?s=$session[sessionhash]&attachmentid=$attach[attachmentid]\" target=\"_blank\">$name</a> ";
    }
    
$postinfo[filename] = htmlspecialchars($attachmentinfo['filename']); 

and i have that any where...x.X

PHP Code:

$postinfo[filename] = htmlspecialchars($attachmentinfo['filename']); 

is all i have >.>. so should I just replace
PHP Code:

$postinfo[filename] = htmlspecialchars($attachmentinfo['filename']); 

with
PHP Code:

$postinfo[filename] .= "<a href=\"attachment.php?s=$session[sessionhash]&attachmentid=$attach[attachmentid]\" target=\"_blank\">$name</a> ";
    }
    
$postinfo[filename] = htmlspecialchars($attachmentinfo['filename']); 

??

i have skipped that step for now :p :bunny:

rake 05-04-2003 07:31 AM

That should have been replaced in the original instructions. It's the part that handles the "Keep Current Attachment ( attachment name here )" in editpost.

squawell 05-04-2003 08:46 AM

Quote:

05-01-03 at 03:12 PM squawell said this in Post #139
rake i find another problem when i edit post and i dont attach any

file but front my thread title it show up the pic(paperclip.gif)

how fix that ??thankz.

rake this is my problem do u know how to fix that??

sonic3d 05-04-2003 02:27 PM

Quote:

05-02-03 at 12:49 PM Boofo said this in Post #173
You mean like this?

PHP Code:

$DB_site->query("DELETE FROM attachment WHERE attachmentid IN ($postinfo[attachmentid])"); 



worked perfectly

now, is there a way to delete only one out of the rest?

also when i edit a post and try to add attachments, it will only let me add one. is that suppose to do that?

l8er
sonic


All times are GMT. The time now is 04:50 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.01252 seconds
  • Memory Usage 1,753KB
  • 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
  • (6)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