![]() |
Shouldn't the attachment show above that button without having to click the manage attachments button to see it?
|
It should. That way it is very similar to the normal preview way of doing it. Here is the fix.
find this: Code:
'newpost_attachment' Code:
'newpost_attachment', Code:
eval('$attachmentoption = "' . fetch_template('newpost_attachment') . '";'); Code:
$currentattaches = $DB_site->query(" |
Works great! Thanks! ;)
Is the first post updated? How would we add the attachments ability to Erwin's Quick Peply hack? ;) |
Quote:
It should be possible to add them, I'll take a look at it. |
Can you pm me with your edits for the textarea and submit button? ;)
|
Can you allow only certain usergroups to use this function?
|
Quote:
Anyway, what is this obsession with everything being usergroup based lately? (Second hack I get asked) With around 10 usergroups in my forum it is becoming a nightmare for me checking that every option is right.... |
Can you just point me to the right area, and I can do the editing? I am pretty comfortable with PHP.
|
Quote:
I've installed the hack on 3/1/04 and everything seems to be working fine, except some little bug, where I'll describe in a new post! |
Now, my problem with the hack is that the recipient clicks the attachment link, and gets an error message of: "No Post Defined". HELP
|
Quote:
Please keep in mind that if you save a copy in your sent folder that counts as a pm, so the attachment wouldn't be deleted until both the recipient's pm and your copy of the pm are deleted. It is the first time I have seen that "No post defined" error... do you have any other hack that deals with pm's or attachments installed? |
No, I do not. Your hack is the only one I've installed at all. I went back and double checked everything. However, when I get down to the SQL, I did have problems running those. I ran each individually and it did create the three tables. Though the ALTER TABLE attachment add index (private) query gave me problems though, but I eventually did create the table manually.
|
ok, BIG problem...... I just found out that someone can easily go to your attachment.php page in the browser and just browse through attachments! they can do this by:
attachment.php?attachmentid=1 attachment.php?attachmentid=2 attachment.php?attachmentid=3 Is there a way you can re-release this hack and change the way vBulletin handles attachments? I would suggest md5summing the attachment upon upload and assigning the checksum as the attachment ID. I certainly don't want someone browsing through my members' private attachments!!! :) |
Quote:
|
Can you update the first post with all of the changes up until now, please? ;)
|
Quote:
|
Thank you kindly, sir. ;)
|
can private attachments be done by user groups for example make it a premium only option ?
|
is there going to be a new release for vb3 gold? I just did a clean install and am having serious problems with it... there was a lot of code rewrites in the new version, and none of the strings match :(
|
Are you sure? The code shouldn't have changed at all in the final release from RC3 at least.
|
Quote:
|
I'm sure Kentaurus will upgrade his hack, but I will go through the code and see what needs to be changed in the meantime. There can't be that much to change to make it work. Sit tight. ;)
|
I installed it using vb3 gold and I'm having no problems at all. So far, it works just fine.
|
Can you post the differences in the code here for those that are having problems? ;)
|
Uhm maybe this is a bug? I got an parse error in column 164. It is:
at line 156, search for this code: ------------------------------------------------------------------- verify_forum_password($foruminfo['forumid'], $foruminfo['password']); ------------------------------------------------------------------ change it to: ------------------------------------------------------------------- else if (!($forumperms & CANPOSTNEW) && !$privateattachment) // newthread.php { print_no_permission(); } I removed the else from the if statement... now it works. Ok so? |
That's odd, wonder if you copied it right because I didn't need to delete anything for it to work. If you backed up the files, try it one more time. There's no need to delete any part of the code.
|
heres a note for everyone thats using this hack
i had my files as attachments but the hack kept giving me invalid attachment error but soon as i moved them back into the database everything was fixed so my question would be is there anyway to make it work with files as attachments |
That's how it is set up at my site and as you saw, it works fine. ;)
|
So i'm kinda confused, how do u integrate this hack with erwin's quick pm reply hack? I think it was alreayd done but it was kinda vague what to do.
|
Kentuarus posted a how-to (either in here or Erwin's thread, I can't remember which now) for adding this to Erwin's Quick Reply. ;)
|
I'm still having problems with vb 3 gold.... permissions errors when the recipient views an attachment :(
|
Simply, this hack doesn't work in gold for me; it?s the only hack i have instaled in v.3 RC4 :(
There are some differences in scripts from releases ... |
Quote:
it doesn't work with attachments as files didn't for me anyway :p |
I've got it working with attachments as files just fine. What version of vb3 did you have it not working that way?
|
It works fine with attachments as files in RC4.
In Gold, all is apparently ok but in the privates there are no files :D |
Quote:
|
Well, I talked to Kentaurus and he said he is using Gold and this hack works fine for him.
|
Quote:
|
hello??? anybody???
|
Will Install later
/me clicks install |
All times are GMT. The time now is 08:14 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|