saguaroib / saguaro

saguaro imgboard software
14 stars 5 forks source link

Quotelinks and Javascript suite #178

Closed Apogate closed 8 years ago

Apogate commented 8 years ago

This feels extremely dirty for some reason, I hope it's just because it's late.

fixes quote linking, for some reason auto-linking wouldn't detect >, but WOULD detect > characters. RePod is smirking somewhere in the distance.

It's an UGLY fix, but it's better than nothing.

More testing tomorrow.

Apogate commented 8 years ago

Quick tests reveal bunch of issues on /bta/

I'll re-investigate when i'm awake.

Apogate commented 8 years ago

Fixes #145

Fixes #127

Apogate commented 8 years ago

Can't manipulate anything into viable HTML, php or SQL queries. Safe to merge.

RePod commented 8 years ago

Might as well clean it up before merging, like the quotes.

Apogate commented 8 years ago

Still needs to be fixed:

The first three need heavy work due to their reliance on the old url & uncached page system.

179

RePod commented 8 years ago

heavy work due to their reliance on the old url & uncached page system.

  • Pretty sure infinite scroll just loaded the next page, not hard.
  • Utility quotes had nothing to do with URLs and cached pages as they were run on the current page.
  • Thread updating worked by loading the literal current URL and looking for new posts based on what it already had.
  • This is why mobile broke it.
  • Quick reply probably isn't affected much since it was POSTing to imgboard.php.
  • What probably broke is the selector used to trigger the window.
  • Thread/Stats. Never 4get ;~;7
RePod commented 8 years ago

+Cookies for name, deletion password and email fields are saved again.

Eventually, if these are being handled by Javascript, these should be stored in Local Storage instead to reduce request overhead.

Since they're being sent twice currently (as part of form data and again as cookies), it's effectively double the information at its best. By switching them to Local Storage, they're only sent once as needed in the original form data.

For example, all of my jQuery suite was recently switched to storing the configuration options in Local Storage instead of cookies, thereby not flooding the server with them every request. Contrary to this example, however, the old jQuery files that aren't the menu aren't using Local Storage efficiently but it's better than before.


TL;DR: Local Storage has a few advantages to Cookies:

Bonus TL;DR: I'm not stopping you from making your changes, I just know there's a lot beyond your reach that needs to be dealt with. I'll probably do those when you wrap your modifications up.

Apogate commented 8 years ago

before and after. minor tweaking, more spacing. bigger font for those with special eyes.

Apogate commented 8 years ago

Well infinite scrolling DOES load the next page... It just doesn't append anything to the current document.

Apogate commented 8 years ago

Well, I'll wrap this up by saying this push has a lot of important fixes that should probably get merged instead of it stagnating while I work on my jQuery skills.

Merging for now, will revisit the suite down the road.

@RePod I appreciate your patience with me hacking away at your suite.

That's all for now team, tune in next time when I destroy everything else.