Scivillage.com Casual Discussion Science Forum
Glitch alert: Invalid warning being attached to threads - Printable Version

+- Scivillage.com Casual Discussion Science Forum (https://www.scivillage.com)
+-- Forum: Site Related (https://www.scivillage.com/forum-119.html)
+--- Forum: Site Feedback (https://www.scivillage.com/forum-120.html)
+--- Thread: Glitch alert: Invalid warning being attached to threads (/thread-15484.html)



Glitch alert: Invalid warning being attached to threads - C C - Feb 22, 2024

There's a spurious "Caution: Old Thread" warning that is being attached to new topics. It requires multiple edits of playing around with the Prefix labels to finally get rid of it.

EDIT: Hah! I see this very thread is currently sporting it, so the problem is self-evident. I'm leaving it as evidence.

2nd EDIT: Apparently it's only temporary. Returning to the posts later, the advisory disappears.


RE: Glitch alert: Invalid warning being attached to threads - C C - Feb 23, 2024

I still notice it intermittently appearing again on threads that others start. Sometimes it's there initially, then you reload or return later and it's gone.


RE: Glitch alert: Invalid warning being attached to threads - stryder - Feb 24, 2024

(Feb 23, 2024 09:34 PM)C C Wrote: I still notice it intermittently appearing again on threads that others start. Sometimes it's there initially, then you reload or return later and it's gone.

The original usage for this was down to how the site was setup.

I originally wanted to lock all threads after a year from being added to, however some of the members mentioned that sometimes they like to interact with an old thread rather than starting a new one. So instead of automatically locking them, I dropped a Javascript addition into the thread based upon the thread posters date. Unfortunately the javascript code used isn't particular brilliant it could of been tidied and tightened further. So it does behave odd with some threads. It shouldn't effect the threads too much although it can always be removed.

It's likely due to changes in security of browser practices that I haven't currently caught up with.


RE: Glitch alert: Invalid warning being attached to threads - stryder - Mar 2, 2024

(Feb 24, 2024 03:12 AM)stryder Wrote:
(Feb 23, 2024 09:34 PM)C C Wrote: I still notice it intermittently appearing again on threads that others start. Sometimes it's there initially, then you reload or return later and it's gone.

The original usage for this was down to how the site was setup.

I originally wanted to lock all threads after a year from being added to, however some of the members mentioned that sometimes they like to interact with an old thread rather than starting a new one.  So instead of automatically locking them, I dropped a Javascript addition into the thread based upon the thread posters date.  Unfortunately the javascript code used isn't particular brilliant it could of been tidied and tightened further.  So it does behave odd with some threads.  It shouldn't effect the threads too much although it can always be removed.

It's likely due to changes in security of browser practices that I haven't currently caught up with.
Okay did think I had a fix, seems to not be the case I'll removed the offending bit of code.