Shoutbox

Todo :p (again) Preview thing bug - Printable Version

-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: General (/forumdisplay.php?fid=11)
+---- Forum: Forum & Website (/forumdisplay.php?fid=13)
+----- Thread: Todo :p (again) Preview thing bug (/showthread.php?tid=20236)

Todo :p (again) Preview thing bug by Huuf on 01-08-2004 at 04:11 PM

When you select a attachment and then choose preview and click "Post Thread" then the attachment aint there :dodgy:


RE: Todo :p (again) Preview thing bug by Choli on 01-08-2004 at 04:19 PM

It's a know bug, but I don't think WDZ fixes it, because you may decide not to post the post and the attachmen will remain at the server taking space :-/


RE: Todo :p (again) Preview thing bug by musicalmidget on 01-08-2004 at 07:56 PM

Maybe there could be a "remove attachment" page?


RE: Todo :p (again) Preview thing bug by WDZ on 01-08-2004 at 07:58 PM

quote:
Originally posted by Choli
It's a know bug, but I don't think WDZ fixes it, because you may decide not to post the post and the attachmen will remain at the server taking space :-/
Yep.
RE: Todo :p (again) Preview thing bug by Chrono on 01-08-2004 at 07:59 PM

maybe its fixed in RC1?


RE: Todo :p (again) Preview thing bug by WDZ on 01-08-2004 at 07:59 PM

quote:
Originally posted by musicalmidget
Maybe there could be a "remove attachment" page?
Who would use this page? :p
RE: Todo :p (again) Preview thing bug by WDZ on 01-08-2004 at 08:01 PM

quote:
Originally posted by Chrono
maybe its fixed in RC1?
I don't think so. It's not really a bug, but a limitation.

(Hmm... I'm spamming this thread... :p)
RE: Todo :p (again) Preview thing bug by musicalmidget on 01-08-2004 at 08:18 PM

quote:
Originally posted by WDZ
Who would use this page? :p

Blah, I didn't mean a whole page, I just meant a section on the preview page... :p

Those who would use would be those who choose not to keep their attachments, meaning the attachment can still be shown in the preview bit...if that makes sense to anyone but me. :tongue:
RE: Todo :p (again) Preview thing bug by Choli on 01-08-2004 at 09:22 PM

quote:
Originally posted by musicalmidget
those who choose not to keep their attachments
that's not the problem but someone attaches a file in prewiev and then close the page without doing anything more. The file would stay at the server taking space.
RE: Todo :p (again) Preview thing bug by musicalmidget on 01-08-2004 at 09:31 PM

Oh right.  Nevermind then. :P


RE: Todo :p (again) Preview thing bug by CookieRevised on 01-08-2004 at 10:31 PM

quote:
Originally posted by Choli
that's not the problem but someone attaches a file in prewiev and then close the page without doing anything more. The file would stay at the server taking space.
quick thought: Can't you do a check for that?
I would love to see the feature....
RE: Todo :p (again) Preview thing bug by Choli on 01-08-2004 at 10:40 PM

quote:
Originally posted by CookieRevised
quick thought: Can't you do a check for that?
I would love to see the feature....
well, there may be a script with a timeout. Once you clic preview to have X seconds/minutes to post or the atachment wil l be deleted. I'm not sure if that is possible and easyly doable. Let's ask WDZ. That way, it'd be nice. You could show an image attached to your own post without editing
RE: Todo :p (again) Preview thing bug by WDZ on 01-09-2004 at 05:25 AM

quote:
Originally posted by Choli
well, there may be a script with a timeout. Once you clic preview to have X seconds/minutes to post or the atachment wil l be deleted.
I don't really like the idea of having a PHP script running for a long time like that... kinda half-assed solution. :p

As for the "storing attachment before post" idea in general: attachments need to be associated with posts. If there's no post stored, you can't associate an attachment with it. This can be worked around, but I don't really want to.

* WDZ wonders how the great ^o) Invision Board handles this problem... and vBulletin... :^)

quote:
You could show an image attached to your own post without editing
Blahs... you need the post id to have the attachment URL, and that's not available until you post the message.

There's a feature in MyBB to always show attached images, but I'm not going to enable that because sometimes large images are attached, or you just don't want it shown right away.

There are 2 solutions I can think of...
1) Have an [attachment] bbcode that will be replaced by the attachment URL after posting, so you could do [img=100x100][attachment][/img], for example.
2) The cleaner, but more difficult-to-add option: make the "show attached image in post" feature optional on a per-post basis, as signatures are. This wouldn't allow the attachment to be shown anywhere in the post though, only at the bottom.
RE: Todo :p (again) Preview thing bug by Chrono on 01-09-2004 at 05:35 AM

first one (Y)


RE: Todo :p (again) Preview thing bug by Choli on 01-09-2004 at 10:06 AM

quote:
Originally posted by WDZ
* WDZ wonders how the great  Invision Board handles this problem... and vBulletin...
a temporal posts table in the DB?
quote:
Originally posted by WDZ
you need the post id to have the attachment URL, and that's not available until you post the message.
:$ so true
quote:
Originally posted by Chrono
first one (Y)
yep. Add the [attachment] code ;)
RE: Todo :p (again) Preview thing bug by Tochjo on 01-09-2004 at 03:17 PM

I've given it some thought, and technically, what I'm going to say now isn't offtopic, as it does involve another Preview bug :P

[*]Wrongly checking boxes automaticallyWhen the option to send an email when a reply is posted is disabled by default, and you post a reply to a thread without checking the box manually, you will not receive a reply (which is a good thing). But when you edit your post and choose to Preview it, the box for email notification will be checked automatically. This is probably a bug and thus it requires fixing.

And something else has been bothering me much too, lately:
[*]Wrong interpretation of hyperlinksWhen you type a hyperlink and add a comma after it, the comma will be included in the link. This is not the case with other diacritic symbols, is probably a bug and thus it requires fixing.

So, should they be fixed? *-)

Edit: forgot to say I'd like the [attachment] code too :)


RE: Todo :p (again) Preview thing bug by Choli on 01-09-2004 at 03:28 PM

quote:
Originally posted by Tochjo
[*]Wrong interpretation of hyperlinksWhen you type a hyperlink and add a comma after it, the comma will be included in the link. This is not the case with other diacritic symbols, is probably a bug and thus it requires fixing.

Hyperlinks may have comas, so MyBB add the coma to the link bacuse it thinks it's part of the link. That's a right behavior. If you don't want the coma at the link, put a space or use the [url] tag.
Talking about links, I've just remembered this bug:
code:
click here: http://www.example.com

click here: http://www.example.com
move your mouse over the "click here" and the url. The underlined does not take both thing. MyBB puts two links instead of only one.
RE: Todo :p (again) Preview thing bug by Tochjo on 01-09-2004 at 03:42 PM

quote:
Originally posted by Choli
Hyperlinks may have comas, so MyBB add the coma to the link bacuse it thinks it's part of the link. That's a right behavior. If you don't want the coma at the link, put a space or use the [url] tag.
Hyperlinks can also contain dots, but when I place a dot at the end of a hyperlink, it will not be included in the hyperlink. Yet a comma will: that sounds like a bug to me. And I know how to fix it avoid this problem, don't worry :P
RE: Todo :p (again) Preview thing bug by fluffy_lobster on 01-09-2004 at 05:22 PM

Back to the preview thing, couldn't the preview page reinsert the path of the attachment into the new preview box?  The user is hardly going to change the path in between previewing and posting...


RE: Todo :p (again) Preview thing bug by WDZ on 01-09-2004 at 06:10 PM

quote:
Originally posted by Tochjo
[*]Wrongly checking boxes automaticallyWhen the option to send an email when a reply is posted is disabled by default, and you post a reply to a thread without checking the box manually, you will not receive a reply (which is a good thing). But when you edit your post and choose to Preview it, the box for email notification will be checked automatically. This is probably a bug and thus it requires fixing.
I believe I've already fixed this in the upgrade I'm preparing.

quote:
[*]Wrong interpretation of hyperlinksWhen you type a hyperlink and add a comma after it, the comma will be included in the link. This is not the case with other diacritic symbols, is probably a bug and thus it requires fixing.
"Diacritic"? :S I guess it's time for some WDZ vocabulary expansion... :p

I intentionally made the parser exclude any "." character at the end of a URL from the link. I did this because people often want a link at the end of a sentence... http://www.example.com.

I didn't do the same with any other "diacritic" :dodgy: characters because they're not used as commonly, and I'd have to add them all individually. Also, the more characters you're checking for, the less efficient your code is going to be. If you really want the comma though, I'll look into adding it.

quote:
Edit: forgot to say I'd like the [attachment] code too :)
Good, people like my brilliant attachment code idea... (Y) :refuck:

quote:
Originally posted by Choli
Talking about links, I've just remembered this bug:
code:
click here: http://www.example.com

click here: http://www.example.com
move your mouse over the "click here" and the url. The underlined does not take both thing. MyBB puts two links instead of only one.
Sorry, but I'm not going to fix that. First of all, it's near impossible to fix completely, second, you're not using the bbcode correctly (or in way that makes sense), so it's a user error, and third, there's no visible problem with the result.

quote:
Originally posted by Tochjo
Hyperlinks can also contain dots, but when I place a dot at the end of a hyperlink, it will not be included in the hyperlink. Yet a comma will: that sounds like a bug to me.
Not really... as I made it exclude the dot intentionally. I didn't add support for commas, so it's a missing feature. :refuck:

quote:
And I know how to fix it, don't worry :P
^o) Really? Since when do you know PHP, and since when do you have my code? :tongue:

Edit: Ohh... dodgy edit. =P

quote:
Originally posted by fluffy_lobster
Back to the preview thing, couldn't the preview page reinsert the path of the attachment into the new preview box?  The user is hardly going to change the path in between previewing and posting...
That's not allowed by browsers for security reasons. I could steal any file off your PC if I had the path entered by default there. Try adding the value="" attribute to an <input type="file"> tag... it will be ignored.

RE: Todo :p (again) Preview thing bug by Huuf on 01-09-2004 at 06:10 PM

I was thinking about
you choose a file
and the text is allready put in the preview one ¬_¬ not allready attach it, so the path is allready added in the box


RE: Todo :p (again) Preview thing bug by WDZ on 01-09-2004 at 06:28 PM

quote:
Originally posted by Huuf
I was thinking about
you choose a file
and the text is allready put in the preview one ¬_¬ not allready attach it, so the path is allready added in the box
Well, as I just said in reply to fluffy_lobster, that's not possible. If it was, I definitely would have already added it, because it's the easiest and most obvious solution. :p
RE: Todo :p (again) Preview thing bug by Choli on 01-09-2004 at 06:34 PM

quote:
Originally posted by WDZ
Good, people like my brilliant attachment code idea...
wdz... :dodgy:
quote:
Originally posted by WDZ
Sorry, but I'm not going to fix that. First of all, it's near impossible to fix completely, second, you're not using the bbcode correctly (or in way that makes sense), so it's a user error, and third, there's no visible problem with the result.
:blah!: i use MyBB code well :P Usually that makes no sense, but once I had to post it so I found the bug. I don't care it you don't fix that ;) oh, btw, there IS a visible problem. Who reads that may think there are 2 different links instead of only one :P

RE: RE: Todo :p (again) Preview thing bug by Tochjo on 01-09-2004 at 07:16 PM

quote:
Originally posted by WDZ
quote:
Originally posted by Tochjo
[*]Wrongly checking boxes automaticallyWhen the option to send an email when a reply is posted is disabled by default, and you post a reply to a thread without checking the box manually, you will not receive a reply (which is a good thing). But when you edit your post and choose to Preview it, the box for email notification will be checked automatically. This is probably a bug and thus it requires fixing.
I believe I've already fixed this in the upgrade I'm preparing.
[Image: banana_flip.gif]:bow:[Image: banana_flip.gif]

quote:
Originally posted by WDZ
quote:
[*]Wrong interpretation of hyperlinksWhen you type a hyperlink and add a comma after it, the comma will be included in the link. This is not the case with other diacritic symbols, is probably a bug and thus it requires fixing.
"Diacritic"? :S I guess it's time for some WDZ vocabulary expansion... :p
Sorry, partly my fault: diacritic isn't the correct word to use here (that's what you get when English isn't your native language :P), should've used "punctuation mark"; a diacritic btw is a mark added to a letter to indicate a special pronunciation, so ñ has a diacritic.

quote:
Originally posted by WDZ
If you really want the comma though, I'll look into adding it.
[Image: banana_flip.gif]:bow:[Image: banana_flip.gif]

quote:
Originally posted by WDZ
quote:
Originally posted by Tochjo
Hyperlinks can also contain dots, but when I place a dot at the end of a hyperlink, it will not be included in the hyperlink. Yet a comma will: that sounds like a bug to me.
I didn't add support for commas, so it's a missing feature. :refuck:
:lol:
Yeah right :P

quote:
Originally posted by WDZ
quote:
And I know how to fix it, don't worry :P
^o) Really? Since when do you know PHP, and since when do you have my code? :tongue:

Edit: Ohh... dodgy edit. =P
I know, I saw you reading this thread when I looked at the Who's Online list, then I reread my post and corrected that little thing in my post :P
RE: Todo :p (again) Preview thing bug by Choli on 01-09-2004 at 07:27 PM

quote:
Originally posted by Tochjo
so ñ has a diacritic
in spanish, ñ is a different letter, not n with diacritic. diacritics would be the accents áéíóú and dieresis (umlauts or whatever they're called) ü
RE: Todo :p (again) Preview thing bug by Tochjo on 01-09-2004 at 07:29 PM

quote:
Originally posted by Choli
in spanish, ñ is a different letter, not n with diacritic. diacritics would be the accents áéíóú and dieresis (umlauts or whatever they're called) ü
Really? Dodgy article at http://www.thefreedictionary.com/diacritic :dodgy:
RE: Todo :p (again) Preview thing bug by Choli on 01-09-2004 at 08:39 PM

quote:
Originally posted by Tochjo
Really? Dodgy article at http://www.thefreedictionary.com/diacritic :dodgy:
:dodgy:
ñ sounds similar to n but it's a different letter. if you look at a spanish dictionary you'll see first all the words that begin with n and then the ones that begin with ñ
in spanish, the accents (áéíóú) doesn't change the sound of those vowels, but they change the stress of the word (where you pronounce it louder). They're the same letters (a=á, e=é...) and in dontionaries you see them all togheter. about the dieresis, it's the same as accents. ;)
RE: Todo :p (again) Preview thing bug by rav0 on 01-10-2004 at 02:05 PM

how about

code:
[img]attachmentname.png[img]
and how about enabling multiple attachments say 5-8 and applying a total attachment size limit to make it look nicer y not put an "add attachment" button which open a popup with the multi "Attachment:" fields
RE: Todo :p (again) Preview thing bug by Choli on 01-10-2004 at 03:00 PM

no, it's better to have only one attachment per post. This way, the DB is less complex. why do you want more attachments per post? usually you cdon't attach anything and when you do it's only one. finally, you can post twice and attache 2 files ;)


RE: Todo :p (again) Preview thing bug by fluffy_lobster on 01-10-2004 at 03:59 PM

Or attach a zip :gfdrin:


RE: Todo :p (again) Preview thing bug by Guido on 01-10-2004 at 09:29 PM

New PhpBB version will have multiple attachments... ^o) (or was it the new IPB? whatever...)

That's a nice thing :)


RE: Todo :p (again) Preview thing bug by WDZ on 01-10-2004 at 10:06 PM

Blah... multiple attachments... :dodgy:

The attachments of this board take up too much space already. :P


RE: Todo :p (again) Preview thing bug by Guido on 01-10-2004 at 10:57 PM

quote:
Originally posted by WDZ
Blah... multiple attachments... :dodgy:

The attachments of this board take up too much space already. :P
But the size limit can be kept. I.e. lets say you currently can upload a file of up to 500kb, with multiple attachments you could attach up to 5 of 100kb each or similar combinations, with, for example, a 10-file limit.

It's handy... and will save some posts when wanting to post 9 images :P

RE: Todo :p (again) Preview thing bug by WDZ on 01-10-2004 at 11:05 PM

I don't want 9 images in a post though. :refuck:

Be happy that you can attach 1 file. |-)