Code related bugs

TappedOut forum

Posted on June 11, 2015, 7:47 p.m. by enpc

A lot of the custom code has stopped working for not upgraded user / if you're logged out. I know that non-upgraded users can't implement scripts, but logged out I couldn't even run any. These are a list of things I tested:

  • From a logged out state, I couldn't work expand collapse code, both on my user page and Epochalyptik's page.

  • From a logged out state, I could get the collapse code working on this comment link.

  • From a logged out state I could still get links defined via (a href="blah") working (including from an image.

  • From a logged out state I could get accordions working.

It seems like the problem is with the "onclick" event used to collapse code. I don't know why it worked in the commend but not on user's pages.

I have also noticed that a lot of custom code which works in the preview pane (an example would be using the /pre/code/blocks and converting symbols accordingly) and displays fine decides to then break once you actualyl post it. There have been times where I have tried to display code as plain text (using this) and it looked fine in the preview only to screw up once it was posted to page.

yeaGO says... #2

These are mostly custom scripts that now have equivalent format syntax added to the site since.

June 11, 2015 8:49 p.m.

enpc says... #3

Except I did an exact copy / paste of the spoiler text hide/show (found in the formatting tips) and just added a few headings inside the div. That also didn't work when logged out.

June 11, 2015 9:31 p.m.

Femme_Fatale says... #4

You have to input them a certain way, otherwise they won't show. The triple equals sign followed by the spoiler:spoiler name, your text, and then the triple equals sign followed by endpoiler. Trying to implement it via pure code most likely will not work.

June 11, 2015 10:32 p.m.

enpc says... #5

But the thing is, it does work. Just not for non-upgraded users. Do they have external scripts turned off or something? I knew they couldn't insert them themselves, but thats where I thought the limitations stopped.

June 11, 2015 11:36 p.m.

This discussion has been closed