Some issues are the time it takes, the example I used could take a few seconds, so a lil spinning icon thingy needs to be displayed somewhere.
But a bigger issue for me is cross domain stuff, meaning RS Linkify needs to query google and needs extra permissions to do that. That's not something I'm comfortable with as currently RS Linkify is sandboxed and can't do anything outside of RSOF. I really want to keep things the way they are, I need to look into this some more as I'm not familiar with search APIs.
Why use google? Because we can't search by specific time periods on the RSOF.
Another issue is it simply may not work in all cases, I feel there already enough stuff that doesn't work as well as it could in RSOF and I don't want to add to that.
Also this is a lot of work for something that may not get much use, I haven't even begun to think about text selection quoting and that must be done since jmod quotes can exceed 2000 character limit.
Quotes over 2000 characters will need to be truncated.
Not all forums pages are indexed by google, HLF is a good example of that. This might create bigger holes and require more iterations to find a nearest match.
There will no doubt be other issues too, I haven't written all the code as yet. For example I didn't run a loop with an ajax preview (I just copy/pasted a string and hit preview), who knows what I'll find when I try that.
I haven't mentioned some other things, like verify that the nearest match is not a jmod post, there is quite a bit more going on, I have only outlined the basics.
Pic showing google search with nearest match by date/time
HTTP://i.imgur.com/EcFTFhW.png Google found a post made 10 min after Mod Shauny's. That means their quote IDs will be close-ish. By going to the thread in google result and using that post's quote ID as a starting point, is how I found the final quote ID.
The process of elimination using the post preview. Notice the ascending Quote IDs.
HTTP://i.imgur.com/ycQW5J7.png
12-Mar-2017 14:11:38
- Last edited on
12-Mar-2017 15:48:13
by
Lil Indecent