PDA

Click to See Complete Forum and Search --> : New Feature?


space_monkey
May 23rd, 2006, 09:35 AM
Have i just not seen it before or did you just add the "CharsLeft" feature?


Its pretty handy btw.

Static
May 23rd, 2006, 09:38 AM
i think its new to 3.0.12....

but im still waiting for 3.5!!! c'mon! hurry!! lol

sevenhalo
May 23rd, 2006, 09:40 AM
I just noticed that too. It's craziness, but kinda neat.

Static
May 23rd, 2006, 09:49 AM
I like the "last post" too

pull the last thing u typed back in :)

sevenhalo
May 23rd, 2006, 09:51 AM
I like the "last post" too

pull the last thing u typed back in :)
I just noticed that too. It's craziness, but kinda neat.

JPnyc
May 23rd, 2006, 09:57 AM
It's not a vbulletin feature, I wrote it this morning.

sevenhalo
May 23rd, 2006, 10:14 AM
Nice :thumb:

Thanks.

JPnyc
May 23rd, 2006, 10:22 AM
Glad you like it. I'm trying to integrate it more with the LastPost feature I added a few weeks ago.

JPnyc
May 23rd, 2006, 10:24 AM
Ah, there it is. Now when you click LastPost it also shows the chars left.

space_monkey
May 23rd, 2006, 10:44 AM
Sweet

***pats joe on the back***

Good Work

penagate
May 23rd, 2006, 10:45 AM
Neat. :thumb:

Static - we'll go to 3.5 eventually, JM has a lot of forums to maintain not just us ;)

JPnyc
May 23rd, 2006, 10:53 AM
Thank you, thank you, no applause. Just send money :D. Yes, we have 30 forums to upgrade. Usually by the time we finish it's time to start again.

Hack
May 23rd, 2006, 11:07 AM
Thank you, thank you, no applause. Just send money :D. Yes, we have 30 forums to upgrade. Usually by the time we finish it's time to start again.And, after every upgrade, you have to redo all of the "additional features" :D that you have put into each of the sites. No wonder they pay you guys the big bucks. :bigyello:

JPnyc
May 23rd, 2006, 12:04 PM
Big bucks? When's that kick in? (frantically reads employee handbook). Yes, that's right, every hack needs to be reapplied after each upgrade. No wonder I look 20 yrs older than I am.

RobDog888
May 23rd, 2006, 02:37 PM
Another Job well done Joe! :thumb:

Ps, You forgot to capitolize the "H" in hack. :)

Static
May 23rd, 2006, 03:25 PM
excellent work!!!
http://home.rochester.rr.com/lgsstatic/smiles/woot.gif

ComputerJy
May 23rd, 2006, 04:35 PM
The charsLeft is wonderfull, but don't you think the "LastPost" thing is useless?

sevenhalo
May 23rd, 2006, 04:45 PM
The charsLeft is wonderfull, but don't you think the "LastPost" thing is useless?
That's about the biggest backhanded compliment I've seen all day. ;)

JPnyc
May 23rd, 2006, 04:48 PM
He won't think lastPost is useless when he types a 200 word post and the submit fails LOL

visualAd
May 23rd, 2006, 05:15 PM
Can we have an auto-answer button too?

|2eM!x
May 23rd, 2006, 05:15 PM
hey there missy thanks for the ride...............................................................................hey there missy thanks for the ride...............................................................................hey there missy thanks for the ride...............................................................................hey there missy thanks for the ride...............................................................................hey there missy thanks for the ride...............................................................................hey there missy thanks for the ride...............................................................................hey there missy thanks for the ride...............................................................................hey there missy thanks for the ride...............................................................................hey there missy thanks for the ride...............................................................................hey there missy thanks for the ride...............................................................................hey there missy thanks for the ride...............................................................................hey there missy thanks for the ride...............................................................................hey there missy thanks for the ride...............................................................................hey there missy thanks for the ride...............................................................................hey there missy thanks for the ride...............................................................................hey there missy thanks for the ride...............................................................................hey there missy thanks for the ride...............................................................................hey there missy thanks for the ride...............................................................................hey there missy thanks for the ride...............................................................................


edit*

Just tested and it seems that the maxpostlength does nothing? Im 254 over now.

ComputerJy
May 23rd, 2006, 05:16 PM
He won't think lastPost is useless when he types a 200 word post and the submit fails LOL
I didn't mean to be mean, I appreciate you worked hard to improve the forums.
I think it's useless to me, cause I always copy before submitting

JPnyc
May 23rd, 2006, 05:47 PM
How do you figure you're 254 over? I show 7741 chars left, after copying and pasting your post into the text editor. The limit is 10000, and that post wasn't even 3000.

I didn't take it as mean, computerjy, but lots of folks don't take the time to copy their posts, so for them it's important. Unfortunately the cookie limit will be reached (4k) long before the post limit is, so for the LONGEST posts, it's still best to copy it.

|2eM!x
May 23rd, 2006, 05:51 PM
How do you figure you're 254 over? I show 7741 chars left, after copying and pasting your post into the text editor. The limit is 10000, and that post wasn't even 3000.

I didn't take it as mean, computerjy, but lots of folks don't take the time to copy their posts, so for them it's important. Unfortunately the cookie limit will be reached (4k) long before the post limit is, so for the LONGEST posts, it's still best to copy it.

Well the picture is what I am going off of, what do you see??

JPnyc
May 23rd, 2006, 06:06 PM
Well if you truly exceeded the limit, the post wouldn't have submitted, so you cannot have. That limit is serverside and has nothing to do with the feature I added. This feature only clues you in as to when you've exceeded it.

I don't know what happened with your post there but there is nothing approaching 10,000 chars in that post, which is the limit. I copied and pasted your entire post as I said, and there were 7741 chars left.

JPnyc
May 23rd, 2006, 06:08 PM
Oh I see what happened. The regular reply is taking the max PM chars value which is 2000. I'll have to fix that. Thanks for the head's up.

|2eM!x
May 23rd, 2006, 06:12 PM
Oh I see what happened. The regular reply is taking the max PM chars value which is 2000. I'll have to fix that. Thanks for the head's up.

NP :wave:

JPnyc
May 23rd, 2006, 06:14 PM
Yeah the problem is, there's only one long reply editor and it's used for post and PMs. I'm having a hard time finding a template that only shows up on the PM pages, so I can reset the variable value in it, for the PM maximum length, which isn't the same as max post length.

JPnyc
May 23rd, 2006, 06:17 PM
Ok, I got it.

bushmobile
May 24th, 2006, 05:33 AM
it still thinks you only have 2000 characters when you go back and edit a previous post.

ComputerJy
May 24th, 2006, 06:16 AM
it still thinks you only have 2000 characters when you go back and edit a previous post.
No, it says 10,000

bushmobile
May 24th, 2006, 06:19 AM
well then that's been changed in the last 50 mins then - wished I'd taken a screenshot now... :rolleyes:

JPnyc
May 24th, 2006, 06:29 AM
I changed it, I was just still too groggy to post about it at the time ;) Thanks for the head's up

Static
May 24th, 2006, 07:49 AM
How about adding the vbcode tag button to the quick reply?
http://home.rochester.rr.com/lgsstatic/smiles/eusa_clap.gif

JPnyc
May 24th, 2006, 07:56 AM
How about adding the vbcode tag button to the quick reply?
http://home.rochester.rr.com/lgsstatic/smiles/eusa_clap.gif

Studies show that it increases the risk of certain invasive cancers.

Static
May 24th, 2006, 08:39 AM
http://home.rochester.rr.com/lgsstatic/smiles/lol_above.gif

Static
May 24th, 2006, 08:41 AM
wow! posted reply... and bam there it is!!

SWEEEET!!!

Thanks!!
http://home.rochester.rr.com/lgsstatic/smiles/spongebob.gif



now.. if only we could sqeeze this smiley in http://home.rochester.rr.com/lgsstatic/smiles/welcome.gif

;)

JPnyc
May 24th, 2006, 08:44 AM
No problem. I figure it you're willing to take the health risk, then who am I to refuse? Of course we'll need you to sign a release................;)

sevenhalo
May 24th, 2006, 08:55 AM
Wow, that was a quick change. I'm liking it!

Static
May 24th, 2006, 08:56 AM
signing now...

and.. if u are interested here are "cleaned" versions of those images :)

JPnyc
May 24th, 2006, 09:09 AM
LOL, thanks, I'll forward the release to the bosses. Yeah the best time to ask for modifications is early in the morning, before I've had my 2nd cup of coffee and get all rational :D

sevenhalo
May 24th, 2006, 09:18 AM
So this would be a good time to ask for the "Random Reply" button?

Next to last post, we should have a Random Reply for those questions that make absolutely no sense. It would work like the last post button, but just reference a post at random. For instance, I click the button and it would grab the contents from:
http://www.vbforums.com/showpost.php?p=2475080&postcount=5

If it's easier, I'm ok with making it so it doesn't just grab things you've said. :)

JPnyc
May 24th, 2006, 09:21 AM
Sorry, already on the 4th cup by now. Usually by 9am I'm able to distinguish objects (and arrays) and words. Once that happens it's too late.

Static
May 24th, 2006, 09:32 AM
http://home.rochester.rr.com/lgsstatic/smiles/lolwhack.gif

http://home.rochester.rr.com/lgsstatic/smiles/poke.gif

Hack
May 24th, 2006, 09:53 AM
So this would be a good time to ask for the "Random Reply" button?

Next to last post, we should have a Random Reply for those questions that make absolutely no sense. It would work like the last post button, but just reference a post at random. For instance, I click the button and it would grab the contents from:
http://www.vbforums.com/showpost.php?p=2475080&postcount=5

If it's easier, I'm ok with making it so it doesn't just grab things you've said. :)This would fall under the cateogory of "spamming a thread" and some humorless, power hungry moderator (we all know how "they" can be :mad: ) would be forced to delete the post.

sevenhalo
May 24th, 2006, 10:13 AM
On serious note, are we supposed to be reporting threads that don't have code tags? It was brought up a while back and suggested (with the intention that the humorless, power-hungry mods can add them), but I wasn't sure if it became a practice. :confused:

Hack
May 24th, 2006, 10:49 AM
On serious note, are we supposed to be reporting threads that don't have code tags? It was brought up a while back and suggested (with the intention that the humorless, power-hungry mods can add them), but I wasn't sure if it became a practice. :confused:I add them when I find a post that needs them, but I don't necessarily think it needs to be reported. By in large, the new folks that don't know about the tags and the ones that don't use them, and once it gets pointed out that they should, that generally takes care of things until the next new person comes along.

If you really want to take the time to report this, then I would send a link to the thread to the section mod rather than report the entire thread to the whole Mod staff. Whenever we get one of those global thread reports, our first inclination is that something serioulsy wrong is going on in that thread.

JPnyc
May 24th, 2006, 11:45 AM
Hack is correct. When I get one of those reports I look for spam or something that seriously needs immediate attention. If I show up and find it's just in the wrong forum or is missing some proper posting protocol, I tend to leave it be.

Static
May 24th, 2006, 12:06 PM
I sometimes copy/paste the code and add the tags in the next post....

JPnyc
May 24th, 2006, 12:25 PM
Better to report em to a mod. Duplicating the posts just makes threads really long

Static
May 24th, 2006, 12:47 PM
good point.. I will refrain from doing that again ;)

and thanks for fixing my issue

JPnyc
May 24th, 2006, 12:57 PM
I rock! (just ask me LOL)

iPrank
May 31st, 2006, 12:17 PM
Re:CharsLeft
It is gone ! :(

JPnyc
May 31st, 2006, 12:34 PM
Yes, it broke the undo feature of the editor for some reason. Had to remove it. Wasn't that useful anyway

iPrank
May 31st, 2006, 12:53 PM
Sorry to hear that.
It wasn't a very useful feature but it was 'cool' :cool:

JPnyc
May 31st, 2006, 01:19 PM
Hey I worked on it for.............................ok only for half hr or so, but still I didn't wanna ditch it either :D

visualAd
May 31st, 2006, 01:36 PM
Send me the code. I'll fix it for you.

iPrank
May 31st, 2006, 08:06 PM
Hey I worked on it for.............................ok only for half hr or so, but still I didn't wanna ditch it either :D
Post edited. :)

JPnyc
Jun 2nd, 2006, 01:51 PM
It's fixed. Undo works again

sevenhalo
Jun 2nd, 2006, 01:51 PM
It's fixed. Undo works again
http://i34.photobucket.com/albums/d111/sevenhalo/Dance_Emoticon.gif http://i34.photobucket.com/albums/d111/sevenhalo/Dance_Emoticon.gif http://i34.photobucket.com/albums/d111/sevenhalo/Dance_Emoticon.gif http://i34.photobucket.com/albums/d111/sevenhalo/Dance_Emoticon.gif http://i34.photobucket.com/albums/d111/sevenhalo/Dance_Emoticon.gif http://i34.photobucket.com/albums/d111/sevenhalo/Dance_Emoticon.gif http://i34.photobucket.com/albums/d111/sevenhalo/Dance_Emoticon.gif

JPnyc
Jun 2nd, 2006, 01:58 PM
Apparently IE doesn't like MS's own methods. I changed the code to conform to the DOM and now IE is happy again.

penagate
Jun 2nd, 2006, 01:59 PM
See - the standards work better even in IE :D

JPnyc
Jun 2nd, 2006, 02:10 PM
Makes no sense. It's THEIR method, and it worked so well all the other major browsers also support it. I tend to use it because it's shorter. All other things being equal, shorter code is better code, to me. But in this case for some unknown reason, all other things were not equal, so DOM it is.

penagate
Jun 2nd, 2006, 02:13 PM
Out of curiousity - what was it?

JPnyc
Jun 2nd, 2006, 02:17 PM
innerHTML, their method of accessing a text node (or actually much more than just the text node). Also supported by gecko browsers and Opera. I just changed that to DOM code instead. I think I also changed the call from keyup to keypress event.

penagate
Jun 2nd, 2006, 02:19 PM
I know setting innerHTML is faster. I could well imagine retrieiving it could be slower due to having to construct the code from the DOM tree.

JPnyc
Jun 2nd, 2006, 02:24 PM
It's also easier. With the DOM if you want to add a node as well as a textNode, you must do it in separate statements because they each have their own method (createElement() and firstChild.data) but with innerHTML you can make it all one string, which makes more sense to me. After all it's ALL just text, and the browser knows which to parse and which not to.

penagate
Jun 2nd, 2006, 02:28 PM
Yuh, but the DOM methods are safer as regards to well formed code.

Adding a node with a text node isn't too hard:
p = document.createElement('p');
p.appendChild(document.createTextNode('Some text'));


I converted a JS project from using innerHTML to DOM a while ago - made it a lot more managable when I had to change the DOM structure at all. But I know what you mean, it's more work to set up initially.

JPnyc
Jun 2nd, 2006, 02:30 PM
I know how to do it, just that it's an extra statement. I have issues with quite a few things the w3c has recommended. I have a few recommendations I'd like to make to them too.

visualAd
Jun 2nd, 2006, 03:07 PM
Remember w3c DOM is not meant to be for HTML. It was designed for XML in general; often however, individual implementations have methods such as the saveXML which returns the node and its containing XML as a string.

NoteMe
Jun 2nd, 2006, 10:24 PM
I know how to do it, just that it's an extra statement. I have issues with quite a few things the w3c has recommended. I have a few recommendations I'd like to make to them too.


Just sent them to a mail to Tim JB, and say hello from me (please don't mension that I stole his office) and they will gladly listen to as many requests as possible. It is not only Microsoft, Opera and Firefox that can come with suggestions. Just look at the automatic search. It was an open standard, and are now already adopted by two of the biggest browser vendors. But don't expect JS to make sense any time soon...

manavo11
Jun 3rd, 2006, 10:50 AM
The function doesn't count quite properly. I type the first characer and it still shows 10000. I type another and it shows 9999. I press backspace and it shows 9998.

In Fx...

JPnyc
Jun 3rd, 2006, 12:18 PM
Well I guess it wasn't the innerHTML after all that broke the undo. Seems to not like the onkeyup event handler.

manavo11
Jun 3rd, 2006, 12:23 PM
Now it's counting correctly. You found the problem?

JPnyc
Jun 3rd, 2006, 12:25 PM
That problem yes, but it creates another. If I use the proper event handler, which is how I originally had it, it breaks the undo function in IE, even using the DOM methods. Undo is broken in IE

iPrank
Jun 3rd, 2006, 12:31 PM
I found another problem. Not sure if it was there already...

If you paste multiple strings and then try to undo by pressing ^Z (I'm using Opera), just pressing and holding ^Z doesn't work. You have to prerss the buttons multiple times.

JPnyc
Jun 3rd, 2006, 12:35 PM
I removed it, permanently. Too small a feature to bother about.

visualAd
Jun 3rd, 2006, 04:16 PM
Your best option woluld have been to have a function that counts the length of the string at regular intervals, say every 2 seconds and subtracts that form the maximum number of characters. setInterval() or setTimeout :)

JPnyc
Jun 3rd, 2006, 05:52 PM
Nah, we'd have had complaints about that too, that it didn't change with each character typed. It's just not that important a feature to bother about any further, at least I don't think it is. I could probably get around the IE issue by registering an event listener but that's a pain for a little piddly thing like this

penagate
Jun 3rd, 2006, 10:22 PM
I tried that too and it didn't work either.

JPnyc
Jun 4th, 2006, 08:39 AM
Tried what? Adding an event listener? MS has it's own method for that too; attachEvent().

penagate
Jun 4th, 2006, 10:08 AM
Yes. It had the same effect as yours - counter worked, undo didn't. Also tried a few other things, none of which worked.

JPnyc
Jun 4th, 2006, 10:10 AM
You're saying you tested adding an event listener to the textarea element with Vbulletin and had the same result? Hmm........curiouser and curiouser

penagate
Jun 4th, 2006, 10:12 AM
Well actually no, I just used a regular textarea. It seems to be an underlying problem with IE's handling of keyboard events because it occured with keydown, keypress and keyup - having the event handler breaks undo. I also tried returning false and true and exiting the handler various ways if the Control key was depressed.

JPnyc
Jun 4th, 2006, 10:15 AM
Damn, that means I can't fix it. Well thanks MUCHO for testing it, at least you saved my remaining hair! Guess it's ok now to sweep up the hair around my pc chair.

penagate
Jun 4th, 2006, 10:36 AM
:lol:

OK, the event handler itself plays fine with undo - but if you so much as remotely contemplate altering the document contents from the event handler it breaks it. Even if you set a timeout and then do it.

penagate
Jun 4th, 2006, 10:46 AM
Blah:

http://www.codeproject.com/jscript/htmlarea.asp?df=100&forumid=4685&exp=0&select=1060812#bugs1[/url]"]The way undo/redo works in Internet Explorer it seems to reset the undo buffer every time you use JavaScript to set the value of a form element or otherwise make changes to the page. Because of this the built in undo/redo functionality of the browser doesn't work.

I give up - you could use just addEventListener and have it work in less buggy browsers.

JPnyc
Jun 4th, 2006, 10:47 AM
Ah well, we tried. It's not that useful a feature anyway, it's just that I hate giving up on stuff without resolving. It gnaws at me.

JPnyc
Jun 9th, 2006, 04:45 PM
FYI I did more testing on this, with a simple page, instead of the much busier forum page, and it's definitely an IE bug. No matter how the function is written or called, undo breaks in IE 6 and 7.