SUGGESTIONS uso:Draggable Reply Box

in
Subscribe to SUGGESTIONS uso:Draggable Reply Box 25 posts, 3 voices



Marti Scriptwright
Me again... nice! Request list sooper pleeez
  • COMPLETE Increase left padding/margin on arrows button just a tiny bit please.
  • COMPLETE Mouse drag outside of button on edit post doesn't appear to work like reply to topic
  • COMPLETE When logged out script should ALWAYS BE EXECUTED...
    and could you remap the X and maybe the cancel to hide the dang thing with site JavaScript disabled. My script does this part
  • COMPLETE Canceling an edit on edit post prevents "remembering" of last position like reply to topic.
  • COMPLETE Some way to restore original placement... like a default
    Buttons "Click to top" and "Click to bottom" of the BROWSER window, not the uso page.
  • COMPLETE After deletion of a topic, code still tries to execute on the 404 page. See related issue
  • COMPLETE Button image, with id="drag_edit",, depiction of up/right/down/left is inaccurate on my platform.
    Unable to move text editor left or right
  • PARTIAL Boundry limits on how far down and up it can go... some ppl use mouse keys and may not have browser maximized... it could easily get "lost"
  • PARTIAL Editing a post always brings it back to the incorrect position.
Sorry JoeSimmons, but this script has too many issues to contend with and is self defeating to continue evaluation.
 
JoeSimmons Script's Author
Marti wrote:
When logged out script should ALWAYS BE EXECUTED
Why do you need a draggable reply box when you're logged out and can't even reply?
Marti wrote:
could you remap the X and maybe the cancel to hide the dang thing with site JavaScript disabled
I'm not quite sure I understand.
Marti wrote:
Some way to restore original placement... like a default
Probably not. I made it so you can't drag over the end of the page so you don't really need that.
Marti wrote:
Boundry limits on how far down and up it can go... some ppl use mouse keys and may not have browser maximized... it could easily get "lost"
I added bottom and top limits. Check it out.
Marti wrote:
Editing a post always brings it back to the incorrect position.

What position is incorrect? That's where the server places it.
Marti wrote:
Mouse drag outside of button on edit post doesn't appear to work like reply to topic
I have no idea what you mean.
Marti wrote:
Canceling an edit on edit post prevents "remembering" of last position like reply to topic.
The server does this.
Marti wrote:
Increase left padding/margin on arrows button just a tiny bit please.
I made a 4 pixel top and left margin.
 
Marti Scriptwright

JoeSimmons wrote:
Why do you need a draggable reply box when you're logged out and can't even reply?
JoeSimmons wrote:
I'm not quite sure I understand.
Disable GM, Disable site JavaScript, view this current topic. Text editor always pops up which is good for testing to see if a script is manipulating it... in this particular case I LIKE that this script is currently showing me the push button because it's irritating to see the text editor when I'm reading "offline". If it's possible to put a temporary click event listener on the X and cancel anchors while NOT LOGGED IN, I wouldn't have to remove it from the DOM manually on every discussion/topic page.

JoeSimmons wrote:
Probably not. I made it so you can't drag over the end of the page so you don't really need that.
Probably should still. Maybe two more buttons that would push to top and push to bottom? Do like the limiting in this version so that is a partial improvement.

JoeSimmons wrote:
I added bottom and top limits
Top limit appears to be working... however bottom limit only worked once during this post creation. I can scroll the main page all the way to the bottom, then push the text editor window beyond the main page limit. Intermittent bottom of page detection in this version.

JoeSimmons wrote:
What position is incorrect? That's where the server places it.
JoeSimmons wrote:
The server does this.
I'll double check this with no scripts enabled and will report back here. No the server doesn't... The server always bottom justifies to the current browswer window. Your script kicks it up a certain percentage on editing a post, but it doesn't do this on reply to topic.

JoeSimmons wrote:
I have no idea what you mean.
Don't worry about it... this version fixed it.

JoeSimmons wrote:
I made a 4 pixel top and left margin.
Kewlieez! Thanks


What quoting script are you using that strips out the anchor link on wrote in your posts?

 
JoeSimmons Script's Author

Marti wrote:
Disable GM, Disable site JavaScript, view this current topic. Text editor always pops up which is good for testing to see if a script is manipulating it... in this particular case I LIKE that this script is currently showing me the push button because it's irritating to see the text editor when I'm reading "offline". If it's possible to put a temporary click event listener on the X and cancel anchors while NOT LOGGED IN, I wouldn't have to remove it from the DOM manually on every discussion/topic page.

Oh I see what you mean now. Fixed this in 1.0.4.
Marti wrote:
bottom limit only worked once during this post creation. I can scroll the main page all the way to the bottom, then push the text editor window beyond the main page limit. Intermittent bottom of page detection in this version.

I can't seem to replicate this. Both limits work perfectly for me. Can you tell me in more detail (which you usually don't) what you mean by main page?
Marti wrote:
Your script kicks it up a certain percentage on editing a post, but it doesn't do this on reply to topic.

It kicks up both the reply and edit boxes to the same place and is necessary to do to make the script work. Plus the server replaces the whole edit box (node and all) every time you click edit (which includes the style attribute), and it's impossible it to stay in one place after you click several edits. I even tried CSS but it seems quite impossible. No biggie anyways. Ask Jesse about it.
Marti wrote:
What quoting script are you using that strips out the anchor link on wrote in your posts?

I'm using my own, and it doesn't strip it out, it just doesn't add it yet.


I'm thinking about instead of putting an icon to click to move it, just being able to click anywhere on the dark part of the reply/edit area and you can drag it that way. Comments/suggestions/ideas?

 
sizzlemctwizzle Scriptwright

JoeSimmons wrote:
Marti wrote:
What quoting script are you using that strips out the anchor link on wrote in your posts?

I'm using my own, and it doesn't strip it out, it just doesn't add it yet.

I had to account for that in my quoting script in order to get nested quoting to work for your quotes. This is what I use to link the "wrote"
'<a href="'+location.pathname+location.search+'#posts-'+post_id+'">wrote</a>:'

Btw, I finally managed to fix that nasty error I was getting in my quote script. I also added this feature where if you have an edit or reply box already open the quote will be inserted after the cursor instead of appending it to the end of the textarea.

 
Marti Scriptwright

JoeSimmons wrote:
Marti wrote:
Disable GM, Disable site JavaScript, view this current topic. Text editor always pops up which is good for testing to see if a script is manipulating it... in this particular case I LIKE that this script is currently showing me the push button because it's irritating to see the text editor when I'm reading "offline". If it's possible to put a temporary click event listener on the X and cancel anchors while NOT LOGGED IN, I wouldn't have to remove it from the DOM manually on every discussion/topic page.
Oh I see what you mean now. Fixed this in 1.0.4.
UGGH Reverting to verion 1.0.3. You got my request backwards... now the button doesn't show period when logged out. I like the button (or your dark matter idea too that you actually partially had in 1.0.2) as a temporary fix instead of me removing the text editor manually from the DOM...
JoeSimmons wrote:
Can you tell me in more detail (which you usually don't) what you mean by main page?
I do too! Main page is the length of the body tag here on uso. :P""""
as I mentioned here...
Marti wrote:
Intermittent bottom of page detection
It is hard to reproduce. :P

 
JoeSimmons Script's Author

Marti wrote:
UGGH Reverting to verion 1.0.3. You got my request backwards... now the button doesn't show period when logged out. I like the button (or your dark matter idea too that you actually partially had in 1.0.2) as a temporary fix instead of me removing the text editor manually from the DOM...

Oh I see what you mean now, for sure, lol. I'm not changing it though. I don't want it there when logged out. People would not do this besides for testing. Make your own script to automatically hide the reply box because I'm keeping my script only doing what it says it will do, no more, no less.
$('reply').style.display='none';
$('edit').style.display='none';

Use that in a userscript command or keyboard shortcut to call that if you need.
Marti wrote:
Main page is the length of the body tag here on uso

I thought you meant http://userscripts.org/
Be careful with what you say. You should have linked to the page when you said main page, at least.


By the way, I fixed a big bug where I forgot to add a style to the div.editbox in 1.0.5. 1.0.3 didn't have this bug but I advise you use 1.0.5 and do what I said up top.

 
Marti Scriptwright

JoeSimmons wrote:
Oh I see what you mean now, for sure, lol. I'm not changing it though
That's unfortunate... without implementing this or one of the other feature requests to combat all of these problems, some being dismissed... I will be forced to rate your script earlier than planned. :(

JoeSimmons wrote:
Marti wrote:
Main page is the length of the body tag here on uso
I thought you meant http://userscripts.org/
Be careful with what you say. You should have linked to the page when you said main page, at least.
I'll make a note of it that you didn't take it in context.

 
JoeSimmons Script's Author
Marti wrote: Button image, with id="drag_edit",, depiction of up/right/down/left is inaccurate on my platform.
Unable to move text editor left or right
I can't find an icon where it's only vertical arrows.
Marti wrote: After deletion of a topic, code still tries to execute on the 404 page
Fixed. Manual update, since it's not a huge bug.
Marti wrote: Some way to restore original placement... like a default
Due to how the script functions, this might be hard. I'll try it.
Marti wrote: I will be forced to rate your script earlier than planned... with this in mind
I don't know why you're being so condescending, but I don't care what you rate it. If it affects a person's decision to install it, which it 8 times out of 10 wouldn't, then it's their loss. I want my script only doing what I made it for, dragging reply/edit boxes, nothing more. Go ahead and uninstall it if you don't like it because I will not be catering to your problems like everything you say should be done simply because you said it. To revert it back, to remove the line that follows // Kill script if not logged in.
Marti wrote: I'll make a note of it that you didn't take it in context.
Have you ever sparked the thought that maybe someone might not understand you 100%?
And those 2 UNACKNOWLEDGED's up top, that's a straight lie. I acknowledged them. You didn't even give me time to reply before you marked it that. Stop being a dick. You're not the being I worship.
 
Marti Scriptwright

JoeSimmons wrote:
Marti wrote: Button image, with id="drag_edit",, depiction of up/right/down/left is inaccurate on my platform.
Unable to move text editor left or right
I can't find an icon where it's only vertical arrows.
Marti wrote: After deletion of a topic, code still tries to execute on the 404 page
Fixed. Manual update, since it's not a huge bug.
Marti wrote: Some way to restore original placement... like a default
Due to how the script functions, this might be hard. I'll try it.
Marti wrote: I will be forced to rate your script earlier than planned... with this in mind
I don't know why you're being so condescending, but I don't care what you rate it. If it affects a person's decision to install it, which it 8 times out of 10 wouldn't, then it's their loss. I want my script only doing what I made it for, dragging reply/edit boxes, nothing more. Go ahead and uninstall it if you don't like it because I will not be catering to your problems like everything you say should be done simply because you said it. To revert it back, to remove the line that follows // Kill script if not logged in.
Marti wrote: I'll make a note of it that you didn't take it in context.
Have you ever sparked the thought that maybe someone might not understand you 100%?
I'm not being condescending... I'm being fair minded. It is your script, and I know you've read that when I type it to sizzlemctwizzle, but it's too problematic to invest the time into giving you feedback on this one. It doesn't help me out commenting here but it may help someone else.

 
Marti Scriptwright

JoeSimmons wrote:
And those 2 UNACKNOWLEDGED's up top, that's a straight lie. I acknowledged them. You didn't even give me time to reply before you marked it that. Stop being a dick. You're not the being I worship.
Prime example of why it's too problematic on feedback. I have already uninstalled it and my fair rating and disucssions still apply in context. The time stamps versus your responses merit the UNACKNOWLEDGED mark. As of that time they were... you can continue on with this without my suggestions.

 
JoeSimmons Script's Author

Marti wrote:
The time stamps versus your responses merit the UNACKNOWLEDGED mark

This is the timestamp of your request:
23 hours ago

You need to wait longer than that, bud. I can't be on every minute of the day to serve you.
I neither wanted nor asked you to review my script. I simply fixed some bugs in the script that you mentioned, not caring about rating. Your review is totally bullshit, nothing more. The script does exactly what it claims, Gives the reply box drag power so you can read other replies . It's way over the "passable" margin. You rated it a 3 solely because I would not tend to all your needs. You, my friend, are narcissistic. People will definitely ignore your review and still install my script because you didn't even review it, you just rated it a 3 without any explanation what-so-ever; nothing about what it did, what it didn't do, etc. You had to fill up your review with the description of a review because you didn't really have a review. If they read this discussion, they would surely ignore your review.
I am going to sleep now. Just telling you so you won't have any more sporadic claims of time stamps and me not reading the replies when you want me to and not when I get on.

 
Marti Scriptwright

JoeSimmons wrote:
You need to wait longer than that, bud. I can't be on every minute of the day to serve you.
I neither wanted nor asked you to review my script. I simply fixed some bugs in the script that you mentioned, not caring about rating. Your review is totally bullshit, nothing more. The script does exactly what it claims, Gives the reply box drag power so you can read other replies . It's way over the "passable" margin. You rated it a 3 solely because I would not tend to all your needs. You, my friend, are narcissistic. People will definitely ignore your review and still install my script because you didn't even review it, you just rated it a 3 without any explanation what-so-ever; nothing about what it did, what it didn't do, etc. You had to fill up your review with the description of a review because you didn't really have a review. If they read this discussion, they would surely ignore your review.
I am going to sleep now. Just telling you so you won't have any more sporadic claims of time stamps and me not reading the replies when you want me to and not when I get on.

 
JoeSimmons Script's Author
A few more things about your requests...
Marti wrote:
UNRESOLVED Boundry limits on how far down and up it can go... some ppl use mouse keys and may not have browser maximized... it could easily get "lost"
I did add boundry limits. It works perfectly for me. I was working on that with you to fix it but you deemed it "unresolved."
Marti wrote:
UNRESOLVED Editing a post always brings it back to the incorrect position
I will fix this.
Marti wrote:
UNRESOLVED Canceling an edit on edit post prevents "remembering" of last position like reply to topic
It will never be "resolved" since I already said the server makes it do this. Don't disable JavaScript when you test it, just turn off my script. It re-writes the whole node.
Marti wrote:
UNRESOLVED Some way to restore original placement... like a default
Buttons "Click to top" and "Click to bottom" of the BROWSER window, not the uso page
This might be useful for others, and I am going to add it, but tomorrow. Don't hound me on "time stamps."
And why did you quote me without saying anything yourself?
 
JoeSimmons Script's Author
Marti wrote:
REJECTED When logged out script should ALWAYS BE EXECUTED
I changed this. It's always executed now.
Marti wrote:
UNRESOLVED Editing a post always brings it back to the incorrect position.
I fixed this for you. When you click reply or edit, the boxes are immediately put to the exact bottom of the page every time. If you drag a reply box for example, cancel it, then click reply again, it will be on the bottom of the window again, not in the previous dragged area.
 
Marti Scriptwright

JoeSimmons wrote:
I can't find an icon where it's only vertical arrows.
First a gift, if you like it...moveupdn.jpg Up for 7 days btw then it self deletes.


JoeSimmons wrote:
the boxes are immediately put to the exact bottom of the page every time.
Works "most of the time" but a few times it goes further down than the bottom of the browser window... just as long as it doesn't sneak away from me.... maybe it's because I had the Firefox's find open too... will reexamine again including when logged off.

 
JoeSimmons Script's Author
Marti wrote:
PENDING Boundry limits on how far down and up it can go... some ppl use mouse keys and may not have browser maximized... it could easily get "lost"
It has limits. Bottom and top. Do they not work in your browser?
Marti wrote:
First a gift, if you like it...moveupdn.jpg
I like it. I'll stick it in.
What do you think about the idea of being able to click on the dark part of the box to move the box, not just an icon?
Marti wrote:
Works "most of the time" but a few times it goes further down than the bottom of the browser window... just as long as it doesn't sneak away from me.... maybe it's because I had the Firefox's find open too... will reexamine again.
It is when you quote someone? It's a bug in being that the Edit post link isn't clicked and the listener's function isn't executed so it isn't aligned. I made it as close as I could get it initially but I think it's impossible to do other than make an interval the whole time to check when the edit box is up and align it, which I will not do. I don't think I can fix that for the edit box, but I did fix it for the reply box.
 
Marti Scriptwright

JoeSimmons wrote:
What do you think about the idea of being able to click on the dark part of the box to move the box, not just an icon?
I liked that in 1.0.2... it partially did it and somewhere I commented on that... but movement is a little sluggish... You might want to check to see if you are cancelling your event listener and what not.

It could be sizzles algorithm too fighting against yours depending on who is loading first... might want to put that into an event listener as well and adjust accordingly... remember these are just suggestions... I haven't examined your code in great detail to see what you are doing and the same goes with sizzle's latest changes. This particular reply to topic via Quote is too low but I can drag it upward and it appears to be bounded properly.

 
Marti Scriptwright

JoeSimmons wrote:
Marti wrote:
PENDING Boundry limits on how far down and up it can go... some ppl use mouse keys and may not have browser maximized... it could easily get "lost"
It has limits. Bottom and top. Do they not work in your browser?
Marti wrote:
First a gift, if you like it...moveupdn.jpg
I like it. I'll stick it in.
What do you think about the idea of being able to click on the dark part of the box to move the box, not just an icon?
Marti wrote:
Works "most of the time" but a few times it goes further down than the bottom of the browser window... just as long as it doesn't sneak away from me.... maybe it's because I had the Firefox's find open too... will reexamine again.
It is when you quote someone? It's a bug in being that the Edit post link isn't clicked and the listener's function isn't executed so it isn't aligned. I made it as close as I could get it initially but I think it's impossible to do other than make an interval the whole time to check when the edit box is up and align it, which I will not do. I don't think I can fix that for the edit box, but I did fix it for the reply box.

Quoting you on this destroyed the browser window boundary limitation. Seems to have killed sizzle's preview button too but I may be out of date... lemme check.


UGGH he made a change too and didn't bump his version... soooo installed it anyways... retesting.

Same issue present... when I select a full Quote... blows the boundary check and kills sizzle's preview button. I'll retest without sizzle's enable... althought that's gonna suck LOL

Smoother up down movement when sizzle's is disabled... so probably on the right track as far as both scripts fighting each other.

Disabled this script and sizzle's preview button always shows... soooooooo problem somewhere.

 
JoeSimmons Script's Author
Marti wrote:
Quoting you on this destroyed the browser window boundary limitation
Seems to work fine for me. Maybe it's sizzle's script. Try my Quick Quote script, it does everything sizzle's does (mostly, except a weird bug which probably won't be found by people using it until I fix it) with shorter code (no offense to him) except make a link for wrote: which I am adding. It also removes that annoying blank line between wrote: and the quote text, which I told him how to fix.
Everything works perfectly on my end. Smooth dragging and the boundary limits never get killed.
 
Marti Scriptwright

JoeSimmons wrote:
Try my Quick Quote script
Part of being a software engineer is working with other peoples code. I appreciate the offer, but no offense intended, I'd rather stick with his as I'm quite used to it. When I have some more free time down the road, I may give it a shot.

Btw "lost the reply" box on this post... had to disable alternate CSS script and reload the page several times before it would let me move it with the arrows.

 
JoeSimmons Script's Author
Marti wrote:
I appreciate the offer, but no offense intended, I'd rather stick with his as I'm quite used to it
Mine will look the same way when you use it, lol.
 
Marti Scriptwright

btw where'd you learn this trick of going to near the last post of a topic?

Also this script (yours here, this one) is killing his Alt+l... had to disable your script to get it to work.


Hold off for a while... USO is being tinkered with and can't do much at the moment here... will retest tomorrow

 
JoeSimmons Script's Author
Marti wrote:
btw where'd you learn this trick of going to near the last post of a topic?
Just grabbed the id of the whole tr instead of the id of the td inside it and used it as an anchor in urls.
 
JoeSimmons Script's Author
Marti wrote:
PARTIAL Editing a post always brings it back to the incorrect position.
Why partial? What's it missing still?
Cross
Presentational HTML allowed.
Use <code> for inline code and <pre> for code blocks. Use &lt; and &gt; for literal < and >.
We help break paragraphs and link your links.
or cancel