Log in

View Full Version : [release] Quotes include Attachments


filburt1
02-28-2003, 10:00 PM
Author: filburt1
Description: If you quote a post that has an attachment, then information about the attachment is included in the quote. It is added as BB Code so the end user has the option of editing or deleting the added text in the quote.
Screenshot: next post

Requested here. Adds one query to newreply.

filburt1
03-01-2003, 09:30 PM
Screenshot:

ChevyMan
03-01-2003, 10:08 PM
Is this suppose to be down by the quick reply box. I installed it and seen no change at all. Any ideas?

filburt1
03-01-2003, 10:16 PM
No, on newreply.

ChevyMan
03-01-2003, 10:17 PM
No, on newreply.

Ok I got it. Can you make one for the quick reply as well?

filburt1
03-01-2003, 10:19 PM
Not easily.

Tony G
03-01-2003, 10:22 PM
Nice little feature here filbie. :)

imported_350Chevy
03-01-2003, 11:30 PM
Excellent work.. Anyway to get this to show the actual image or just a link to the image or attachment (would rather show the actual image) and none of the other information?

filburt1
03-01-2003, 11:31 PM
It's possible but as I said it's a security problem. There's another way to due to to avoid the problem but it requires Apache with mod_rewrite which not everybody has.

imported_350Chevy
03-01-2003, 11:36 PM
It's possible but as I said it's a security problem. There's another way to due to to avoid the problem but it requires Apache with mod_rewrite which not everybody has.


What if all my attachments were images and I added this phpinclude..?


.
.
.
$attachmentbbcode = "\n\n$bburl/attachment.php?s=$session[sessionhash]&postid=$postid]$qa[filename]";
.
.
.

filburt1
03-01-2003, 11:38 PM
Try it, it'll only make a link to the attachment which this mod already does and more. If it makes an image then you have a security hole. Trust me, I've already investigated all possibilities.

imported_350Chevy
03-01-2003, 11:41 PM
Hmmm.. What's the security hole when the image is made? I'm not clear what the difference from URL to IMG would make in security?

BTW, this server is running Apache.. :D

filburt1
03-01-2003, 11:41 PM
Because the URL is dynamic it introduces security problems, and you can't enable dynamic URLs for just one post, let alone one URL.

imported_350Chevy
03-01-2003, 11:42 PM
Interesting. What measures would have to be taken from the server side on Apache to get around this or is it too complicated/too much work?

filburt1
03-01-2003, 11:44 PM
You'd have to write a .htaccess file with mod_rewrite directives to emulate that the post links to a flat file rather than a script.

imported_350Chevy
03-01-2003, 11:48 PM
I tried it your way and it does work.. although the link color is the same color as the background color for my qoute boxes.. I'll work on it a tad. Many thanks again. :)

imported_350Chevy
03-02-2003, 12:41 AM
Works as well as I can ask for I suppose.. Thanks again for all your help..

Although, a thread without any quotes that have an attachment in it have 27 querys. A thread with an attachment quoted has 32 querys. So that's 5 querys added instead of the one you predicted. ;)

No worries.. it's still not bad when it's not used often. :D

filburt1
03-02-2003, 01:50 AM
Whatever, if you look at how the mod is coded it's impossible for it to add queries to any page except for newreply.

imported_subu1
04-16-2003, 01:21 PM
sorry Filburt, you know i am an noob, but where must put this into

not in your post

thxx subu1