![]() |
Keep attachments when previewing messages
This hack solves the problem of attachments not being carried on when you preview your message. The "Attach File" box empties itself and you must re-choose the file before posting the message.
So I've "fixed" this little problem. Now when you preview, the attachments is stored in the database, and in the preview screen you get the "Edit Attachment" box (you know that, you see it whenever you edit a post with an attachment). You can Keep, Update or Delete the attachment. Orphaned attachments (people may preview posts with attachments but never post them) are removed in newthread.php and newreply.php, every 5 minutes. That's all. The vbHacker file is attached to this post, and a regular text file version will be posted in a minute. I will install the hack on this board in 5 or 10 minutes, so you can see what I'm talking about. Enjoy! :bunny: |
And the text file, as promised.
|
Very good addon :)
|
Nice!
|
I'm not finding this bit of code in newreply.php
PHP Code:
PHP Code:
PHP Code:
PHP Code:
|
Excellent addition, Firefly! Will this also work with the preview private messages hack? :)
|
Smoothie; You are using an older version of vBulletin.
|
Thanks for reply FireFly. So, is there anyway to get this hack to work with the version I'm using?
|
Just replace what you have now with my code. You will also get a bug fixed while doing it.
|
FireFly, I replaced my code with yours, but it didn't work. When I try to post a new reply, or add a new thread, nothing happens.
|
All times are GMT. The time now is 06:05 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:
|