NordInvasion Forum
Spoilers not showing up on forums - Printable Version

+- NordInvasion Forum (https://forum.nordinvasion.com)
+-- Forum: Help & Administration (https://forum.nordinvasion.com/forumdisplay.php?fid=8)
+--- Forum: Help & Bug Reports (https://forum.nordinvasion.com/forumdisplay.php?fid=13)
+---- Forum: Website (https://forum.nordinvasion.com/forumdisplay.php?fid=90)
+---- Thread: Spoilers not showing up on forums (/showthread.php?tid=6574)

Pages: 1 2 3


Spoilers not showing up on forums - ughgh - 15-01-2013

If stuff like this happens to you
[Image: spoilerscomeback_zps747600c2.png]
Quote:Press F12 (or right click, inspect element), go to the console, and type j=jQuery.noConflict(); initSpoilers()
OR type javascript: j=jQuery.noConflict(); initSpoilers() into the address bar
(thanks Kip for the second line)

Same thing happens to image spoilers using the [img2 ] tag, for example
[img2]https://www.dropbox.com/s/l2ooyz22asr72dp/yvain.jpg?dl=1[/img2]
Quote:$('var').replaceWith(function(){
    return $("<img />", {src: $(this).attr('title'),class: 'bbc_img'});
});
(Thanks Stackoverflow)

If you go to the Sources tab and open up spoiler.js you might see some stupid shit about
Uncaught TypeError: Cannot read property 'msie' of undefined
Which screws up jQuery as FancyBox, thus not allowing spoilers to be properly formatted.
To solve this, wait until jQuery gets loaded again, and then call the code that re-builds the FancyBox component around the spoiler


Re: Spoilers not showing up on Chrome - Yabu - 15-01-2013

When does jQuery get reloaded? How do I "call" the code? Explanations, my good man, I need them! Smile

Also: had the same problem in school with IE.


Re: Spoilers not showing up on Chrome - Lord Striker - 15-01-2013

My Chrome is still working fine though. Strange.


Re: Spoilers not showing up on Chrome - Chris - 15-01-2013

It has just happened to me on safari  >Sad

edit: Ok I have been looking at the forums and the spoiler.js script is giving an error, it is as follows "spoiler.js:18TypeError: 'undefined' is not an object (evaluating 'b.browser.msie')" this looks to be on line 19 of the script.


Re: Spoilers not showing up on Chrome - ~CM~Dragz - 15-01-2013

(15-01-2013, 03:14 PM)Yabu link Wrote:When does jQuery get reloaded? How do I "call" the code? Explanations, my good man, I need them! Smile

Maybe Im just dumb but how to exactly fix it?


Re: Spoilers not showing up on Chrome - Yabu - 15-01-2013

(15-01-2013, 03:57 PM)Dragonknight link Wrote:[quote author=Yabu link=topic=8946.msg73513#msg73513 date=1358262898]
When does jQuery get reloaded? How do I "call" the code? Explanations, my good man, I need them! Smile

Maybe Im just dumb but how to exactly fix it?
[/quote]
Same for me, so we're both dumb!


Re: Spoilers not showing up on Chrome - Simpleton - 15-01-2013

I just hit F12 and then go to console and paste "j=jQuery.noConflict(); initSpoilers()" and hit enter and the page works. But i havd to do it again next time i enetered the thread.


Re: Spoilers not showing up on Chrome - Sphinx - 15-01-2013

(15-01-2013, 04:58 PM)Yabu link Wrote:[quote author=Dragonknight link=topic=8946.msg73524#msg73524 date=1358265477]
[quote author=Yabu link=topic=8946.msg73513#msg73513 date=1358262898]
When does jQuery get reloaded? How do I "call" the code? Explanations, my good man, I need them! Smile

Maybe Im just dumb but how to exactly fix it?
[/quote]
Same for me, so we're both dumb!
[/quote]

That makes 3 of us ! Yay we can start a community now Wink


Re: Spoilers not showing up on Chrome - Winter - 15-01-2013

Make that four of us!  (I am the handsome devil in the screenshot :3)


Re: Spoilers not showing up on Chrome - Kip - 15-01-2013

An easier way to use Ughgh's code is to enter [tt]javascript: j=jQuery.noConflict(); initSpoilers()[/tt] into the address bar.  I tested it in Firefox, IE, Chrome, and Opera.