Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
vb3 Attachments - Including Multiple Attachments Option Details »
vb3 Attachments - Including Multiple Attachments Option
Mod Version: 1.00, by rake (Member) rake is offline
Developer Last Online: Oct 2012 I like it Show Printable Version Email this Page

This modification is in the archives.
vB Version: 2.3.x Rating: (0 vote - 0 average) Installs: 87
Released: 28 Apr 2003 Last Update: Never Downloads: 13
Not Supported  

Woo! Finally! I've been working on this for 10 straight hours now.

It's a replica of the vbulletin 3 attachment feature, which supports multiple uploads. We can't have vbulletin 3 yet, but at least we can copy it.


Files to edit: 5
Queries to run: 5
New Templates: 3

Just be sure to backup before trying anything.
You can see it live at my forums. Log in as test/test, if you want to see it in action.

And don't forget to click the Install button if you like the hack.



=-=-=-=-=-=-==-=-
UPDATE - Please re-download the file. Upgrading instructions are included in instructions.php. And sorry for the wait. I had to bribe my parents with 15 math exercises to let me use the computer. :knockedout:
=-=-=-=-=-=-=-==-

=-=-=-=-=-=-=-=-=-
SECOND UPDATE - Sorry for the previous non-functioning version, everyone. I did those modifications really late at night and some errors slipped in. This update fixes permission errors, allows you to specify a maximum number of attachments, fixes 65535 bytes error and includes repairing instructions for editpost.php
I have tested it on a clean 230 test board and it worked fine.
=-=-=-=-=-=-=-=-=-

=-=-=-=-=-=-=-=-=-=
THIRD REVISION - This update fixes the 3 largest errors reported so far:
1. The view image atachments option now works
2. Attaching more than one file with a new thread now works
3. Deleting a post with attachments now works
=-=-=-=-=-=-=-=-=-=

To everyone who used attachment.php from the old zip: Please replace it with your original one. attachment.php was added in the zip by mistake.

Download Now

Only licensed members can download files, Click Here for more information.

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
  #31  
Old 29 Apr 2003, 08:06
squawell's Avatar
squawell squawell is offline
 
Join Date: Oct 2001
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
Reply With Quote
  #32  
Old 29 Apr 2003, 10:39
subu1 subu1 is offline
 
Join Date: Sep 2002
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*
Attached Images
File Type: gif anhang.gif (11.9 KB, 86 views)

Last edited by subu1; 29 Apr 2003 at 10:56.
Reply With Quote
  #33  
Old 29 Apr 2003, 10:43
mossyuk mossyuk is offline
 
Join Date: Jul 2002
Quick question before I install it, how does it work with the attachments as files hack?
Reply With Quote
  #34  
Old 29 Apr 2003, 12:25
mossyuk mossyuk is offline
 
Join Date: Jul 2002
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

Last edited by mossyuk; 29 Apr 2003 at 12:31.
Reply With Quote
  #35  
Old 29 Apr 2003, 13:32
sabret00the's Avatar
sabret00the sabret00the is offline
 
Join Date: Jan 2003
Real name: sabe
can't wait till all the problems are sorted, this will be awesome once it's installed
__________________
UNDER CONSTRUCTION: Confessionary Hack

Make me a Hack of The Month author: GRPS: Groups Commune
make my hacks, they'll make you famous

unless it's a security concern, please do not pm/im me for support unless you're willing to pay.
Reply With Quote
  #36  
Old 29 Apr 2003, 15:08
matthepepe matthepepe is offline
 
Join Date: Jan 2002
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.
Reply With Quote
  #37  
Old 29 Apr 2003, 18:13
DPoole DPoole is offline
 
Join Date: Oct 2001
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.
Reply With Quote
  #38  
Old 29 Apr 2003, 18:14
alamuae alamuae is offline
 
Join Date: Sep 2002
Real name: بوسيف
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,attachment.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
Reply With Quote
  #39  
Old 29 Apr 2003, 19:34
350Chevy's Avatar
350Chevy 350Chevy is offline
 
Join Date: Nov 2002
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..


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Reply With Quote
  #40  
Old 29 Apr 2003, 19:56
350Chevy's Avatar
350Chevy 350Chevy is offline
 
Join Date: Nov 2002
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
Reply With Quote
  #41  
Old 29 Apr 2003, 20:12
Bison's Avatar
Bison Bison is offline
 
Join Date: Jun 2002
Some of you guys ask the weirdest questions ... now do you really think this young man knows if this hack will work with other hacks? Why don't you try it on a test board and give us all your feedback instead!

Good piece of work Rake!
__________________
DTDLGROUP Technology Forums

Visit us at http://www.dtdlgroup.com
Reply With Quote
  #42  
Old 29 Apr 2003, 20:25
rake's Avatar
rake rake is offline
 
Join Date: Nov 2002
Real name: Alex
Wink

alamuae: Are you sure you ran the queries? All 5 of them?
350Chevy: I mentioned I was working on that. Re-download the file in the first post and read upgrading instructions. There are parts for the editpost.php only for people with the "add attachment on edit post hack". They're marked in the instructions file. This also goes for Anguish.
subu1: templates.txt includes three templates to add, not just newthread.php


Also, the first post has been updated. Thank you.
As for my age, *grin* 15 seems to be my lucky number. I turned 15 on the 15th of April.
Reply With Quote
  #43  
Old 29 Apr 2003, 21:37
iggy123's Avatar
iggy123 iggy123 is offline
 
Join Date: Jan 2003
I am having a problem with this hack also, it tells me that i dont have the permissions to add the files????
Reply With Quote
  #44  
Old 29 Apr 2003, 21:41
DPoole DPoole is offline
 
Join Date: Oct 2001
Today at 09:12 PM Bison said this in Post #41
Some of you guys ask the weirdest questions ... now do you really think this young man knows if this hack will work with other hacks? Why don't you try it on a test board and give us all your feedback instead!

Good piece of work Rake!

well maybe u having prob reading but i can clearly see people have installed it - whether to test board or not and are having probs and as for feedback i see loads if i go back and read the posts (HINT HINT)

So obvious people are gonna be wary about installing it unless they sure it works fine and as rake posted himself he still has some minor adjudments to do with it himself hence my post above.
Reply With Quote
  #45  
Old 29 Apr 2003, 22:06
rake's Avatar
rake rake is offline
 
Join Date: Nov 2002
Real name: Alex
Today at 10:37 PM iggy123 said this in Post #43
I am having a problem with this hack also, it tells me that i dont have the permissions to add the files????

Even with this update?
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Mod Options

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 22:06.

Layout Options | Width: Wide Color: