If you leave the src parameter off of the quote tag, a few squirrels will try to find the source of the quote from within the same thread. If a match is found, then the post will automatically be linked. This only happens after the post is saved (i.e., not on previews). Since they are just squirrels, there may be false positives and (more likely) false negatives.
Also, clicking on source links will no longer force a reload if the target post is on the same page.
Also, clicking on source links will no longer force a reload if the target post is on the same page.
Cool
Just testing the Squirrels.
Meh @ Vanetto! You ruined my test to see if it would include your quote tags inside mine if I quoted your text that didn't appear elsewhere in the thread!
Meh @ Vanetto! You ruined my test to see if it would include
Holy! It finds the name too!
Now I can try my test again...
Just testing the Squirrels.
edit:
and another test...
LennyLen said:
Meh @ Vanetto! You ruined my test to see if it would include
edit 2:
Nested quotes (without supplying names):
Meh @ Vanetto! You ruined my test to see if it would include
Holy! It finds the name too!
edit 3: Awesome! Great work Matthew.
Heh, nice. Kinda ruins the JS I just wrote up, but I'll post it anyway (the JS is still kinda neat). It lets you mark multiple posts, and generates filtered quote tags for them (filters out stuff like embedded media, quotes, etc).
esting squirr
let's try quoting only partial words...
EDIT: AWESOME
:o:o
EDIT again: why'd the last 2 smilies not work?
Heh, nice. Kinda ruins the JS I just wrote up, but I'll post it anyway (the JS is still kinda neat). It lets you mark multiple posts, and generates filtered quote tags for them (filters out stuff like embedded media, quotes, etc).
test
EDIT again: why'd the last 2 smilies not work?
They don't appear to have spaces between them.
EDIT again: why'd the last 2 smilies not work?
They don't appear to have spaces between them.
The first four didn't either.
Testing again...
EDIT: very odd. seems like a one-time glitch.
edit 2:
Nested quotes (without supplying names):
Ahhh... but what if the nested quotes are not someone quoting someone else (ie- arbitrarily [for no reason] nested quotes):
Those quotes don't have anything to do with each other... and it seems to break what Matthew was trying to do... do I win?
I want to know who said "test" first...
test
Edit: (Still getting used to the < and > characters...)
What about the first to say Test?
Test
I almost think that's a false positive on picking out Vanneto on saying "Test" since he actually said "Testing"...
I think it's already been shown to pick up on partial words. A test:
lmost thin
EDIT:
Test successful! I guess it just takes the string you put between the quote tags and looks for the exact same string, regardless of whitespace and such. So be careful when you type it out, or you'll screw up the system.
That makes me wonder if it does close matches. A test:
I almost think that's a fasle positive on picking out Vanneto on saying "Test" since he actaully said "Testing"...
I changed the order of two letters in two words to see if it worked.
EDIT2:
Nope. Maybe I used too long of a quote or changed it too much, but I think it only matches exact quotes. Now, does it match a quote from the post that I'm editing?
I changed the order of two letters in two words to see if it worked.
EDIT3:
No, it doesn't match quotes from the post I'm editing. That would have been awesome, too.
This was like opening pandora's box
test
Edit: mmm... couldn't make it work... probably tomorrow, now I'm sleepy...
Nice.
Nice!
This site is awesome.
Did anyone use the letter z? Is there a minimum query?
My browser (Opera) still reloads.
This site is going in the right direction
Kinda ruins the JS I just wrote up,...
Not really. Your JS is capable of quoting automatically whereas Matthew's feature merely attempts to grab the source information. It's a neat feature, but it still requires the user to quote people manually and that includes markup. Assuming your JS does what you promise, it will be far superior, as long as it doesn't take too long to process the document. I plan to use it.[1]
Is it going to work between threads? I know you had mentioned that it would allow you to mark them and then edit and have them appended to the edit? So I assume you're using the userdata contents, which might allow you to even quote across threads.
I guess it just takes the string you put between the quote tags and looks for the exact same string, regardless of whitespace and such.
It's not an exact string match because my use of an ellipsis in BAF's quote worked fine![2] Still though, the chore of having to make sure it quoted correctly turns me off of it (assuming BAF's JS is 100% accurate).
** EDIT **
Very smooth, Matthew.
Processing should be instant (no noticeable processing time to the user), unless using a browser with some super slow JS implementation. It does work between threads. I still have to detect edit pages to have it append in those cases though. I'm not using userdata (I thought that was readonly?), I'm just using cookies (so it won't work across browsers/computers/etc).
[edit]
ML: I'm getting JS errors in general.js now when I load thread pages. Sometimes it yells about $break, sometimes it yells about userSettings being undefined.
I'm not using userdata (I thought that was readonly?),...
I'm not entirely sure, but I thought the whole point of it was the ability to store data in there? I'm not sure what the size restrictions are though.
I don't think you can write to it... I think it is just for storing settings, so you could still for example configure the script I wrote while having it reside on my server.
I don't think you can write to it... I think it is just for storing settings, so you could still for example configure the script I wrote while having it reside on my server.
Searching the forums for the release/explanation is coming up mostly empty, but I did find CGamesPlay's "Site Tour"...
Now the script is nice and simple. It uses the new User Data feature of Allegro.cc, so it doesn't require any weird hacks.
IIRC, his tour kept track of where you were between pages so it knew where you left off and whether to run at all. I can't seem to find how to use the userdata field though...
I made a few tweaks:
If name is specified and src is left out, then the name must be an exact match for an automatic link.
If a short quote matches multiple posts, then no link is created.
Successive quotes from the source post will only be linked the first time.
So then this should quote nobody?
Test
I want to know who said "test" first...
What about the first to say Test?