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)

squawell 04-29-2003 07:06 AM

Quote:

Today at 03:45 PM rake said this in Post #28
Could you please post all the lines surrouding the one with the error please?


As for the login error, the file does check for permissions:

if($bbuserinfo[userid]==0) {
show_nopermission();
}


if($threadid!=0) {
$threadid=verifyid("thread",$threadid);
$threadinfo=getthreadinfo($threadid);
}


$foruminfo=getforuminfo($forumid);
$permissions=getpermissions($forumid);
if (($bbuserinfo['userid']!=$threadinfo['postuserid'] or $bbuserinfo['userid']==0) and (!$permissions['canviewothers'] or !$permissions['canreplyothers'])) {
show_nopermission();
}
if (!$permissions['canview'] or (!$permissions['canreplyown'] and $bbuserinfo['userid']==$threadinfo['postuserid'])) {
show_nopermission();
}

if ($permissions[canpostattachment] and trim($attachment)!="none" and trim($attachment)!="" and trim($attachment_name)!="") {
show_nopermission();
}


You might want to replace all that, with this: ;)

====================

if($bbuserinfo[userid]==0) {
show_nopermission();
}


if($threadid!=0) {
$threadid=verifyid("thread",$threadid);
$threadinfo=getthreadinfo($threadid);
}


$foruminfo=getforuminfo($forumid);
$permissions=getpermissions($forumid);
if($threadid!=0) {
if (($bbuserinfo['userid']!=$threadinfo['postuserid'] or $bbuserinfo['userid']==0) and (!$permissions['canviewothers'] or !$permissions['canreplyothers'])) {
show_nopermission();
}
if (!$permissions['canview'] or (!$permissions['canreplyown'] and $bbuserinfo['userid']==$threadinfo['postuserid'])) {
show_nopermission();
}
}

if ($permissions[canpostattachment]) {
show_nopermission();
}

===============

hello~~i already replace above code but still cant work.....

and it only show me the error loging page.....

need help again......thankz

subu1 04-29-2003 09:39 AM

ups i have a white screen if i click "manage attachment"

can you hepl me? :-)

greetz subu1

edit sorry i forgot to make newattachment template, but now i dont have permission for attachment :cry: but i am Admin *g*

mossyuk 04-29-2003 09:43 AM

Quick question before I install it, how does it work with the attachments as files hack?

mossyuk 04-29-2003 11:25 AM

Just noticed Rake is only 15! If 15 year olds are coding quality hacks like this, am I going to have a job in 5 years? hehe, of course I am, I'll know less but have more experiance so people like him will be my subordinate :) (joke!)

sorry to stray off topic there. Im going to give this hack a whirl regardless of whether or not it may work with attachments as files :)

sabret00the 04-29-2003 12:32 PM

can't wait till all the problems are sorted, this will be awesome once it's installed ;)

matthepepe 04-29-2003 02:08 PM

what would be really nice is, if while hes fixing it instead of the files being uploaded are limited by the max attachment size, it actually checked each file, so each file could be up to the size of the max limit. Either way its a great hack.

DPoole 04-29-2003 05:13 PM

is this sorted for adding to an existing board or is there still a wait on the new bits to be done ?

also nice site you got there rake.

alamuae 04-29-2003 05:14 PM

I had problem in Database
http://www.xxxxxxxx.com/vb/showthread.php?s=&postid=6

>>>>>>>>>>>>>>>>><<<<<<<<<<<<<<<<<<
Database error in vBulletin 2.3.0:

Invalid SQL: SELECT attachment.attachmentid,attachment.filename,attach ment.visible AS attachmentvisible,attachment.counter,post.postid FROM attachment LEFT JOIN post on attachment.postid=post.postid WHERE attachment.attachmentid=0 OR attachment.attachmentid='0' OR attachment.attachmentid='0'
mysql error: Unknown column 'attachment.postid' in 'on clause'

mysql error number: 1054

Date: Tuesday 29th of April 2003 12:04:16 PM
Script: http://xxxxxxxxxxxxxxx/vb/showthread.php?s=&postid=6
Referer:
>>>>>>>>>>>>>>>>><<<<<<<<<<<<<<<<<<

my vb 2.3.0

350Chevy 04-29-2003 06:34 PM

Some problems... All old attachments are gone (not that big of a problem and this was kind of expected..) But when trying to attach anything I get the window to browse for and select a file. Once I click on ADD I get the "You do not have permission to access this page. This could be due to one of several reasons: ect..ect..ect.. Logged in user: 350Chevy [logout]" page..

Also a line in editpost.php was not found..

Code:

    eval("\$editattachment = \"".gettemplate("newpost_attachment")."\";");

350Chevy 04-29-2003 06:56 PM

Also, is there a way to edit showthread.php to show the old attachments if they exist in a thread? It shouldn't be too hard I just can't figure it out.. heh


All times are GMT. The time now is 11:34 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.01336 seconds
  • Memory Usage 1,741KB
  • 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
  • (1)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