Simple Spoiler

Started by Suki, January 28, 2011, 06:50:55 PM

Previous topic - Next topic

Suki

You're using the spoiler inside a blockquote and it seems that you modified the script somehow
Disclaimer: unless otherwise stated, all my posts are personal and does not represent any views or opinions held by Simple Machines.

Making tough decisions, so you don't have to.

Robert.

Nice mod :) Dutch translation:
<?php

global $txt;

$txt['spoiler_show'] = 'Toon';
$txt['spoiler_hide'] = 'Verberg';
$txt['spoiler_desc'] = 'Spoiler';

?>

eric1234

Quote from: Suki on March 05, 2012, 10:03:59 AM
You're using the spoiler inside a blockquote and it seems that you modified the script somehow
block quote? @.@ and what script you mean >.<

eric1234

Erm..any idea how to remove the "Spoiler []" :)

Suki

What exactly did you do?
Disclaimer: unless otherwise stated, all my posts are personal and does not represent any views or opinions held by Simple Machines.

Making tough decisions, so you don't have to.

eric1234

install and change the codes base on ur direction >.<

Suki

Did you install it more than 2 times?

Did you have any other mods that uses jquery?
Disclaimer: unless otherwise stated, all my posts are personal and does not represent any views or opinions held by Simple Machines.

Making tough decisions, so you don't have to.

eric1234

I install it more than 2 times

no more, i remove the auto resize image mod, so now the simple spoiler works fine :)

luuuciano

#268
Suki, to avoid conflicts it would be better to use something like this:

$context['html_headers'] .= '
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
jQuery.noConflict();
jQuery(document).ready(function($) {



BTW, I just realized that texts are not changing properly on nested spoilers... funny (show/hide)
No me agradan los foros que no te dejan borrar TU PROPIO usuario, como por ejemplo smfsimple.com.
E incluso te mandan emails no solicitados, de los cuales, quizá, no puedas escapar porque NO te dejan posibilidad a deshabilitarlos (a menos que NO te tengan en su lista negra).

Suki

Yeah, nested spoilers are a pain, I'm seriously thinking on ditch the jquery effect and just offer a pure JavaScript spoiler
Disclaimer: unless otherwise stated, all my posts are personal and does not represent any views or opinions held by Simple Machines.

Making tough decisions, so you don't have to.

eric1234

the spoiler works fine but not the words  :-\

Suki

which words?

do you use another language besides English?
Disclaimer: unless otherwise stated, all my posts are personal and does not represent any views or opinions held by Simple Machines.

Making tough decisions, so you don't have to.

eric1234

These  words

Spoiler []
Spoiler []

refer to the attachments

Nope, i only use English >.<


Suki

any errors on your error log?  it seems the mod is installed 2 or more times
Disclaimer: unless otherwise stated, all my posts are personal and does not represent any views or opinions held by Simple Machines.

Making tough decisions, so you don't have to.

eric1234

Yeah got , mainly this 2 errors

8: Undefined index: spoiler_hideFile: /home/anixekai/public_html/forum/Themes/default/languages/Who.english.php (html_above sub template - eval?)
Line: 197

8: Undefined index: spoiler_showFile: /home/anixekai/public_html/forum/Themes/default/languages/Who.english.php (html_above sub template - eval?)
Line: 191

I installed it more than 1 time Q.Q

Robert.

Can you try disabling template evaluation, clean the error log and post the new errors?

eric1234

May i know how to disable template evaluation? @.@

You mean clean all the error log? :)

NanoSector

Quote from: eric1234 on March 15, 2012, 01:19:16 PM
May i know how to disable template evaluation? @.@

You mean clean all the error log? :)
You can disable it by:
Admin > Configuration > Server Settings > "Disable evaluation of templates"

And yes, clean your whole error log.

My Mods / Mod Builder - A tool to easily create mods / Blog
"I've heard from a reliable source that the Answer is 42. But, still no word on what the question is."

eric1234

Done
Got 7 errors but mostly the spoiler errors repeated, which is line 197 and 191. While 1 pretty enable filters.

http://www.anixekai.com/forum/index.php?action=admin;area=logs;sa=errorlog;desc
8: Undefined index: spoiler_show
File: /home/anixekai/public_html/forum/Themes/zentoa_20/index.template.php
Line: 191




http://www.anixekai.com/forum/index.php?action=admin;area=logs;sa=errorlog;desc
8: Undefined index: spoiler_show
File: /home/anixekai/public_html/forum/Themes/zentoa_20/index.template.php
Line: 197


http://www.anixekai.com/forum/index.php?topic=1054.msg8891
8: Undefined index: pretty_enable_filters
File: /home/anixekai/public_html/forum/Sources/Display.php
Line: 74

Suki

The third one isn't realted to this mod, most likely related to pretty urls.

The first 2 are because you don't have the proper txt strings in your language files, Open your Modifications.language.php file and add this:

$txt['spoiler_show'] = 'Show';
$txt['spoiler_hide'] = 'Hide';
$txt['spoiler_desc'] = 'Spoiler';

before the ?>  tag, like this:

$txt['spoiler_show'] = 'Show';
$txt['spoiler_hide'] = 'Hide';
$txt['spoiler_desc'] = 'Spoiler';
?>
Disclaimer: unless otherwise stated, all my posts are personal and does not represent any views or opinions held by Simple Machines.

Making tough decisions, so you don't have to.

Advertisement: