Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5

Site future: Brainstorming phase

#31
Syne Offline
(Aug 20, 2020 09:56 AM)stryder Wrote: Okay I eventually came up with a rather messy looking work around.  Basically set your bookmark to Https://www.scivillage.com/wrapper.html.  The .html page uses Javascript and an iframe, it basically loads the index page, then pulls the url for the Mark Forums Read  before reloading using the Mark Forums Read script.  Doing this means that if you are accessing it while your browser still has cookies/session information, then the Forums will be Marked read (and you'll be loaded to the index  page in the full browser window.).  If you are not logged in, it will Mark the Forums read for the temporary session assigned to your access.  It shouldn't fail... (Well unless their is complications between browser standards, will have to check)

This link has stopped working. It looks like it is working, but then doesn't redirect and doesn't mark topics as read.
Reply
#32
stryder Offline
I apologise, I was messing around with some settings and it knocked it out. I've got it back the way it was.

Currently looking at the "Content Security Policy" settings to try and aid making sure that the site serves up the content correctly (and not add to problems like with the twitter images)

The site currently has been using a Lax (non existant) method of such policies, and I was looking to see how I can stiffen the security while allowing access to the things the site needs (such as posting media, or running inline scripts) unfortunately though the methods given to set such things isn't particularly "out of the box", it requires a lot of explict rules to be set for things to run smoothly, and unfortunately its not easy to know what rule to set to begin with until it starts throwing up errors. (I'll shift my tweaks to a dev branch, so as to stop upsetting the site Smile )

Okay I've added a lax version of a ruleset, it's still not as tight as it could be but I'd prefer it to be accessible to begin with.

If you spot things not working correctly please inform me.
Reply
#33
Syne Offline
Now Firefox says it can't even open the wrapper page.

Don't worry too much about the images. I made a new profile and it seemed to work. So now I just have to either migrate everything over to the new profile or figure out what legacy change might be messing things up.

EDIT: Yeah, seems twitter images are sticking around, even after clearing the cache. Amazing!
I'll still probably migrate profiles, because other sites have the same problem.
Reply
#34
stryder Offline
(Aug 19, 2023 09:53 PM)Syne Wrote: Now Firefox says it can't even open the wrapper page.

Don't worry too much about the images. I made a new profile and it seemed to work. So now I just have to either migrate everything over to the new profile or figure out what legacy change might be messing things up.

Again sorry about that. Seems a setting for stopping the site appear in a iframe caused it (which is understandible due to what the workaround does) I've removed that inclusion. I didn't notice it as I was debugging a different bug. Currently I'm thinking the whole method to apply for securing a site, really is of only use if you build one from the ground up and should be avoided trying to retrovert an already functional site.
Reply
#35
Syne Offline
Perfect. Mark read and twitter images working.
Thank you, sir. Great work!
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Site text changes stryder 10 294 Mar 4, 2023 04:23 AM
Last Post: stryder
  Posting on site using phone Leigha 4 409 Apr 12, 2021 12:23 PM
Last Post: Zinjanthropos
  Small site changes. stryder 0 490 Mar 7, 2019 01:48 PM
Last Post: stryder
  Site Downtime stryder 5 1,107 Sep 7, 2016 05:16 AM
Last Post: stryder
  site design redux stryder 4 1,116 Aug 28, 2016 05:08 PM
Last Post: stryder
  Site Design stryder 1 575 Jun 30, 2016 09:45 AM
Last Post: stryder
  Site Layout suggestions Mr Doodlebug 3 1,619 Oct 6, 2014 05:33 AM
Last Post: stryder



Users browsing this thread: 1 Guest(s)