Customizing SMF > Modifications and Packages

Simple Spoiler

<< < (52/63) > >>

luuuciano:
I do not understand... just an "echo"? is that ok?

BTW... the spoiler, on the ecample url I have posted yesterday... it WORKS now!
Really odd.... maybe the google jquery was not available for some time? mmm

Marceline:
Perhaps it was the google CDN.


by changing $context['html_headers'] .= 'code';

to  echo 'code';

the mod will bypass the $context['html_headers'] var, it's just to make sure the problem resides on $context['html_headers'], it is not a solution since it will print JavaScript code before the doctype declaration

eric1234:
Erm, i had changed the code like what you instructed :)

The thing is getting better but still, when i wanna put the spoiler on images, sometimes it works, sometimes it don't and the whole system seem like little laggy. >.<

however, it works fine when i spoiler texts.

Please has a look at the attachment, it was screenshot from the thread that i gave you in the previous post.

Marceline:
the reason it is slow is because you are loading big images, not because of the spoiler.

eric1234:

--- Quote from: Suki on March 04, 2012, 02:12:30 PM ---the reason it is slow is because you are loading big images, not because of the spoiler.

--- End quote ---
i see. but how come sometime when i click on it, no picture been shown ?  :)

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version