Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Topic started by: AzaToth on September 20, 2005, 11:37:42 PM

Title: Spoiler Tag
Post by: AzaToth on September 20, 2005, 11:37:42 PM
Link to Mod (http://mods.simplemachines.org/index.php?mod=195)

Spoiler Tag is a tag for including spoilers in threads.

There are three different types of spoilers to use, which can be define per theme. If a theme have not defined a type the default one will be used.

The types are:


Those are set in Current Theme in Admin Panel:
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg297.imageshack.us%2Fimg297%2F1650%2Fspoilersettings0if.png&hash=4f5bba171f1d42e6fbbc331bcff55b8364140ac1) (http://imageshack.us)

And finaly it's used like this:

[spoiler]
spoiled text :)
[/spoiler]

[spoiler=title]
spoiled text :)
[/spoiler]


Changelog:
0.1.7:
    * added check if some variables is set, so that your forum error log isn't filled up :/
0.1.6:
    * typo in package-info.xml
0.1.4:
    * added language support for german, spanish and french (google type of translation)
0.1.3:
    * Merged with language packs instead.
0.1.2:
    * Bug fix for idiotic bug I added in 0.1.1
0.1.1:
    * Added support for custom title.
0.1.0:
    * Changed the apperance of the button to a more normal button
0.0.9:
    * just some code cleanup ('    ' => TAB)
0.0.8:
    * Moved strings to index.english.php
0.0.7:
    * Dont remember :/
Title: Re: Spoiler Tag
Post by: dtm.exe on September 20, 2005, 11:38:41 PM
Cool mod :).
Title: Re: Spoiler Tag
Post by: guppy on September 20, 2005, 11:59:38 PM
Ya, great for movie and drama discussions  :P Er.. any chance you'ld be making one for 1.0.5?
Title: Re: Spoiler Tag
Post by: trenchteam on September 21, 2005, 04:07:27 AM
very nice! This will be useful. Since there will be no update on Anquz tag until the final, I would like to use this one! ;D
Title: Re: Spoiler Tag
Post by: AzaToth on September 21, 2005, 10:32:14 AM
Quote from: iwyen on September 20, 2005, 11:59:38 PM
Ya, great for movie and drama discussions  :P Er.. any chance you'ld be making one for 1.0.5?
I don't think so, this because first there is already a basic spoiler tag for 1.0.5 using Faster Parse Code, and second the code for tags in 1.1b3 is totaly revritten than the for 1.0.5 so I can not use almost any code for 1.0.5 that's is now written.  ;D
Title: Re: Spoiler Tag
Post by: tL0z on September 21, 2005, 01:07:27 PM
It doesn't work with me :(

I'm using Apollo and Portuguese language  :-\
Title: Re: Spoiler Tag
Post by: AzaToth on September 21, 2005, 02:09:33 PM
Quote from: tL0z on September 21, 2005, 01:07:27 PM
It doesn't work with me :(

I'm using Apollo and Portuguese language  :-\
It's probably bacause you are using portugese language I think, can you describe more the problem?
Perhaps I'm using the language templates wrong...  :-\ Perhaps someone can comment on this.
Title: Re: Spoiler Tag
Post by: Toninho_3rd on September 21, 2005, 02:25:13 PM
the files seem to be corrupted, because i can't download them.
Title: Re: Spoiler Tag
Post by: AzaToth on September 21, 2005, 02:28:28 PM
Quote from: Toninho_3rd on September 21, 2005, 02:25:13 PM
the files seem to be corrupted, because i can't download them.
They behave not corrupt for me, you can't download the at all?
Title: Re: Spoiler Tag
Post by: Toninho_3rd on September 21, 2005, 03:00:51 PM
Quote from: azatoth on September 21, 2005, 02:28:28 PM
They behave not corrupt for me, you can't download the at all?

i've just tried downloading with another browser and it downloaded fine..

i should have tested before posting...
Title: Re: Spoiler Tag
Post by: tL0z on September 21, 2005, 03:06:02 PM
Quote from: azatoth on September 21, 2005, 02:09:33 PM
Quote from: tL0z on September 21, 2005, 01:07:27 PM
It doesn't work with me :(

I'm using Apollo and Portuguese language  :-\
It's probably bacause you are using portugese language I think, can you describe more the problem?
Perhaps I'm using the language templates wrong...  :-\ Perhaps someone can comment on this.

The tag doesn't work and there's nothing in the current theme panel :(
Could you please make a portuguese version?
Title: Re: Spoiler Tag
Post by: AzaToth on September 21, 2005, 03:13:26 PM
Quote from: tL0z on September 21, 2005, 03:06:02 PM
The tag doesn't work and there's nothing in the current theme panel :(
Could you please make a portuguese version?
The theme-dependent files are:
languages/index.english.php
languages/Themes.english.php
Settings.template.php
style.css

I understand that you don't get any new entry in current theme panel if Settings.template.php is redefined in apollo. But the spoilers should be rendered anyway.

Edit: Just tried and installed apollo on my test-forum, and it works fine
Edit2: Tried with portugese and are confirming that the messages are not shown, this is because portugese is overriding the english words...
Title: Re: Spoiler Tag
Post by: Toninho_3rd on September 21, 2005, 03:21:30 PM
ok.. now it is a actual bug...

if i select the "hover" option, the message that appears on the spoiler is "click to show hide".

check for your self:

http://excaliburgames.digibase.ca/forum/index.php?topic=5.new#new

BTW, same thing happens on default theme.
Title: Re: Spoiler Tag
Post by: tL0z on September 21, 2005, 03:37:10 PM
Quote from: azatoth on September 21, 2005, 03:13:26 PM
Quote from: tL0z on September 21, 2005, 03:06:02 PM
The tag doesn't work and there's nothing in the current theme panel :(
Could you please make a portuguese version?
The theme-dependent files are:
languages/index.english.php
languages/Themes.english.php
Settings.template.php
style.css

I understand that you don't get any new entry in current theme panel if Settings.template.php is redefined in apollo. But the spoilers should be rendered anyway.

Edit: Just tried and installed apollo on my test-forum, and it works fine
Edit2: Tried with portugese and are confirming that the messages are not shown, this is because portugese is overriding the english words...

Can you please make a portuguese version?
Title: Re: Spoiler Tag
Post by: AzaToth on September 21, 2005, 04:05:32 PM
Quote from: Toninho_3rd on September 21, 2005, 03:21:30 PM
ok.. now it is a actual bug...

if i select the "hover" option, the message that appears on the spoiler is "click to show hide".

check for your self:

http://excaliburgames.digibase.ca/forum/index.php?topic=5.new#new

BTW, same thing happens on default theme.
Oops, bug fixed in 0.1.2
Title: Re: Spoiler Tag
Post by: AzaToth on September 21, 2005, 04:06:25 PM
Quote from: tL0z on September 21, 2005, 03:37:10 PM
Can you please make a portuguese version?
Made a language pack for portuguese, please try, I can't portuguese so google did the job
Edit: merged it with mod instead
Title: Re: Spoiler Tag
Post by: AzaToth on September 21, 2005, 07:50:56 PM
added some language files for german, spanish and french also, not the best translation (google type) but they are there.
Title: Re: Spoiler Tag
Post by: AzaToth on September 22, 2005, 03:54:43 AM
Added support fo 1.1RC1 in 0.1.5 (will still works for 1.1beta3)
Title: Re: Spoiler Tag
Post by: Traiklin on September 24, 2005, 02:55:43 PM
how do I go about installing this mod?

everytime I try to run the xml file it says Parse error. but there isn't anything else to run in the mod and there isn't anything that explain how to actually install it.
Title: Re: Spoiler Tag
Post by: AzaToth on September 24, 2005, 03:13:09 PM
Quote from: Traiklin on September 24, 2005, 02:55:43 PM
how do I go about installing this mod?

everytime I try to run the xml file it says Parse error. but there isn't anything else to run in the mod and there isn't anything that explain how to actually install it.
Vhat version of SMF you have?
Title: Re: Spoiler Tag
Post by: tL0z on September 24, 2005, 03:17:46 PM
Quote from: azatoth on September 21, 2005, 04:06:25 PM
Quote from: tL0z on September 21, 2005, 03:37:10 PM
Can you please make a portuguese version?
Made a language pack for portuguese, please try, I can't portuguese so google did the job
Edit: merged it with mod instead

I deleted the previous version and installed the new one (0.1.5). But it still doesn't work. I click on aplicar mod (apply mod) and it says that "não há acções especificadas" (there are no actions specified.

The code [spoiler][/spoiler] doesn't work and there is nothing on the current theme panel  :(

I'm using SMF 1.0.5.
Title: Re: Spoiler Tag
Post by: AzaToth on September 24, 2005, 03:21:10 PM
Quote from: tL0z on September 24, 2005, 03:17:46 PM
Quote from: azatoth on September 21, 2005, 04:06:25 PM
Quote from: tL0z on September 21, 2005, 03:37:10 PM
Can you please make a portuguese version?
Made a language pack for portuguese, please try, I can't portuguese so google did the job
Edit: merged it with mod instead

I deleted the previous version and installed the new one (0.1.5). But it still doesn't work. I click on aplicar mod (apply mod) and it says that "não há acções especificadas" (there are no actions specified.

The code [spoiler][/spoiler] doesn't work and there is nothing on the current theme panel  :(

I'm using SMF 1.0.5.

That's the problem, the mod is only compabile with SMF 1.1 beta3 and SMF 1.1 RC1, there is not support for SMF 1.0.5
Title: Re: Spoiler Tag
Post by: tL0z on September 24, 2005, 04:02:36 PM
Oh.  :(

Do you think its safe to upgrade to SMF 1.1 RC1? I have new smiles and Mambo Integration installed.
Title: Re: Spoiler Tag
Post by: AzaToth on September 24, 2005, 04:59:45 PM
Quote from: tL0z on September 24, 2005, 04:02:36 PM
Oh.  :(

Do you think its safe to upgrade to SMF 1.1 RC1? I have new smiles and Mambo Integration installed.
Smileis should not be a problem, Mambo I dont know, pehaps you should ask the question to thome who develope Mambo (dont even know what mambo is so...)
Title: Re: Spoiler Tag
Post by: Traiklin on September 25, 2005, 01:13:29 AM
Quote from: azatoth on September 24, 2005, 03:13:09 PM
Quote from: Traiklin on September 24, 2005, 02:55:43 PM
how do I go about installing this mod?

everytime I try to run the xml file it says Parse error. but there isn't anything else to run in the mod and there isn't anything that explain how to actually install it.
Vhat version of SMF you have?

1.1 RC1, I figured it out. I didn't realize SMF installed the mods automatically, I am so used to doing everything by hand.
Title: Re: Spoiler Tag
Post by: AzaToth on September 25, 2005, 06:21:38 AM
Quote from: Traiklin on September 25, 2005, 01:13:29 AM
Quote from: azatoth on September 24, 2005, 03:13:09 PM
Quote from: Traiklin on September 24, 2005, 02:55:43 PM
how do I go about installing this mod?

everytime I try to run the xml file it says Parse error. but there isn't anything else to run in the mod and there isn't anything that explain how to actually install it.
Vhat version of SMF you have?

1.1 RC1, I figured it out. I didn't realize SMF installed the mods automatically, I am so used to doing everything by hand.
It shouldn't install on 1.0.5, the package info explicy express: '<install for="1.1 Beta 3 Public">' and '<install for="1.1 RC1">', 1.0.5 should know that.
Title: Re: Spoiler Tag
Post by: dknoppix on October 09, 2005, 07:08:01 PM
Um...where in the admin CP are the setttings for this? I'm running SMF 1.1 RC1

dk
Title: Re: Spoiler Tag
Post by: Elijah Bliss on October 09, 2005, 11:22:59 PM
Worked like a charm, great mod!
Title: Re: Spoiler Tag
Post by: dknoppix on October 10, 2005, 06:55:58 AM
nvm, I found it
Title: Re: Spoiler Tag
Post by: ArkServer on October 13, 2005, 01:19:03 PM
Quote from: dknoppix on October 10, 2005, 06:55:58 AM
nvm, I found it

where?
Title: Re: Spoiler Tag
Post by: AzaToth on October 13, 2005, 01:21:36 PM
Quote from: ArkServer on October 13, 2005, 01:19:03 PM
Quote from: dknoppix on October 10, 2005, 06:55:58 AM
nvm, I found it

where?
Admin->Configuration->Current Theme
Title: Re: Spoiler Tag
Post by: ArkServer on October 13, 2005, 04:30:13 PM
Quote from: AzaToth on October 13, 2005, 01:21:36 PM
Quote from: ArkServer on October 13, 2005, 01:19:03 PM
Quote from: dknoppix on October 10, 2005, 06:55:58 AM
nvm, I found it

where?
Admin->Configuration->Current Theme

Do you know how to add the button for the simplicity theme? i cant find the button anywhere. it works in the default template.. so i guess its a problem with the template.
Title: Re: Spoiler Tag
Post by: AzaToth on October 13, 2005, 06:02:37 PM
Quote from: ArkServer on October 13, 2005, 04:30:13 PM
Quote from: AzaToth on October 13, 2005, 01:21:36 PM
Quote from: ArkServer on October 13, 2005, 01:19:03 PM
Quote from: dknoppix on October 10, 2005, 06:55:58 AM
nvm, I found it

where?
Admin->Configuration->Current Theme

Do you know how to add the button for the simplicity theme? i cant find the button anywhere. it works in the default template.. so i guess its a problem with the template.
button?
Title: Re: Spoiler Tag
Post by: ArkServer on October 13, 2005, 06:06:17 PM
Quote from: AzaToth on October 13, 2005, 06:02:37 PM
Quote from: ArkServer on October 13, 2005, 04:30:13 PM
Quote from: AzaToth on October 13, 2005, 01:21:36 PM
Quote from: ArkServer on October 13, 2005, 01:19:03 PM
Quote from: dknoppix on October 10, 2005, 06:55:58 AM
nvm, I found it

where?
Admin->Configuration->Current Theme

Do you know how to add the button for the simplicity theme? i cant find the button anywhere. it works in the default template.. so i guess its a problem with the template.
button?

you know, the option in Admin->Configuration->Current Theme , i cant find it anywhere and i think its because the template.
Title: Re: Spoiler Tag
Post by: AzaToth on October 13, 2005, 06:31:34 PM
Quote from: ArkServer on October 13, 2005, 06:06:17 PM
you know, the option in Admin->Configuration->Current Theme , i cant find it anywhere and i think its because the template.
Ah, ok, it's not a button, but a pulldown menu at the bottom of the page:
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg297.imageshack.us%2Fimg297%2F1650%2Fspoilersettings0if.png&hash=4f5bba171f1d42e6fbbc331bcff55b8364140ac1) (http://imageshack.us)
Title: Re: Spoiler Tag
Post by: There's a Ferret on October 17, 2005, 10:05:13 AM
Cool mod AzaToth!

I have one little display problem, though. In the screenshots the spoiler text is enclosed in a box. On my board it isn't. How do I fix that?


Title: Re: Spoiler Tag
Post by: AzaToth on October 17, 2005, 11:48:49 AM
Quote from: Satellite on October 17, 2005, 10:05:13 AM
Cool mod AzaToth!

I have one little display problem, though. In the screenshots the spoiler text is enclosed in a box. On my board it isn't. How do I fix that?



have you tried to reload everything? are you using any custom theme?
Title: Re: Spoiler Tag
Post by: There's a Ferret on October 17, 2005, 12:40:18 PM
I'm sorry, it must have been a browser issue... now the box is correctly displayed around the spoiler.

However, that changed the appearance of the spoiler button: is there a way to have it displayed in the usual way?
Title: Re: Spoiler Tag
Post by: AzaToth on October 17, 2005, 12:42:47 PM
Quote from: Satellite on October 17, 2005, 12:40:18 PM
I'm sorry, it must have been a browser issue... now the box is correctly displayed around the spoiler.

However, that changed the appearance of the spoiler button: is there a way to have it displayed in the usual way?
can you give me a screenshot of the error?
Title: Re: Spoiler Tag
Post by: There's a Ferret on October 17, 2005, 12:53:31 PM
Look at the mouse pointer to see a correct-looking button... before the box appeared, the spoiler button was rendered in the same style.

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg96.imageshack.us%2Fimg96%2F8494%2Fbuttonprob0au.png&hash=2936b49aad3d567299c9771af9acc5c9cc520689)
Title: Re: Spoiler Tag
Post by: AzaToth on October 17, 2005, 01:04:47 PM
Quote from: Satellite on October 17, 2005, 12:53:31 PM
Look at the mouse pointer to see a correct-looking button... before the box appeared, the spoiler button was rendered in the same style.

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg96.imageshack.us%2Fimg96%2F8494%2Fbuttonprob0au.png&hash=2936b49aad3d567299c9771af9acc5c9cc520689)
ok, edit or remove the div.spoilerheader input
{
background-color: #cececc;
color: #3e3e33;
font: 0.9em sans-serif;
}

it was made for default theme, also remember to force reloade the css..
Title: Re: Spoiler Tag
Post by: There's a Ferret on October 17, 2005, 01:34:22 PM
Fixed! now it's perfect, ty AzaToth :)
Title: Re: Spoiler Tag
Post by: finalhit on October 23, 2005, 01:49:07 AM
Quote from: AzaToth on October 13, 2005, 06:31:34 PM
Quote from: ArkServer on October 13, 2005, 06:06:17 PM
you know, the option in Admin->Configuration->Current Theme , i cant find it anywhere and i think its because the template.
Ah, ok, it's not a button, but a pulldown menu at the bottom of the page:
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg297.imageshack.us%2Fimg297%2F1650%2Fspoilersettings0if.png&hash=4f5bba171f1d42e6fbbc331bcff55b8364140ac1) (http://imageshack.us)


ok, i installed the package and it doesn't seem to have worked. the package installer didn't give me an error message when i was installing it. SMF 1.1 RCF here
Title: Re: Spoiler Tag
Post by: AzaToth on October 23, 2005, 09:49:51 AM
Quote from: finalhit on October 23, 2005, 01:49:07 AM
Quote from: AzaToth on October 13, 2005, 06:31:34 PM
Quote from: ArkServer on October 13, 2005, 06:06:17 PM
you know, the option in Admin->Configuration->Current Theme , i cant find it anywhere and i think its because the template.
Ah, ok, it's not a button, but a pulldown menu at the bottom of the page:
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg297.imageshack.us%2Fimg297%2F1650%2Fspoilersettings0if.png&hash=4f5bba171f1d42e6fbbc331bcff55b8364140ac1) (http://imageshack.us)


ok, i installed the package and it doesn't seem to have worked. the package installer didn't give me an error message when i was installing it. SMF 1.1 RCF here
How does it not seem to work?
Title: Re: Spoiler Tag
Post by: finalhit on October 23, 2005, 04:41:12 PM
Quote from: AzaToth on October 23, 2005, 09:49:51 AM
Quote from: finalhit on October 23, 2005, 01:49:07 AM
Quote from: AzaToth on October 13, 2005, 06:31:34 PM
Quote from: ArkServer on October 13, 2005, 06:06:17 PM
you know, the option in Admin->Configuration->Current Theme , i cant find it anywhere and i think its because the template.
Ah, ok, it's not a button, but a pulldown menu at the bottom of the page:
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg297.imageshack.us%2Fimg297%2F1650%2Fspoilersettings0if.png&hash=4f5bba171f1d42e6fbbc331bcff55b8364140ac1) (http://imageshack.us)


ok, i installed the package and it doesn't seem to have worked. the package installer didn't give me an error message when i was installing it. SMF 1.1 RCF here
How does it not seem to work?

grr, for some reason i didn't write everything i wanted to write in that message.
basically, after i installed it, nothing seem to have changed, i downloaded the files it supposed to have modified, but no change.

i did reinstall SMF tho, and chmod almost the entire everything, and seemed to have worked. must have been a chmod issue, dunno. thanks anyway tho
Title: Re: Spoiler Tag
Post by: xtremecruiser on October 25, 2005, 06:57:08 PM
Works great with RC1.1
How about a mode for only registered users to be able to un hide it or only see if you reply ?  Just a thought :-X
Thanks
Title: Re: Spoiler Tag
Post by: AzaToth on October 26, 2005, 09:15:42 AM
Quote from: xtremecruiser on October 25, 2005, 06:57:08 PM
Works great with RC1.1
How about a mode for only registered users to be able to un hide it or only see if you reply ?  Just a thought :-X
Thanks
I'll look into it, but it requires some major changes in the code (mostly because I can't validate parsed content, so I have to do it the hard way as I did for Tabular)
Title: Re: Spoiler Tag
Post by: Elmacik on October 26, 2005, 10:27:01 AM
yeah it would be nice if only the logged users can use it.
Title: Re: Spoiler Tag
Post by: AzaToth on October 26, 2005, 10:51:49 AM
Quote from: Elmacik on October 26, 2005, 10:27:01 AM
yeah it would be nice if only the logged users can use it.
ok, now I'm a bit confused, do you want only registered users to be able to use spoiler, or be able to see them?
Title: Re: Spoiler Tag
Post by: AzaToth on October 26, 2005, 11:36:31 AM
I have now recoded the spoiler tag code, but havn't packaged it yet, I need to translate some more stings via google :)

if you don't want to wait, here is some of the code:
function get_spoiler($content, $topic = '') {
global $txt, $settings, $context, $modSettings;

// Optional topic if given
if($topic != '')
$topic = ': '.$topic;

// Backup if theme does not have included
$settings['spoiler_tag'] = isset($settings['spoiler_tag']) ? $settings['spoiler_tag'] : 0;
$txt['spoiler_tag_text'] = isset($txt['spoiler_tag_text']) ? $txt['spoiler_tag_text'] : 'Spoiler';
$txt['spoiler_tag_hover'] = isset($txt['spoiler_tag_hover']) ? $txt['spoiler_tag_hover'] : '(hover to show)';
$txt['spoiler_tag_click'] = isset($txt['spoiler_tag_click']) ? $txt['spoiler_tag_click'] : '(click to show/hide)';
$txt['spoiler_tag_reg_only'] = isset($txt['spoiler_tag_reg_only']) ? $txt['spoiler_tag_reg_only'] : '<span style="color: red;">Spoiler visible to registered users only. </span>';

// Guests: Nothing to see here, move along.
if($modSettings['spoiler_reg_only'] && $context['user']['is_guest']) {
return $txt['spoiler_tag_reg_only'];
}

// TODO require reply to see (like hide tag)

/*
2: button
1: link
0: hover
*/
$retval = '';
switch($settings['spoiler_tag']) {
case 2:
$retval = (
'<div class="spoiler"><div class="spoilerheader">'.
'<input type="button" class="spoilerbutton" value="'.$txt['spoiler_tag_text'].$topic.'" '.
'onClick="n = this.parentNode.parentNode.lastChild;if(n.style.display == \'none\') {n.style.display = \'block\';} else {n.style.display = \'none\';} return false;"/> '.
$txt['spoiler_tag_click'].'</div><div class="spoilerbody" style="display: none">'.
$content.'</div></div>'
);
break;
case 1:
$reval = (
'<div class="spoiler"><div class="spoilerheader">'.
'<input type="button" class="spoilerbutton" value="'.$txt['spoiler_tag_text'].$topic.'" '.
'onClick="n = this.parentNode.parentNode.lastChild;if(n.style.display == \'none\') {n.style.display = \'block\';} else {n.style.display = \'none\';} return false;"/> '.
$txt['spoiler_tag_click'].'</div><div class="spoilerbody" style="display: none">'.
$content.'</div></div>'
);
break;
case 0:
default:
$retval = (
'<fieldset class="spoiler" '.
'onMouseOver="this.lastChild.style.display = \'block\';" onMouseOut="this.lastChild.style.display=\'none\'">'.
'<legend><b>'.$txt['spoiler_tag_text'].$topic.'</b> <small>'.$txt['spoiler_tag_hover'].'</small>'.
'</legend><div class="spoilerbody" style="display: none">'.
$content.'</div></fieldset>'
);
}
return $retval;
};
...
array(
'tag' => 'spoiler',
'type' => 'unparsed_content',
'content' => '$1',
'block_level' => true,
'validate' => create_function('&$tag, &$data, $disabled', '$data = get_spoiler(parse_bbc($data,'.($smileys?'true':'false').',\''.$cache_id.'\'));'),
),
array(
'tag' => 'spoiler',
'type' => 'unparsed_equals_content',
'content' => '$1',
'block_level' => true,
'validate' => create_function('&$tag, &$data, $disabled', '$data[0] = get_spoiler(parse_bbc($data[0],'.($smileys?'true':'false').',\''.$cache_id.'\'),$data[1]);'),
),
Title: Re: Spoiler Tag
Post by: Elijah Bliss on October 26, 2005, 11:59:09 AM
Quote from: AzaToth on October 26, 2005, 09:15:42 AM
Quote from: xtremecruiser on October 25, 2005, 06:57:08 PM
Works great with RC1.1
How about a mode for only registered users to be able to un hide it or only see if you reply ?  Just a thought :-X
Thanks
I'll look into it, but it requires some major changes in the code (mostly because I can't validate parsed content, so I have to do it the hard way as I did for Tabular)

There's an easier route. Just create a permission and make sure no one but the allowed are able to use it.
Title: Re: Spoiler Tag
Post by: xtremecruiser on October 26, 2005, 01:29:17 PM
Quote from: AzaToth on October 26, 2005, 10:51:49 AM
Quote from: Elmacik on October 26, 2005, 10:27:01 AM
yeah it would be nice if only the logged users can use it.
ok, now I'm a bit confused, do you want only registered users to be able to use spoiler, or be able to see them?
Well first that only registered users can click to reveille what is hidden under the box or tag "Spoiler"
I allow guests to view the forum but would only like the members see whats hidden.

A cool add on would be the optional one making the members reply to see what under special ones ( I know invison has something like this, might be a mod ) but that is just a evil way of making them post and bumping the thread ( Evil Grin )
Title: Re: Spoiler Tag
Post by: AzaToth on October 26, 2005, 02:03:11 PM
Quote from: Elijah Bliss on October 26, 2005, 11:59:09 AM
Quote from: AzaToth on October 26, 2005, 09:15:42 AM
Quote from: xtremecruiser on October 25, 2005, 06:57:08 PM
Works great with RC1.1
How about a mode for only registered users to be able to un hide it or only see if you reply ?  Just a thought :-X
Thanks
I'll look into it, but it requires some major changes in the code (mostly because I can't validate parsed content, so I have to do it the hard way as I did for Tabular)

There's an easier route. Just create a permission and make sure no one but the allowed are able to use it.
don't understand exactly how you mean, how do I use permissions in parse_bbc?
Title: Re: Spoiler Tag
Post by: AzaToth on October 26, 2005, 02:34:13 PM
Quote from: AzaToth on October 26, 2005, 02:03:11 PM
Quote from: Elijah Bliss on October 26, 2005, 11:59:09 AM
Quote from: AzaToth on October 26, 2005, 09:15:42 AM
Quote from: xtremecruiser on October 25, 2005, 06:57:08 PM
Works great with RC1.1
How about a mode for only registered users to be able to un hide it or only see if you reply ?  Just a thought :-X
Thanks
I'll look into it, but it requires some major changes in the code (mostly because I can't validate parsed content, so I have to do it the hard way as I did for Tabular)

There's an easier route. Just create a permission and make sure no one but the allowed are able to use it.
don't understand exactly how you mean, how do I use permissions in parse_bbc?
ok, got it, allowTo(), fixed
Title: Re: Spoiler Tag
Post by: Elijah Bliss on October 26, 2005, 02:48:34 PM
Quote from: AzaToth on October 26, 2005, 02:03:11 PM
Quote from: Elijah Bliss on October 26, 2005, 11:59:09 AM
Quote from: AzaToth on October 26, 2005, 09:15:42 AM
Quote from: xtremecruiser on October 25, 2005, 06:57:08 PM
Works great with RC1.1
How about a mode for only registered users to be able to un hide it or only see if you reply ?  Just a thought :-X
Thanks
I'll look into it, but it requires some major changes in the code (mostly because I can't validate parsed content, so I have to do it the hard way as I did for Tabular)

There's an easier route. Just create a permission and make sure no one but the allowed are able to use it.
don't understand exactly how you mean, how do I use permissions in parse_bbc?

example:
Code (Find in ManagePermissions.php) Select

// Standard - ie. members.  They can do anything Restrictive can.
$groupLevels['global']['standard'] = array_merge($groupLevels['global']['restrict'], array(


Code (add after) Select

'spoiler_tag',


Code (Find in ManagePermissions.php) Select

$permissionList = array(
'membergroup' => array(
'general' => array(


Code (add after) Select

'spoiler_tag',


Code (Find in Subs-Post.php) Select

// Limit the size of images posted?


Code (add before) Select

//Check [spoiler][/spoiler] permission:
if (!allowedTo('spoiler_tag'))
$message = preg_replace('~\[spoiler\](.+?)\[/spoiler\]~ise', '\'You do not have permission to use spoiler tags.\'', $message);


Code (Find in Modifications.english.php) Select

?>


Code (add before) Select

$txt['permissionname_spoiler_tag'] = 'Usespoiler tags';
$txt['permissionhelp_spoiler_tag'] = 'This permission allows people to use the spoiler tags.';



after that you can set the permissions for each membergroup in the admin panel.
Title: Re: Spoiler Tag
Post by: AzaToth on October 26, 2005, 04:06:30 PM
ok, 0.2.0 is released now, with permissions to show and post spoilers (same permission, if you can show them, then you can post the vice versa).
It's only compatible with 1.1 RC1 (have no beta3 forum left). Also, I was unable to make update work so I removed the ability to update the package, so you need to uninstall the previous package first.

Third, I have not translated the new strings used to the other languages. If someone need it, please do so.

/Carl
Title: Re: Spoiler Tag
Post by: AzaToth on October 26, 2005, 04:36:15 PM
Ok, a quick change, in 0.2.1, splitted the permissions so there are both for show spoilers and to post them.
Because of this you can have a group that can post spoilers, but can not show them (not my fault if you so have :)), but it's more logical that you have a group that can show spoilers but can't post new ones.

/Carl
Title: Re: Spoiler Tag
Post by: xtremecruiser on October 27, 2005, 03:51:56 PM
Quote from: AzaToth on October 26, 2005, 04:36:15 PM
Ok, a quick change, in 0.2.1, splitted the permissions so there are both for show spoilers and to post them.
Because of this you can have a group that can post spoilers, but can not show them (not my fault if you so have :)), but it's more logical that you have a group that can show spoilers but can't post new ones.

/Carl
Cool thanks for the updates.  :D
Now lets see if your mod works combined with the "Hide Tag Special"  :P
Title: Re: Spoiler Tag
Post by: Elijah Bliss on October 28, 2005, 02:39:50 AM
Quote from: AzaToth on October 26, 2005, 04:36:15 PM
Ok, a quick change, in 0.2.1, splitted the permissions so there are both for show spoilers and to post them.
Because of this you can have a group that can post spoilers, but can not show them (not my fault if you so have :)), but it's more logical that you have a group that can show spoilers but can't post new ones.

/Carl

also, if you want to prevent people from quoting spoilers:

Code (Find in Posts.php) Select

}
// Posting a reply without a quote?


Code (Add before) Select

    allowedTo('admin_forum') ? '' : $form_message = preg_replace(array('~\n?\[spoiler.*?\].+?\[/spoiler\]\n?~is', '~^\n~', '~\[/spoiler]~'), '', $form_message);

Title: Re: Spoiler Tag
Post by: AzaToth on October 28, 2005, 04:57:11 AM
Quote from: Elijah Bliss on October 28, 2005, 02:39:50 AM
Quote from: AzaToth on October 26, 2005, 04:36:15 PM
Ok, a quick change, in 0.2.1, splitted the permissions so there are both for show spoilers and to post them.
Because of this you can have a group that can post spoilers, but can not show them (not my fault if you so have :)), but it's more logical that you have a group that can show spoilers but can't post new ones.

/Carl

also, if you want to prevent people from quoting spoilers:

Code (Find in Posts.php) Select

}
// Posting a reply without a quote?


Code (Add before) Select

    allowedTo('admin_forum') ? '' : $form_message = preg_replace(array('~\n?\[spoiler.*?\].+?\[/spoiler\]\n?~is', '~^\n~', '~\[/spoiler]~'), '', $form_message);


already done tht I think, but admin_forum?
Title: Re: Spoiler Tag
Post by: AzaToth on October 28, 2005, 02:35:40 PM
Fixed a small bug, (a typo in a variable), not needed to upgrade, but you mig get some errors if using a custom theme
Title: Re: Spoiler Tag
Post by: Elijah Bliss on October 28, 2005, 08:37:57 PM
Quote from: AzaToth on October 28, 2005, 04:57:11 AM
Quote from: Elijah Bliss on October 28, 2005, 02:39:50 AM
Quote from: AzaToth on October 26, 2005, 04:36:15 PM
Ok, a quick change, in 0.2.1, splitted the permissions so there are both for show spoilers and to post them.
Because of this you can have a group that can post spoilers, but can not show them (not my fault if you so have :)), but it's more logical that you have a group that can show spoilers but can't post new ones.

/Carl

also, if you want to prevent people from quoting spoilers:

Code (Find in Posts.php) Select

}
// Posting a reply without a quote?


Code (Add before) Select

    allowedTo('admin_forum') ? '' : $form_message = preg_replace(array('~\n?\[spoiler.*?\].+?\[/spoiler\]\n?~is', '~^\n~', '~\[/spoiler]~'), '', $form_message);


already done tht I think, but admin_forum?

Administrators should be allowed to quote spoilers and other custom permission based tags.
Title: Re: Spoiler Tag
Post by: AzaToth on October 28, 2005, 09:17:52 PM
Quote from: Elijah Bliss on October 28, 2005, 08:37:57 PM
Quote from: AzaToth on October 28, 2005, 04:57:11 AM
Quote from: Elijah Bliss on October 28, 2005, 02:39:50 AM
Quote from: AzaToth on October 26, 2005, 04:36:15 PM
Ok, a quick change, in 0.2.1, splitted the permissions so there are both for show spoilers and to post them.
Because of this you can have a group that can post spoilers, but can not show them (not my fault if you so have :)), but it's more logical that you have a group that can show spoilers but can't post new ones.

/Carl

also, if you want to prevent people from quoting spoilers:

Code (Find in Posts.php) Select

}
// Posting a reply without a quote?


Code (Add before) Select

    allowedTo('admin_forum') ? '' : $form_message = preg_replace(array('~\n?\[spoiler.*?\].+?\[/spoiler\]\n?~is', '~^\n~', '~\[/spoiler]~'), '', $form_message);


already done tht I think, but admin_forum?

Administrators should be allowed to quote spoilers and other custom permission based tags.
The definition of allowedTo defines:
bool allowedTo(string permission, array boards = current)
- checks whether the user is allowed to do permission. (ie. post_new.)
- if boards is specified, checks those boards instead of the current
  one.
- always returns true if the user is an administrator.
- returns true if he or she can do it, false otherwise.

Or did you refere to some other admin?
Title: Re: Spoiler Tag
Post by: Elijah Bliss on October 28, 2005, 11:13:48 PM
Quote from: AzaToth on October 28, 2005, 09:17:52 PM
Quote from: Elijah Bliss on October 28, 2005, 08:37:57 PM
Quote from: AzaToth on October 28, 2005, 04:57:11 AM
Quote from: Elijah Bliss on October 28, 2005, 02:39:50 AM
Quote from: AzaToth on October 26, 2005, 04:36:15 PM
Ok, a quick change, in 0.2.1, splitted the permissions so there are both for show spoilers and to post them.
Because of this you can have a group that can post spoilers, but can not show them (not my fault if you so have :)), but it's more logical that you have a group that can show spoilers but can't post new ones.

/Carl

also, if you want to prevent people from quoting spoilers:

Code (Find in Posts.php) Select

}
// Posting a reply without a quote?


Code (Add before) Select

    allowedTo('admin_forum') ? '' : $form_message = preg_replace(array('~\n?\[spoiler.*?\].+?\[/spoiler\]\n?~is', '~^\n~', '~\[/spoiler]~'), '', $form_message);


already done tht I think, but admin_forum?

Administrators should be allowed to quote spoilers and other custom permission based tags.
The definition of allowedTo defines:
bool allowedTo(string permission, array boards = current)
- checks whether the user is allowed to do permission. (ie. post_new.)
- if boards is specified, checks those boards instead of the current
  one.
- always returns true if the user is an administrator.
- returns true if he or she can do it, false otherwise.

Or did you refere to some other admin?

Well my global moderators have forum administration permissions. You can always swap out allowedTo('admin_forum') to $user_info['is_admin']. 
Title: Re: Spoiler Tag
Post by: AzaToth on October 29, 2005, 05:48:33 AM
Quote from: Elijah Bliss on October 28, 2005, 11:13:48 PM
Quote from: AzaToth on October 28, 2005, 09:17:52 PM
Quote from: Elijah Bliss on October 28, 2005, 08:37:57 PM
Quote from: AzaToth on October 28, 2005, 04:57:11 AM
Quote from: Elijah Bliss on October 28, 2005, 02:39:50 AM
Quote from: AzaToth on October 26, 2005, 04:36:15 PM
Ok, a quick change, in 0.2.1, splitted the permissions so there are both for show spoilers and to post them.
Because of this you can have a group that can post spoilers, but can not show them (not my fault if you so have :)), but it's more logical that you have a group that can show spoilers but can't post new ones.

/Carl

also, if you want to prevent people from quoting spoilers:

Code (Find in Posts.php) Select

}
// Posting a reply without a quote?


Code (Add before) Select

    allowedTo('admin_forum') ? '' : $form_message = preg_replace(array('~\n?\[spoiler.*?\].+?\[/spoiler\]\n?~is', '~^\n~', '~\[/spoiler]~'), '', $form_message);


already done tht I think, but admin_forum?

Administrators should be allowed to quote spoilers and other custom permission based tags.
The definition of allowedTo defines:
bool allowedTo(string permission, array boards = current)
- checks whether the user is allowed to do permission. (ie. post_new.)
- if boards is specified, checks those boards instead of the current
  one.
- always returns true if the user is an administrator.
- returns true if he or she can do it, false otherwise.

Or did you refere to some other admin?

Well my global moderators have forum administration permissions. You can always swap out allowedTo('admin_forum') to $user_info['is_admin']. 
I thought doing this was enough:
if(!allowedTo('spoiler_show') || !allowedTo('spoiler_post'))
$form_message = preg_replace(array('~\n?\[spoiler.*?\].+?\[/spoiler\]\n?~is', '~^\n~', '~\[/spoiler\]~'), '', $form_message);
Title: Re: Spoiler Tag
Post by: Yamake on November 05, 2005, 12:19:56 AM
Eheheheh, nicely coded.  Now all you need is a [me] command to go with it! XD
Title: Re: Spoiler Tag
Post by: Elijah Bliss on November 05, 2005, 03:07:21 AM
Quote from: AzaToth on October 29, 2005, 05:48:33 AM
Quote from: Elijah Bliss on October 28, 2005, 11:13:48 PM
Quote from: AzaToth on October 28, 2005, 09:17:52 PM
Quote from: Elijah Bliss on October 28, 2005, 08:37:57 PM
Quote from: AzaToth on October 28, 2005, 04:57:11 AM
Quote from: Elijah Bliss on October 28, 2005, 02:39:50 AM
Quote from: AzaToth on October 26, 2005, 04:36:15 PM
Ok, a quick change, in 0.2.1, splitted the permissions so there are both for show spoilers and to post them.
Because of this you can have a group that can post spoilers, but can not show them (not my fault if you so have :)), but it's more logical that you have a group that can show spoilers but can't post new ones.

/Carl

also, if you want to prevent people from quoting spoilers:

Code (Find in Posts.php) Select

}
// Posting a reply without a quote?


Code (Add before) Select

    allowedTo('admin_forum') ? '' : $form_message = preg_replace(array('~\n?\[spoiler.*?\].+?\[/spoiler\]\n?~is', '~^\n~', '~\[/spoiler]~'), '', $form_message);


already done tht I think, but admin_forum?

Administrators should be allowed to quote spoilers and other custom permission based tags.
The definition of allowedTo defines:
bool allowedTo(string permission, array boards = current)
- checks whether the user is allowed to do permission. (ie. post_new.)
- if boards is specified, checks those boards instead of the current
  one.
- always returns true if the user is an administrator.
- returns true if he or she can do it, false otherwise.

Or did you refere to some other admin?

Well my global moderators have forum administration permissions. You can always swap out allowedTo('admin_forum') to $user_info['is_admin']. 
I thought doing this was enough:
if(!allowedTo('spoiler_show') || !allowedTo('spoiler_post'))
$form_message = preg_replace(array('~\n?\[spoiler.*?\].+?\[/spoiler\]\n?~is', '~^\n~', '~\[/spoiler\]~'), '', $form_message);


Now I remember why I used that conditional, I originally used it top the quoting of html from members who didn't have html permissions, which was everyone except global moderators.
Title: Re: Spoiler Tag
Post by: xenovanis on November 05, 2005, 06:05:09 AM
I installed version 0.2.2 and got these errors in my log:

8: Undefined index: spoiler_tag_hover
File: .../testforum/Sources/Subs.php
Line: 910

8: Undefined index: spoiler_tag_click
File: .../testforum/Sources/Subs.php
Line: 901



Fix: In Subs.php

Code (find) Select

$txt['spoiler_tag_hover']


Code (replace) Select

$txt['spoiler_tag_hover_info']


Code (find) Select

$txt['spoiler_tag_click']


Code (replace) Select

$txt['spoiler_tag_click_info']


Nice mod, btw  ;)
Title: Re: Spoiler Tag
Post by: AzaToth on November 05, 2005, 07:43:30 AM
Quote from: xenovanis on November 05, 2005, 06:05:09 AM
I installed version 0.2.2 and got these errors in my log:

8: Undefined index: spoiler_tag_hover
File: .../testforum/Sources/Subs.php
Line: 910

8: Undefined index: spoiler_tag_click
File: .../testforum/Sources/Subs.php
Line: 901



Fix: In Subs.php

Code (find) Select

$txt['spoiler_tag_hover']


Code (replace) Select

$txt['spoiler_tag_hover_info']


Code (find) Select

$txt['spoiler_tag_click']


Code (replace) Select

$txt['spoiler_tag_click_info']


Nice mod, btw  ;)

Strange, I thought I had fix that for 0.2.2 (found it in 0.2.1), must check it if I used right files....
Title: Re: Spoiler Tag
Post by: xtremecruiser on November 06, 2005, 12:05:54 PM
I just DL the latest one and also get

Undefined index: spoiler_tag_click in /XXX/Sources/Subs.php on line 892

Undefined index: spoiler_tag_click in /XXX/Sources/Subs.php on line 901

The Hoover is fine

I also do not have the classic theme ( many dont ) and it looks for it in the install.
Title: Re: Spoiler Tag
Post by: AzaToth on November 06, 2005, 03:23:17 PM
Quote from: xtremecruiser on November 06, 2005, 12:05:54 PM
I just DL the latest one and also get

Undefined index: spoiler_tag_click in /XXX/Sources/Subs.php on line 892

Undefined index: spoiler_tag_click in /XXX/Sources/Subs.php on line 901

The Hoover is fine

I also do not have the classic theme ( many dont ) and it looks for it in the install.
Classic theme is installed by default, thats why I made it for it, but if you say is true that many remove the classic, I can easly add check for it.
Title: Re: Spoiler Tag
Post by: xtremecruiser on November 06, 2005, 03:26:39 PM
Quote from: AzaToth on November 06, 2005, 03:23:17 PM
Quote from: xtremecruiser on November 06, 2005, 12:05:54 PM
I just DL the latest one and also get

Undefined index: spoiler_tag_click in /XXX/Sources/Subs.php on line 892

Undefined index: spoiler_tag_click in /XXX/Sources/Subs.php on line 901

The Hoover is fine

I also do not have the classic theme ( many dont ) and it looks for it in the install.
Classic theme is installed by default, thats why I made it for it, but if you say is true that many remove the classic, I can easly add check for it.

Is that why I get the
Undefined index: spoiler_tag_click in /XXX/Sources/Subs.php on line 892

Undefined index: spoiler_tag_click in /XXX/Sources/Subs.php on line 901

errors ?  Or is there another fix ?
Title: Re: Spoiler Tag
Post by: AzaToth on November 06, 2005, 03:29:25 PM
Quote from: xtremecruiser on November 06, 2005, 03:26:39 PM
Quote from: AzaToth on November 06, 2005, 03:23:17 PM
Quote from: xtremecruiser on November 06, 2005, 12:05:54 PM
I just DL the latest one and also get

Undefined index: spoiler_tag_click in /XXX/Sources/Subs.php on line 892

Undefined index: spoiler_tag_click in /XXX/Sources/Subs.php on line 901

The Hoover is fine

I also do not have the classic theme ( many dont ) and it looks for it in the install.
Classic theme is installed by default, thats why I made it for it, but if you say is true that many remove the classic, I can easly add check for it.

Is that why I get the
Undefined index: spoiler_tag_click in /XXX/Sources/Subs.php on line 892

Undefined index: spoiler_tag_click in /XXX/Sources/Subs.php on line 901

errors ?  Or is there another fix ?
No, that I now fixed in 0.2.3, I forgot to add _info to a few indexes.
Title: Re: Spoiler Tag
Post by: xtremecruiser on November 06, 2005, 03:32:31 PM
Quote from: AzaToth on November 06, 2005, 03:29:25 PM
Quote from: xtremecruiser on November 06, 2005, 03:26:39 PM
Quote from: AzaToth on November 06, 2005, 03:23:17 PM
Quote from: xtremecruiser on November 06, 2005, 12:05:54 PM
I just DL the latest one and also get

Undefined index: spoiler_tag_click in /XXX/Sources/Subs.php on line 892

Undefined index: spoiler_tag_click in /XXX/Sources/Subs.php on line 901

The Hoover is fine

I also do not have the classic theme ( many dont ) and it looks for it in the install.
Classic theme is installed by default, thats why I made it for it, but if you say is true that many remove the classic, I can easly add check for it.

Is that why I get the
Undefined index: spoiler_tag_click in /XXX/Sources/Subs.php on line 892

Undefined index: spoiler_tag_click in /XXX/Sources/Subs.php on line 901

errors ?  Or is there another fix ?
No, that I now fixed in 0.2.3, I forgot to add _info to a few indexes.
Installed and works fine.
Thanks
Title: Re: Spoiler Tag
Post by: xtremecruiser on November 08, 2005, 10:45:04 AM
Hum, just installed on my main site and the spoiler only shows for the admins ?
RC1.1
No my default theme is a different one than normal one.

ERR set the permissions for each profile and they still can not see it  :'(

Gave every groups acess to it, even the guests. Only the admins can see it.

if a regular member tries to quote the post they get nothing instead of the

[spoiler]boo[/spoiler]
OMG I found the issue.
I have local permissions on some boards to keep the "lower" membergroup from posting in them >:(
Its gonna be a long afternoon redoing this :'(
Title: Re: Spoiler Tag
Post by: AzaToth on November 08, 2005, 01:16:13 PM
Quote from: xtremecruiser on November 08, 2005, 10:45:04 AM
Hum, just installed on my main site and the spoiler only shows for the admins ?
RC1.1
No my default theme is a different one than normal one.

ERR set the permissions for each profile and they still can not see it  :'(

Gave every groups acess to it, even the guests. Only the admins can see it.

if a regular member tries to quote the post they get nothing instead of the

[spoiler]boo[/spoiler]
OMG I found the issue.
I have local permissions on some boards to keep the "lower" membergroup from posting in them >:(
Its gonna be a long afternoon redoing this :'(
hehe, hope you fix it :) the mod uses allowedTo() to check if the member (membergroup) is allowed to post OR show spoiler (not XOR), if this is somewhat confusing, please tell me so :)
Title: Re: Spoiler Tag
Post by: xtremecruiser on November 08, 2005, 01:58:55 PM
Quote from: AzaToth on November 08, 2005, 01:16:13 PM
Quote from: xtremecruiser on November 08, 2005, 10:45:04 AM
Hum, just installed on my main site and the spoiler only shows for the admins ?
RC1.1
No my default theme is a different one than normal one.

ERR set the permissions for each profile and they still can not see it  :'(

Gave every groups access to it, even the guests. Only the admins can see it.

if a regular member tries to quote the post they get nothing instead of the

[spoiler]boo[/spoiler]
OMG I found the issue.
I have local permissions on some boards to keep the "lower" membergroup from posting in them >:(
Its gonna be a long afternoon redoing this :'(
hehe, hope you fix it :) the mod uses allowedTo() to check if the member (membergroup) is allowed to post OR show spoiler (not XOR), if this is somewhat confusing, please tell me so :)

I have it now, I just use local permissions on some boards so changing the members permissions does nothing to effect access, I have to do each one :-X
Title: Re: Spoiler Tag
Post by: Ben_S on November 09, 2005, 06:53:00 AM
Thanks, one of the very few mods I have installed.
Title: Re: Spoiler Tag
Post by: Hawkes on November 28, 2005, 09:56:00 PM
Great mod!  I have it installed with 1.1 RC1 and the Helios Multi mod.  I had some editing to do, but all-in-all it works great.

One suggestion, ability to modify the colors of the spolier box.... both background and text without having to customize the .css sheet.

Title: Re: Spoiler Tag
Post by: Omar Bazavilvazo on December 06, 2005, 10:17:24 AM
Thanks...

AMAZING job... Just what I needed...

This is 1 of the 2 mods installed in my forum :)

Gracias!
Title: Re: Spoiler Tag
Post by: Teknomancer on December 11, 2005, 05:12:43 AM
Only works when I'm admin.... I've tried 0.2.3 version (the latest one here) and it still doesnt work for non-admin members...

any help?
Title: Re: Spoiler Tag
Post by: Teknomancer on December 11, 2005, 10:30:59 PM
Hey !!! It works beautifully... it was because of "Local" board permissions.

I need to change it manually for 2 boards that had local permissions for regular members and now it works like a charm!!! COOL MOD!!!
Title: Re: Spoiler Tag
Post by: damacguy on December 31, 2005, 05:40:16 PM
Any word when this mod will be updated for RC2?
Title: Re: Spoiler Tag
Post by: Teknomancer on January 04, 2006, 03:46:19 AM
I got this to work on RC2 ... but the Admin panel settings are not installed properly.

The theme has hardcoded /Themes/default and is not using {themedir} variable.
Title: Re: Spoiler Tag
Post by: exfloodeur on January 04, 2006, 04:41:14 AM
Quote from: Teknomancer on January 04, 2006, 03:46:19 AM
I got this to work on RC2 ... but the Admin panel settings are not installed properly.

The theme has hardcoded /Themes/default and is not using {themedir} variable.


is it the only one issue ?
Title: Re: Spoiler Tag
Post by: ciggwin on January 04, 2006, 09:25:38 PM
Any update on this working for RC2?  Really would like to have it working again after the board upgrade :)  Thanks!! Great mod!
Title: Re: Spoiler Tag
Post by: damacguy on January 05, 2006, 12:13:17 AM
Quote from: Teknomancer on January 04, 2006, 03:46:19 AM
I got this to work on RC2 ... but the Admin panel settings are not installed properly.

The theme has hardcoded /Themes/default and is not using {themedir} variable.

Um, so what did you do to get it to work? Manually edit the Admin panel php file? Or was there more to it?
Title: Re: Spoiler Tag
Post by: Teknomancer on January 05, 2006, 11:47:02 PM
Quote from: damacguy on January 05, 2006, 12:13:17 AM
Quote from: Teknomancer on January 04, 2006, 03:46:19 AM
I got this to work on RC2 ... but the Admin panel settings are not installed properly.

The theme has hardcoded /Themes/default and is not using {themedir} variable.

Um, so what did you do to get it to work? Manually edit the Admin panel php file? Or was there more to it?

Uninstall your existing Spoiler Tag. Then edit the Spoiler tag zip file/targz file and search for "1.1 RC1" or something. Replace it with 1.1 RC2 and then install it again (I think the replace should be done in some  ".xml").

It works perfectly on my RC2, only thing is I no longer get the Admin panel controls for Spoiler tag (eg choosing button/link etc.) but the tags work fine on my forum (existing tags as well as newly added spoilers). Users can click/hide and post them.
Title: Re: Spoiler Tag
Post by: damacguy on January 06, 2006, 01:13:01 AM
Ah! Hadn't thought to 'hack' the version check. Ta-Dah!

Thanks...  ;D
Title: Re: Spoiler Tag
Post by: xtremecruiser on January 06, 2006, 08:05:59 AM
Quote from: Teknomancer on January 05, 2006, 11:47:02 PM
Quote from: damacguy on January 05, 2006, 12:13:17 AM
Quote from: Teknomancer on January 04, 2006, 03:46:19 AM
I got this to work on RC2 ... but the Admin panel settings are not installed properly.

The theme has hardcoded /Themes/default and is not using {themedir} variable.

Um, so what did you do to get it to work? Manually edit the Admin panel php file? Or was there more to it?

Uninstall your existing Spoiler Tag. Then edit the Spoiler tag zip file/targz file and search for "1.1 RC1" or something. Replace it with 1.1 RC2 and then install it again (I think the replace should be done in some  ".xml").

It works perfectly on my RC2, only thing is I no longer get the Admin panel controls for Spoiler tag (eg choosing button/link etc.) but the tags work fine on my forum (existing tags as well as newly added spoilers). Users can click/hide and post them.

With no admin control does it use all the options or which does it use ?
Title: Re: Spoiler Tag
Post by: There's a Ferret on January 16, 2006, 02:05:16 PM
Managed to install it in RC2. Is there a way to have spoiler-related permissions listed in reports?

I also prepared a localization file for my mother tongue language (italian), but it looks to me like the localization files are lagging behind the actual development of the package (i.e. I manually modified the language files on my forum and that's been more work than just the few lines I have to copy'n'paste in italian.xml)
Title: Re: Spoiler Tag
Post by: Kusanagui on January 23, 2006, 10:44:46 PM
the archives are corrupt
Title: Re: Spoiler Tag
Post by: Teknomancer on February 03, 2006, 09:47:43 AM
Quote from: xtremecruiser on January 06, 2006, 08:05:59 AM
Quote from: Teknomancer on January 05, 2006, 11:47:02 PM
Quote from: damacguy on January 05, 2006, 12:13:17 AM
Quote from: Teknomancer on January 04, 2006, 03:46:19 AM
I got this to work on RC2 ... but the Admin panel settings are not installed properly.

The theme has hardcoded /Themes/default and is not using {themedir} variable.

Um, so what did you do to get it to work? Manually edit the Admin panel php file? Or was there more to it?

Uninstall your existing Spoiler Tag. Then edit the Spoiler tag zip file/targz file and search for "1.1 RC1" or something. Replace it with 1.1 RC2 and then install it again (I think the replace should be done in some  ".xml").

It works perfectly on my RC2, only thing is I no longer get the Admin panel controls for Spoiler tag (eg choosing button/link etc.) but the tags work fine on my forum (existing tags as well as newly added spoilers). Users can click/hide and post them.

With no admin control does it use all the options or which does it use ?

In my forum I used to have it set to "Link" and not the Button type of spioiler... and its continuing that way. so its showing spoilers as links (which is the way I like it too) :D
Title: Re: Spoiler Tag
Post by: Faustus on February 03, 2006, 03:51:59 PM
Quote from: Teknomancer on January 05, 2006, 11:47:02 PM
Uninstall your existing Spoiler Tag. Then edit the Spoiler tag zip file/targz file and search for "1.1 RC1" or something. Replace it with 1.1 RC2 and then install it again (I think the replace should be done in some  ".xml").

It works perfectly on my RC2, only thing is I no longer get the Admin panel controls for Spoiler tag (eg choosing button/link etc.) but the tags work fine on my forum (existing tags as well as newly added spoilers). Users can click/hide and post them.


Odd. Uninstalled it. Made the changes and it still complains and will not install.
Title: Re: Spoiler Tag
Post by: AntaresMHD on February 03, 2006, 05:09:29 PM
I had this error when I installed it manually (the automatic package install didn't worked for me this time; every time I tried, it showed me the error message: can't load template 'ftp_required') :

Warning: Unexpected character in input: ' in /home/utakinet/public_html/foros/Sources/Subs.php(2108) : eval()'d code on line 1

Parse error: parse error, unexpected $ in /home/utakinet/public_html/foros/Sources/Subs.php(2108) : eval()'d code on line 1


I couldn't figure out what was this mistake, could you guys help me, please?
Title: Re: Spoiler Tag
Post by: perplexed on February 07, 2006, 09:42:57 PM
HI I tried to install this mod and it said there was an error and the file must be corrupted.


QuoteAn Error Has Occurred!
The package you tried to upload either is not a valid package or has become corrupted. 

I downloaded version 0.1.7 as I am using 1.1 beta 3 public but it didnt work

any ideas?
Title: Re: Spoiler Tag
Post by: xtremecruiser on February 21, 2006, 05:31:10 PM
Bump for a fix on RC2 8)
Title: Re: Spoiler Tag
Post by: tL0z on February 22, 2006, 10:20:56 AM
I also would like to use it on SMF 1.1 RC2  :-\
Title: Re: Spoiler Tag
Post by: Patrol on February 26, 2006, 05:16:52 PM
I followed the tip about changing RC1 to RC2 in the .xml sourcecodes and tried to install the spoiler tags then. The installation worked fine except for one error message. It was about a file named Error.English.php or something like that (sorry, i forgot to copy & paste, I know I shouldn't take three tasks at once). I'll look it up and post it, as soon as possible. I thought this will help others a bit, you are asking for an update of this mod.

Patrol
Title: Re: Spoiler Tag
Post by: Teknomancer on February 26, 2006, 10:52:36 PM
The file if it is corrupt, try to make the .zip file as a.tar.gz and try again. That usually works for me.

Also try the 1.1 RC1 to 1.1RC2 thing in the ".xml" files of the package.

But BE SURE that the old spoiler tag has been removed completely.
Title: Re: Spoiler Tag
Post by: Gobo on February 27, 2006, 09:32:20 PM
Will there be a stable release for rc2 anytime soon as a package?

Cos I would really love to have this feature - its the bomb!
Title: Re: Spoiler Tag
Post by: perplexed on March 03, 2006, 05:59:32 PM
I did the 'change rc1 to rc2' thing in my test forum and it works a treat :)

This is a great feature, one that I use on vbulletin and miss on smf.  Great for entertainment discussions for movies, books etc

The only thing I would like is a button to click on the post template as I can see lots of members asking how to do it despite my best efforts to post explanations (people never read them) lol

But yeah I love it, its great and working well :D

Title: Re: Spoiler Tag
Post by: LongFist on March 07, 2006, 09:36:42 AM
Quote from: iwyen on September 20, 2005, 11:59:38 PMYa, great for movie and drama discussions  :P Er.. any chance you'ld be making one for 1.0.5?

Yeah, we at CyberTuna.Net (http://www.cybertuna.net) are using SMF ver 1.0.6 - is there some reason we cannot use it as well?  (The main administrator mentioned some issues trying to get it set up.)  I have a few users (and one or two moderators) who are dying to get this sort of functionality on the boards...   ;D

Thanks for your time and attention,

The Lurking LongFist
Title: Re: Spoiler Tag
Post by: tL0z on March 07, 2006, 02:37:26 PM
Quote from: perplexed on March 03, 2006, 05:59:32 PM
I did the 'change rc1 to rc2' thing in my test forum and it works a treat :)

Where is that "tutorial"?
Title: Re: Spoiler Tag
Post by: perplexed on March 07, 2006, 02:56:36 PM
Quote from: tL0z on March 07, 2006, 02:37:26 PM
Quote from: perplexed on March 03, 2006, 05:59:32 PM
I did the 'change rc1 to rc2' thing in my test forum and it works a treat :)

Where is that "tutorial"?

no tutorial, I just followed the advice in the following post.

Quote from: Teknomancer on February 26, 2006, 10:52:36 PM
The file if it is corrupt, try to make the .zip file as a.tar.gz and try again. That usually works for me.

Also try the 1.1 RC1 to 1.1RC2 thing in the ".xml" files of the package.

But BE SURE that the old spoiler tag has been removed completely.

Title: Re: Spoiler Tag
Post by: tL0z on March 07, 2006, 04:20:50 PM
I tryed to install the Spoiler-0.2.3.tar.gz (http://mods.simplemachines.org/index.php?action=download;mod=195;id=10944) but it said:

The package you are trying to download or install is either corrupt or not compatible with this version of SMF.

I've already tryed to rename it to a .zip file but it didn't work.
Title: Re: Spoiler Tag
Post by: mcgrelio on March 11, 2006, 11:06:03 AM
Quote from: tL0z on March 07, 2006, 04:20:50 PM
I tryed to install the Spoiler-0.2.3.tar.gz (http://mods.simplemachines.org/index.php?action=download;mod=195;id=10944) but it said:

The package you are trying to download or install is either corrupt or not compatible with this version of SMF.

I've already tryed to rename it to a .zip file but it didn't work.
http://www.simplemachines.org/community/index.php?topic=19831.msg508753#msg508753
Title: Re: Spoiler Tag
Post by: tL0z on March 11, 2006, 02:58:35 PM
Thanks :D
Title: Re: Spoiler Tag
Post by: onijin on March 17, 2006, 03:38:01 PM
I got this mod working finally.  Just changed the 1.1RC1 to 1.1RC2 and it installed perfectly for me.  I even have no problems choosing which style (button/hovering/link) in my admin panel.

Beautiful mod.  Thank you.

Just a question...  I'd like to add a BBC button for this (so my members don't have to keep typing "[spoiler]")  ie: (https://www.simplemachines.org/community/Themes/newsite/images/bbc/flash.gif) (https://www.simplemachines.org/community/Themes/newsite/images/bbc/img.gif) (https://www.simplemachines.org/community/Themes/newsite/images/bbc/url.gif) etc.

Is that possible?  I even found a nice spoiler button.
Title: Re: Spoiler Tag
Post by: ArkServer on March 19, 2006, 07:01:10 AM
Quote from: onijin on March 17, 2006, 03:38:01 PM
I got this mod working finally.  Just changed the 1.1RC1 to 1.1RC2 and it installed perfectly for me.  I even have no problems choosing which style (button/hovering/link) in my admin panel.

Beautiful mod.  Thank you.

Just a question...  I'd like to add a BBC button for this (so my members don't have to keep typing "[spoiler]")  ie: (https://www.simplemachines.org/community/Themes/newsite/images/bbc/flash.gif) (https://www.simplemachines.org/community/Themes/newsite/images/bbc/img.gif) (https://www.simplemachines.org/community/Themes/newsite/images/bbc/url.gif) etc.

Is that possible?  I even found a nice spoiler button.

can u post that spoiler button? :P

anyway.. is it possible to have a border around the text within the spoiler for better readability?
Title: Re: Spoiler Tag
Post by: onijin on March 20, 2006, 11:28:44 AM
Actually... I figured out how to add the button.  Works perfectly.

here's the button:

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.forgottengarden.net%2Fforum%2FThemes%2FTP_cerberus11rc2%2Fimages%2Fbbc%2Fspoiler.gif&hash=6425586e0922f6084e773acb12f3ce5d1264f3fb)
But the credit should go to Ruzster.
Title: Re: Spoiler Tag
Post by: HeLLCiTo on March 23, 2006, 08:19:15 PM
Quote from: xtremecruiser on November 08, 2005, 01:58:55 PM
Quote from: AzaToth on November 08, 2005, 01:16:13 PM
Quote from: xtremecruiser on November 08, 2005, 10:45:04 AM
Hum, just installed on my main site and the spoiler only shows for the admins ?
RC1.1
No my default theme is a different one than normal one.

ERR set the permissions for each profile and they still can not see it  :'(

Gave every groups access to it, even the guests. Only the admins can see it.

if a regular member tries to quote the post they get nothing instead of the

[spoiler]boo[/spoiler]
OMG I found the issue.
I have local permissions on some boards to keep the "lower" membergroup from posting in them >:(
Its gonna be a long afternoon redoing this :'(
hehe, hope you fix it :) the mod uses allowedTo() to check if the member (membergroup) is allowed to post OR show spoiler (not XOR), if this is somewhat confusing, please tell me so :)

I have it now, I just use local permissions on some boards so changing the members permissions does nothing to effect access, I have to do each one :-X

i have the same problem, i don´t know how to fix it. User don´t see spoilers mod :( . I´m spanish so my english is very bad.
Title: Re: Spoiler Tag
Post by: xtremecruiser on March 24, 2006, 09:13:52 PM
My site is full of the spoiler posts and if I update they all look like crap.

The author has not been on in some time

Last Active:     January 15, 2006, 05:54:24 PM

Quote from: HeLLCiTo on March 23, 2006, 08:19:15 PM
Quote from: xtremecruiser on November 08, 2005, 01:58:55 PM
Quote from: AzaToth on November 08, 2005, 01:16:13 PM
Quote from: xtremecruiser on November 08, 2005, 10:45:04 AM
Hum, just installed on my main site and the spoiler only shows for the admins ?
RC1.1
No my default theme is a different one than normal one.

ERR set the permissions for each profile and they still can not see it  :'(

Gave every groups access to it, even the guests. Only the admins can see it.

if a regular member tries to quote the post they get nothing instead of the

[spoiler]boo[/spoiler]
OMG I found the issue.
I have local permissions on some boards to keep the "lower" membergroup from posting in them >:(
Its gonna be a long afternoon redoing this :'(
hehe, hope you fix it :) the mod uses allowedTo() to check if the member (membergroup) is allowed to post OR show spoiler (not XOR), if this is somewhat confusing, please tell me so :)

I have it now, I just use local permissions on some boards so changing the members permissions does nothing to effect access, I have to do each one :-X

i have the same problem, i don´t know how to fix it. User don´t see spoilers mod :( . I´m spanish so my english is very bad.

Title: Re: Spoiler Tag
Post by: HeLLCiTo on March 25, 2006, 11:52:29 AM
if nobody have a solution, i´ll have to uninstall it.

other spoler mod?? like this
Title: Re: Spoiler Tag
Post by: azuregenesis on April 15, 2006, 06:51:39 PM
Quote from: mcgrelio on March 11, 2006, 11:06:03 AM
Quote from: tL0z on March 07, 2006, 04:20:50 PM
I tryed to install the Spoiler-0.2.3.tar.gz (http://mods.simplemachines.org/index.php?action=download;mod=195;id=10944) but it said:

The package you are trying to download or install is either corrupt or not compatible with this version of SMF.

I've already tryed to rename it to a .zip file but it didn't work.
http://www.simplemachines.org/community/index.php?topic=19831.msg508753#msg508753

http://www.simplemachines.org/community/index.php?topic=19831.msg546663#msg546663
Title: Re: Spoiler Tag
Post by: yellow1912 on May 16, 2006, 12:28:27 AM
Quote from: onijin on March 20, 2006, 11:28:44 AM
Actually... I figured out how to add the button.  Works perfectly.

here's the button:

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.newkortrading.com%2Fsmf2%2FThemes%2Fgrey%2Fimages%2Fbbc%2Fspoiler.gif&hash=516d714872bb943acaa66c5aea55b3964f8976ff)
But the credit should go to Ruzster.
The image seems dead *_*
Title: Re: Spoiler Tag
Post by: onijin on May 16, 2006, 09:33:25 AM
fixed
Title: Re: Spoiler Tag
Post by: Vinspire on May 17, 2006, 06:46:33 AM
What's the code to add title like the below pic ?

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg160.imageshack.us%2Fimg160%2F1333%2Fspoilerresultcustom3ix.png&hash=91557c4a352d8bcd4ba21234467ff8dd46f56bfd)

And Onijin,

Quote from: onijin on March 20, 2006, 11:28:44 AM
Actually... I figured out how to add the button.  Works perfectly.

here's the button:

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.forgottengarden.net%2Fforum%2FThemes%2FTP_cerberus11rc2%2Fimages%2Fbbc%2Fspoiler.gif&hash=6425586e0922f6084e773acb12f3ce5d1264f3fb)
But the credit should go to Ruzster.

How to add this button and get it working ?
Title: Re: Spoiler Tag
Post by: onijin on May 17, 2006, 08:53:24 AM
Quote from: Vinspire on May 17, 2006, 06:46:33 AM
And Onijin,

Quote from: onijin on March 20, 2006, 11:28:44 AM
Actually... I figured out how to add the button.  Works perfectly.

here's the button:

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.forgottengarden.net%2Fforum%2FThemes%2FTP_cerberus11rc2%2Fimages%2Fbbc%2Fspoiler.gif&hash=6425586e0922f6084e773acb12f3ce5d1264f3fb)
But the credit should go to Ruzster.

How to add this button and get it working ?

in post.template.php

find
'quote' => array('code' => 'quote', 'before' => '[quote]', 'after' => '[/quote]', 'description' => $txt[260]),

add after
'spoiler' => array('code' => 'spoiler', 'before' => '[spoiler]', 'after' => '[/spoiler]', 'description' => spoiler),


and put the spoiler button in the
'/images/bbc/' directory
(of all themes)
Title: Re: Spoiler Tag
Post by: Vinspire on May 17, 2006, 09:53:46 AM
Thanks onijin. Its working perfectly in my site  ;) ;) ;)
Title: Re: Spoiler Tag
Post by: onijin on May 17, 2006, 01:05:43 PM
Quote from: Vinspire on May 17, 2006, 06:46:33 AM
What's the code to add title like the below pic ?

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg160.imageshack.us%2Fimg160%2F1333%2Fspoilerresultcustom3ix.png&hash=91557c4a352d8bcd4ba21234467ff8dd46f56bfd)


I do believe that it's [spoiler=text][/spoiler]
not too sure though
Title: Re: Spoiler Tag
Post by: Vinspire on May 19, 2006, 05:33:20 AM
Onijin, yeap. Thats the code. Thanks :)
Title: Re: Spoiler Tag
Post by: AzaToth on May 21, 2006, 08:29:35 PM
I'm back :)

Sorry, but I havn't have used smf for a while now, since our forum computer went down. I'll see if I can update all my mods now.
Title: Re: Spoiler Tag
Post by: AzaToth on May 22, 2006, 11:12:42 AM
0.2.4 released patched for 1.1 RC2
Title: Re: Spoiler Tag
Post by: Vinspire on May 22, 2006, 11:48:45 AM
Quote from: AzaToth on May 22, 2006, 11:12:42 AM
0.2.4 released patched for 1.1 RC2

I've did a hack on the mods by following the instruction in this thread to get it working on SMF 1.1 RC 2.

So, what should i do now and what is the updates in 0.2.4 ?
Title: Re: Spoiler Tag
Post by: AzaToth on May 22, 2006, 12:13:21 PM
Quote from: Vinspire on May 22, 2006, 11:48:45 AM
Quote from: AzaToth on May 22, 2006, 11:12:42 AM
0.2.4 released patched for 1.1 RC2

I've did a hack on the mods by following the instruction in this thread to get it working on SMF 1.1 RC 2.

So, what should i do now and what is the updates in 0.2.4 ?
The changes is minor, no features added, only made it directly installabled in RC2
Title: Re: Spoiler Tag
Post by: kriskd on May 25, 2006, 08:56:50 PM
Works great.  Love the button!!

Just a quick question -- I use a variant of the classic theme that I call "Olive".  Do I need to edit anything in that theme other than completing the instructions for post.template.php which displays the button?  I ask because the install seemed like it was doing something to the "regular" classic theme (ie, the one that came with SMF).

I use SMF 1.1 RC2.
Title: Re: Spoiler Tag
Post by: kriskd on May 25, 2006, 09:28:45 PM
Okay, I spoke too soon.  I got the following error showing up in my error log:


8: Use of undefined constant spoiler - assumed 'spoiler'
File: /home/.cutiekins/myaccount/mydomain.com/forum/Themes/default/languages/Post.english.php (eval?)
Line: 761


Could someone advise what I need to do to correct this?
Title: Re: Spoiler Tag
Post by: onijin on May 25, 2006, 09:34:53 PM
I have 500 pages of that everyday...

I just hit "delete all"

LoL~

Thought it was normal...
Title: Re: Spoiler Tag
Post by: kriskd on May 26, 2006, 11:19:43 AM
Quote from: kriskd on May 25, 2006, 09:28:45 PM
Okay, I spoke too soon.  I got the following error showing up in my error log:


8: Use of undefined constant spoiler - assumed 'spoiler'
File: /home/.cutiekins/myaccount/mydomain.com/forum/Themes/default/languages/Post.english.php (eval?)
Line: 761


Could someone advise what I need to do to correct this?
Quote from: onijin on May 25, 2006, 09:34:53 PM
I have 500 pages of that everyday...

I just hit "delete all"

LoL~

Thought it was normal...

Actually, I got it fixed.  I've gotten a bit better dealing with constant declarations with this software which was all that was needed to fix it.

I took a better look at this:

Quote from: onijin on May 17, 2006, 08:53:24 AM
'quote' => array('code' => 'quote', 'before' => '[quote]', 'after' => '[/quote]', 'description' => $txt[260]),

add after
'spoiler' => array('code' => 'spoiler', 'before' => '[spoiler]', 'after' => '[/spoiler]', 'description' => spoiler),

and then changed the last bit of 'description' => to look more like the code in the line before and then declared the constant in post.english.php.

You should be able to get rid of all those errors building in your error log by declaring the constants correctly.
Title: Re: Spoiler Tag
Post by: onijin on May 26, 2006, 01:25:55 PM
Yup~!

That fixed it for me too~
Title: Re: Spoiler Tag
Post by: perplexed on June 10, 2006, 10:11:43 AM
Quote from: AzaToth on May 22, 2006, 12:13:21 PM
Quote from: Vinspire on May 22, 2006, 11:48:45 AM
Quote from: AzaToth on May 22, 2006, 11:12:42 AM
0.2.4 released patched for 1.1 RC2

I've did a hack on the mods by following the instruction in this thread to get it working on SMF 1.1 RC 2.

So, what should i do now and what is the updates in 0.2.4 ?
The changes is minor, no features added, only made it directly installabled in RC2

I am using this too, and currently members have to manually type in [spoiler*] text [/spoiler*] in their posts.

does the new version install a button to click to add the tags or do you still have to type them manually?

~thanks
Title: Re: Spoiler Tag
Post by: onijin on June 10, 2006, 10:22:41 AM
He didn't add a button.  Just made it compatible with RC2.

Just install the button yourself.

Quote from: onijin on March 20, 2006, 11:28:44 AM
in post.template.php

find
'quote' => array('code' => 'quote', 'before' => '[quote]', 'after' => '[/quote]', 'description' => $txt[260]),

add after
'spoiler' => array('code' => 'spoiler', 'before' => '[spoiler]', 'after' => '[/spoiler]', 'description' => $txt['spoiler']),


and put a spoiler button in the
'/images/bbc/' directory
(of all themes)

Post.english.php in languagedir

find
$txt[261] = 'Insert List';

add after


$txt['spoiler'] = 'Insert Spoiler';



That'll take care of the errors in the error log.
Title: Re: Spoiler Tag
Post by: perplexed on June 10, 2006, 10:28:51 AM
cool, thanks, so that will put a button on the post preview like with insert flash, insert image and so on?
Title: Re: Spoiler Tag
Post by: onijin on June 10, 2006, 02:08:26 PM
yuppers.

But youll need the actual button.  I posted the one I'm using a few posts up.
Title: Re: Spoiler Tag
Post by: Captain_Morrigan on June 15, 2006, 03:09:08 PM
I don't know if anyone else had this issue but I did and I fixed it by looking at the old file but upon installing this mod it replaced my quote tag with spoiler instead of just adding it. Just thought you might want to know.
Title: Re: Spoiler Tag
Post by: Yngwiedis on June 27, 2006, 09:49:15 AM
Quote from: Captain_Morrigan on June 15, 2006, 03:09:08 PM
I don't know if anyone else had this issue but I did and I fixed it by looking at the old file but upon installing this mod it replaced my quote tag with spoiler instead of just adding it. Just thought you might want to know.

I have the same problem. Is there any fix for that ?

Thank you.
Title: Re: Spoiler Tag
Post by: PrizeLive.com on July 02, 2006, 02:38:30 PM
I have installed the mod and added the code for the button but it's still not showing up. What should I do to make it work?
Title: Re: Spoiler Tag
Post by: Vinspire on July 02, 2006, 04:37:57 PM
Quote from: SurfExcelerator.com on July 02, 2006, 02:38:30 PM
I have installed the mod and added the code for the button but it's still not showing up. What should I do to make it work?

Did you tick your membergroup permissions ?

Show Spoilers     
Post Spoilers

If you didnt. I guess that should fix it :)
Title: Re: Spoiler Tag
Post by: PrizeLive.com on July 02, 2006, 04:43:10 PM
Quote from: Vinspire on July 02, 2006, 04:37:57 PM
Did you tick your membergroup permissions ?

Show Spoilers     
Post Spoilers

If you didnt. I guess that should fix it :)

Yeah it's ticked but still doesn't show.

This also may be related to the karma mod. The karma up and down buttons aren't showing as well in the display area when you view a post.

What can I do to fix these?
Title: Re: Spoiler Tag
Post by: Vinspire on July 02, 2006, 04:56:47 PM
Is there any error on the installation process ?
Title: Re: Spoiler Tag
Post by: PrizeLive.com on July 02, 2006, 04:58:31 PM
Quote from: Vinspire on July 02, 2006, 04:56:47 PM
Is there any error on the installation process ?

No it installed smoothly.
Title: Re: Spoiler Tag
Post by: Vinspire on July 02, 2006, 05:03:31 PM
Hmmm .... the code is [spoiler] [/spoiler]

also not working ?
Title: Re: Spoiler Tag
Post by: PrizeLive.com on July 02, 2006, 05:08:10 PM
Quote from: Vinspire on July 02, 2006, 05:03:31 PM
Hmmm .... the code is [spoiler] [/spoiler]

also not working ?

The code will work. I just don't get the image in the post area to select.
Title: Re: Spoiler Tag
Post by: Vinspire on July 02, 2006, 05:22:52 PM
ermmm ... not the Spoiler BBC Buttons right ?

If what you mean is cant view the spoiler content then the only problems i can think of is you didn't tick the membergroup permission.
Title: Re: Spoiler Tag
Post by: PrizeLive.com on July 02, 2006, 05:32:13 PM
Quote from: Vinspire on July 02, 2006, 05:22:52 PM
ermmm ... not the Spoiler BBC Buttons right ?

If what you mean is cant view the spoiler content then the only problems i can think of is you didn't tick the membergroup permission.

You can view the spoiler content, just not the Spoiler BBC Buttons...
Title: Re: Spoiler Tag
Post by: Vinspire on July 02, 2006, 05:39:40 PM
To add BBC Button. This is what you need to do.

in post.template.php

find

'quote' => array('code' => 'quote', 'before' => '[quote]', 'after' => '[/quote]', 'description' => $txt[260]),

add after

'spoiler' => array('code' => 'spoiler', 'before' => '[spoiler]', 'after' => '[/spoiler]', 'description' => spoiler),

and put the spoiler button (https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.forgottengarden.net%2Fforum%2FThemes%2FTP_cerberus11rc2%2Fimages%2Fbbc%2Fspoiler.gif&hash=6425586e0922f6084e773acb12f3ce5d1264f3fb) in the
'/images/bbc/' directory
(of all themes)

It should be working now :)
Title: Re: Spoiler Tag
Post by: PrizeLive.com on July 02, 2006, 05:59:43 PM
But I've already done that also....  ???
Title: Re: Spoiler Tag
Post by: Vinspire on July 02, 2006, 06:02:06 PM
Quote from: SurfExcelerator.com on July 02, 2006, 05:59:43 PM
But I've already done that also....  ???

There isn't any BBC button appear or just the logo ?
Title: Re: Spoiler Tag
Post by: PrizeLive.com on July 02, 2006, 06:05:30 PM
Maybe I'm missing something but I don't see it.

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg142.imageshack.us%2Fimg142%2F6624%2Funtitled3yi1.png&hash=6a671d346dd4b2532a902553dfae0dce476445c7)
Title: Re: Spoiler Tag
Post by: Vinspire on July 02, 2006, 06:11:27 PM
Dude, can send me ur post.template.php file ? I try having a look at it :)
Title: Re: Spoiler Tag
Post by: PrizeLive.com on July 02, 2006, 06:13:56 PM
Quote from: Vinspire on July 02, 2006, 06:11:27 PM
Dude, can send me ur post.template.php file ? I try having a look at it :)

Sure, one sec. I'll PM you it.
Title: Re: Spoiler Tag
Post by: PrizeLive.com on July 02, 2006, 07:38:35 PM
Thanks, it's fixed!
Title: Re: Spoiler Tag
Post by: Vinspire on July 02, 2006, 07:41:19 PM
Quote from: SurfExcelerator.com on July 02, 2006, 07:38:35 PM
Thanks, it's fixed!

Glad to hear that :)
Title: Re: Spoiler Tag
Post by: perplexed on July 16, 2006, 11:15:37 AM
hi

I added the spoiler button onijin, to the post.template.php and it looks great.

I also have an enhanced quick reply that most of our members use, so it would be good to have this button on there too, do you know how to accomplish that?
Title: Re: Spoiler Tag
Post by: tL0z on July 28, 2006, 08:48:03 AM
Hello,

Some users are telling me that they cannot see a specific spoiler tag button. I can see it when logged as Admin however, not when I'm as a guest.. Is not a problem in the browser because as I guest I cannot see it.

What can be happening?
Title: Re: Spoiler Tag
Post by: Vinspire on July 29, 2006, 03:16:00 AM
Quote from: tL0z on July 28, 2006, 08:48:03 AM
Hello,

Some users are telling me that they cannot see a specific spoiler tag button. I can see it when logged as Admin however, not when I'm as a guest.. Is not a problem in the browser because as I guest I cannot see it.

What can be happening?

Check ur member permission. You could see as an admin eventhough you didn't activate the function coz admin can see everything but not for mods, guest or normal members :)

This should solve your problemo :)
Title: Re: Spoiler Tag
Post by: tL0z on July 29, 2006, 03:15:40 PM
The permissions are right.

This only happens in one post and it seems it's only for some users.
Title: Re: Spoiler Tag
Post by: perplexed on July 30, 2006, 06:21:41 AM
Quote from: perplexed on July 16, 2006, 11:15:37 AM
hi

I added the spoiler button onijin, to the post.template.php and it looks great.

I also have an enhanced quick reply that most of our members use, so it would be good to have this button on there too, do you know how to accomplish that?


Can anyone tell me how to put this spoiler button on the quick reply box without getting any errors?

Thanks
Title: Re: Spoiler Tag
Post by: Vinspire on July 30, 2006, 06:53:42 AM
Quote from: tL0z on July 29, 2006, 03:15:40 PM
The permissions are right.

This only happens in one post and it seems it's only for some users.

Did you check the board permission ?

Quote from: perplexed on July 30, 2006, 06:21:41 AM
Quote from: perplexed on July 16, 2006, 11:15:37 AM
hi

I added the spoiler button onijin, to the post.template.php and it looks great.

I also have an enhanced quick reply that most of our members use, so it would be good to have this button on there too, do you know how to accomplish that?


Can anyone tell me how to put this spoiler button on the quick reply box without getting any errors?

Thanks

What kinda error ?
Title: Re: Spoiler Tag
Post by: perplexed on August 03, 2006, 11:11:13 AM
sorry I meant not getting any errors in the forum log.  I was just going to attempt to use the same code for the button as in the post preview, but I dont know where the code for the enhanced quick reply is (problem 1), and I noted that before, you said to put something in the mod.english file to stop error messages (problem 2)

Title: Re: Spoiler Tag
Post by: Vinspire on August 05, 2006, 06:29:33 AM
I've got this error in my error log. Anyway, to fix it ? :(

8: Use of undefined constant spoiler - assumed 'spoiler'
File: /home/korobox/public_html/forum/Themes/default/languages/Post.english.php (main sub template - eval?)
Line: 789
Title: Re: Spoiler Tag
Post by: rjprince on August 07, 2006, 12:48:16 PM
I am using:

Joomla 1.0.10
SMF 1.1RC2
Bridge 1.1.5a
AzaToth's Spoiler Mod (http://mods.simplemachines.org/index.php?mod=195) 0.2.5

You can see the problem in this thread (http://www.princeclan.org/index.php?option=com_smf&Itemid=131&?topic=63.msg415).

If loaded in Firefox 1.5, it works fine. In IE 6, the spoiler divs are not shown at all. If you compare the source for the page in FF and in IE, you will see that the code for the spoiler tagged text is simply gone in IE.

Does anyone know why this might happen?

This happens whether the forum is accessed through Joomla at the link above or directly through this link (http://www.princeclan.org/forum/index.php?topic=63.0). According to Orstio, this means that the problem is not in the bridge code, and Joomla isn't called at all when directly accessing the forum.

Also, if I copy and paste the firefox source code to a local file and load it in IE, the code works (after an annoying security warning).

Any ideas? Thanks.
Title: Re: Spoiler Tag
Post by: rjprince on August 08, 2006, 10:05:27 AM
After further tweaking, I have determined that the link and button methods work correctly. However, the option to change that does not appear on my Current Themes page, so I had to tweak the code to change the default.

But, it's working now.
Title: Re: Spoiler Tag
Post by: ^DooM^ on August 14, 2006, 07:31:38 PM
Works fine in IE and firefox. Also installed in 7 other themes and all work perfectly. Thanks for this great mod :)
Title: Re: Spoiler Tag
Post by: tL0z on August 22, 2006, 05:55:39 PM
Is the mod compatible with SMF 1.1 RC3?
Title: Re: Spoiler Tag
Post by: bene on August 25, 2006, 03:43:36 AM
Ya I'm waiting too for RC3..
Title: Re: Spoiler Tag
Post by: dry3210 on August 26, 2006, 03:34:50 PM
Also hoping to see an RC3 version
Title: Re: Spoiler Tag
Post by: Eddy Newell on September 02, 2006, 04:40:58 PM
I too, would like to see this for 1.1 RC3. :)
Title: Re: Spoiler Tag
Post by: citrusmirakel on September 05, 2006, 09:47:56 PM
Allow me top hop on the bandwagon here. RC3 compatibility would be fantastic.
Title: Re: Spoiler Tag
Post by: AzaToth on September 07, 2006, 10:32:50 AM
Quote from: tL0z on August 22, 2006, 05:55:39 PM
Is the mod compatible with SMF 1.1 RC3?
Oh, has RC3 arrived :) I'll try to make all my mods RC3 compatime ASAP.
Title: Re: Spoiler Tag
Post by: AzaToth on September 07, 2006, 12:55:41 PM
Have updated it now (0.2.6) to be compatible with 1.1 RC3
Title: Re: Spoiler Tag
Post by: citrusmirakel on September 07, 2006, 04:37:25 PM
Just tested it, and it gave a problem report for index.german.php, Themes.german.php, index.spanishp.php and Themes.spanish.php. However, since my forum is English-only, I don't think it'll be a problem.
Title: Re: Spoiler Tag
Post by: Yngwiedis on September 09, 2006, 12:49:09 AM
Can you please correct the mod, so is not removing the quote button ?
Thank you.
Title: Re: Spoiler Tag
Post by: Markuz Nightwind on September 09, 2006, 03:32:23 AM
I'm not able to download 0.2.6, everytime i try i get a corrupted file. It's only me?
Title: Re: Spoiler Tag
Post by: tL0z on September 09, 2006, 05:55:16 AM
Works fine for me? How can I edit the Portuguese text? It isn't correct.
Title: Re: Spoiler Tag
Post by: perplexed on September 13, 2006, 06:59:19 AM
Hi I tried to install 0.2.4 fro 1.1 rc2 via package manager but I get the following:

An Error Has Occurred!
The package you tried to upload either is not a valid package or has become corrupted.

I also then tried 0.2.5 just in case I had the wrong version but I get the same message with that one too.

Which one should work for 1.1.rc2 via package manager?

~thanks
Title: Re: Spoiler Tag
Post by: Gobo on September 13, 2006, 07:37:11 AM
hi perplexed

this is just a guess -- u could try uploading the package to the packages directory via FTP

and then apply mod and see if it works?

try it..if it dosent just delete the package via FTP too
Title: Re: Spoiler Tag
Post by: perplexed on September 13, 2006, 10:14:39 AM
I tried that too but it still wont install, it just keeps saying its already on the server, but it doesnt show in the 'browse packages' list where I could then 'apply mod'  does that make sense?
Title: Re: Spoiler Tag
Post by: AzaToth on September 14, 2006, 07:04:32 AM
Quote from: Yngwiedis on September 09, 2006, 12:49:09 AM
Can you please correct the mod, so is not removing the quote button ?
Thank you.
I don't think I understand what you are meaning, I'll look in to it.
Title: Re: Spoiler Tag
Post by: Yngwiedis on September 14, 2006, 07:31:36 AM
I 'll try to explain better.
After the installation of the Spoiler Tag mod the bbc button for quote are removed and in the same position is the Spoiler Tag bbc button.
The problem is on the mod command in the Post.template.php file.
It says <replace> and not <add after>...
I hope you understand now....
Title: Re: Spoiler Tag
Post by: AzaToth on September 14, 2006, 07:37:35 AM
Quote from: Yngwiedis on September 14, 2006, 07:31:36 AM
I 'll try to explain better.
After the installation of the Spoiler Tag mod the bbc button for quote are removed and in the same position is the Spoiler Tag bbc button.
The problem is on the mod command in the Post.template.php file.
It says <replace> and not <add after>...
I hope you understand now....


Yea, I found it, upgrading it now to 0.2.6.1, including upgrade patch from 0.2.6 in the archive
Title: Re: Spoiler Tag
Post by: ProtoMan.EXE on September 26, 2006, 06:26:02 AM
I need , help , I tried downloading the mods from my admin panel but it said the file is corrupted then I downloaded it from the mods site at Simple Machines home page and tried upload and install it and it seemed fine. But when I tried using it , the following problem apeared :

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi86.photobucket.com%2Falbums%2Fk118%2FProtoMan_03%2FSpoilerhelp.jpg&hash=761cac97063b0c211ab95f80fd63c6fe6895dfa6)

You know what I mean , right ? Please help me , Thank you.

PS : I am using 1.1 RC 3 but my friend installed it to his site without any problem (Note : my friend even installed mods more than me and which one I installed he installed too)
Title: Re: Spoiler Tag
Post by: ProtoMan.EXE on September 26, 2006, 11:47:58 AM
Sorry for double posting but I need help so badly , please help me  :'(
Title: Re: Spoiler Tag
Post by: jeremyyeo on September 27, 2006, 12:22:02 AM
Does this work in IE yet?
Title: Re: Spoiler Tag
Post by: ProtoMan.EXE on September 27, 2006, 06:42:08 AM
Quote from: jeremyyeo on September 27, 2006, 12:22:02 AM
Does this work in IE yet?
Yes , I can see that button at my friend 's site , so that means not because IE

PS : I am using the SMF Default Theme  :'(
Title: Re: Spoiler Tag
Post by: jeremyyeo on September 27, 2006, 08:48:47 AM
i know the button works. just that the spoiler feature doesnt work in IE for me. In IE, anything in spoiler wont be displayed, not even the spoiler-click-to-reveal button.

In opera, everything's fine and dandy.
Title: Re: Spoiler Tag
Post by: ProtoMan.EXE on September 27, 2006, 09:33:19 AM
I don't mean the Spoiler Tag doesn't work , I mean its button didn't appear right (Look at the pic I uploaded)  ;)
Title: Re: Spoiler Tag
Post by: jeremyyeo on September 27, 2006, 09:45:19 AM
Yeah...i know that. for me, the function (of spoilling text) doesn't workk in IE.  :'(
Title: Re: Spoiler Tag
Post by: AzaToth on September 27, 2006, 09:55:24 AM
Quote from: jeremyyeo on September 27, 2006, 09:45:19 AM
Yeah...i know that. for me, the function (of spoilling text) doesn't workk in IE.  :'(
I really don't know why it won't work in IE, perhaps IE can't handle javascript correctly.
Title: Re: Spoiler Tag
Post by: jeremyyeo on September 27, 2006, 10:01:24 AM
Hrm...not too sure myself. are others having the same problems?
Title: Re: Spoiler Tag
Post by: SeanTrek on September 27, 2006, 08:12:51 PM
When I tried installing this mod I got this error message:
The package you are trying to download or install is either corrupt or not compatible with this version of SMF.

But why is it giving me this crap? I need help with this mod!
Title: Re: Spoiler Tag
Post by: Vinspire on October 03, 2006, 11:01:00 AM
Quote from: ProtoMan.EXE on September 27, 2006, 09:33:19 AM
I don't mean the Spoiler Tag doesn't work , I mean its button didn't appear right (Look at the pic I uploaded)  ;)

Are you sure that you manage to extract the spoiler pictures to your image folder on ur SMF site ?
Title: Re: Spoiler Tag
Post by: ProtoMan.EXE on October 03, 2006, 11:42:14 AM
Sorry , I forgot to say , I fixed it for a long time  :)
Title: Re: Spoiler Tag
Post by: Nordoelum on October 10, 2006, 02:15:37 PM
I have just added a norwegian language file. Download (http://nordoelum.com/Spoiler-0.2.6.1.tar.gz). But after applying the file, I got an error in the Subs.php file:
QuoteFatal error: Cannot redeclare get_spoiler() (previously declared in /home/virtual/site2/fst/var/www/html/scforum/Sources/Subs.php:915) in /home/virtual/site2/fst/var/www/html/scforum/Sources/Subs.php on line 971

What can this be? I get the installer to edit the right lines in the norwegian language files. As there anything more I need to with the Subs. php file?
Could check this out?

Birger :)
Title: Re: Spoiler Tag
Post by: Dorte on October 19, 2006, 05:51:32 PM
It seems the mod doesn't work with the current release of Firefox, or at least both I and a friend couldn't make the hidden text appear.... :(
Title: Re: Spoiler Tag
Post by: perplexed on October 20, 2006, 03:36:08 AM
hi

I just upgraded my test forum to RC3 and tried to upload this mod via package manager but got the following message:

An Error Has Occurred!
The package you tried to upload either is not a valid package or has become corrupted.


I see there are two versions for RC3 -

0.2.6 is patched for 1.1 RC3
0.2.6.1 is a minor patch for 0.2.6 that had the habit of removing the quote button, also now it's removing the spoiler image when uninstall.

I want 0.2.6.1 because I was having that problem with the missing quote button previously.

Can you help?
Title: Re: Spoiler Tag
Post by: perplexed on October 21, 2006, 08:23:19 AM
sorry for posting again but can anyone help me install this latest spoiler package - 0.2.6.1 - as it won't install via package manager and I dont know any other way - it says its corrupt or not compatible with my smf version

(I'm on 1.1 rc3)
Title: Re: Spoiler Tag
Post by: AzaToth on October 24, 2006, 07:04:01 AM
Quote from: perplexed on October 21, 2006, 08:23:19 AM
sorry for posting again but can anyone help me install this latest spoiler package - 0.2.6.1 - as it won't install via package manager and I dont know any other way - it says its corrupt or not compatible with my smf version

(I'm on 1.1 rc3)
Check first that the file is signaling corectly that it's a gzippped tabrball (tar.gz).
Title: Re: Spoiler Tag
Post by: perplexed on October 24, 2006, 12:05:30 PM
yes it definitely says Spoiler-0.2.6.1.tar.gz


edited to add:  I tried unzipping it and resaving it as a zip file and tried uploading that to my test site and that seems to be ok.

Is that alright to do?
Title: Re: Spoiler Tag
Post by: Korosu_Itai on October 26, 2006, 05:07:27 AM
I have a strange problem with this mod.
It works fine in the administrator account, but regular users don't see the spoilers and they can't use the spoiler tag or they get an unknown error.
I'm using SMF RC3 with the PDX-DK Theme.
I can't see the configuration options on the administration panel but I suposse that's because the theme. The strange thing it's the mod work for the admin but not for the other users.
Title: Re: Spoiler Tag
Post by: Vinspire on October 26, 2006, 10:20:05 AM
Quote from: Korosu_Itai on October 26, 2006, 05:07:27 AM
I have a strange problem with this mod.
It works fine in the administrator account, but regular users don't see the spoilers and they can't use the spoiler tag or they get an unknown error.
I'm using SMF RC3 with the PDX-DK Theme.
I can't see the configuration options on the administration panel but I suposse that's because the theme. The strange thing it's the mod work for the admin but not for the other users.

Check ur membergroups permission under the admin cp :)
Title: Re: Spoiler Tag
Post by: Korosu_Itai on October 26, 2006, 04:53:06 PM
I didn't find options relatives to the mod on the membergroups permissions :(
I tried with the default theme but it doesn't work, I still didn't find them.
Title: Re: Spoiler Tag
Post by: Vinspire on October 26, 2006, 08:53:29 PM
Quote from: Korosu_Itai on October 26, 2006, 04:53:06 PM
I didn't find options relatives to the mod on the membergroups permissions :(
I tried with the default theme but it doesn't work, I still didn't find them.

Then maybe ur spoiler tag had not been installed fully. Try checking the install.xml files from the spoiler zip and install the spoiler tag manually for manage.permissions.php.
Title: Re: Spoiler Tag
Post by: Webrunner on October 27, 2006, 09:35:28 AM
I am having the following permission problem:
I gave every member the permission to post and read spoilers in the permissions page in the administrator control panel. I myself as an admin can add spoilers to personal messages but other members can't. They also can't see spoilers in personal messages and get an error message when they send a persopnal message wich contains a spoiler.

What am i doing wrong? :o
Title: Re: Spoiler Tag
Post by: Webrunner on November 09, 2006, 08:04:09 AM
Up?
Title: Re: Spoiler Tag
Post by: violaceous on November 11, 2006, 04:56:13 AM
Got a quick question...

We have 3 themes installed on our board, the admin theme options for hover/link/button (drop-down list) were installed into 2 of the theme options, but the selection doesn't show up in the 3rd theme's options (it's the dilbermc theme btw)

Any idea what's going one? or how to manually add the drop-down list?


edit: nevermind, I found the part to add to the Settings.template.php file
Title: Re: Spoiler Tag
Post by: Xarcell on November 11, 2006, 08:08:46 PM
Nice mod, I hope you continue to develope it.
Title: Re: Spoiler Tag
Post by: Nordoelum on November 14, 2006, 07:27:26 AM
How to translate it?
Title: Re: Spoiler Tag
Post by: AzaToth on December 02, 2006, 04:04:14 PM
Have updated to 1.1 now (version 0.3.0). A new feature is that you can now specify globally the default fallback style.
Title: Re: Spoiler Tag
Post by: Dorte on December 03, 2006, 04:38:41 PM
Thanks, I dig this mod!
Title: Re: Spoiler Tag
Post by: jorgerll on December 12, 2006, 10:10:56 AM
Hi:

I can see this in errors log:

8: Undefined index: spoiler_tag_onbuttonclickshow
Archivo: /xxxxxx/foro/Sources/ModSettings.php
Línea: 232

:)
Title: Re: Spoiler Tag
Post by: Maharet on December 18, 2006, 11:05:21 PM
We just started a new board and upgraded SMF 1.1 (final) to 1.1.1 and now I'm unable to apply the 1.1 version of this mod.  I really love this mod, as we used it on our last board, is there a work around or plans to update it for version 1.1.1?
Title: Re: Spoiler Tag
Post by: Gobo on December 18, 2006, 11:13:44 PM
it should be pretty simple

1- unzip the package file
2- open the package-info.xml file using a suitable text editor
3- find the lines which say 'install for 1.1' and 'uninstall for 1.1' and change it to 1.1.1 in both nstances
4- zip the package back up
5- try uploading and installing via package manager

hope that helps
Title: Re: Spoiler Tag
Post by: Dorte on December 19, 2006, 07:04:39 AM
I just wanted to do that as well for 1.1.1 but it seems the file in the mod section is broken. I downloaded it four times and 7-zip tells me the file is damaged. If I upload it to my SMF, I just get a blank screen...
Title: Re: Spoiler Tag
Post by: Maharet on December 19, 2006, 03:39:11 PM
Thank you so much!  Worked like a charm!
Title: Re: Spoiler Tag
Post by: kdizzle on December 20, 2006, 01:17:08 PM
I want / Need this Mod!

I teach and I love to post practice questions for my students.  This is an awesome tag!

however.  I get this everytime:
1.     Execute Modification     install.xml     Modification parse error
2.    Execute Modification    -    Modification parse error
3.    Execute Modification    portuguese.xml    Modification parse error
4.    Execute Modification    -    Modification parse error
5.    Execute Modification    german.xml    Modification parse error
6.    Execute Modification    -    Modification parse error
7.    Execute Modification    french.xml    Modification parse error
8.    Execute Modification    -    Modification parse error
9.    Execute Modification    spanish.xml    Modification parse error
10.    Execute Modification    -    Modification parse error
11.    Extract File    ./Themes/default/images/bbc/spoiler.gif    

Any quick ideas?

Thank you
Title: Re: Spoiler Tag
Post by: Snick on December 24, 2006, 08:54:15 AM
In the last version for smf 1.1.1, The spoiler zip file dont work

There´s nothing inside in the zip file

Please helpme

G.B :)
Title: Re: Spoiler Tag
Post by: 4fit? on December 27, 2006, 07:46:21 PM
Just installed on 1.1.1.  Have some Failed errors on languages that I don't use, so I went with the install anyway.  Works fine.
However, I am getting this error in the error log.  I notice that it has twp backslashes (/) after tempSpolier.  Any ideas?
2: copy(/home/musta2/public_html/bboard1/Packages/tempSpoiler//Spoiler/spoiler.gif): failed to open stream: No such file or directory
File: /home/musta2/public_html/bboard1/Sources/Subs-Package.php
Line: 1025
Title: Re: Spoiler Tag
Post by: photocopy on January 05, 2007, 11:38:17 AM
I'm having an issue with 0.3.1 on SMF 1.1.1:  I was able to install it fine, but when I change the default spoiler tag to "linkOnClickShowHide" and hit save, it still defaults to "fieldOnHoverShow".
Title: Re: Spoiler Tag
Post by: en_shua on January 07, 2007, 05:32:01 PM
I've installed Spoiler-0.3.1 on SMF 1.1.1.  I've configured it to use the link style.  Is there any way to change the wording so that "Spoiler: " isn't in the button?
Title: Re: Spoiler Tag
Post by: bluesyrio on January 14, 2007, 11:31:52 AM
Hmm, I had a problem with the Portuguese version which does not seem to be updated...

It is lacking the change of the ManagePermissions.Portuguese, Errors.Portuguese and ModSettings.Portuguese.

Here's the translation for the first file:

$txt['permissionname_spoiler_show'] = 'Mostrar Spoilers';
$txt['permissionhelp_spoiler_show'] = 'Permitir ao utilizador mostrar spoilers incluídos nos posts';
$txt['permissionname_spoiler_post'] = 'Postar Spoilers';
$txt['permissionhelp_spoiler_post'] = 'Permitir o utilizador postar novos spoilers';


I also found a minor mistake in other parts of the current translation available in your mod. If you send the necessary text to be translated from the latest mod, it will be my pleasure to review and update it. Please PM me if interested. :)
Title: Re: Spoiler Tag
Post by: Wingnut31 on January 15, 2007, 07:26:09 PM
It denies me permission to post spoilers, any ideas how I can make this work, I'm using 1.1.1
Title: Re: Spoiler Tag
Post by: jonathanE. on January 24, 2007, 02:05:04 PM
Quote from: Wingnut31 on January 15, 2007, 07:26:09 PM
It denies me permission to post spoilers, any ideas how I can make this work, I'm using 1.1.1

Make sure permissions for posting are enabled ;)

I am aware that this mod is compatible with the classic theme though in the case of Spanish language it does not appear in 'Current Theme' but in 'Features and Options'. It appears though without catergory text not even in the dropdown box :-?
How can i fix this?

Testing with the default theme it appears both at 'Current Theme' and 'Features and Options' though the Spanish translation is quite poor honestly (better use something like Babylon translator stuff ;)).
I presume the same problem, the translation one, will too appear once I know how to fix the mod to show up in spanish classic theme admin panel.
How can I retranslate the text (both in admin panel and when posting a spoiler (click to show etc.)?

I tried to edit the spanish.xml file and repack the file but when trying to upload the file through the package manager it says it is corrupted :-?
Title: Re: Spoiler Tag
Post by: fraska on February 01, 2007, 09:49:02 AM
here is my problem:
0.3.1 on SMF 1.1.1, had to create an italian translation but it works fine, as admin i can see, post and quote spoilers, so can my global mod, though my "normal" members can't do any of that: they can see the spoiler button, but when posting an error occurs (not specified).
Now my boards permissions are all set to global, bullettin board code under "posts and topics" in acp has the spoiler tag checked.
Any suggestions?

thanx in advance  :)
Title: Re: Spoiler Tag
Post by: Threepwud on February 11, 2007, 10:16:29 AM
The icon for Spoiler shows up when posting in firefox but not in IE7.

It just shows a red cross - any ideas for this?

Thanks!
Title: Re: Spoiler Tag
Post by: 01001 on February 11, 2007, 04:17:47 PM

Hello, since I can give permissions to the regular users to insert Spoiler in the signatures?

An option like these :


$txt['permissionname_spoiler_show'] = 'Show Spoilers';
$txt['permissionhelp_spoiler_show'] = 'Allow the user to show spoilers included in posts';
$txt['permissionname_spoiler_post'] = 'Post Spoilers';
$txt['permissionhelp_spoiler_post'] = 'Allow the user to post new spoilers';


But not where to programme it... help.

Thank you.
Title: Re: Spoiler Tag
Post by: Cyrox on February 12, 2007, 09:38:41 AM
Quote from: Elijah Bliss on October 26, 2005, 02:48:34 PM
Quote from: AzaToth on October 26, 2005, 02:03:11 PM
Quote from: Elijah Bliss on October 26, 2005, 11:59:09 AM
Quote from: AzaToth on October 26, 2005, 09:15:42 AM
Quote from: xtremecruiser on October 25, 2005, 06:57:08 PM
Works great with RC1.1
How about a mode for only registered users to be able to un hide it or only see if you reply ?  Just a thought :-X
Thanks
I'll look into it, but it requires some major changes in the code (mostly because I can't validate parsed content, so I have to do it the hard way as I did for Tabular)

There's an easier route. Just create a permission and make sure no one but the allowed are able to use it.
don't understand exactly how you mean, how do I use permissions in parse_bbc?

example:
Code (Find in ManagePermissions.php) Select

// Standard - ie. members.  They can do anything Restrictive can.
$groupLevels['global']['standard'] = array_merge($groupLevels['global']['restrict'], array(


Code (add after) Select

'spoiler_tag',


Code (Find in ManagePermissions.php) Select

$permissionList = array(
'membergroup' => array(
'general' => array(


Code (add after) Select

'spoiler_tag',


Code (Find in Subs-Post.php) Select

// Limit the size of images posted?


Code (add before) Select

//Check [spoiler][/spoiler] permission:
if (!allowedTo('spoiler_tag'))
$message = preg_replace('~\[spoiler\](.+?)\[/spoiler\]~ise', '\'You do not have permission to use spoiler tags.\'', $message);


Code (Find in Modifications.english.php) Select

?>


Code (add before) Select

$txt['permissionname_spoiler_tag'] = 'Usespoiler tags';
$txt['permissionhelp_spoiler_tag'] = 'This permission allows people to use the spoiler tags.';



after that you can set the permissions for each membergroup in the admin panel.

This isn´t worlk in 1.1.1, need more anything else?
Title: Re: Spoiler Tag
Post by: lumiden on February 13, 2007, 03:02:26 PM
Does it work for 1.1.2?
Title: Re: Spoiler Tag
Post by: 01001 on February 13, 2007, 04:00:13 PM
Quote from: Cyrox on February 12, 2007, 09:38:41 AM
This isn´t worlk in 1.1.1, need more anything else?

Ups!

Thank you, but my version is 1.1.1.

Bye
Title: Re: Spoiler Tag
Post by: Zenigata on February 15, 2007, 01:17:53 PM
Great mod, tough I don't like the spolier icon.
Title: Re: Spoiler Tag
Post by: JamesWC on February 15, 2007, 07:02:57 PM
I'm using v0.3.1 of the package, on a v1.1.1 forum, and my members are receiving permission errors when trying to use spoilers in a PM (it works fine in posts). How can I fix this?
Title: Re: Spoiler Tag
Post by: drgnfireinferno on February 17, 2007, 10:35:26 PM
Quote from: lumiden on February 13, 2007, 03:02:26 PM
Does it work for 1.1.2?

It won't let me install it with 1.1.2. Think you'll upgrade it?
Title: Re: Spoiler Tag
Post by: Vandaahl on February 20, 2007, 09:25:48 AM
Quote from: drgnfireinferno on February 17, 2007, 10:35:26 PM
Quote from: lumiden on February 13, 2007, 03:02:26 PM
Does it work for 1.1.2?

It won't let me install it with 1.1.2. Think you'll upgrade it?

Same here. I would do it manually but it's a big mod so I'd rather get it done through the installer.
Title: Re: Spoiler Tag
Post by: Marianita on February 20, 2007, 12:35:03 PM
Quote from: drgnfireinferno on February 17, 2007, 10:35:26 PM
Quote from: lumiden on February 13, 2007, 03:02:26 PM
Does it work for 1.1.2?

It won't let me install it with 1.1.2. Think you'll upgrade it?



Same here. It doesnt work with 1.1.2 :( :( :( Any solutions????
Title: Re: Spoiler Tag
Post by: 4fit? on February 20, 2007, 01:59:48 PM
Those trying to install on 1.1.2, just open up the package-info file and add references to version 1.1.2 to the install/uninstall sections.  Then zip the file back up and install like usual through the package manager.  Of course, test this on a test forum first. ;)
Title: Re: Spoiler Tag
Post by: froid_san on February 20, 2007, 10:32:32 PM
i'm getting this error when i've add 1.1.2 at the package-info

12. Execute Modification ./Themes/default/languages/Errors.english.php Test failed


i've recently fresh installed 1.1.2 and it worked fine when my forum was 1.1.1 updated to 1.1.2
Title: Re: Spoiler Tag
Post by: franklinrony on February 20, 2007, 11:24:19 PM
opening modification.xml locate the modification of Errors.english.php open Errors.english.php and edit manually for this file
Title: Re: Spoiler Tag
Post by: mattness on February 21, 2007, 12:54:06 AM
Hi, AzaToth (and other spoiler mod users :) )
Thanks for great mod.
I'm mattness, from Poland (sorry, my for bad English).
Our site-forum use Polish language pack, not BlackDay theme, and SMF in version SMF 1.1 RC2 . (I've used spoiler mod in recommended by you version 0.2.4 ).

Here's the problems:
1. when I've tried to translate text "(hover to show)" into polish "(najedź, żeby zobaczyć tekst)", i've just edited install.xml with notepad and exchanged all texts (hover to show) into (polish equvalent). When I've upload modified file, our site was killed (not only forum - but whole portal). iirc spoiler mode done something with file "Subs.php" (it just vanished from our server. Thank God for backups).
Which line I should translate?
2. To be honset, I don't like hover to show option - if I could change it into "buttonOnClickShowHide" option it would be great - however - as I mentioned, we have SMF with polish pack. I'm not sure, where to find "Current Theme in Admin Panel" to change spoiler option :( ...

2a. If somebody will be so kind, and help me with p.2 - how I should change button (I plan to tanslate it)?

3. Last but not least - how to add spoiler button to forum answer menu?
Here's mash up of what I'm thinking about:
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg157.imageshack.us%2Fimg157%2F2015%2Fmashupyn3.th.jpg&hash=2b6de0bde0c4dd8430c579cf101e112c0958b434) (http://img157.imageshack.us/my.php?image=mashupyn3.jpg)

Thanks in advance for help
Title: Re: Spoiler Tag
Post by: URPG on February 21, 2007, 04:22:07 AM
Could someone upload the modified 1.1.2 version with edited files, please?
Title: Re: Spoiler Tag
Post by: Marianita on February 21, 2007, 10:23:50 AM
Quote from: URPG on February 21, 2007, 04:22:07 AM
Could someone upload the modified 1.1.2 version with edited files, please?

NO. It causes broken pages.  :-[


Wich version of spoiler tag sould we try??  :-\

Title: Re: Spoiler Tag
Post by: mattness on February 21, 2007, 06:06:01 PM
One more problem with this spoiler tag mode:

UnREGISTERED users see just content of the tag :( .
Title: Re: Spoiler Tag
Post by: URPG on February 22, 2007, 04:07:13 PM
uh great...

Sounds like it would need to be completely re-done by someone else? Should we open a new request in another Thread?
Title: Re: Spoiler Tag
Post by: mattness on February 23, 2007, 12:04:26 AM
It works. It works! :)
I had to write it down into particular files and upload by FTP.
After installation you have to go to default theme, and in administrator panel you can  set 1 of three options (mouse over/button/ 1 I don't recall nor want to use).
Tested on SMF 1.1 RC2
Title: Re: Spoiler Tag
Post by: Emperium on February 23, 2007, 06:41:30 PM
When will an official working spoiler tag mod release for 1.1.2?

If there is already can you please link me to it, I'm terribly confused with all the versions and such that have been mentioned so far in this thread, I can't tell which one to get.
Title: Re: Spoiler Tag
Post by: perplexed on February 24, 2007, 08:35:22 PM
I dont think an official 1.1.2 version has been released yet but I am using 0.3.1 on smf 1.1.2 with no errors.
Title: Re: Spoiler Tag
Post by: Emperium on February 24, 2007, 08:50:43 PM
I can't even apply the mod on my 1.1.2. How did you do it?
Title: Re: Spoiler Tag
Post by: 4fit? on February 26, 2007, 08:14:37 AM
It's working just fine on my 1.1.2 as well.  You could try editing the package-info.xml file to include 1.1.2, but I would test that on a test forum before you tried to apply it to your main forum.
Title: Re: Spoiler Tag
Post by: perplexed on February 27, 2007, 09:14:01 AM
Quote from: Emperium on February 24, 2007, 08:50:43 PM
I can't even apply the mod on my 1.1.2. How did you do it?

I had it on the forum on 1.1.1 before I applied the 1.1.2 patch.  It installed no probs and then after the patch everything was still good.
Title: Re: Spoiler Tag
Post by: Marianita on February 27, 2007, 02:23:06 PM
oh, i try .0.3.1  manually , but it doesnt work . The subs.php modification causes a blank index page, and the modsettings.php modification a blank page in the features and options panel.  :-[
I have 1.1.2 installed, is not an upgrade.
Title: Re: Spoiler Tag
Post by: Marianita on March 02, 2007, 10:20:09 AM
So.... No solutions???  :-[
Title: Re: Spoiler Tag
Post by: Lemming on March 04, 2007, 06:47:05 PM
Could someone test this version (for 1.1.2)  :P
Title: Re: Spoiler Tag
Post by: BountYHunTercGn on March 05, 2007, 02:38:00 AM
it works! ;)
Title: Re: Spoiler Tag
Post by: Vandaahl on March 06, 2007, 08:22:18 AM
Quote from: Lemming on March 04, 2007, 06:47:05 PM
Could someone test this version (for 1.1.2)  :P

Works on my 1.1.2 board as well, thanks! :)
Title: Re: Spoiler Tag
Post by: Marianita on March 06, 2007, 10:35:33 AM

Finally, it works on my 1.1.2  :)
Now, I have a question : Is it possible to make a spoiler inside a spoiler??  :-\


These are the modified files  for 1.1.2:


Title: Re: Spoiler Tag
Post by: Lemming on March 07, 2007, 03:36:48 PM
Marianita .rar file is not for the package manager so it could be a problem when you have installed any mods.
Title: Re: Spoiler Tag
Post by: Marianita on March 07, 2007, 05:30:50 PM
Quote from: Lemming on March 07, 2007, 03:36:48 PM
Marianita .rar file is not for the package manager so it could be a problem when you have installed any mods.

lemming!!! I didn't install the .rar pack, those are just the files with the modification , working fine on a clean and new 1.1.2 installation .  :)
Title: Re: Spoiler Tag
Post by: Lemming on March 07, 2007, 07:43:44 PM
I know :) ...and on a clean new 1.1.2 smf install it will work - but not when you have installed any mods. (yeah, the Spoiler Tag will work but not the other mods any more  :D ).
Title: Re: Spoiler Tag
Post by: Marianita on March 09, 2007, 05:47:23 PM
Well, i have two more mods installed and the spoiler tag in D.Multicolor theme working ok. I installed it by hand, comparing the installed files in the clean smf and the files with the others mods (I have a web forum and a forum installed in my own pc for testings) and it works.  It's not the best option, not fast and simple, but i have spoilers ...  :-\
Title: Re: Spoiler Tag
Post by: sniderz on March 13, 2007, 02:25:01 PM
How do you change the background color so its not black and so you can see it after clicking on the button ??
Title: Re: Spoiler Tag
Post by: Lemming on March 14, 2007, 09:50:25 AM
In the style.css file of your theme just add and/or edit this code:



fieldset.spoiler
{
border: 1px dashed gray;
}

fieldset.spoiler > legend
{
font-size: 1.2em;
}

div.spoilerheader a
{
font-family: sans-serif;
font-size: 1.1em;
font-weight: bold;
}

div.spoilerheader input
{
font-family: sans-serif;
font-size: 1.1em;
font-weight: bold;

}
div.spoilerbody
{
color: #0f0f0f;
border: 1px dotted gray;
padding: 1em;
margin: 1em;
    }

fieldset.spoiler div.spoilerbody
{
border: 0px;
padding: 0em;
}  
Title: Re: Spoiler Tag
Post by: URPG on March 15, 2007, 11:16:13 AM
Could anyone put this into a package, please?
Title: Re: Spoiler Tag
Post by: Lemming on March 15, 2007, 11:57:17 AM
Quote from: URPG on March 15, 2007, 11:16:13 AM
Could anyone put this into a package, please?
What? For 1.1.2 you can download a package version here:
http://www.simplemachines.org/community/index.php?action=dlattach;topic=50261.0;attach=28580

And the CSS is auto added in the default and classic theme.
Title: Re: Spoiler Tag
Post by: AzaToth on March 18, 2007, 12:34:37 PM
Hello, sorry if i have been away :)
If someone could reply with a list with everything that should be fixed, I'll look into it.

/Carl
Title: Re: Spoiler Tag
Post by: AzaToth on March 18, 2007, 01:04:41 PM
have made a bump version for 1.1.2 now.
Title: Re: Spoiler Tag
Post by: Vinspire on March 21, 2007, 07:58:33 AM
My spoiler can't work this way ... any idea way ?

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg160.imageshack.us%2Fimg160%2F1333%2Fspoilerresultcustom3ix.png&hash=91557c4a352d8bcd4ba21234467ff8dd46f56bfd)
Title: Re: Spoiler Tag
Post by: Nifelhein on March 24, 2007, 04:18:19 PM
Hmm, I use Tinyportal and for some reason the tags do not show on the frontpage, but i doubt that has to do with this mod, works fine otherwise.
Title: Re: Spoiler Tag
Post by: Exsharaen on April 14, 2007, 02:08:01 AM
Hi, for some reason IE6 users in my forum can't see the spoiler (allthe spoiled text, the button "Spoiler", and "click to show/hide" notification), while FF2 users can. Is it something to do with the language? I'm not using English as my forum language, and using the very default SMF theme.

Thanks.
Title: Re: Spoiler Tag
Post by: Greg425 on April 19, 2007, 08:07:54 PM
I am trying to install the Spoiler Tag by azatoth in v1.1.2 and it says it is either corrupt or wrong version...if i understand correctly it is compatible with this version. Does anyone have an answer to the problem? OR know of a Spoiler Tag that will install from the Admin section? Any help would be greatly appreciated!

Title: Re: Spoiler Tag
Post by: shinji on April 24, 2007, 04:49:50 PM
and multi spoiler ??

[spoiler][spoiler][spoiler]yyyy que tantooooooooo  :grin:[/spoiler][/spoiler][/spoiler]
[/quote]


(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.hardmodding.cl%2Fimages%2FM_images%2Fmultispolier.jpg&hash=158a8dac1c19502a87dc509b0a28c24a973da99d)

:-[ :-[
Title: Re: Spoiler Tag
Post by: Greg425 on April 25, 2007, 10:25:26 AM
Anyone know why the spoiler tag mod by azatoth won't install from the admin in version 1.1.2? I really would like to have a spoiler tag that would work for my boards! Any help would be apreciated!
Title: Re: Spoiler Tag
Post by: Nifelhein on April 25, 2007, 10:53:30 AM
What errors did you meet, greg? It may be due to another mod you installed that messes the code this one changes, so this one won't install automatically.
Title: Re: Spoiler Tag
Post by: Greg425 on April 25, 2007, 01:20:56 PM
Hi, I got the message that says that the mod is either corrupt or not compatible to my version or something to that effect. I am running three mods:

1.   PM On Registration   1.0.2   
2.   Attachments Download Permission   1.0   
3.   Invite   1.13

This is the exact message i get when trying to install the Spoiler tag mod:

The package you are trying to download or install is either corrupt or not compatible with this version of SMF.

???
Title: Re: Spoiler Tag
Post by: Nifelhein on April 25, 2007, 02:16:05 PM
Greg,

The version you should use is 0.3.2, try redownloading it to make sur it was not a corrupt download as well, then try to install it again, if it fails you it must be because one of those mods changed the post.template.php file in the theme directory, so the only way for you is manual install.

For that you would have to know a bit of coding though, the docs page of SMF could help you udenrstand what youa re doing as well.
Title: Re: Spoiler Tag
Post by: Greg425 on April 25, 2007, 02:21:31 PM
that is the version i was trying to install :( as i said i am new to the whole PHP coding so don't know if I will be able to install it or not...i would really like to have it though...I get the same message with the bible tag mod as well...think it is a manual install anyway though...
Title: Re: Spoiler Tag
Post by: Nifelhein on April 25, 2007, 02:31:57 PM
Then do check the docs page, there they teach the basics, and provided you make a backup copy of any file before changing it you can always return to the original version. I am not much of a coder myself. Keep in midn though that the way to uninstall a manual install is a manual uninstall as well.

I think the mod that may be conflicting with this one is the attachment download permission, you can also see if uninstalling it allows you to install this one, then see if you can get attachment download permission to install. if that happens, then you just have to keep in mind the order of things, heh.

Sometimes though, non coders have to choose between one or another mod.
Title: Re: Spoiler Tag
Post by: Greg425 on April 25, 2007, 05:25:56 PM
Hi, I uninstalled the attachments mod and tried installing the spoiler tag mod and still the same thing. I tried a couple more mod's as well to see it it would install them as well but get the same message for everything now... :( I suppose it is a manual installation at this point unless someone has another idea! I would like to see instructions in the mods for manual installations for dummies like myself!  :) I was in hopes that Azatoth would maybe read this and lend a hand as it is his/her mod! We will see! Thanks!

Title: Re: Spoiler Tag
Post by: Nifelhein on April 25, 2007, 05:31:39 PM
What error do they give you? If it is happening with any mod you should open a new thread on smf support and see if tehy can help you, you will also get a lot more replies then.
Title: Re: Spoiler Tag
Post by: Greg425 on April 25, 2007, 05:54:57 PM
Quote from: Nifelhein on April 25, 2007, 05:31:39 PM
What error do they give you? If it is happening with any mod you should open a new thread on smf support and see if tehy can help you, you will also get a lot more replies then.

I get the same error message at with the spoiler tag:

The package you are trying to download or install is either corrupt or not compatible with this version of SMF.

Now as i said i am getting this message with anything I try to install. Although, I did reinstall the attachment mod and it reinstalled fine but I thing it was because it was already downloaded on my server...I will open a new topic as you suggested. Thanks!
Title: Re: Spoiler Tag
Post by: italo_anonimo on April 25, 2007, 07:01:39 PM
in my forum for all users (no admin) show this message:

Sorry - you don't have the proper permissions to post spoilers.

all group check active (Show Spoilers and Post Spoilers)... but not spoilet posting.

help!  :-[ :-[




Title: Re: Spoiler Tag
Post by: Nifelhein on April 25, 2007, 07:15:40 PM
check individual group permissions, on the membergroups tab of the admin panel, it worked for me when that happened. ;)
Title: Re: Spoiler Tag
Post by: michelangelo on April 26, 2007, 09:15:51 AM
Quote from: Nifelhein on April 25, 2007, 07:15:40 PM
check individual group permissions, on the membergroups tab of the admin panel, it worked for me when that happened. ;)

Doesnt work in 1.1.2 as well. I'd be really convenient if we could hide big signatures in spoiler tags.
Title: Re: Spoiler Tag
Post by: Nifelhein on April 26, 2007, 11:06:58 AM
If you want to limit what a signature shows or whether it can be displayed once or every time in a single page, chck the tips and tricks sticky thread, it requires direct coding into the files, but is easy enough to follow and solves any issue you might have with it.

But I haven't seen a way to add spoiler tags to the signatures at all.

Also, be sure that both the membergroup permissions and the individual boards permissions (if you have boartds with non general permissions) allows users to post and see spoilers, else it won't work.
Title: Re: Spoiler Tag
Post by: bratgirl on April 27, 2007, 08:44:14 AM
Hi, I installed this mod and its working great... for me. But a lot of my forum members say that they don't see any spoiler cuts and that when they use "spoiler" the page freezes.

I tried all three settings, and one user reported this for the mouseover one:

"if i type the  "spoiler=test" it's the same (as the others) ... i don't see the show/hide button
if i type the "spoiler"
it says i have no permission to post spoilers"

anyone know what might be the problem? IE7 seems to be being used and javascript is enabled.
Title: Re: Spoiler Tag
Post by: Vinspire on May 01, 2007, 02:49:21 AM
It is not working well in my SMF 1.1.2  :-[

I cant choose this features ...

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg93.imageshack.us%2Fimg93%2F7669%2Fspoilerresultbutton0sj.png&hash=edb589125e254d1cc7f36d554a421c05defcaa8f)

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg160.imageshack.us%2Fimg160%2F1333%2Fspoilerresultcustom3ix.png&hash=91557c4a352d8bcd4ba21234467ff8dd46f56bfd)

All of my spoiler become like this

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg91.imageshack.us%2Fimg91%2F5151%2Fspoilerresulthover2sk.png&hash=fddf67c9655831784a341112dab2a120a36a101f)

oh tell me why ?  :'(
Title: Re: Spoiler Tag
Post by: Nifelhein on May 01, 2007, 09:33:51 AM
Check if you have a choice on admin panel in either current theme or features and options, in the first you get to choose the type of spoiler to be used in that theme, in the second you choose the default spoilers used in any theme, thus changing any theme using the default spoiler to that choice. ;)
Title: Re: Spoiler Tag
Post by: Vinspire on May 01, 2007, 01:42:18 PM
Quote from: Nifelhein on May 01, 2007, 09:33:51 AM
Check if you have a choice on admin panel in either current theme or features and options, in the first you get to choose the type of spoiler to be used in that theme, in the second you choose the default spoilers used in any theme, thus changing any theme using the default spoiler to that choice. ;)

I tried that but it is still not working. Except I missed out something.
Title: Re: Spoiler Tag
Post by: Nifelhein on May 01, 2007, 01:47:06 PM
Maybe you are not using the default theme? Mods only install to the default theme as a rule, for other themes it may require direct coding for them to work.
Title: Re: Spoiler Tag
Post by: Vinspire on May 02, 2007, 01:16:37 PM
Quote from: Nifelhein on May 01, 2007, 01:47:06 PM
Maybe you are not using the default theme? Mods only install to the default theme as a rule, for other themes it may require direct coding for them to work.

I am using the default theme and manually did the checkup on the mod .... cant seems to figure out whats the problem.
Title: Re: Spoiler Tag
Post by: Nifelhein on May 02, 2007, 03:55:49 PM
Hmm... if it installed fine it should be there. I don't think I can help you, as I am just a satisfied user of the mod myself, and hardly know enough coding to be of much help. My first attempt would be to uninstall it, download the latest version and reinstall it.

:(
Title: Re: Spoiler Tag
Post by: noelchiew on May 05, 2007, 06:18:30 AM
Does anybody know what have to be done for the mod to be applied/work on custom themes?

I noticed that in the default theme, the spoiler button in the reply post screen seems a bit weird. It is not aligned horizontally as with other buttons? It is sort of lower than the rest, is it supposed to be like that?
Title: Re: Spoiler Tag
Post by: N3lson on May 05, 2007, 06:46:08 AM
Quote from: Vinspire on May 01, 2007, 01:42:18 PM
Quote from: Nifelhein on May 01, 2007, 09:33:51 AM
Check if you have a choice on admin panel in either current theme or features and options, in the first you get to choose the type of spoiler to be used in that theme, in the second you choose the default spoilers used in any theme, thus changing any theme using the default spoiler to that choice. ;)

I tried that but it is still not working. Except I missed out something.

Style.css.of your theme
Title: Re: Spoiler Tag
Post by: Yuripro84 on May 06, 2007, 04:06:30 AM
I have 1.1.2 as well, and am using it mainly for the gallery part of my forum (I have templates for downloads and put junk like copyrights in these tags).  It works perfect as an admin, but when i log out as a guest, the spoiler tags don't even show up....or at least not in FireFox.  Hope this gets fixed, but if not, oh well.  Is there an alternative of this anyone know of that works for 1.1.2?

Oh yea, I don't know if it was because somethin went wrong, but the Spoiler image wasn't showing up either.  It was 0.3.2 if that helps any.

Forgot to mention, I did give guests, and all others permissions to use and view spoilers.  I also tried the different types, and still no luck.
Title: Re: Spoiler Tag
Post by: N3lson on May 06, 2007, 04:19:29 AM
Quote from: Yuripro84 on May 06, 2007, 04:06:30 AM
I have 1.1.2 as well, and am using it mainly for the gallery part of my forum (I have templates for downloads and put junk like copyrights in these tags).  It works perfect as an admin, but when i log out as a guest, the spoiler tags don't even show up....or at least not in FireFox.  Hope this gets fixed, but if not, oh well.  Is there an alternative of this anyone know of that works for 1.1.2?

Oh yea, I don't know if it was because somethin went wrong, but the Spoiler image wasn't showing up either.  It was 0.3.2 if that helps any.

Forgot to mention, I did give guests, and all others permissions to use and view spoilers.  I also tried the different types, and still no luck.

Works fine in here
Title: Re: Spoiler Tag
Post by: BountYHunTercGn on May 07, 2007, 04:14:53 AM
Quote from: Yuripro84 on May 06, 2007, 04:06:30 AM
I have 1.1.2 as well, and am using it mainly for the gallery part of my forum (I have templates for downloads and put junk like copyrights in these tags).  It works perfect as an admin, but when i log out as a guest, the spoiler tags don't even show up....or at least not in FireFox.  Hope this gets fixed, but if not, oh well.  Is there an alternative of this anyone know of that works for 1.1.2?

Oh yea, I don't know if it was because somethin went wrong, but the Spoiler image wasn't showing up either.  It was 0.3.2 if that helps any.

Forgot to mention, I did give guests, and all others permissions to use and view spoilers.  I also tried the different types, and still no luck.

I have the same problem...

Greetz...
Title: Re: Spoiler Tag
Post by: Chucky on May 07, 2007, 09:56:40 AM
Mine works in both IE and Firefox but I do notice that it doesn't work at all when I'm logged out and I've got it showing spoilers for guests in permissions.
Title: Re: Spoiler Tag
Post by: talk-zones on May 07, 2007, 04:08:10 PM
I wanted the fact that aspoiler was present to be visible to those without permissions rather than just a blank area appearing.

In my own case the only membergroup not allowed to view spoilers are guests so the text I have used reflects this but you can obviously change it to suit!

After Installing the spoilers mod in your forums "Sources" directory open the file Subs.php

Locate:
if(!allowedTo('spoiler_show'))
return '';


Replace with:
if(!allowedTo('spoiler_show')) {
$retval = (
'<div class="spoiler"><div class="spoilerheader">'.
'<input type="button" class="spoilerbutton" value="'.$txt['spoiler_tag_text'].$topic.'" '.
'onClick="n = this.parentNode.parentNode.lastChild;if(n.style.display == \'none\') {n.style.display = \'block\';} else {n.style.display = \'none\';} return false;"/> '.
$txt['spoiler_tag_click_info'].'</div><div class="spoilerbody" style="display: none">
<h5>Sorry Guest - You must be logged in to view spoilers.</h5></div></div>'
);
return $retval;
}


In the above segment I have used the text "Sorry Guest - You must be logged in to view spoilers." to display to those without pemissions to view spoilers using the HTML Heading 5 style. You can as I mentioned, change this to suit your needs. It's also fine to use this segment and condition test in each case switch that follows the code you replace in this example with minor adjustment, this will allow display of the Spoiler using the reveal method you have set in the Admin Panel.
   
Hope this is of use to some. 
Title: Re: Spoiler Tag
Post by: Chucky on May 07, 2007, 09:57:55 PM
Quote from: talk-zones on May 07, 2007, 04:08:10 PM
Locate:
if(!allowedTo('spoiler_show'))
return '';



If I were to locate that part and delete it, would the spoiler show for everyone? I just want it to show for everyone.
Title: Re: Spoiler Tag
Post by: talk-zones on May 08, 2007, 04:22:52 AM
No code change needed for what you want.

To make spoilers available to all just set the permissions for the membergroups using the "Show spoilers" and/or "Post Spoilers" check boxes.
Title: Re: Spoiler Tag
Post by: Chucky on May 08, 2007, 04:30:28 AM
Already did that. Doesn't show up at all for guests and I select for all members to be able to show and post them and they still get the permission error.

Could it be that I'm using classic theme? Though, I would have thought if it was a theme issue, the spoiler wouldn't have worked at all.

EDIT: Tried using in default theme and still same problem. Can not view spoiler and can not post spoiler even though I have the permissions set correctly. Seems that I (admin account) can only view and post spoilers.
Title: Re: Spoiler Tag
Post by: talk-zones on May 08, 2007, 05:56:14 AM
I'm not sure why the permissions aren't working for you.

I haven't had any problem with this mod other than I wanted the spoilers button to always show in posts but not to give access to the spoiler for membergroups without permission rather than just hiding the entry entirely.
Title: Re: Spoiler Tag
Post by: Chucky on May 08, 2007, 06:11:01 AM
Any way to just simply add this into Subs.php as BBC code without changing any other files and not bothering with permissions?
Title: Re: Spoiler Tag
Post by: talk-zones on May 08, 2007, 06:41:44 AM
You could try replacing
if(!allowedTo('spoiler_show'))
return '';


with

if(!allowedTo('spoiler_show')) {
$retval = (
'<div class="spoiler"><div class="spoilerheader">'.
'<input type="button" class="spoilerbutton" value="'.$txt['spoiler_tag_text'].$topic.'" '.
'onClick="n = this.parentNode.parentNode.lastChild;if(n.style.display == \'none\') {n.style.display = \'block\';} else {n.style.display = \'none\';} return false;"/> '.
$txt['spoiler_tag_click_info'].'</div><div class="spoilerbody" style="display: none">'.
$content.'</div></div>'
);
return $retval;
}


Bit of a brutal hack but that should give you the button with access to the spoiler text regarless of permissions.
Title: Re: Spoiler Tag
Post by: Chucky on May 08, 2007, 07:35:02 AM
Tried, seemed to mess up the page big time, I reverted back to the original code and the page doesn't even show the entire first post of any topic.

ARGH! HELP!
Title: Re: Spoiler Tag
Post by: Tuzaboy on May 10, 2007, 01:32:06 PM
I have this problem too my forum is 1.1.2
I not can see permissions
http://img526.imageshack.us/img526/4448/postgj1.jpg
Title: Re: Spoiler Tag
Post by: Crawler on May 11, 2007, 01:56:25 PM
I want to install the latest Version 0.3.2 on SMF 1.1.2 (the default-language is german) and befor applying the modification I get an error for ./Themes/default/languages/index.german.php - any idea what the problem might be?
Title: Re: Spoiler Tag
Post by: mysterious on May 16, 2007, 02:43:29 AM
I seem to be having a problem with this mod that I haven't seen addressed (and if it has been, I'm sorry, but a search didn't bring it up). It's writing the following into the database whenever anyone saves/modifies their posts:

<span style="font-size : 0.9em;"><strong>Spoiler:</strong></span><div class="spoiler">(the spoiler text)</div>

which is resulting in the spoiler text showing up completely exposed in posts like so:

QuoteSpoiler:
(the spoiler text)

rather than being hidden in a spoiler box in any way no matter whether I try the fieldOnHoverShow, linkOnClickShowHide, or buttonOnClickShowHide setting.

Interestingly, though, spoilers which had been written to the database in the form:

[spoiler](the spoiler text)[/spoiler]

by a spoiler feature that I'd written myself for YaBB SE/SMF 1.0 (but have since removed) are showing up and displaying correctly in posts with this mod with every one of its three settings (well, so long as no one modifies the posts they appear in - then they're changed into the form I've cited in the first code example above).

Is there some setting I'm missing out on activating?

Title: Re: Spoiler Tag
Post by: CyberKate on May 18, 2007, 02:37:01 PM
Hi everyone !

I've installed the Spoiler Tag but only Admins can use it... I don't understand because I've set the permissions about the spoiler tag to everyone.

Users have got this message :
QuoteAn Error Has Occurred!
Sorry - you don't have the proper permissions to post spoilers.

Can you help me to solve this ?
Thanks in advance !
Title: Re: Spoiler Tag
Post by: Tuzaboy on May 18, 2007, 06:32:04 PM
Quote from: talk-zones on May 08, 2007, 06:41:44 AM
You could try replacing
if(!allowedTo('spoiler_show'))
return '';


with

if(!allowedTo('spoiler_show')) {
$retval = (
'<div class="spoiler"><div class="spoilerheader">'.
'<input type="button" class="spoilerbutton" value="'.$txt['spoiler_tag_text'].$topic.'" '.
'onClick="n = this.parentNode.parentNode.lastChild;if(n.style.display == \'none\') {n.style.display = \'block\';} else {n.style.display = \'none\';} return false;"/> '.
$txt['spoiler_tag_click_info'].'</div><div class="spoilerbody" style="display: none">'.
$content.'</div></div>'
);
return $retval;
}


Bit of a brutal hack but that should give you the button with access to the spoiler text regarless of permissions.


ooh this work thanks , but only a type of spoiler
Title: Re: Spoiler Tag
Post by: tensai on May 19, 2007, 12:55:33 AM
Hello... I have installed the new version of spoiler tag 0.3.2 and SMF 1.1.2... I have already set the spoiler tag option to "buttonOnClickShowHide" but when I try it the button won't appear.. Only the text "Spoiler(click to show/hide) appears... Have I done something wrong in my configuration?!?
Title: Re: Spoiler Tag
Post by: mironicus on May 22, 2007, 07:41:25 AM
Quote from: Crawler on May 11, 2007, 01:56:25 PM
I want to install the latest Version 0.3.2 on SMF 1.1.2 (the default-language is german) and befor applying the modification I get an error for ./Themes/default/languages/index.german.php - any idea what the problem might be?

I have exactly the same problem! :(
Title: Re: Spoiler Tag
Post by: Icedmetal57 on June 11, 2007, 03:04:23 PM
Well for me, it's installing and all, the latest version, 0.3.2 on SMF 1.1.2, but no matter what setting I choose, Hover, Button, or Link, it'll be Hover, I'm not sure why. I've looked around the coding a bit, and can't figure it out, mainly because I don't know PHP, but I think I would've seen something at least. Any ideas as to why I'd be having this problem?
Title: Re: Spoiler Tag
Post by: Nifelhein on June 11, 2007, 03:20:51 PM
There are two settings for the spoiler mad, one is in the features and options page, where you set the default type for the boards, and then you have to the Current Theme page and set the type for the theme being used at the time. That did the trick for me.
Title: Re: Spoiler Tag
Post by: Tuzaboy on June 11, 2007, 04:18:59 PM
but it is can in 1.1.2?  ::)
Title: Re: Spoiler Tag
Post by: Icedmetal57 on June 11, 2007, 08:07:22 PM
Ah, forgot about that one, thanks. I'm surprised I didn't find that yet. I hadn't updated the spoilers mod since like November, so I forgot how to set it up.
Title: Re: Spoiler Tag
Post by: Nifelhein on June 13, 2007, 12:52:23 PM
Quote from: Greg425 on April 25, 2007, 02:21:31 PM
that is the version i was trying to install :( as i said i am new to the whole PHP coding so don't know if I will be able to install it or not...i would really like to have it though...I get the same message with the bible tag mod as well...think it is a manual install anyway though...

I think I found your problem, i got it on a new server i am starting a website in, try opening the file and extracting the contents on your local computer, then make them into a zip file instead of the one it is now. Did the trick for me. :D

Quote from: Crawler on May 11, 2007, 01:56:25 PM
I want to install the latest Version 0.3.2 on SMF 1.1.2 (the default-language is german) and befor applying the modification I get an error for ./Themes/default/languages/index.german.php - any idea what the problem might be?

I am not sure, maybe it cannot find the right line to change because it is in german and do not match the search it is making.
Title: Re: Spoiler Tag
Post by: [Dark.Shadow] on June 14, 2007, 01:12:22 PM
nice mod! i use it in my forum now, only the translation to my language (spanish) is real bad xD (it says thing with no sense -.-) i translated it myself n_n anyways, is there any way you could make it so that you could put spoilers in the signatures? zi saw the spoiler mod for ipb and it did that, and i tried with yours and it couldn't :( but real good mod anyways ;)
Title: Re: Spoiler Tag
Post by: sandochan on June 17, 2007, 07:01:25 AM
I can't use "spoiler(s) in spoiler" >_< ?
Title: Re: Spoiler Tag
Post by: Savage Sully on June 28, 2007, 01:40:02 PM
Since 1.1.3 is out now, will someone upgrade the mod? I would but I lack the skill and I have no time to learn it atm.
But I would highly appreciate a compatible mod.

Cheers

Sully
Title: Re: Spoiler Tag
Post by: Joel-san on June 28, 2007, 04:00:06 PM
Quote from: Savage Sully on June 28, 2007, 01:40:02 PM
Since 1.1.3 is out now, will someone upgrade the mod? I would but I lack the skill and I have no time to learn it atm.
But I would highly appreciate a compatible mod.
I did an unofficial upgrade (http://testweb.iukky.fi/~jposti/Spoiler-0.3.3-unofficial.zip). Should work fine but backup your files just in case.
Title: Re: Spoiler Tag
Post by: hadesflames on June 28, 2007, 06:03:08 PM
official coming out for 1.1.3 soon?
Title: Re: Spoiler Tag
Post by: Savage Sully on June 29, 2007, 03:13:11 AM
Unofficial works great, thanks a lot.

But the german.xml is flawed.
I have corrected the grammatical errors and I wondered where to put it?
Title: Re: Spoiler Tag
Post by: Nifelhein on June 29, 2007, 04:19:35 AM
Attaching it might be a god first step. ;)
Title: Re: Spoiler Tag
Post by: fangweile on June 30, 2007, 10:15:47 PM
any update on smf 1.1.3
Title: Re: Spoiler Tag
Post by: Nifelhein on July 02, 2007, 06:17:18 PM
I will test your update, Joel-san, did you have to change the code or it was just a matter of changing version numbers?
Title: Re: Spoiler Tag
Post by: fangweile on July 04, 2007, 11:38:45 PM
the unofficial also works on me, thanks a lot guys
Title: Re: Spoiler Tag
Post by: kamili34 on July 05, 2007, 03:43:30 PM
What should and how to install it on smf 1.1.3
Title: Re: Spoiler Tag
Post by: Nifelhein on July 05, 2007, 04:04:50 PM
Quote from: Joel-san on June 28, 2007, 04:00:06 PM
Quote from: Savage Sully on June 28, 2007, 01:40:02 PM
Since 1.1.3 is out now, will someone upgrade the mod? I would but I lack the skill and I have no time to learn it atm.
But I would highly appreciate a compatible mod.
I did an unofficial upgrade (http://testweb.iukky.fi/~jposti/Spoiler-0.3.3-unofficial.zip). Should work fine but backup your files just in case.

Use the link on the quoted post to download the package to your computer than use the package manager to upload it adn then apply the mod, be sure to only go ahead if it does not show any errors.
Title: Re: Spoiler Tag
Post by: kamili34 on July 05, 2007, 05:17:38 PM
Great thanks

It works however I have modify few files to my them but everything is ok.

:)
Title: Re: Spoiler Tag
Post by: Nifelhein on July 05, 2007, 05:44:26 PM
Yeah, for other themes than default you have to manually modify the code (unless you want to build a mod for your own theme, that is). ;)
Title: Re: Spoiler Tag
Post by: kamili34 on July 05, 2007, 05:59:08 PM
Haha I'm very begginer and always learn  :P Maby for  x years   :P

:)

And last guestion as you can see when i write long phrase i got sth

[spolier]ccccccccccccccccccccccccccccclkjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjdddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd[/spoiler]

but I want to like this

[spolier]
ccccccccccccccccccccccccccccclkjjjjjjj
jjjjjjjjjjjjjjjjjjjjjjjjddddddddddddddddddddddd
dddddddddddddddddddddddddddddddddd
ddddddddddddddddddddddddddd
[/spoiler]

How I can do sth and were because I want to [center*] be always with spoiler  automatically ???
Title: Re: Spoiler Tag
Post by: tensai on July 07, 2007, 08:04:55 AM
unofficial works.. thanks...  ;)
Title: Re: Spoiler Tag
Post by: Nifelhein on July 07, 2007, 08:08:49 AM
I can't help you there kamili. And Joel-san and anyone else who cares, the spoiler tag unofficial update works perfectly fine. ;)
Title: Re: Spoiler Tag
Post by: kamili34 on July 07, 2007, 01:54:01 PM
I know spoiler works good. But how i can do as above ?
Title: Re: Spoiler Tag
Post by: Drocr on July 10, 2007, 07:13:48 PM
that link isnt working for me... =/
Title: Re: Spoiler Tag
Post by: Razortide on July 11, 2007, 07:32:52 AM
I've encountered a problem with the unofficial 1.1.3 version:

The spoilertag works only for administrators. Even global moderators weren't able to see the spoilers.

There is no link, button, title or the tagged text, just blanks. So the first part to hide those infos worked, but the functions to reappear miss. I don't know if this has something to do with my translation but I don't think so since I altered only strings.
Title: Re: Spoiler Tag
Post by: Nifelhein on July 11, 2007, 09:26:44 AM
Check each membergroup permissions for showing and posting spoilers.
Title: Re: Spoiler Tag
Post by: Savage Sully on July 11, 2007, 01:00:26 PM
Erm where? Couldn't find anything in the user rights menu?
Title: Re: Spoiler Tag
Post by: Nifelhein on July 11, 2007, 01:07:17 PM
Admin --> Permissions --> By Membergroup

Edit each membergroup permissions, be sure to check if you have any forum with the local settings instead of the global one as that might be an issue too. Hope it helps you find it. :)
Title: Re: Spoiler Tag
Post by: Savage Sully on July 11, 2007, 01:08:43 PM
Yeah, I was in the Permissions Menu, but there is no entry about "Show Spoilers" or something like that ;-)

EDIT: ...but under "Topics" (don't know if this is the english title) I found two checkboxes without description....

EDIT: Victorious! That's what I was looking for. I guess I should check the english files so I can correct it in the german version.
Title: Re: Spoiler Tag
Post by: Nifelhein on July 11, 2007, 01:13:47 PM
Well to em they appear as show spoilers and post spoilers right beneath announce topic and above the delete posts options.
Title: Re: Spoiler Tag
Post by: Savage Sully on July 11, 2007, 01:22:43 PM
Urgks, the settings lie solely in the install.xml which fits only for english boards... I guess I should learn php a bit, before I'll try translating this one.
Title: Re: Spoiler Tag
Post by: Nifelhein on July 11, 2007, 01:37:23 PM
Ah, that is the issue then. :(
Title: Re: Spoiler Tag
Post by: stockli on July 12, 2007, 10:45:32 PM
Quote from: Nifelhein on July 05, 2007, 04:04:50 PM
Quote from: Joel-san on June 28, 2007, 04:00:06 PM
Quote from: Savage Sully on June 28, 2007, 01:40:02 PM
Since 1.1.3 is out now, will someone upgrade the mod? I would but I lack the skill and I have no time to learn it atm.
But I would highly appreciate a compatible mod.
I did an unofficial upgrade (http://testweb.iukky.fi/~jposti/Spoiler-0.3.3-unofficial.zip). Should work fine but backup your files just in case.

Use the link on the quoted post to download the package to your computer than use the package manager to upload it adn then apply the mod, be sure to only go ahead if it does not show any errors.

hello

the file isn't working for me, can anyone help me to get the file?

thankyou very much
Title: Re: Spoiler Tag
Post by: Nifelhein on July 13, 2007, 07:23:13 AM
Pm me your e-mail and I can send it to you. :)
Title: Re: Spoiler Tag
Post by: Poglia on July 17, 2007, 08:18:07 AM
Link doesn't work for me. But I need this mod... can someone send it to me, or upload it on a file hosting site? Thanks.
Title: Re: Spoiler Tag
Post by: kamili34 on July 17, 2007, 09:44:15 AM
Here you are http://www.sendspace.com/file/xdut4i (http://www.sendspace.com/file/xdut4i)  :P
Title: Re: Spoiler Tag
Post by: Bithunter on July 18, 2007, 02:36:02 PM
Quote from: kamili34 on July 17, 2007, 09:44:15 AM
Here you are http://www.sendspace.com/file/xdut4i (http://www.sendspace.com/file/xdut4i)  :P
This is 0.3.2, and we want 0.3.3 (unofficial).
Title: Re: Spoiler Tag
Post by: djgix19 on July 25, 2007, 06:25:40 PM
this is my 0.3.3 unofficial version...it's also compatible with smf 1.1.3...
http://djgix19.altervista.org/Spoiler-0.3.3_unofficial.zip
(right->save target as)

on my smf it runs very well!!!make a backup then try it...
Title: Re: Spoiler Tag
Post by: Achilleas on August 03, 2007, 04:52:26 PM
Not runnin in new @#$@#$ IE   :(
Title: Re: Spoiler Tag
Post by: Nifelhein on August 03, 2007, 05:27:02 PM
You mean IE7? Because it works fine for me in it.
Title: Re: Spoiler Tag
Post by: janitro on August 03, 2007, 06:17:03 PM
Quote from: djgix19 on July 25, 2007, 06:25:40 PM
this is my 0.3.3 unofficial version...it's also compatible with smf 1.1.3...
http://djgix19.altervista.org/Spoiler-0.3.3_unofficial.zip
(right->save target as)

on my smf it runs very well!!!make a backup then try it...

I need help with this :)

I´ve installed it but I´m getting some errors. For example when I click on "Features and Options" I get:

"Fatal error: Cannot redeclare modifysboxsettings() (previously declared in /home/server/public_html/Sources/ModSettings.php:358) in /home/server/public_html/Sources/ModSettings.php on line 512"

And I cannot uninstall it because it doesn´t have an uninstaller... help?

edit//

I´m looking into modsettings.php

       
(...)
        'x-large' => 'x-large',
        'xx-large' => 'xx-large'
      ),
    ),
    array('text', 'sbox_TextColor1'),
    array('text', 'sbox_DarkThemes'),
    array('text', 'sbox_TextColor2'),
  );

  // Saving?
  if (isset($_GET['save'])) {
    saveDBSettings($config_vars);
    redirectexit('action=featuresettings;sa=sbox');
  }

  $context['post_url'] = $scripturl . '?action=featuresettings2;save;sa=sbox';
  $context['settings_title'] = $txt['sbox_ModTitle'];

  prepareDBSettingContext($config_vars);
} <== LINE 512

?>


Maybe the operation is not closed..?
Title: Re: Spoiler Tag
Post by: Minoushka on August 15, 2007, 10:57:49 PM
Hello!  :)

I installed the 0.3.3 unofficial version successfully, but my forum is in french and I get a "déclic à montrer ou cacher"  near the spoiler tag, which is means "click to show or hide"... Can I remove this message? And if it's yes, what should I do?

Thank you for your help >__<


Edit: another problem now... (a real one =p)

The spoilertag works only for me, the administrator. I didn't understand what Savage Sully  did to fix it but I would like to know... =(
Title: Re: Spoiler Tag
Post by: karlbenson on August 17, 2007, 08:54:35 AM
@Minoushka
Have you given your users the permission to use/view spoiler tags?

Admin > Permissions >
Alter the show spoiler permission for each membergroup
Title: Re: Spoiler Tag
Post by: Minoushka on August 18, 2007, 10:41:35 AM
Hello kalbenson ^^

I went to permissions but there is not a "Alter the show spoiler permission for each membergroup". Even if my forum is in french, there is not something like that :(


Edit: I'm not using the default theme but the CS Classic theme (http://custom.simplemachines.org/themes/index.php?lemma=305). Maybe that can help.
Title: Re: Spoiler Tag
Post by: Vinspire on August 19, 2007, 08:24:53 AM
Quote from: N3lson on May 05, 2007, 06:46:08 AM
Quote from: Vinspire on May 01, 2007, 01:42:18 PM
Quote from: Nifelhein on May 01, 2007, 09:33:51 AM
Check if you have a choice on admin panel in either current theme or features and options, in the first you get to choose the type of spoiler to be used in that theme, in the second you choose the default spoilers used in any theme, thus changing any theme using the default spoiler to that choice. ;)

I tried that but it is still not working. Except I missed out something.

Style.css.of your theme

Hi nelson, I've checked my style.css and even manually install the code on style.css but it does not solve the problem.

Any other idea?
Title: Re: Spoiler Tag
Post by: Diven on August 20, 2007, 05:54:04 AM
Thanks for this mod.
I succesfully installed this on 1.1.3 a few days ago.
The only problem I had was the icon.. It put a 0kb "spoiler.gif" on my server.
Anyway.. I made my own icon [ (https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg154.imageshack.us%2Fimg154%2F8840%2Fspoilerft5.gif&hash=789bdf9c45822df49dc2e7818f6f1d859dfb2e68) ], everyone can use it, just think of me when you do! ;)
Oh,yes.. I like capital letters, so could you change the string "spoiler" to "Spoiler" in your next package :P
Title: Re: Spoiler Tag
Post by: Vinspire on August 21, 2007, 06:44:16 AM
I am still facing this problem but now it is on SMF 1.1.3 board ... I suspect it was a clash between my mods ... any advices?

Quote from: Vinspire on May 01, 2007, 02:49:21 AM
It is not working well in my SMF 1.1.2  :-[

I cant choose this features ...

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg93.imageshack.us%2Fimg93%2F7669%2Fspoilerresultbutton0sj.png&hash=edb589125e254d1cc7f36d554a421c05defcaa8f)

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg160.imageshack.us%2Fimg160%2F1333%2Fspoilerresultcustom3ix.png&hash=91557c4a352d8bcd4ba21234467ff8dd46f56bfd)

All of my spoiler become like this

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg91.imageshack.us%2Fimg91%2F5151%2Fspoilerresulthover2sk.png&hash=fddf67c9655831784a341112dab2a120a36a101f)

oh tell me why ?  :'(
Title: Re: Spoiler Tag
Post by: ameo on August 24, 2007, 01:35:21 PM
XML Parsing Error: syntax error

Location: http://www.nameofwebpage.com/forum.../Spoiler/Spoiler/install.xml
Line Number 1, Column 16:

NOW WHAT?
Title: Re: Spoiler Tag
Post by: ruckstande on September 03, 2007, 11:19:24 AM
I tried downloading the Unofficial 1.1.3 version but the link is broken.  Can someone post it again?
Title: Re: Spoiler Tag
Post by: GrnEyedDvl on September 09, 2007, 01:35:03 PM
I would like the link reposted as well.
Title: Re: Spoiler Tag
Post by: chrishicks on September 17, 2007, 06:00:37 PM
I installed this on my 1.1.3 board and everything went just fine(no errors or anything) but I have an issue. while it works as promised with Firefox, in IE7 it doesn't work for me. the "hover" option is a bit of a mess and the show/hide with the text/button just opens to an emoty box. I actually have to highlight the box by doubleclicking in it in order to have the text show. how do I fix this?

EDIT: ok, now it stopped working for me in Firefox.

EDIT #2: I got it to work. I had to change a color setting in the CSS.
Title: Re: Spoiler Tag
Post by: Mskina on September 25, 2007, 04:47:01 PM
On 1.1.4 can't install
Title: Re: Spoiler Tag
Post by: Razortide on September 26, 2007, 07:19:55 AM
Quote from: Minoushka on August 15, 2007, 10:57:49 PM
Edit: another problem now... (a real one =p)

The spoilertag works only for me, the administrator. I didn't understand what Savage Sully  did to fix it but I would like to know... =(

Admin -> Permissions.

In this menu depeding on wether you have 1.1.3 or 1.1.4 you have to do:

1.1.3
on the left side, there should be two checkboxes without describing text. That's what you are looking for.

It's been a while since I did that, so I don't know which one or both should be checked, sorry. But I figured it out on my own, so it can't be that hard.

1.1.4 You have da dropdown-menu with two blank entries. Like above, I've no idea which one is the right one.

If I remember right you have to check both boxes.

btw: I've upgraded the board today to 1.1.4 and spoiler tag works.

One more question: I need to know how I can embed the spoiler button in the symbol bar (preferably the code button should vanish and the spoilerbutton should appear)

Where can I define which buttons are shown (and who do I connect the buttons to the things they should do?)
Title: Re: Spoiler Tag
Post by: xXxMetaSoulxXx on October 06, 2007, 12:24:07 PM
Great Mod, I just have 1 question. The Spoiler image isn't showing up when I attempt to post a topic. Where should the image go? Right now, instead of the image, it just says SPOILER.

*EDIT*
And how can I remove the text that says (click to show/hide). It's not necessary, and I'd like to know how to remove it please.
Title: Re: Spoiler Tag
Post by: IRJustman on October 07, 2007, 05:39:57 PM
I am running into two issues on this mod:

1.  It does not work under IE (I use IE6 under Win2K and WinXP on the rare occasion when I actually use it  at all) when I use the button mode.

Neither does it work in Opera.  I've tried with 9.0i and 9.23 for Windows.

It DOES, however, work under Firefox.

2.  There appears to be no uninstaller.  The only way I can uninstall this mod (e.g. for upgrading) is to completely reinstall SMF.  Since I don't have a lot of customizations (I'm a webserver administrator, not a website designer), it's not TOO bad, but it's still a royal PITA, and I can only imagine what that could do for someone who has a boatload of customizations, whether via mods or user-customized content.

Any ideas on either issue?  #1 is far more important right now since I know too many people out there still use IE.

Thanks!
Title: Re: Spoiler Tag
Post by: xXxMetaSoulxXx on October 08, 2007, 03:15:19 AM
hmm...

well, I have an uninstaller for this mod, but I tested the button thing and like IRJustman said, it doesn't work with IE.
Title: Re: Spoiler Tag
Post by: xXxMetaSoulxXx on October 10, 2007, 04:47:56 AM
How can I do a Spoiler in a Spoiler?

And how can I remove the text that says (click to show/hide). It's not necessary, and I'd like to know how to remove it please.
Title: Re: Spoiler Tag
Post by: ES23 on October 11, 2007, 04:13:23 AM
Quote from: xXxMetaSoulxXx on October 06, 2007, 12:24:07 PM
Great Mod, I just have 1 question. The Spoiler image isn't showing up when I attempt to post a topic. Where should the image go? Right now, instead of the image, it just says SPOILER.

*EDIT*
And how can I remove the text that says (click to show/hide). It's not necessary, and I'd like to know how to remove it please.

I have the same problem :( The "spoiler" word appear in the post template instead of a picture icon.I have replaced the 0KB spoiler.gif file under Themes/default/images/bbc/ with the 762KB spoiler.gif file and CHMODED the file to 777(have also tried 755).But the pic icon just won't appear.Have tried clearing the browser cache,temporary internet files and refresh the page.BBC icon still refused to show ... only show the spoiler word for the bbc icon ...

What should I do??
Title: Re: Spoiler Tag
Post by: Joel-san on October 12, 2007, 05:23:43 AM
Here's the new unofficial version (0.3.4) (http://testweb.iukky.fi/~jposti/Spoiler-0.3.4-unofficial.zip) that's updated to work with SMF 1.1.4. It should work with all future versions too because I removed the version check from the mod. However, always backup your files before applying this mod just in case. I don't know about compatibility with SMF 2.0 branch since I haven't tested it and in fact I'm not even aware what's new in 2.0.
Title: Re: Spoiler Tag
Post by: xXxMetaSoulxXx on October 12, 2007, 12:25:55 PM
Where did this new version come from? Sounds like a hack to me...either that or your just not giving the original creator credit
Title: Re: Spoiler Tag
Post by: Joel-san on October 13, 2007, 06:14:15 PM
Quote from: xXxMetaSoulxXx on October 12, 2007, 12:25:55 PM
Where did this new version come from? Sounds like a hack to me...either that or your just not giving the original creator credit
This unofficial version came from my hands as did the previous one. And of course I'm giving the original creator credit. I just modified the install file a bit so that the mod would install on newer SMF versions. Nothing else is changed.
Title: Re: Spoiler Tag
Post by: Jade Elizabeth on October 14, 2007, 12:30:10 AM
this is awesome!!
thankyou!!!
Title: Re: Spoiler Tag
Post by: falguni1 on October 14, 2007, 09:17:08 AM
cam someone give me a live demo of wot does this mod does.
Title: Re: Spoiler Tag
Post by: Jade Elizabeth on October 14, 2007, 01:46:19 PM
Quote from: falguni1 on October 14, 2007, 09:17:08 AM
cam someone give me a live demo of wot does this mod does.

http://www.jades-world.com/forums/index.php?topic=231.0

:D

:( only admin can see it...and ive set all my permissions to let all groups view and post them :S
and guests only view them :S

and users get this message when they try to post them
"An Error Has Occurred!
Sorry - you don't have the proper permissions to post spoilers."

and they do!!
Title: Re: Spoiler Tag
Post by: Razortide on October 16, 2007, 07:52:53 AM
Quote from: Alundra on October 14, 2007, 01:46:19 PM
:( only admin can see it...and ive set all my permissions to let all groups view and post them :S
and guests only view them :S

That's pretty strange. I encountered that problem first time I've installed the mod (and there is, as far as I remember a possibility to remove the mod, I did this one or two times).

But in my case the permission weren't set. But since you say you did that... which version do you use?
Title: Re: Spoiler Tag
Post by: Jade Elizabeth on October 16, 2007, 08:24:58 AM
Spoiler-0.3.2.tar.gz
that one lol

http://www.jades-world.com/forums/index.php?topic=231.0

link to where its tested lol
Title: Re: Spoiler Tag
Post by: Kat9119 on October 25, 2007, 06:35:00 PM
Is this the only spoiler BBC code there is? Is there a button included? and does this work with SMF 1.1.4?

I'm looking for one that does a quote like box, that you can click on to expand and it opens and you can see whats written in there. I use one on my current phpBB2 forum, which I'm converting to SMF.

Thanks.
Title: Re: Spoiler Tag
Post by: Corsicasse on October 26, 2007, 08:58:53 AM
Hi, I'va installed this mod on SMF 1.1.4, but only administrator can use and see the Spoiler  :-\

Anyboby have a solution please ??
Title: Re: Spoiler Tag
Post by: Kat9119 on October 26, 2007, 03:20:13 PM
I installed this mod, and I too have a problem. As a normal member I get an error which states:

Sorry - you don't have the proper permissions to post spoilers.

Also, normal members don't see a spoiler at all, its just space there.

I did set permissions in Admin - Permissions - Membergroups, for all members to post/view spoilers. Maybe there is also another area you need to do this in?

When I try to post a message as a regular member, and preview it with spoilers I get an error in the corner of IE that says

Line: 184
Char: 12
Error: 'getElementsByTagName(...).0' is null or not an object
Code: 0
URL: my boards url - index.php?action=post;board=1.0

As admin, the code works fine, and I can see all the spoilers. It would be really nice if someone who's installed this on 1.1.4 and got it to work for all members would help.


EDIT: Okay, this is how I fixed my above problem. I went into Admin - Permissions - by Membergroup: Down at the bottom there are two boxes for Spoilers, one to view, and one to post them. Check this off for each member group you want to be able to see and post spoilers.

Now, I'm sure there is an easier way to do this next part, but this is how I did it.

Go to Admin - Boards: Go to permissions for EACH board you have, and make sure that spoiler view/post are all checked for EACH membergroup.

Then it works  :)
Title: Re: Spoiler Tag
Post by: Corsicasse on October 26, 2007, 06:58:07 PM
Haaaaa yes thanks  a lot !!!!
Title: Re: Spoiler Tag
Post by: Abe on October 28, 2007, 07:10:50 PM
I've just installed this on a brand new 1.1.4 and I don't get any options for it at all, and nothing happens when I post inside [spoiler] tags.
Title: Re: Spoiler Tag
Post by: Kat9119 on October 29, 2007, 01:17:12 AM
 
Quote from: Abe on October 28, 2007, 07:10:50 PM
I've just installed this on a brand new 1.1.4 and I don't get any options for it at all, and nothing happens when I post inside [spoiler] tags.

I posted the way to fix it at the bottom of pg. 19 in this thread.

Quote from: Corsicasse on October 26, 2007, 06:58:07 PM
Haaaaa yes thanks  a lot !!!!

You are welcome. Glad I was useful for something lol.
Title: Re: Spoiler Tag
Post by: s--k on November 02, 2007, 08:34:12 AM
Hmm..I suppose there´s still no solution for the problem on 1.1 RC3, right?

No one of the things mentioned here worked on my system :/
Title: Re: Spoiler Tag
Post by: Lutious on November 02, 2007, 07:49:48 PM
After I upload this mod and start to install it, it fails on the testing....

1.     Execute Modification     ./Sources/Subs.php     Test failed

I assume this is due to either my theme (DilberMC), or one of my mods.  Is there a manual way of making the needed changes to Subs.php?  And if so, will all of the other changes that say "Test successful" go ahead and run?
Title: Re: Spoiler Tag
Post by: harmsway on November 04, 2007, 06:34:24 PM
When I click to Apply Mod, it says Test Succeful for everyting but when I hit Install I get this error

Quote2: file_get_contents(/home/theresus/public_html/forums/Packages/temp/Spoiler/Spoiler/spoiler.gif) [<a href='function.file-get-contents'>function.file-get-contents</a>]: failed to open stream: No such file or directory
File: /home/theresus/public_html/forums/Sources/Subs-Package.php
Line: 1824
Title: Re: Spoiler Tag
Post by: Lutious on November 05, 2007, 12:08:39 PM
Quote from: Lutious on November 02, 2007, 07:49:48 PM
After I upload this mod and start to install it, it fails on the testing....

1.     Execute Modification     ./Sources/Subs.php     Test failed

I assume this is due to either my theme (DilberMC), or one of my mods.  Is there a manual way of making the needed changes to Subs.php?  And if so, will all of the other changes that say "Test successful" go ahead and run?

Is there another Spoiler Tag mod that just isn't blacked out text that I could try out?
Title: Re: Spoiler Tag
Post by: Lutious on November 05, 2007, 03:53:55 PM
Quote from: Lutious on November 02, 2007, 07:49:48 PM
After I upload this mod and start to install it, it fails on the testing....

1.     Execute Modification     ./Sources/Subs.php     Test failed

I assume this is due to either my theme (DilberMC), or one of my mods.  Is there a manual way of making the needed changes to Subs.php?  And if so, will all of the other changes that say "Test successful" go ahead and run?

I got this worked out.  I'm not sure what it was actually, but I installed Auto Embed Video Clips and removed the YouTube bbCode, and decided to work on the Spoiler Tag again.  This time it installed without a hitch.  I imagine that it was conflicting somehow with the YouTube bbCode. 
Title: Re: Spoiler Tag
Post by: VeNoM27 on November 11, 2007, 07:11:54 AM
Hi,  I need a little help in this  &gt;:(
I install the spoiler tag without a prblem, but it doesn't appear any options in the current theme and the tags don't work .
I'm using SMF 1.0.4 with portuguese language.

Any sugestions?

Tkz  :)
Title: Re: Spoiler Tag
Post by: a-smurf on November 18, 2007, 10:18:03 AM
Hello everyone. I had the same problem with Kat9119, and I tried the solution that he said but I can't see any "show / post spoilers" boxes in the permission pages. I use 1.1.13 version. So, anyone have an idea?
Title: Re: Spoiler Tag
Post by: VeNoM27 on November 18, 2007, 12:57:23 PM
Upload the mod through the ftp, it worked for me.

One question the spoiler gif appears as an X how do I fix this?
Title: Re: Spoiler Tag
Post by: Ch4rOon on December 04, 2007, 12:58:07 PM
Hello ;) great & very usefull mod ;) thx a lot

Quote
can't see any "show / post spoilers" boxes in the permission pages...

I've got the same, no permissions boxes, and in the roll box : two blank lines.
(so i can affect permissions but i'll just like to see them :))

[EDIT] i've found the way :


I've made an icon for spoiler button : (https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimages2.photomania.com%2F269056%2F1%2FradA5429.gif&hash=e1ead51587b3c2697368eda151160f3d3505cdda)
just copy it in : /YourForum/Themes/Yourtheme/images/bbc/

;)

Title: Re: Spoiler Tag
Post by: despain on December 06, 2007, 10:27:01 AM
I manually installed the modification and parts of it seemed to work, but it turned my index page (and other pages) into blank white. It took a while to manually uninstall it, and I'm going to try it again from the beginning and hope for the best.

But please, while I am doing that, does anybody have an idea what is causing this and how to fix it? I looked through the topic and found two similar questions which went unanswered.

Thank you.
Title: Re: Spoiler Tag
Post by: Noddegamra on December 13, 2007, 10:35:57 AM
This works prefectly thankyou :)

I use it on my forum, SMF 1.1.4: http://www.noddegamra.co.uk/forum/
Title: Re: Spoiler Tag
Post by: S3NTYN3L on December 14, 2007, 06:08:53 PM
I, too, have an issue with this mod...

First, (I've already changed the link to get it working), the image in the post toolbar wouldn't work...
It was pointing to the folder Spoiler/spoiler.gif which should have been just pointing to spoiler.gif.

Also, the .gif file itself was 0 bytes when uploaded to the forum...
I had to download the file, open it in Photoshop, save a copy, delete the original from my webhost and upload the working copy...


Secondly, EVERY time I log into the Admin CP, I've got to reset things to reenable the dropdown menu that should appear in Admin > Current Theme...

Once I go to Admin > Sever Settings and then click Save, everything is as it should be...


Is there a way to correct this second issue?
Title: Re: Spoiler Tag
Post by: 26alastor26 on December 16, 2007, 03:17:59 PM
well, Hi! . my trouble is that when i install the MOD spoiler tag it allows install but appears a mistake in SUBS.PHP.. and well after of all i go to new post and allow me to put the code [spoiler][/spoiler]  but never appears the Buttom Spoiler in preview or posting. I hope you understand me and help me!  what should i put in that code?? if its posible could someone that has the spoiler working in his forum put the SUBS.PHP here. i would like to check it and check it with mine!.... thanks a lot!
Title: Re: Spoiler Tag
Post by: Basie on December 17, 2007, 12:11:47 AM
Just installed this on 1.1.4 (Pn-Pn 1.1.4 theme) and it works great. Had to set permissions for 20+ membergroups which was a bit of a pain, but other than that no probs.

Thanks for a great mod. :)


Edit: Just remembered - The downloadable file cannot be uploaded through the admin CP, this should probably be fixed (the archive just needs changing to zip instead of tar).
Title: Re: Spoiler Tag
Post by: Basie on December 17, 2007, 01:04:47 AM
The only thing wrong with this mod is how much of a pain it is to set the permissions.

You have to set the permissions for EVERY membergroup on every board with local permissions.

This is a real pain in the ass PLEASE make it so permission is grated by default!


I have 20+boards and 20 membergroups. :/
Title: Re: Spoiler Tag
Post by: bluesyrio on December 20, 2007, 05:24:56 AM
Just a quick (I'm sorry if someone has mentioned this before) comment: a user called my attention to the fact that the spoiler does not work when viewing a member's latest posts. I don't consider it an important issue, but here goes his input. :)
Title: Re: Spoiler Tag
Post by: VeNoM27 on December 29, 2007, 12:43:32 PM
Yes a user of my forum called me in attention for that.
I tested it (create a normal user) and when you try to use the spoiler tag it gives an error.

How do you fix this?

Cheers.
Title: Re: Spoiler Tag
Post by: shadow16 on December 29, 2007, 07:12:10 PM
Is there a way to make it so you can use nested spoilers (spoilers within spoilers)?
Title: Re: Spoiler Tag
Post by: MeRcChRiS on January 04, 2008, 08:17:43 PM
How do you make a BBC Button for the mod? So you click the button instead of typing in

[spoiler]
[/spoiler]
Title: Re: Spoiler Tag
Post by: elfreakz on January 05, 2008, 12:49:49 AM
im using "Enhanced Quick Reply Box 2.0.2", How to add the spoilet button in it?
Title: Re: Spoiler Tag
Post by: dumblonde on January 13, 2008, 11:08:37 PM
This mod works great but the button in the post window does not work properly.  I went & found the spoiler.gif file but there is nothing in it.  I cannot do anything with the mod file as it is a GZ file.  Does anyone have the spoiler.gif image file so I can copy it & load it into my theme?

Thanks
Title: Re: Spoiler Tag
Post by: Jade Elizabeth on January 13, 2008, 11:11:53 PM
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.jades-world.com%2Fforums%2FThemes%2Fjades-world%2Fimages%2Fbbc%2Fspoiler.gif&hash=6d6d5246a51d76bc9c4dca637d42e22454e40202) You mean that one?
If it doesn't show up use this link (http://www.jades-world.com/forums/Themes/jades-world/images/bbc/spoiler.gif) :) 
Title: Re: Spoiler Tag
Post by: dumblonde on January 13, 2008, 11:25:18 PM
thanks  :D
Title: Re: Spoiler Tag
Post by: Jade Elizabeth on January 14, 2008, 01:36:53 AM
Not a problem :)
Title: Re: Spoiler Tag
Post by: 2pac on January 15, 2008, 01:39:35 AM
i get this

The package you tried to upload either is not a valid package or has become corrupted.

when i try to install the latest version :(
Title: Re: Spoiler Tag
Post by: Jade Elizabeth on January 15, 2008, 08:24:53 AM
did you try redownloading? If it still happens you might have to manually install, which is easy so dont worry :)
Title: Re: Spoiler Tag
Post by: CygnusTM on January 18, 2008, 09:22:53 PM
The download for the latest version of this (0.3.2) is broken.  When you click on it, nothing happens. Help!
Title: Re: Spoiler Tag
Post by: nick09 on January 18, 2008, 09:28:24 PM
Quote from: CygnusTM on January 18, 2008, 09:22:53 PM
The download for the latest version of this (0.3.2) is broken.  When you click on it, nothing happens. Help!

ummm....

read the announcements in the forum.

you will figure out why.
Title: Re: Spoiler Tag
Post by: CygnusTM on January 18, 2008, 09:40:13 PM
In that case, does anyone know of an alternate place to get it?  I have users clamoring for spoiler tags. Thanks!
Title: Re: Spoiler Tag
Post by: TheRave on January 19, 2008, 06:16:07 AM
Unfortunately AzaToth has been active for about 2 months so it could be a while before the link is updated.
Title: Re: Spoiler Tag
Post by: CygnusTM on January 20, 2008, 07:19:19 PM
Does anyone else have a copy they could send me?
Title: Re: Spoiler Tag
Post by: Jade Elizabeth on January 20, 2008, 07:26:27 PM
Quote from: CygnusTM on January 20, 2008, 07:19:19 PM
Does anyone else have a copy they could send me?

That would be redistribution without permission :(
Title: Re: Spoiler Tag
Post by: drgnfireinferno on January 20, 2008, 10:19:41 PM
Quote from: Alundra on January 20, 2008, 07:26:27 PM
Quote from: CygnusTM on January 20, 2008, 07:19:19 PM
Does anyone else have a copy they could send me?

That would be redistribution without permission :(
I concur. And redistribution w/o permission = big no-no  :-\
Title: Re: Spoiler Tag
Post by: CygnusTM on January 21, 2008, 12:00:16 PM
I think the author would understand in this case, but I guess rules are rules.

The file is available now, but it is corrupt.  I guess I'll just have to wait. :(
Title: Re: Spoiler Tag
Post by: ozlacs on January 24, 2008, 11:00:30 AM
News? the package in still corrupted :(
Title: Re: Spoiler Tag
Post by: blondeamon on January 25, 2008, 06:27:52 PM
I installed it on 1.1.4 with Dibler Mc theme and it is working fine ...except:

- It doesnt give me an option at the Admin Panel to choose which spoiler type i want.

it has only one and its the worst , i want another one. How can i add the window with the 3 options at the "Current Theme" on my admin panel?
Title: Re: Spoiler Tag
Post by: blondeamon on January 25, 2008, 07:13:00 PM
Nvm found it , it isnt on Current Theme but on Features and options
Title: Re: Spoiler Tag
Post by: SiamJai on January 30, 2008, 11:02:56 PM
Thanks AzaToth for this great mod, and Joel-san for the improved version! Like others, I've tried the latest original first and still doesn't work under 1.1.4.

Btw, there is an easier way to set "post/show spoiler" permissions without having to modify each membergroup in each board:

1. In Admin>Permissions>Permissions by Membergroup, mark the checkboxes to the right of all membergroups that will be able to see spoilers.

2. Make sure that the bottom drop-down menu is set to Add Permission...

3. Set the bottom left drop-down menu to Show Spoilers. (It's under the Topics group.)

4. Click on the Set permissions button.

5. Repeat steps 1-4, selecting "Post Spoilers" in step #3.

6. (Optional) If you have any boards on Local settings, adjust those manually by going to Admin>Permissions>Permissions by Board and following the steps outlined above.
Title: Re: Spoiler Tag
Post by: S3NTYN3L on January 31, 2008, 05:34:44 AM
I really don't see the point of the permissions in the first place...

It would be better to just do away with the permissions altogether, IMO...

You don't see permissions for any of the bbcodes that are in SMF by default, right?

The only thing that is needed is to either enable it or disable it like those default bbcodes...
Title: Re: Spoiler Tag
Post by: SinekSekiz on January 31, 2008, 11:38:35 PM
It might be me or something else but I think the file for 3.0.2 is sorrupted...

I downloaded it coupke of times adn everytime I try to extract it winrar gives an error as;

!   C:\Documents and Settings\User\Desktop\Spoiler-0.3.2.tar.gz: CRC failed in C:\Documents and Settings\User\Desktop\Spoiler-0.3.2.tar.gz. The file is corrupt

Can someone check for me please. May be it is only me having this problem...

<<<<<<<EDIT>>>>>>>>>>>

I am so sorry but I did not read the post before this page. I think this is an already known problem. However I wish if someone could send me a copy. I disagree with the case that it would be redistrubition because the publisher of the file already commited to share this file on this website. If someone could attach it to his post on this topic till the person who made it can do so proply it would be greate help to others...
Title: Re: Spoiler Tag
Post by: Dracula-Dmitrii on February 05, 2008, 02:21:47 AM
+1
Title: Re: Spoiler Tag
Post by: Dracula-Dmitrii on February 05, 2008, 12:59:31 PM
Spoiler-0.3.2.tar.gz Archiv is die! Repeir!!!
Title: Re: Spoiler Tag
Post by: perplexed on February 06, 2008, 12:02:04 PM
I unzipped it and changed version to 1.1.4 and rezipped it and it works fine :)
Title: Re: Spoiler Tag
Post by: Basie on February 07, 2008, 12:27:31 PM
The file is corrupt...

Someone please post a version that works.
Title: Re: Spoiler Tag
Post by: Jade Elizabeth on February 07, 2008, 01:23:52 PM
Quote from: seek2501 on February 07, 2008, 12:27:31 PM
The file is corrupt...

Someone please post a version that works.

Please try what Perplex described.

Quote from: perplexed on February 06, 2008, 12:02:04 PM
I unzipped it and changed version to 1.1.4 and rezipped it and it works fine :)
Title: Re: Spoiler Tag
Post by: Basie on February 07, 2008, 01:34:32 PM
Changed WHAT to 1.1.4? When I unzip it all I see is a XML file.
Title: Re: Spoiler Tag
Post by: S3NTYN3L on February 07, 2008, 06:03:25 PM
Quote from: seek2501 on February 07, 2008, 01:34:32 PM
Changed WHAT to 1.1.4? When I unzip it all I see is a XML file.

Line one(1) in the install.xml file...

<?xml version="1.1"?>

EDIT:

Also try the same for the package-info file

<?xml version="1.0"?>

Title: Re: Spoiler Tag
Post by: Basie on February 08, 2008, 07:37:44 AM
That didn't work. I still get this error message...

QuoteThe package you tried to upload either is not a valid package or has become corrupted.
Title: Re: Spoiler Tag
Post by: Jade Elizabeth on February 08, 2008, 07:28:13 PM
Quote from: S3NTYN3L on February 07, 2008, 06:03:25 PM
Quote from: seek2501 on February 07, 2008, 01:34:32 PM
Changed WHAT to 1.1.4? When I unzip it all I see is a XML file.

Line one(1) in the install.xml file...

<?xml version="1.1"?>

EDIT:

Also try the same for the package-info file

<?xml version="1.0"?>



Thats not what you change silly :)

In that file look for something that says something like this
<install for="********">
to your version :)
Title: Re: Spoiler Tag
Post by: S3NTYN3L on February 09, 2008, 03:54:59 AM
Quote from: Alundra on February 08, 2008, 07:28:13 PM
Quote from: S3NTYN3L on February 07, 2008, 06:03:25 PM
Quote from: seek2501 on February 07, 2008, 01:34:32 PM
Changed WHAT to 1.1.4? When I unzip it all I see is a XML file.

Line one(1) in the install.xml file...

<?xml version="1.1"?>

EDIT:

Also try the same for the package-info file

<?xml version="1.0"?>



Thats not what you change silly :)

In that file look for something that says something like this
<install for="********">
to your version :)

When I downloaded it, that part was already correct, so...  :-\
Title: Re: Spoiler Tag
Post by: snoopdog on February 10, 2008, 02:18:15 AM
None of the spoiler code mods work, I have given up trying to get any of them to work.
Title: Re: Spoiler Tag
Post by: Jade Elizabeth on February 10, 2008, 02:56:15 AM
Quote from: S3NTYN3L on February 09, 2008, 03:54:59 AM
Quote from: Alundra on February 08, 2008, 07:28:13 PM
Quote from: S3NTYN3L on February 07, 2008, 06:03:25 PM
Quote from: seek2501 on February 07, 2008, 01:34:32 PM
Changed WHAT to 1.1.4? When I unzip it all I see is a XML file.

Line one(1) in the install.xml file...

<?xml version="1.1"?>

EDIT:

Also try the same for the package-info file

<?xml version="1.0"?>



Thats not what you change silly :)

In that file look for something that says something like this
<install for="********">
to your version :)

When I downloaded it, that part was already correct, so...  :-\

So you cannot put it through package manager? Have you tried manually installing?
Title: Re: Spoiler Tag
Post by: Basie on February 12, 2008, 03:16:14 PM
Can someone PLEASE upload a WORKING package for this mod.
Title: Re: Spoiler Tag
Post by: Jade Elizabeth on February 12, 2008, 06:02:30 PM
Quote from: seek2501 on February 12, 2008, 03:16:14 PM
Can someone PLEASE upload a WORKING package for this mod.

Have you tried to manually install it? With a package parser like the one at www.sleepycode.com?
Title: Re: Spoiler Tag
Post by: Emperium on February 12, 2008, 11:16:21 PM
I also want this mod! Please update the Package Download so that it works, I do not wish to attempt manual installing it, fears that I will screw up.
Title: Re: Spoiler Tag
Post by: Jade Elizabeth on February 13, 2008, 08:19:08 AM
Quote from: Emperium on February 12, 2008, 11:16:21 PM
I also want this mod! Please update the Package Download so that it works, I do not wish to attempt manual installing it, fears that I will screw up.

There is going to be a time when you have to install something manually. Maybe it will be something you need or something you want, you might just have to get in there and edit the code! It really isn't as hard or scary as you think. Just save a backup, then open the file in some sort of editor (notepad works fine, so does the cPanel code editor) and follow the instructions the parser gives you. It will tell you to find a bit of code (in notepad click edit > find) and then it may say to replace it, or add something before or after it. It really is easy, and you might actually like it ;)
Besides, once you get in there you begin to recognize the structure of it and can do some editing by yourself ;) (which makes you feel smart ;))
Title: Re: Spoiler Tag
Post by: Basie on February 13, 2008, 09:31:40 AM
Can someone please upload a WORKING version of this mod please.
Title: Re: Spoiler Tag
Post by: Jade Elizabeth on February 13, 2008, 11:42:49 AM
Quote from: seek2501 on February 13, 2008, 09:31:40 AM
Can someone please upload a WORKING version of this mod please.

Gosh...send me your files and I'll manually install it for you
Title: Re: Spoiler Tag
Post by: S3NTYN3L on February 13, 2008, 11:46:43 AM
Quote from: Alundra on February 13, 2008, 11:42:49 AM
Quote from: seek2501 on February 13, 2008, 09:31:40 AM
Can someone please upload a WORKING version of this mod please.

Gosh...send me your files and I'll manually install it for you


Gotta love it when people don't/won't listen, or try to do for themselves... ::)
Title: Re: Spoiler Tag
Post by: Jade Elizabeth on February 13, 2008, 11:52:35 AM
Quote from: S3NTYN3L on February 13, 2008, 11:46:43 AM
Quote from: Alundra on February 13, 2008, 11:42:49 AM
Quote from: seek2501 on February 13, 2008, 09:31:40 AM
Can someone please upload a WORKING version of this mod please.

Gosh...send me your files and I'll manually install it for you


Gotta love it when people don't/won't listen, or try to do for themselves... ::)

Well, they miss the oportunity to improve their skills :(.

Emperium I will do it for you too if you want, but you REALLY ought to try it out. I was afraid at first too, now I'm not. I hack away at the display template every day ;) And when I get an error it doesnt matter, I just reupload my backup and try again ;)
If I really can't get it, you will find me creating topics ;)
Title: Re: Spoiler Tag
Post by: Basie on February 13, 2008, 12:14:29 PM
Quote from: S3NTYN3L on February 13, 2008, 11:46:43 AM
Gotta love it when people don't/won't listen, or try to do for themselves... ::)

Gotta love it when people can't resist replying even when they don't have anything useful to add.


I'm asking if someone can upload a working package for this mod. If you can't then don't reply.
Title: Re: Spoiler Tag
Post by: Jade Elizabeth on February 13, 2008, 05:00:42 PM
Quote from: seek2501 on February 13, 2008, 12:14:29 PM
Quote from: S3NTYN3L on February 13, 2008, 11:46:43 AM
Gotta love it when people don't/won't listen, or try to do for themselves... ::)

Gotta love it when people can't resist replying even when they don't have anything useful to add.


I'm asking if someone can upload a working package for this mod. If you can't then don't reply.

Ok ok everyone calm down. Do you wanna send me the files or are you gonna sit tight and wait for the mod author to reupload? Because we aren't allowed to post or send you this mod, that's redistribution without permission :(. It's not allowed :(
Title: Re: Spoiler Tag
Post by: Basie on February 13, 2008, 07:48:16 PM
I can edit the files myself, I just need a package version for the sake of convenience. I need to install it on a variety of boards, and also un-install and re-install as necessary.

If were the simple matter of a single manual edit then it wouldn't be an  issue. But that just isn't practical; for what I need to do a package version would be required.

But if it's against the rules then it's against the rules.
Title: Re: Spoiler Tag
Post by: Emperium on February 13, 2008, 09:00:36 PM
I guess I can manually update it if I get comprehensive instructions. This thread has gone around with so many issues and SMF versions that it's confusing me. And the reason I'm fearful about changing it is that after so many mods, many manually updated by me on my old forum some really old mods that I force to work on the 1.1.4 etc, all worked well but, I uninstalled a shoutbox one day and forums crashed completely. Recent backups I made all failed (multiple different attempts too), and all this just 3 days ago.

So clearly, what do I have to do with the download currently available in the Modification section on this Site to make this mod work on my custom theme ("Back-n-Black" by Crip) 1.1.4 Forums?
Title: Re: Spoiler Tag
Post by: Jade Elizabeth on February 13, 2008, 09:04:46 PM
Quote from: seek2501 on February 13, 2008, 07:48:16 PM
I can edit the files myself, I just need a package version for the sake of convenience. I need to install it on a variety of boards, and also un-install and re-install as necessary.

If were the simple matter of a single manual edit then it wouldn't be an  issue. But that just isn't practical; for what I need to do a package version would be required.

But if it's against the rules then it's against the rules.

Okay, well since you don't need it urgently can you please stop posting like you DO need it so urgently. When it is uploaded again I'm sure the author will post in here, bumping the thread for you :)
Title: Re: Spoiler Tag
Post by: Basie on February 14, 2008, 02:16:35 PM
And can YOU stop replying to me when you're not being helpful? Do me a favour, don't post in any thread I make or reply to my posts... You are NOT helpful, you are an idiot. I know you think you are a useful addtion to SMF 'support'. But you need a reality check... You are not helpful; you are a moronic child.

What I need the package for, or how urgent it is, is quite frankly NONE OF YOUR BUSINESS. I'm honestly sick of you posting crap in my threads or replying with rubbish. You're like a bad smell that just won't go away.

Let me put this in terms which are so simple, even YOU can understand... I don't like you and I don't want your (laughable) "help". Thankyou.

Title: Re: Spoiler Tag
Post by: Jade Elizabeth on February 14, 2008, 03:21:36 PM
I'm sorry you feel I have been no help seek.

I contacted the mod author yesterday asking for them to resubmit, I don't know if they will. But I did ask :). I also asked someone to take a look at the mod, but in their words the install file is "badly corrupted". So I guess we just have to wait :(
Title: Re: Spoiler Tag
Post by: metallica48423 on February 14, 2008, 04:57:09 PM
To clarify, the customization team has contacted the mod author to resubmit the mod, which was corrupted during our server problems, and has not received a reply back.

There is no reason to argue here.  It is uncalled for.  On top of that, it is downright insulting.

Seek, if you are going to insult a team member in that manner, then you will get no help from any of us.  You aren't expected to agree, but if you're going to be disrespectful you will be ignored. 

Alundra not only contacted a member of the customization team SPECIFICALLY to try and get this uploaded, FOR YOU, but she also offered to manually install it to your forum, again, FOR YOU, on a temporary basis until it WAS uploaded, and then you insult her. 

Lastly, please, It is enough to ask once.  We do not have a copy of the mod, else we would have restored it like we have the themes.  Community members are asked not to upload or attach it for security purposes (malicious code, etc), and the theme author has not responded to us to reupload this.  As such, our hands are tied.

Title: Re: Spoiler Tag
Post by: 青山 素子 on February 19, 2008, 06:08:43 PM
As a note, the second-newest version works under 1.1.4 (there was a minor error on the language text, but it doesn't affect the functionality).
Title: Re: Spoiler Tag
Post by: indonesia on February 22, 2008, 12:22:25 PM
the package is corrupted :(
Title: Re: Spoiler Tag
Post by: Kolya on February 22, 2008, 12:26:12 PM
Quote from: dkillers on February 22, 2008, 12:22:25 PM
the package is corrupted :(

Confirmed.
Title: Re: Spoiler Tag
Post by: GTALimite on February 23, 2008, 09:02:18 AM
I need this mod for 1.1.4, but:
Quote from: Kolya on February 22, 2008, 12:26:12 PM
Quote from: dkillers on February 22, 2008, 12:22:25 PM
the package is corrupted :(

Confirmed.

Anybody have this mod for 1.1.4 working good?

I need that because I had the old version, then, I deleted the original files, I updated the SMF and, some code of the spoiler is installed in some files of SMF. I need the mod, reinstall that and then, work fine with the forum.

Greetings!
Title: Re: Spoiler Tag
Post by: metallica48423 on February 23, 2008, 02:09:00 PM
We don't have it :(

The author has been contacted but has not replied.  In addition its not reccommended for a member to attach any files for download (just for safety)

Alundra: do you have the original package?
Title: Re: Spoiler Tag
Post by: Jade Elizabeth on February 23, 2008, 03:04:38 PM
Quote from: metallica48423 on February 23, 2008, 02:09:00 PM
We don't have it :(

The author has been contacted but has not replied.  In addition its not reccommended for a member to attach any files for download (just for safety)

Alundra: do you have the original package?

I might in a backup that wont work.
http://www.windowsbbs.com/showthread.php?t=71267
Which I've been trying to get help with for ages now.

But I ended up using http://custom.simplemachines.org/mods/index.php?mod=573 I think.
Which works fine :D.

But like Motoko said, the previous version works.
This mod isn't really something someone would need urgently, and there are heaps of alternatives If you do require one urgently.
http://custom.simplemachines.org/mods/index.php?action=search;basic_search=spoiler
Title: Re: Spoiler Tag
Post by: Yngwiedis on February 25, 2008, 04:47:40 AM
Quote from: metallica48423 on February 23, 2008, 02:09:00 PM

Alundra: do you have the original package?

If i can help somewhere i declare that i have the original package :)
Title: Re: Spoiler Tag
Post by: metallica48423 on February 25, 2008, 03:48:26 PM
please email it to blackmage@simplemachines if you can. 
Title: Re: Spoiler Tag
Post by: Yngwiedis on February 26, 2008, 11:16:22 AM
Done ;)
Title: Re: Spoiler Tag
Post by: Vinspire on February 26, 2008, 11:26:37 AM
Quote from: metallica48423 on February 14, 2008, 04:57:09 PM
To clarify, the customization team has contacted the mod author to resubmit the mod, which was corrupted during our server problems, and has not received a reply back.

There is no reason to argue here.  It is uncalled for.  On top of that, it is downright insulting.

Seek, if you are going to insult a team member in that manner, then you will get no help from any of us.  You aren't expected to agree, but if you're going to be disrespectful you will be ignored. 

Alundra not only contacted a member of the customization team SPECIFICALLY to try and get this uploaded, FOR YOU, but she also offered to manually install it to your forum, again, FOR YOU, on a temporary basis until it WAS uploaded, and then you insult her. 

Lastly, please, It is enough to ask once.  We do not have a copy of the mod, else we would have restored it like we have the themes.  Community members are asked not to upload or attach it for security purposes (malicious code, etc), and the theme author has not responded to us to reupload this.  As such, our hands are tied.

It is so sweet of Alundra to do such thing for someone she doesn't know and SMF citizen is helpful as always.

Anyway, can someone keep me informed once the file is replaced? Thanks :)
Title: Re: Spoiler Tag
Post by: metallica48423 on February 26, 2008, 03:23:37 PM
I submitted it to the customization team to look over this morning, to ensure that the package is whole and unadultered.  This is not to say that we don't trust anyone, but we have to be sure we can provide this file for download without worry that it will significantly damage anyone's forum.
Title: Re: Spoiler Tag
Post by: mikyatope on March 05, 2008, 05:01:16 AM
this spoiler mod does the same thing, and it's updated last month  8)

http://custom.simplemachines.org/mods/index.php?mod=1082
Title: Re: Spoiler Tag
Post by: Carsten Milkau on March 11, 2008, 09:19:57 AM
Please update package-info.xml so that it installs on SMF 1.1.3 and 1.1.4 as well.
Title: Re: Spoiler Tag
Post by: perplexed on March 11, 2008, 09:33:54 AM
have a go at the info contained in these two posts change the version or use emulate  (http://www.simplemachines.org/community/index.php?topic=205533.msg1442682#msg1442682)

Works for me :)
Title: Re: Spoiler Tag
Post by: Vinspire on March 11, 2008, 03:49:59 PM
Quote from: metallica48423 on February 26, 2008, 03:23:37 PM
I submitted it to the customization team to look over this morning, to ensure that the package is whole and unadultered.  This is not to say that we don't trust anyone, but we have to be sure we can provide this file for download without worry that it will significantly damage anyone's forum.

So, what is the update?
Title: Re: Spoiler Tag
Post by: metallica48423 on March 11, 2008, 04:16:22 PM
I think they restored it -- care to try it? :)
Title: Re: Spoiler Tag
Post by: michelangelo on March 15, 2008, 08:59:40 PM
I've tested this solution on several, fresh installed smf 1.1.4 version and it seems to work.
You just have to follow these steps.

0. What do you need?

- installed and working smf default template version
- SMF v1.1.3 or v1.1.4

1. Modify Version 0.3.2

Download v 0.3.2, unzip the file and open package-info.xml with an editor. You just have to change these lines:

<install for="1.1.2">  change to <install for="1.1.3,1.1.4">
<uninstall for="1.1.2"> change to <uninstall for="1.1.3,1.1.4">

Save the new package-info.xml file and zip it together with the whole mod. Now, try to install the package again. You should be able to install and uninstall the mod with smf's package manager without problems.

2nd - Change your forum language to english! Not english-ut8, not russian-ut8, not chinese nor english-uk. Just change it to normal, standard English! You should be able to see the new spoiler entries in Admin/Configuration/Current Theme and permission and in Admin/Permission/USERGROUP/Modify.

If you DON'T see the new entries because you have another forum language or don't want to change it, you should try this:

a) Edit /Themes/default/languages/ManagePermissions.yourlanguage.php

- Search for your localized version of ManagePermissions.yourlanguage.php

If you have traditional Chinese UTF-8 as standard forum language, it's this file:

ManagePermissions.chinese-traditional-utf8.php

If it's Korean UTF-8, look for ManagePermissions.korean-traditional-utf8.php You get the idea!

After you found the correct ManagePermissions.yourlanguage.php file, open the file in an editor and search for this line:

$txt['permissiongroup_general'] = 'General';
$txt['permissionname_view_stats'] = 'View forum statistics';


Add these lines belows:

$txt['permissionname_spoiler_show'] = 'Show Spoilers';
$txt['permissionhelp_spoiler_show'] = 'Allow the user to show spoilers included in posts';
$txt['permissionname_spoiler_post'] = 'Post Spoilers';
$txt['permissionhelp_spoiler_post'] = 'Allow the user to post new spoilers';


It should look like this:

$txt['permissiongroup_general'] = 'General';
$txt['permissionname_view_stats'] = 'View forum statistics';
$txt['permissionname_spoiler_show'] = 'Show Spoilers';
$txt['permissionhelp_spoiler_show'] = 'Allow the user to show spoilers included in posts';
$txt['permissionname_spoiler_post'] = 'Post Spoilers';
$txt['permissionhelp_spoiler_post'] = 'Allow the user to post new spoilers';


Save the new ManagePermissions.yourlanguage.php file and replace it with the existing file. The permission entries should be visible now.

b) Edit /Themes/default/languages/Modsettings.yourlanguage.php

It's basically the same. Find the localized Modsettings.yourlanguage.php and search for this line:

// Version: 1.1; ModSettings

Add these lines below:

$txt['defaultSpoilerStyle'] = 'Default Spoiler Tag';
$txt['spoiler_tag_onhoverovershow'] = 'fieldOnHoverShow';
$txt['spoiler_tag_onlinkclickshow'] = 'linkOnClickShowHide';
$txt['spoiler_tag_onbuttonclickshow'] = 'buttonOnClickShowHide';


That's it! The spoiler setting should also appear in Admin/Configuration/Current Theme now!


c) Repeat the same process for /Themes/default/languages/index.yourlanguage.php

Search:
$txt['split_reset_selection'] = 'reset selection';

Add below:
$txt['spoiler_tag_text'] = 'Spoiler';
$txt['spoiler_tag_click_info'] = '(click to show/hide)';
$txt['spoiler_tag_hover_info'] = '(hover to show)';


d) Do the same for /Themes/default/languages/Themes.yourlanguage.php

Search:
$txt['themeadmin_edit_preview'] = 'Preview';

Add below:
$txt['spoiler_tag_label'] = 'Spoiler Tag';
$txt['spoiler_tag_desc'] = 'Default is <b>fieldOnHoverShow</b> if not specified in the settings. Additional is <b>linkOnClickShowHide</b>, wich is a link you click on and <b>buttonOnClickShowHide</b> wich is a button you click on.';
$txt['spoiler_tag_default'] = 'default';
$txt['spoiler_tag_onhoverovershow'] = 'fieldOnHoverShow';
$txt['spoiler_tag_onlinkclickshow'] = 'linkOnClickShowHide';
$txt['spoiler_tag_onbuttonclickshow'] = 'buttonOnClickShowHide';



Congratulations! You've just sucessfully installed your own mod!

michel
Title: Re: Spoiler Tag
Post by: DASBEAN on March 16, 2008, 02:34:48 PM
I just tried to install 0.3.2 and received the error:

The package you are trying to download or install is either corrupt or not compatible with this version of SMF.


I am running on SMF 1.1.4.

Any thoughts?
Title: Re: Spoiler Tag
Post by: perplexed on March 16, 2008, 04:29:00 PM
did you try the instructions in the above post?
Title: Re: Spoiler Tag
Post by: Jogi on March 17, 2008, 04:41:02 PM
Thanks for the mod :) It would be very nice to have a translation of it to russian and ukrainian (if need help in this - i can do this).

I have a problem with this mod - only administrators can see the spoiler. Any idea how to fix this ?
Title: Re: Spoiler Tag
Post by: 青山 素子 on March 17, 2008, 05:08:18 PM
Check the group permissions. You need to grant show and post spoiler permissions to normal users as this is not done by default.
Title: Re: Spoiler Tag
Post by: sledgeweb on March 20, 2008, 12:02:30 PM
I followed the instruction, and it said it installed without any problems. However, I do not have any spoiler options on the permissions screen, or current theme settings. I am using english, but even then, went and edited the files in the languages folder as described (english files), and still don't get any spoiler options showing up on permissions page or current theme settings.

I'm using 1.1.4, with a custom theme that doesn't include any language files (so should be using the default language files). I had the spoiler tag plug-in working before I upgraded to 1.1.4 (from RC2), so now I have a bunch of posts on my forum showing the spoiler and the tags.

Any ideas?
Title: Re: Spoiler Tag
Post by: sledgeweb on March 20, 2008, 12:09:15 PM
On a lark, I tried changing to the default theme, and then installing the package. I get this error message:

You cannot download or install new packages because the Packages directory or one of the files in it are not writable!

I've made sure Packages is writable, and the backup folder in it. I didn't get this error when I installed from my custom theme, which I think is a bug, because I don't think it really installed (but it did show all files TEST successful.... odd).
Title: Re: Spoiler Tag
Post by: pcigre on March 23, 2008, 11:20:34 AM
Any news about 2.0. b3 support?
Title: Re: Spoiler Tag
Post by: 青山 素子 on March 23, 2008, 02:16:17 PM
I have it working on the 2.0 betas and have sent the package to the mod's author. Hopefully, a public update will be issued shortly.
Title: Re: Spoiler Tag
Post by: michelangelo on March 24, 2008, 09:14:42 AM
Quote from: sledgeweb on March 20, 2008, 12:02:30 PM
I followed the instruction, and it said it installed without any problems. However, I do not have any spoiler options on the permissions screen, or current theme settings. I am using english, but even then, went and edited the files in the languages folder as described (english files), and still don't get any spoiler options showing up on permissions page or current theme settings.

I'm using 1.1.4, with a custom theme that doesn't include any language files (so should be using the default language files). I had the spoiler tag plug-in working before I upgraded to 1.1.4 (from RC2), so now I have a bunch of posts on my forum showing the spoiler and the tags.

Any ideas?

you simply edited the wrong language files. there are many different forum standard lanagues, like english-utf8, english-british-utf8 and english-standard. you can either try to find the real language files that correspond to your forum default language and simply repeat the above mentioned process, or you can just wait for a new package.

michel
Title: Re: Spoiler Tag
Post by: AzaToth on March 24, 2008, 06:51:09 PM
Quote from: Motoko-chan on March 23, 2008, 02:16:17 PM
I have it working on the 2.0 betas and have sent the package to the mod's author. Hopefully, a public update will be issued shortly.
done :)
Title: Re: Spoiler Tag
Post by: 青山 素子 on March 24, 2008, 07:16:19 PM
If you are going to consider it "official", you might want to remove the disclaimers I put in the readme and changelog.
Title: Re: Spoiler Tag
Post by: Astondb5 on March 25, 2008, 02:10:52 PM
I tried installing in 2.0b3 but I don't have any of the spoiler options in the theme settings
Title: Re: Spoiler Tag
Post by: Astondb5 on March 25, 2008, 02:21:41 PM
got it now
Title: Re: Spoiler Tag
Post by: 青山 素子 on March 25, 2008, 02:22:52 PM
What was the fix? Thrown off by the moving of the option?
Title: Re: Spoiler Tag
Post by: AzaToth on March 25, 2008, 03:33:18 PM
Quote from: Motoko-chan on March 24, 2008, 07:16:19 PM
If you are going to consider it "official", you might want to remove the disclaimers I put in the readme and changelog.
You think I looked in those files? :-P
Title: Re: Spoiler Tag
Post by: Vinspire on April 08, 2008, 01:12:04 PM
I tried installing "Spoiler-0.3.2.tar" into my forum which is running SMF 1.1.4 but I kept getting this error:-

Install Actions
Installations actions for "Spoiler Tag":
The package you are trying to download or install is either corrupt or not compatible with this version of SMF.

Anything that I missed out?
Title: Re: Spoiler Tag
Post by: JoshieDaMan on April 23, 2008, 10:17:21 AM
I tried the 0.3.2 for 1.1.4, it says it isn't support my version, so I thought, heck with it and I tried all of the downloads and it still say it doesn't supports?
Title: Re: Spoiler Tag
Post by: edi67 on April 29, 2008, 10:04:42 AM
Im using smf 2.0 where are the option for spoiler tag for enable various option ?? i cannot find them
Title: Re: Spoiler Tag
Post by: 青山 素子 on April 29, 2008, 10:28:57 AM
I don't have a 2.0 with it installed right now, but if I remember correctly, the main enabling setting should be in Features and Options -> Options. Permissions are in the usual place.
Title: Re: Spoiler Tag
Post by: Dorte on May 04, 2008, 09:37:26 AM
Is it okay to use it with 1.1.5?
Title: Re: Spoiler Tag
Post by: Jade Elizabeth on May 04, 2008, 05:21:17 PM
Quote from: Dorte on May 04, 2008, 09:37:26 AM
Is it okay to use it with 1.1.5?

I'd assume so, it's mostly CSS.
Title: Re: Spoiler Tag
Post by: ALEJO on May 05, 2008, 06:06:23 PM
Can u add the idiom spanish_latin to the 2.0 version plz?

Here i translated it

// Spoiler Mod
// Permission Strings
$txt['permissiongroup_spoiler'] = 'Spoilers';
$txt['permissiongroup_simple_spoiler'] = 'Escribir y Mostrar Spoilers';
$txt['permissionname_spoiler_show'] = 'Mostrar Spoilers';
$txt['permissionhelp_spoiler_show'] = 'Permitir al usuario mostrar spoilers incluidos en mensajes';
$txt['permissionname_spoiler_post'] = 'Crear Spoilers';
$txt['permissionhelp_spoiler_post'] = 'Permitir al usuario crear nuevos spoilers';

// BBC Strings
$txt['bbc_spoiler'] = 'Insertar Spoiler';

// Spoiler Post Permission Error Message
$txt['cannot_spoiler_post'] = 'No tienes permiso para crear spoilers.';

// Post View Text
$txt['spoiler_tag_text'] = 'Spoiler';
$txt['spoiler_tag_click_info'] = '(click para ver/esconder)';
$txt['spoiler_tag_hover_info'] = '(pasar para ver)';

// Mod Settings
$txt['defaultSpoilerStyle'] = 'Modo Spoiler';
$txt['spoiler_tag_onhoverovershow'] = 'Mostrar al Pasar';
$txt['spoiler_tag_onlinkclickshow'] = 'Mostrar al hacer Click';
$txt['spoiler_tag_onbuttonclickshow'] = 'Mostrar boton Click';


// Extra Settings String for per-theme selection
$txt['spoiler_tag_label'] = 'Modo Spoiler';
$txt['spoiler_tag_desc'] = 'Escoger como los spoilers se mostraran en el theme.';
$txt['spoiler_tag_default'] = '(usar modo spoiler predeterminado)';]]></add>
Title: Re: Spoiler Tag
Post by: homo512 on May 09, 2008, 07:01:11 PM
Hi can anyone upgrade this mod to be compatible with SMF 1.1.5?

Pretty please...

I have already tried to emulate back to SMF 1.1.4... did not work XD.
Title: Re: Spoiler Tag
Post by: neilson_is_here on May 12, 2008, 10:59:33 PM
I'm also now on SMF 1.1.5 and the spoiler tag is something my members have been asking for. Would really love to install this on my forum. Will keep checking back to this thread to see if a new version is made ;)

Title: Re: Spoiler Tag
Post by: 青山 素子 on May 19, 2008, 12:33:00 AM
I have a working version and have contacted the author about posting it for download.


Edit: Version 0.3.3 has been released, supporting all SMF 1.1 editions from 1.1.2 and up.


The 0.3.2 version will work for 1.1.5 with one minor change:

Open install.xml. Go down to line 231. Find:


<search position="before"><![CDATA[
// Version 1.1; ModSettings
]]></search>


Replace that lines with:

<search position="end"></search>


You will also need to update package-info.xml to bump the version from 1.1.2 to 1.1.5.
Title: Re: Spoiler Tag
Post by: ruckstande on May 20, 2008, 03:00:41 PM
The parser fails when you are trying to get the manual instructions for this just so you know.
Title: Re: Spoiler Tag
Post by: 青山 素子 on May 20, 2008, 04:49:45 PM
It looks like the parser doesn't like tar.gz archives created directly by tar. I re-packaged doing a two-step tar then gzip and it is now working.
Title: Re: Spoiler Tag
Post by: thebrownshow on May 27, 2008, 02:00:33 PM
Quote from: dumblonde on January 13, 2008, 11:08:37 PM
This mod works great but the button in the post window does not work properly.  I went & found the spoiler.gif file but there is nothing in it.  I cannot do anything with the mod file as it is a GZ file.  Does anyone have the spoiler.gif image file so I can copy it & load it into my theme?

Thanks

I had this problem as well, the spoiler tag icon on the post form was all goofy. 
SMF 1.1.5 and Spoiler Tag 0.3.3. 

Thanks for this:

Quote from: Alundra on January 13, 2008, 11:11:53 PM
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.jades-world.com%2Fforums%2FThemes%2Fjades-world%2Fimages%2Fbbc%2Fspoiler.gif&hash=6d6d5246a51d76bc9c4dca637d42e22454e40202) You mean that one?
If it doesn't show up use this link (http://www.jades-world.com/forums/Themes/jades-world/images/bbc/spoiler.gif) :) 

I uploaded to my theme's images/bbc directory.  Works fine now.
Title: Re: Spoiler Tag
Post by: 青山 素子 on May 27, 2008, 02:37:14 PM
When did you download the mod?
Title: Re: Spoiler Tag
Post by: bluesyrio on May 29, 2008, 12:53:13 PM
When our members do Show the last posts of this person in someone's profile they can't see the spoiler tag at all in the posts shown. Only admins can. I've tried to see if it could be because of group member ou board permissions, but nothing. As for the rest, the mod is working perfectly well when you read a topic.
Title: Re: Spoiler Tag
Post by: General_Naga on June 01, 2008, 07:27:52 AM
Is there a 2.0 b3.1 version?
Title: Re: Spoiler Tag
Post by: 青山 素子 on June 01, 2008, 11:52:54 AM
The 0.5 edition will work on that, just set the package installer to pretend it is beta 3.
Title: Re: Spoiler Tag
Post by: MarChelo on June 03, 2008, 09:35:43 AM
It doesnt work for my 2.0 b3.1
Title: Re: Spoiler Tag
Post by: General_Naga on June 03, 2008, 02:21:25 PM
Mine does after that hint from Motoko-chan (thanks by the way)

You need to go to Admin>Packages, then at the bottom of "Browse Packages" there a button/text "advanced". Click this and set the package installer to emulate "SMF 2.0 Beta 3" then install as usual. - Hope that helps
Title: Re: Spoiler Tag
Post by: MarChelo on June 03, 2008, 06:17:23 PM
It  works.
Thank you
Title: Re: Spoiler Tag
Post by: bluesyrio on June 05, 2008, 03:08:12 PM
Quote from: bluesyrio on May 29, 2008, 12:53:13 PM
When our members do Show the last posts of this person in someone's profile they can't see the spoiler tag at all in the posts shown. Only admins can. I've tried to see if it could be because of group member ou board permissions, but nothing. As for the rest, the mod is working perfectly well when you read a topic.

Does anyone know how to solve this, please?
Title: Re: Spoiler Tag
Post by: Vandaahl on June 06, 2008, 12:18:12 PM
I installed the mod for my 1.1.5 board, and it works like it should, but Interet Explorer seems to mess up the styling of the quote header. For some reason it's blue, while it should be white-ish. Safari/Opera/FireFox display it like it should. Here's an example: http://www.cinema-extreme.com/forum/index.php?topic=1467.30;msg=67041

What could be the problem?
Title: Re: Spoiler Tag
Post by: 青山 素子 on June 06, 2008, 12:26:12 PM
Aside from the usual IE padding issues, I don't see any problem with colors under version 7. What version of IE is this showing under?
Title: Re: Spoiler Tag
Post by: Vandaahl on June 06, 2008, 02:14:02 PM
Oh really? That's strange. I'm using IE7, but I think I saw it in IE6 too.
Title: Re: Spoiler Tag
Post by: DistantJ on June 07, 2008, 04:34:39 PM
Does this allow you to change what text is required for the tag? The reason I ask this is because I already have a custom made [spoiler] tag which just covers the text with the same background colour so that you have to hilight it to read it, but my members are requesting a sort of 'cut' tag so that you can expand a hidden area, and I could use this for it...
Title: Re: Spoiler Tag
Post by: JamesPicard_007 on June 07, 2008, 11:13:43 PM
Okay, get the laughs out now because I realize this is completely dumb.

I tried to install this on my forum, but for some reason got the following error:

QuoteXML Parsing Error: syntax error
Location: /forum/Themes/default/install.xml
Line Number 1, Column 16:
<?xml version="1.1"?>
---------------^

I haven't installed mods this way so I'm not even sure if I'm doing it right. I am trying to install it to SMF 1.1.5.
Title: Re: Spoiler Tag
Post by: afv on June 08, 2008, 12:07:29 AM

Quote from: bluesyrio on May 29, 2008, 12:53:13 PM
When our members do Show the last posts of this person in someone's profile they can't see the spoiler tag at all in the posts shown. Only admins can. I've tried to see if it could be because of group member ou board permissions, but nothing. As for the rest, the mod is working perfectly well when you read a topic.

Same problem with Spoiler Tag 0.5 on SMF 2.0 Beta 3.1
Title: Re: Spoiler Tag
Post by: 青山 素子 on June 08, 2008, 12:54:25 AM
Quote from: JamesPicard_007 on June 07, 2008, 11:13:43 PM
I haven't installed mods this way so I'm not even sure if I'm doing it right. I am trying to install it to SMF 1.1.5.

Are you trying to browse to install.xml? That probably won't work.


Quote from: afv on June 08, 2008, 12:07:29 AM

Quote from: bluesyrio on May 29, 2008, 12:53:13 PM
When our members do Show the last posts of this person in someone's profile they can't see the spoiler tag at all in the posts shown. Only admins can. I've tried to see if it could be because of group member ou board permissions, but nothing. As for the rest, the mod is working perfectly well when you read a topic.

Same problem with Spoiler Tag 0.5 on SMF 2.0 Beta 3.1

Probably needs to be added to an additional template. I'll look as soon as I can.
Title: Re: Spoiler Tag
Post by: izar on June 10, 2008, 05:17:50 PM
the spoiler It only works with registered users.... how can I change it?
Title: Re: Spoiler Tag
Post by: Polis on June 11, 2008, 01:56:16 AM
I can't see the image/bbc/spoiler.gif (not the 0kb file). I uploaded it in default/images/bbc and my_theme/images/bbc. It doesn't show up in the post.

Does Anyone knows how to fix this?

FIXED:

after this:
'quote' => array('code' => 'quote', 'before' => '[quote]', 'after' => '[/quote]', 'description' => $txt[260]),

add this:
'spoiler' => array('code' => 'spoiler', 'before' => '[spoiler]', 'after' => '[/spoiler]', 'description' => $txt['spoiler']),

at Themes/your_theme//Post.template.php
Title: Re: Spoiler Tag
Post by: nwobhm on June 22, 2008, 05:16:35 AM
Quote from: bluesyrio on May 29, 2008, 12:53:13 PM
When our members do Show the last posts of this person in someone's profile they can't see the spoiler tag at all in the posts shown. Only admins can. I've tried to see if it could be because of group member ou board permissions, but nothing. As for the rest, the mod is working perfectly well when you read a topic.
I have the same problem. Only admins can see the spoiler tag in the "most recent posts" list. Other users see nothing. I'm using 1.1.5 smf version.
This happens on default theme.
Title: Re: Spoiler Tag
Post by: leoliet on June 24, 2008, 11:32:58 PM
i have the same problem too
i'm using smf 1.1.5 and Spolier Tag 0.3.3

only admin can post and see spoiler

non admin can't see and post :
Sorry - you don't have the proper permissions to post spoilers
Title: Re: Spoiler Tag
Post by: 青山 素子 on June 25, 2008, 01:16:36 AM
Been a bit busy. I'll see if it can be looked at soon.

Is this present in older versions?
Title: Re: Spoiler Tag
Post by: oOM3n on June 27, 2008, 05:58:43 AM
Hi,

I have the same problem : only admin are able to see the spoiler.
I use SMF 1.1.5 with Spoiler Tag 0.3.2 and the official language of the forum is french.

I hope it could help.

[Edit1] I've downloaded the 0.3.3 file but when i've used the automatic installation, the version 0.3.2 has been installed instead.

[Edit2] For a better french language, you should replace
$txt['spoiler_tag_text'] = 'Spoiler';
$txt['spoiler_tag_click_info'] = '(d&eacute;clic &agrave; montrer ou cacher)';
$txt['spoiler_tag_hover_info'] = '(vol plan&eacute; &agrave; montrer)';

with
$txt['spoiler_tag_text'] = 'Spoiler';
$txt['spoiler_tag_click_info'] = '(cliquez pour afficher/cacher)';
$txt['spoiler_tag_hover_info'] = '(survolez la zone pour voir)';
Title: Re: Spoiler Tag
Post by: 青山 素子 on June 28, 2008, 05:59:24 PM
Quote from: leoliet on June 24, 2008, 11:32:58 PM
only admin can post and see spoiler

non admin can't see and post :
Sorry - you don't have the proper permissions to post spoilers

You need to grant users permissions. Look in the permissions area of the admin.


Quote from: oOM3n on June 27, 2008, 05:58:43 AM
[Edit1] I've downloaded the 0.3.3 file but when i've used the automatic installation, the version 0.3.2 has been installed instead.

Yeah, that's a bug in the package info. It will be fixed in a 0.3.3a package I'll post soon. It is now posted. Also fixed is the copying of the spoiler button image.


Quote from: oOM3n on June 27, 2008, 05:58:43 AM
[Edit2] For a better french language, you should replace

I'll look at that for the next version.


As for the spoiler not showing to anyone but admins in the various other views (posts by member, etc), that isn't part of the original mod code as far as I can determine. As it is a new feature, I'll need to look into the best way to add these things and it will possibly be in a later version.
Title: Re: Spoiler Tag
Post by: danielgc on July 08, 2008, 10:17:31 PM
Quote from: Motoko-chan on June 28, 2008, 05:59:24 PM
Quote from: leoliet on June 24, 2008, 11:32:58 PM
only admin can post and see spoiler

non admin can't see and post :
Sorry - you don't have the proper permissions to post spoilers

You need to grant users permissions. Look in the permissions area of the admin.


I looked for it there but couldn't find an option to grant permissions to users to use the spoiler tag :(
Title: Re: Spoiler Tag
Post by: 青山 素子 on July 12, 2008, 02:10:10 AM
For 1.1.5, it is under the "Topics" section as "Show Spoilers" and "Post Spoilers".

For 2.0, it is under its own category.

If your custom theme replaces the admin pages with its own copy, you probably won't see the settings unless you manually edit the pages or switch to the "Core" theme to set things.
Title: Re: Spoiler Tag
Post by: ziycon on July 13, 2008, 09:12:45 AM
Thanks for the help, spoilers working fine for me now, nice mod by the way!
Title: Re: Spoiler Tag
Post by: Vinspire on July 14, 2008, 04:55:17 AM
I just had this mod installed in forum which is powered by SMF 2.0 Beta 3.1 Public.

I wanted my spoiler to look like the 3rd type,

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg93.imageshack.us%2Fimg93%2F7669%2Fspoilerresultbutton0sj.png&hash=edb589125e254d1cc7f36d554a421c05defcaa8f)

BUT it kept giving me the 2nd type,

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg91.imageshack.us%2Fimg91%2F5208%2Fspoilerresultlink4hw.png&hash=70564a9c1e33c3e1c09e52f398d948295b58d795)

I've checked the setting in my Admin CP and everything is alright.

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg297.imageshack.us%2Fimg297%2F1650%2Fspoilersettings0if.png&hash=4f5bba171f1d42e6fbbc331bcff55b8364140ac1)

How do i fix it?
Title: Re: Spoiler Tag
Post by: 青山 素子 on July 14, 2008, 11:04:28 AM
Are you using the theme-specific setting, or the global?

I thought I cleaned up those items to be more descriptive...
Title: Re: Spoiler Tag
Post by: Vinspire on July 14, 2008, 11:02:56 PM
Quote from: Motoko-chan on July 14, 2008, 11:04:28 AM
Are you using the theme-specific setting, or the global?

I thought I cleaned up those items to be more descriptive...

I am using default theme of SMF 2.0 Beta 3.1 Public.

Can elaborate more on what you mean by theme-specific setting / global ?
Title: Re: Spoiler Tag
Post by: 青山 素子 on July 16, 2008, 05:17:56 PM
Quote from: Vinspire on July 14, 2008, 11:02:56 PM
Can elaborate more on what you mean by theme-specific setting / global ?

There are two areas you can use to change the spoiler style. There is a global setting that acts as the default, and a theme-specific override (in case you want to use a different style for a theme).

For the 2.0 edition, the global setting can be found in Configuration -> Features and Options -> Options -> Spoiler Mode. The theme specific section is in the theme settings (Configuration -> Themes and Layout -> Themes Settings). Once in a theme settings, you'll see the option as "Spoiler Mode". Normally, it will be set to use the global default.

Note that the text in 2.0 has been re-worded to make more sense, so "Show on Button Click" is the one you want.
Title: Re: Spoiler Tag
Post by: Vinspire on July 17, 2008, 10:16:26 AM
Quote from: Motoko-chan on July 16, 2008, 05:17:56 PM
Quote from: Vinspire on July 14, 2008, 11:02:56 PM
Can elaborate more on what you mean by theme-specific setting / global ?

There are two areas you can use to change the spoiler style. There is a global setting that acts as the default, and a theme-specific override (in case you want to use a different style for a theme).

For the 2.0 edition, the global setting can be found in Configuration -> Features and Options -> Options -> Spoiler Mode. The theme specific section is in the theme settings (Configuration -> Themes and Layout -> Themes Settings). Once in a theme settings, you'll see the option as "Spoiler Mode". Normally, it will be set to use the global default.

Note that the text in 2.0 has been re-worded to make more sense, so "Show on Button Click" is the one you want.

Thanks Momoko. I've fixed it. The setting under the "theme settings" is set to "link on click". Problem solved :)
Title: Re: Spoiler Tag
Post by: Otterdam on July 17, 2008, 04:46:36 PM
Spoiler tags don't work in private messages (and possibly other mods that allow BBC).
Is this a known bug?

It seems to be because spoiler permissions are in the 'board' permission category rather than the whole forum.
Title: Re: Spoiler Tag
Post by: 青山 素子 on July 17, 2008, 04:50:42 PM
At the very least, I don't think spoiler tags were intended for use in personal messages.
Title: Re: Spoiler Tag
Post by: gerard on July 20, 2008, 05:46:00 AM
Quote from: General_Naga on June 03, 2008, 02:21:25 PM
Mine does after that hint from Motoko-chan (thanks by the way)

You need to go to Admin>Packages, then at the bottom of "Browse Packages" there a button/text "advanced". Click this and set the package installer to emulate "SMF 2.0 Beta 3" then install as usual. - Hope that helps

I tried this, but it still won't install the package (0.5). I got this message: "This package doesn't appear to support your SMF version" btw, I have the SMF 2.0 Beta 3.1 Public
Title: Re: Spoiler Tag
Post by: 青山 素子 on July 20, 2008, 02:26:09 PM
If you do change the version string, it should work. Make sure to put the version in exactly as I posted.

I've tried this on SMF running on three different hosts without problems (some weird cPanel host, DreamHost, and my own servers).
Title: Re: Spoiler Tag
Post by: gerard on July 20, 2008, 02:27:51 PM
Quote from: Motoko-chan on July 20, 2008, 02:26:09 PM
If you do change the version string, it should work. Make sure to put the version in exactly as I posted.


eh... change it in what?
Title: Re: Spoiler Tag
Post by: gerard on July 20, 2008, 02:36:41 PM
It worked, thnx
Title: Re: Spoiler Tag
Post by: alado on July 22, 2008, 02:39:20 PM
I use 1.1.5
Use this mod. Users started swearing that they see no buttons spoiler. I'm use mozilla firefox, under IE 6.0 a button is not visible.
How can we solve this problem?
Title: Re: Spoiler Tag
Post by: 青山 素子 on July 22, 2008, 02:51:48 PM
Probably a conflict with IE. Are you using a third-party theme? Can you link to this for investigation. If you don't allow guests to browse or see spoilers, please PM with a login so I can look.
Title: Re: Spoiler Tag
Post by: alado on July 22, 2008, 04:21:41 PM
Quote from: Motoko-chan on July 22, 2008, 02:51:48 PM
Probably a conflict with IE. Are you using a third-party theme? Can you link to this for investigation. If you don't allow guests to browse or see spoilers, please PM with a login so I can look.
Theme is a standard.
Title: Re: Spoiler Tag
Post by: alado on July 23, 2008, 06:03:41 AM
I found a mistake. I do not permissions for the right user group!

Here, just to say about this http://www.simplemachines.org/community/index.php?topic=50261.msg1404805#msg1404805

Thank.
Title: Re: Spoiler Tag
Post by: Kimmie on August 12, 2008, 12:20:54 AM
Havin a problem the bbc button not showing up even on the custom themes. I uploaded it to the images/bbc folder in both my custom themes but it wont show up.

This is what it looks like in IE:

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi34.tinypic.com%2Fs4qetx.jpg&hash=2decd58181ea1fb342356775104f56a3bdfb704a)

This is what it looks like in FF:

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi299.photobucket.com%2Falbums%2Fmm294%2Fpatriotforce%2Fspoiler.jpg&hash=31e94230b57696f8c240d4721bbae0a2878d788e)
Title: Re: Spoiler Tag
Post by: 青山 素子 on August 12, 2008, 10:31:55 AM
Can you make sure the image is actually good? There was a problem with the 0.3.3 package where an empty spoiler.gif was added instead of the correct image. This was fixed in 0.3.3a.
Title: Re: Spoiler Tag
Post by: Kimmie on August 13, 2008, 05:14:20 AM
Quote from: Motoko-chan on August 12, 2008, 10:31:55 AM
Can you make sure the image is actually good? There was a problem with the 0.3.3 package where an empty spoiler.gif was added instead of the correct image. This was fixed in 0.3.3a.

0.3.3a is the one I have installed. The image shows up fine on the default theme but it wont show up on my other two themes. When I view thumbnails of that image in both my bbc folders it shows up fine. Ive tried changing the chmod on them to 777 but that didnt help. Ive never had a problem with adding images to my custom themes before.. these are being ornery..lol.

This is really weird.. you can look at the list of the images here and it doesnt show up on the list: http://patriotgames2.info/Themes/Glossy_Default_tp/images/bbc/

but you can plainly see by the image attached that its in there..lol
Title: Re: Spoiler Tag
Post by: 青山 素子 on August 13, 2008, 10:20:51 AM
Odd. Try setting permissions on the image to 444, then 440, then just 400. Also, check the existing owner and permissions on the other files.
Title: Re: Spoiler Tag
Post by: Kimmie on August 13, 2008, 05:47:28 PM
Quote from: Motoko-chan on August 13, 2008, 10:20:51 AM
Odd. Try setting permissions on the image to 444, then 440, then just 400. Also, check the existing owner and permissions on the other files.

ok I will try that and let you know. In the meantime, the permissions on the bbc folder is 777 and the permissions on all the other images is 666.


Edit: ok I tried making them 666 first and they still wouldnt show up. I tried each of your suggestions and they wouldnt show up either. I have changed them back to 666 and I will wait a little while to see if they will update and start showing up. (sometimes it takes a while.. not sure why, it just does). Something else I noticed.. in the default bbc folder, all those images are set to 755 - not sure why the custom themes are at 666, and not sure that it even matters..lol.

Edit again: I just noticed that even though I had tried the permissions you mentioned, they didnt stay - they keep reverting to 644. weird.
Title: Re: Spoiler Tag
Post by: Kimmie on August 17, 2008, 03:29:25 AM
well its still not working right. I just dont understand why since I have the image uploaded to both bbc folders for my custom themes. its showing up on the default theme fine but not my custom themes (inserts hair pulling smiley). I have even tried another image and it wont work either.

Would any of the actual mod "code"keep that from showing up? I mean I have an image there, its just not the one called spoiler.gif thats in that folder. In FireFox, it looks like its trying to add a button twice the width with the entire word "spoiler" written on it. In IE, the button is the normal size but it too, looks like its trying to put the word "spoiler" on it.

Its almost like the mod is telling it to pull another image, not the spoiler.gif image.


Edit: I just noticed that the parser has some code that gets added to the CSS. Would that cause it not to show up if I didnt add that code? (not even sure what that code is even for). Thats the only thing I can think of that isnt the same.

Edit 2: I just went through every single file that gets edited and the code that was supposed to be in the post.template file didnt even get uploaded -- so tell me how the button even showed up on the default theme?  lol. (man I need a vacation). Unfortunately, even after adding that code, it still doesnt show up on my custom themes.

Edit 3: ok this is rediculous, I had to add ALL the code for the mod to the default themes files. Can someone please explain to me how I uploaded it thru the package manager, got no test failed's, the mod and image show up fine on the default theme  - and it "worked"?  lol At any rate, adding all the code again didnt fix the issue.
Title: Re: Spoiler Tag
Post by: Mskina on August 17, 2008, 03:34:52 PM
Spanish and spanish_es updated XLM (works also on utf8 files)

Spanish
<?xml version="1.1"?>
<!DOCTYPE modification SYSTEM "http://www.simplemachines.org/xml/modification">
<modification xmlns="http://www.simplemachines.org/xml/modification" xmlns:smf="http://www.simplemachines.org/">
<id>azatoth:spoiler</id>


<!-- Default Theme -->
<file name="$boarddir/Themes/default/languages/index.spanish.php" error="skip">
<operation>
<search position="before"><![CDATA[
$txt['split_reset_selection'] = 'Reinicializar selecci&oacute;n';
]]></search>
<add><![CDATA[
$txt['spoiler_tag_text'] = 'Spoiler';
$txt['spoiler_tag_click_info'] = '(Pulsa para mostrar/ocultar)';
$txt['spoiler_tag_hover_info'] = '(Se&ntilde;ala para mostrar)';
]]></add>
</operation>
</file>

<file name="$boarddir/Themes/default/languages/Themes.spanish.php" error="skip">
<operation>
<search position="before"><![CDATA[
$txt['themeadmin_edit_error'] = 'El archivo que intentaste guardar gener&oacute; el siguiente error:';
$txt['themeadmin_edit_on_line'] = 'Iniciando en la l&iacute;nea';
$txt['themeadmin_edit_preview'] = 'Previsualizar';
]]></search>
<add><![CDATA[
$txt['spoiler_tag_label'] = 'Spoiler Tag';
$txt['spoiler_tag_desc'] = 'Por defecto <b>Se&ntilde;ala para mostrar</b> si no se cambian las opciones. Adicionalmente est&acute; <b>Pulsa el link para mostrar</b>, que es un enlace que pulsas y <b>Pulsa el bot&ocute;n para mostrar</b>, que es un bot&ocute;n que pulsas.';
$txt['spoiler_tag_onhoverovershow'] = 'Se&ntilde;ala para mostrar';
$txt['spoiler_tag_onlinkclickshow'] = 'Pulsa el link para mostrar';
$txt['spoiler_tag_onbuttonclickshow'] = 'Pulsa el bot&ocute;n para mostrar';
]]></add>
</operation>
</file>
</modification>


Spanish_es
<?xml version="1.1"?>
<!DOCTYPE modification SYSTEM "http://www.simplemachines.org/xml/modification">
<modification xmlns="http://www.simplemachines.org/xml/modification" xmlns:smf="http://www.simplemachines.org/">
<id>azatoth:spoiler</id>


<!-- Default Theme -->
<file name="$boarddir/Themes/default/languages/index.spanish_es.php" error="skip">
<operation>
<search position="before"><![CDATA[
$txt['split_reset_selection'] = 'Reinicializar selecci&oacute;n';
]]></search>
<add><![CDATA[
$txt['spoiler_tag_text'] = 'Spoiler';
$txt['spoiler_tag_click_info'] = '(Pulsa para mostrar/ocultar)';
$txt['spoiler_tag_hover_info'] = '(Se&ntilde;ala para mostrar)';
]]></add>
</operation>
</file>

<file name="$boarddir/Themes/default/languages/Themes.spanish_es.php" error="skip">
<operation>
<search position="before"><![CDATA[
$txt['themeadmin_edit_error'] = 'El archivo que intentaste guardar gener&oacute; el siguiente error:';
$txt['themeadmin_edit_on_line'] = 'Iniciando en la l&iacute;nea';
$txt['themeadmin_edit_preview'] = 'Previsualizar';
]]></search>
<add><![CDATA[
$txt['spoiler_tag_label'] = 'Spoiler Tag';
$txt['spoiler_tag_desc'] = 'Por defecto <b>Se&ntilde;ala para mostrar</b> si no se cambian las opciones. Adicionalmente est&acute; <b>Pulsa el link para mostrar</b>, que es un enlace que pulsas y <b>Pulsa el bot&ocute;n para mostrar</b>, que es un bot&ocute;n que pulsas.';
$txt['spoiler_tag_onhoverovershow'] = 'Se&ntilde;ala para mostrar';
$txt['spoiler_tag_onlinkclickshow'] = 'Pulsa el link para mostrar';
$txt['spoiler_tag_onbuttonclickshow'] = 'Pulsa el bot&ocute;n para mostrar';
]]></add>
</operation>
</file>
</modification>
Title: Re: Spoiler Tag
Post by: 青山 素子 on August 21, 2008, 02:36:08 AM
Quote from: Kimmie on August 17, 2008, 03:29:25 AM
Would any of the actual mod "code"keep that from showing up? I mean I have an image there, its just not the one called spoiler.gif thats in that folder. In FireFox, it looks like its trying to add a button twice the width with the entire word "spoiler" written on it. In IE, the button is the normal size but it too, looks like its trying to put the word "spoiler" on it.

That means the image isn't loading. Firefox shows the text, and it's long enough to span two button widths. IE just does a blank broken image icon at the size of the image.


Quote from: Kimmie on August 17, 2008, 03:29:25 AM
Its almost like the mod is telling it to pull another image, not the spoiler.gif image.

In Firefox, try to use the right-click menu to get the "view image" item. You'll see what it is trying to load that way. That should help determine what the problem is.


Quote from: Kimmie on August 17, 2008, 03:29:25 AM
Edit: I just noticed that the parser has some code that gets added to the CSS. Would that cause it not to show up if I didnt add that code? (not even sure what that code is even for). Thats the only thing I can think of that isnt the same.

That CSS is only the styling for the display of the spoiler. It won't affect the post form at all.
Title: Re: Spoiler Tag
Post by: Kimmie on August 21, 2008, 11:09:32 PM
When I right click on the image in FF and click View Image this is what I get:

QuoteNot Found

The requested URL /Themes/Glossy_Default_tp/images/bbc/spoiler.gif was not found on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

When I right click in IE, I dont get a view image icon but the path show this:

http://patriotgames2.info/Themes/Glossy_Default_tp/images/bbc/spoiler.gif

and when I try to view the image via the url, I get the same error as above. The image is indeed in the correct folder on the server and I have tried every chmod available on it and on the folder itself. I just dont understand why its not showing up
Title: Re: Spoiler Tag
Post by: 青山 素子 on August 22, 2008, 12:28:38 AM
That's a definite permission issue (or some weird security filter). You could try re-uploading the image in that folder to start with. Delete the existing file, then upload a new copy. If that doesn't work, ask your host to adjust the ownership on it.
Title: Re: Spoiler Tag
Post by: Kimmie on August 22, 2008, 09:05:49 PM
Quote from: Motoko-chan on August 22, 2008, 12:28:38 AM
That's a definite permission issue (or some weird security filter). You could try re-uploading the image in that folder to start with. Delete the existing file, then upload a new copy. If that doesn't work, ask your host to adjust the ownership on it.

After all this time I finally figured out what the problem was - it was an issue on my hosts end. They had to move all teh sites on the server I am on to new hardware about 2 weeks ago, and up until then, I could always FTP in with no problems (connection was immediate). However, after the change, I started noticing delays on the connections.. they got longer and longer, and finally for the past 3 days I have been unable to connect. It kept  timing out. So I contacted support and they said well here are your ftp details - try using a different program. After a few days I finally thought well let me make sure the ftp address is still the same.. and sure enough, it changed when they made the move, but failed to let anyone know. As soon as I created a new log in with the new info, I was able to connect.

First thing I did was go straight to both the bbc folders to see if the image was indeed still there. It wasnt. I uploaded the actual image from the mod folder and wallllllaaaa....it works fine. This actually answers ALOT of qustions for me, on the few mods I have installed since they made the move. Things like I would install it, but the code never even showed up in the default files, and even after I made the manual edits to my custom files (via ftp), the mods wouldnt work.

(sometimes I wonder if the people running this host even know what they are doing..lol).

At any rate THANK YOU, EACH of you for all the help you have given me on this. It was greatly appreciated. :)
Title: Re: Spoiler Tag
Post by: darkkurama on September 02, 2008, 12:33:13 PM
Oh well, Hi. I'm having some issues with this mod...

I installed it like the other mods (package installer), i installed, and the "current Theme" and the "features and options" of my admin panel gave me some errors:

clicking "Current Theme"

8: Undefined index: spoiler_tag_default
Archivo: /homepages/15/d230059892/htdocs/foros/Themes/default/Settings.template.php (settings sub template - eval?)
Línea: 218

clicking "Features and Options"

8: Undefined index: spoiler_tag_onbuttonclickshow
Archivo: /homepages/15/d230059892/htdocs/foros/Sources/ModSettings.php
Línea: 232

Also my users can't see the spoilers...

I'm using the default theme... It shouldn't show these errors >_>

Darkkurama
Title: Re: Spoiler Tag
Post by: 青山 素子 on September 02, 2008, 12:51:11 PM
Quote from: darkkurama on September 02, 2008, 12:33:13 PM
clicking "Current Theme"

8: Undefined index: spoiler_tag_default

clicking "Features and Options"

8: Undefined index: spoiler_tag_onbuttonclickshow

Looks like a possible issue with the code not checking for the variables first. What version of the mod are you using, and what version of SMF?


Quote from: darkkurama on September 02, 2008, 12:33:13 PM
Also my users can't see the spoilers...

Not a bug. You need to grant them permission to view and/or post spoilers before they can do so.
Title: Re: Spoiler Tag
Post by: darkkurama on September 02, 2008, 05:53:46 PM
Hi and thank you for your quick reply.

Well, i'm using Spoiler-0.3.3a.tar.gz version of this mod, that mean that i'm using SMF 1.1.5.

I can't see the "permissions" that i should edit for allowing my users to see the spoilers (in the "permissions" one of the admin panel isn't anything about spoilers.

Thanks again

Darkkurama
Title: Re: Spoiler Tag
Post by: 青山 素子 on September 02, 2008, 06:01:47 PM
The post and show spoilers permissions should appear in the group permissions area. Try an in-page search for "spoiler".

Did the installation process indicate any errors?
Title: Re: Spoiler Tag
Post by: darkkurama on September 02, 2008, 06:37:50 PM
Nop, there are no "spoiler" keyword in the permissions area :(

The installation of this mod didn't show any errors to me :(

Darkkurama
Title: Re: Spoiler Tag
Post by: 青山 素子 on September 03, 2008, 01:48:12 AM
Quote from: darkkurama on September 02, 2008, 06:37:50 PM
The installation of this mod didn't show any errors to me :(

First, are you sure you are using the default template as shipped? Maybe you are using a copy of the template files?

The only other thing I can think is that the installer didn't complete the install. You could always check against the package install instructions and make sure the changes are showing on your install.
Title: Re: Spoiler Tag
Post by: tensai on September 08, 2008, 03:50:07 AM
any updates for SMF 1.1.6?!? thanks... great spoiler tag i really like this one... ^__^
Title: Re: Spoiler Tag
Post by: 青山 素子 on September 08, 2008, 11:05:42 AM
This mod should work just fine on 1.1.6, just use the emulate_version trick.
Title: Re: Spoiler Tag
Post by: tensai on September 10, 2008, 12:30:15 AM
so how do you do this emulate_version=1.1.6 trick?!?
Title: Re: Spoiler Tag
Post by: 青山 素子 on September 10, 2008, 02:25:09 AM
At the end of the URL for the package manager, add version_emulate=1.1.5
Title: Re: Spoiler Tag
Post by: MarChelo on September 16, 2008, 06:21:40 PM
Same for 2 beta 4?
Title: Re: Spoiler Tag
Post by: 青山 素子 on September 16, 2008, 06:24:27 PM
The mod will need to be updated for 2.0 beta 4 to work with the updated template files. I'll get that completed as soon as I have time.
Title: Re: Spoiler Tag
Post by: 青山 素子 on September 18, 2008, 01:54:14 AM
Version 0.6 has just been uploaded. It supports the latest versions of 1.1 and 2.0. Yay for unified packages!
Title: Re: Spoiler Tag
Post by: KeksX on September 18, 2008, 12:30:04 PM
Hello Motoko-Chan! I want to use your Spoiler-Mod... I'm using the SMF-Version 1.1.6...

So, after installing the mod, the following issues happen:
- nobody can see the spoilers but me. It's even worse: If they use the tag, the content of the spoiler disappears...
- i don't have the chance to change the group permissions for spoiler-tags(cuz i can't see anything there...)

I read about the emulate_version trick, but I don't know how to use it..Could you give me an explanation?
Aaand, last but not least, i get an style.css error. He says "skipping file", could it be the problem?...


Greets, KeksX.
Title: Re: Spoiler Tag
Post by: Cal O'Shaw on September 19, 2008, 12:37:15 AM
We're using v 0.3.2 (installed back when we were on 1.1.2) and are currently on 1.1.5.  I don't have a gz unpacker/packer, but was wondering:

If I rename my current "Spoiler-0.3.2.tar.gz" file, copy my "Spoiler-0.6.tar.gz" file as "Spoiler-0.3.2.tar.gz" (so I have "xSpoiler-0.3.2.tar.gz", "Spoiler-0.3.2.tar.gz", and "Spoiler-0.6.tar.gz"),

Can I:
1) Uninstall "Spoiler-0.3.2"
2) Install "Spoiler-0.6"

And not lose all the Spoilers (I would put my site into Maintenance Mode to prevent anyone else from touching spoilers during what should be less than a minute to execute the uninstall/install).


Why am I doing this when I plan on keeping Spoiler?  Because if I have to uninstall all my mods before migrating to 2.0.0, I'd like to be able to actually uninstall all my mods, not just some of them, and risk breaking spoilers, or worse, my site.

Advice on this most welcome.

Grazie,

Cal
Title: Re: Spoiler Tag
Post by: 青山 素子 on September 20, 2008, 03:29:11 PM
Quote from: KeksX on September 18, 2008, 12:30:04 PM
- nobody can see the spoilers but me. It's even worse: If they use the tag, the content of the spoiler disappears...

That's related to the permissions. Since you can use them, that part installed correctly. (Admins can see anything.)


Quote from: KeksX on September 18, 2008, 12:30:04 PM
- i don't have the chance to change the group permissions for spoiler-tags(cuz i can't see anything there...)

It's a bit buried in the other screen. Also, if you are using a non-standard theme it might have replaced the file it changes with its own. Use the default theme to check.

Quote from: KeksX on September 18, 2008, 12:30:04 PM
Aaand, last but not least, i get an style.css error. He says "skipping file", could it be the problem?...

That's just the style, so it wouldn't affect the function of the mod. Also, if you removed the classic theme, you'll get that notice. Double-check the path of the edit.


Quote from: Cal O'Shaw on September 19, 2008, 12:37:15 AM
If I rename my current "Spoiler-0.3.2.tar.gz" file, copy my "Spoiler-0.6.tar.gz" file as "Spoiler-0.3.2.tar.gz" (so I have "xSpoiler-0.3.2.tar.gz", "Spoiler-0.3.2.tar.gz", and "Spoiler-0.6.tar.gz"),

Can I:
1) Uninstall "Spoiler-0.3.2"
2) Install "Spoiler-0.6"

And not lose all the Spoilers (I would put my site into Maintenance Mode to prevent anyone else from touching spoilers during what should be less than a minute to execute the uninstall/install).

Uninstalling the mod will not remove your spoiler content. All the mod does is adds information on what to do with the bbcode tag. No data is lost.

Also, not much has changed between 0.3.2 and 0.6. There were a few packaging changes (including integrating support for SMF 2.0), but no functionality changes.


Quote from: Cal O'Shaw on September 19, 2008, 12:37:15 AM
Why am I doing this when I plan on keeping Spoiler?  Because if I have to uninstall all my mods before migrating to 2.0.0, I'd like to be able to actually uninstall all my mods, not just some of them, and risk breaking spoilers, or worse, my site.

Prior to the 2.0 migration, uninstall all your mods. After the 2.0 upgrade, install the new compatible version. Just make sure to do a backup of your data and files before doing any kind of SMF upgrade.
Title: Re: Spoiler Tag
Post by: General_Naga on September 20, 2008, 04:23:57 PM
Is there a way of changing the default colour of the spoiler body? Mine defaults to black but as I'm using a dark theme I need it to be white.

Thanks
Title: Re: Spoiler Tag
Post by: 青山 素子 on September 20, 2008, 11:52:52 PM
Check the styles it adds to your styles.css file.
Title: Re: Spoiler Tag
Post by: Cal O'Shaw on September 21, 2008, 12:11:07 AM
Hello,

Thank you for clarifying I need to remove all mods before migrating to 2.0.0.  I have a number of mods that were used to upgrade from version to version that no longer have an [uninstall] option(1.0.7 to 1.0.8, etc), as well as MODs installed under older SMF versions, such as Spoiler.

As I said, I don't have a tool to unpack and repack tar.gz files, which is why I was asking if I could rename the current version as 0.3.2 so I can remove the old version and replace it with one that will uninstall before we move to 2.0.0. 

Or can I get a 0.3.2 tar.gz file that "supports" 1.1.5 in just the UNINSTALL directive, so I can remove it and replace it with the current version?

Thank you, both for the Spoiler MOD, and your assistance in this.

Cal
Title: Re: Spoiler Tag
Post by: 青山 素子 on September 21, 2008, 02:59:30 AM
Quote from: Cal O'Shaw on September 21, 2008, 12:11:07 AM
Thank you for clarifying I need to remove all mods before migrating to 2.0.0.  I have a number of mods that were used to upgrade from version to version that no longer have an [uninstall] option(1.0.7 to 1.0.8, etc), as well as MODs installed under older SMF versions, such as Spoiler.

As I said, I don't have a tool to unpack and repack tar.gz files, which is why I was asking if I could rename the current version as 0.3.2 so I can remove the old version and replace it with one that will uninstall before we move to 2.0.0. 

Or can I get a 0.3.2 tar.gz file that "supports" 1.1.5 in just the UNINSTALL directive, so I can remove it and replace it with the current version?

In that case, leave the mods alone, clear the Packages directory, and use the large upgrade package. The data will still be in the database and the upgrade should not touch it. Removing the packages will prevent SMF from being "helpful" and trying to install any compatible ones during the upgrade process.

Remember to make backups of everything before doing an upgrade of SMF, and make sure the backups are good.
Title: Re: Spoiler Tag
Post by: kearnsy on October 07, 2008, 04:24:45 PM
Hi there, firstly thank you for your work on this and your continued support with helping.

I tried to browse and search through this thread for an answer before posting but I couldn't find something so I'll ask.

Is there a way to setup the permissions to default to always allow spoiler use, and then from there disable them for certain groups/boards? Also, how do I configure so users are allowed to use Spoiler tags inside of Private messages?

Thank you in advance for any support you can give.
Title: Re: Spoiler Tag
Post by: 青山 素子 on October 07, 2008, 05:38:28 PM
Quote from: kearnsy on October 07, 2008, 04:24:45 PM
Is there a way to setup the permissions to default to always allow spoiler use, and then from there disable them for certain groups/boards?

Give the normal members group permission to do so and that should cover it for most people globally. For per-board changes, look at local permissions.

Quote from: kearnsy on October 07, 2008, 04:24:45 PM
Also, how do I configure so users are allowed to use Spoiler tags inside of Private messages?

This isn't supported at this time. It might be in a future revision if I can find the time to code it. If anyone wants to send a patch (unified diff, please) that will add the extra needed, I wouldn't turn down the help.
Title: Re: Spoiler Tag
Post by: Sapo84 on October 13, 2008, 06:45:47 AM
Hello,
I have a strange problem with this mod.
The mod worked fine until I installed the YouTube BBCode mod (http://custom.simplemachines.org/mods/index.php?mod=936), after that it stopped working (impossibility to post when there was a spoiler tag).
When I tried to unistall the mod it showed a problem in the file Subs.php, in the changes after
'before' => '<span style="color: white;" class="bbc_color">',
'after' => '</span>',
),

I even tried to reapply that change myself by editing the file but it didn't work.

Is there a way to make the two mods work at the same time?

Thanks in advance.
Title: Re: Spoiler Tag
Post by: Kermit on October 13, 2008, 07:34:34 AM
I have tried both mod and it works fine,if you have problems after installation of youtube mode,you should try to install youtube mode manually

http://custom.simplemachines.org/mods/index.php?action=parse;mod=936;attach=71114;smf_version=1.1.6
Title: Re: Spoiler Tag
Post by: Sapo84 on October 13, 2008, 09:32:30 AM
D'oh, I didn't say that the forum I'm using is based on 2.0 beta4, it may be possible that with 1.1.6 the problem doesn't appear.
I will try to install both mod manually later this night (I don't want to risk any downtime) but I don't think it will male any difference because I already tried to manually edit Subs.php without luck.
Title: Re: Spoiler Tag
Post by: Sapo84 on October 13, 2008, 08:07:09 PM
"Problem" solved, installing the youtube mod first and then the spoiler tag went fine (manual installation probably work too).
Thanks for the help  ;)

Edit: Is normal that at first no membergroups have the permission to post spoilers? I think that this is somewhat strange, I think that the opposite behaviour is clearer.
Title: Re: Spoiler Tag
Post by: Kermit on October 13, 2008, 08:23:39 PM
Quote from: Sapo84 on October 13, 2008, 08:07:09 PM


Edit: Is normal that at first no membergroups have the permission to post spoilers?

Yep, it's a default situation by spoiler tag
Title: Re: Spoiler Tag
Post by: mirahalo on October 14, 2008, 07:58:01 PM
hi, I took the liberty (hope you don't mind  O:) ) to update the Spanish language of the  0.6 version of the mod (some words did not make sense in Spanish), I include both languages, Spanish_Latin and Spanish_es because the Spanish does not work anymore (deprecate) and also I translate the help, permissions and errors that was missing from the original Spanish.

tested in 1.1.6

hope you like it  ;D

Title: Re: Spoiler Tag
Post by: arifwicaksono on October 15, 2008, 03:36:52 PM
i got some problem here. i have installed this package and i thought all went well but it's wrong, only me and other administrator who can see the spoiler tag(i'm administrator as well). but no one my member can see the spoiler tag. it is about permission? i cannot find how to set the spoiler tag permission.

i'm using smf 1.1.6 , please help me.

and Many thanks for reply.


Title: Re: Spoiler Tag
Post by: Kermit on October 15, 2008, 03:40:18 PM
Quote from: arifwicaksono on October 15, 2008, 03:36:52 PM
i got some problem here. i have installed this package and i thought all went well but it's wrong, only me and other administrator who can see the spoiler tag(i'm administrator as well). but no one my member can see the spoiler tag. it is about permission? i cannot find how to set the spoiler tag permission.

i'm using smf 1.1.6 , please help me.

and Many thanks for reply.




yep it's about the permission and here we go

Admin CP
Permissions
Regular Members (?) -> Modify

Show Spoilers
Post Spoilers

both permissions should be activated

Title: Re: Spoiler Tag
Post by: arifwicaksono on October 15, 2008, 03:43:10 PM
aah.. found it.. my bad, i thing all setting is under feature and option.

thanks very much for quick response.

again. Thanks a lot :D
Title: Re: Spoiler Tag
Post by: BipSmith on October 17, 2008, 06:34:37 PM
I know people have had similar problems, but I've tried all the suggested solutions. Please note that.

My members cannot see or post spoilers.

I've tried changing permissions on a few different levels, but it isn't working. I've done it by member group and by board. They still cannot view spoilers. When they try to post, it says they don't have permission.

Is there any other solution beyond changing permissions?
Title: Re: Spoiler Tag
Post by: nosoyelmejor on October 21, 2008, 11:12:49 AM
 Hi,  sorry about my english

I use SMF 1.1.6 and this Mod http://custom.simplemachines.org/mods/index.php?mod=195 (http://custom.simplemachines.org/mods/index.php?mod=195)

I have a problem with this Mod, because when I enter in Administration, then in Current Theme I get a log error

8: Undefined index: spoiler_tag_default
Archivo: Themes/default/Settings.template.php (settings sub template - eval?)
Línea: 218

Thanks in advance for your help.

---------------------------------------
Solved

I had not the changes in Modifications.spanish_es.php

Thanks
Title: Re: Spoiler Tag
Post by: L'AltroWeb on October 24, 2008, 12:42:48 AM
Hi i have installed this mod and it work fine except for noscript "link"
infact if you have disabled script in your browser (eg: noscript+firefox)
button click isn't disabled but redirect to (same problem with sample link):
http://darkwolf.altervista.org/forum/help-desk/informazioni-t5/msg19/#msg19/none
instead actual url is: http://darkwolf.altervista.org/forum/help-desk/informazioni-t5/msg19/#msg19
Can you fix this problem?
Thanks in advance, DarkWolf  :)
Title: Re: Spoiler Tag
Post by: 青山 素子 on October 24, 2008, 01:07:04 AM
Displaying/hiding the spoiler requires a bit of javascript to function. I don't know that there would be an easy way to make it not require scripting.

I think that part of your problem is another mod rewriting URLs, but I'll double-check when I get a chance.
Title: Re: Spoiler Tag
Post by: L'AltroWeb on October 26, 2008, 01:45:21 PM
Maybe i can use a noscript tag?
switch($settings['spoiler_tag']) {
case 3:
$retval = (
'<div class="spoiler"><div class="spoilerheader">'.
'<input class="spoilerbutton" type="button" value="'.$txt['spoiler_tag_text'].$topic.'" '.
'onclick="n = this.parentNode.parentNode.lastChild; if(n.style.display == \'none\') { n.style.display = \'block\'; } else { n.style.display = \'none\'; } return false;"/> '.
$txt['spoiler_tag_click_info'].'</div><div class="spoilerbody" style="display: none">'.
$content.'</div></div>'
);
-
@Motoko-chan
In your opinion eventually is possible to simply disable button/click when script is disabled???
For example test with quickreply on this forum (if you have script disabled link simply don't work instead to redirect) :)
Title: Re: Spoiler Tag
Post by: L'AltroWeb on October 27, 2008, 11:21:21 AM
Edit!
Ok i've found an escamotage :D
    $retval = (
        '<div class="spoiler"><div class="spoilerheader">'.
        '<input id="spoilertag" class="spoilerbutton" type="button" value="'.$txt['spoiler_tag_text'].$topic.'" />'.
        '<script type="text/javascript">document.getElementById(\'spoilertag\').onclick = function() {n = this.parentNode.parentNode.lastChild; if(n.style.display == \'none\') { n.style.display = \'block\'; } else { n.style.display = \'none\'; } return false;}</script> '.
        '<script type="text/javascript">document.write("'.$txt['spoiler_tag_click_info'].'");</script>'.
        '<noscript>'.$txt['spoiler_tag_noscript'].'</noscript>'.
        '</div><div class="spoilerbody" style="display: none">'.
        $content.'</div></div>'
    ); 
Title: Re: Spoiler Tag
Post by: Vyen on October 27, 2008, 01:46:33 PM
Hello!  I am using SMF 2.0 Beta 4 (which might be the problem right there XD), and this mod seems to upload and install properly every time.  However, even though every single usergroup (and hence, every single member, no?) has permission to both post and view spoilers, the only users able to do so are the administrator.  Not even my moderators are able to do so.  Everyone else gets an 'You are not authorized to post a spoiler.' error, or something similar.  When I edit a user's post to add a spoiler for them, they are then locked out of their own post and cannot edit it any further.

I'm not sure what I could be doing wrong, but this seems to be the only mod available for this version of SMF as far as spoilers go, which seems like a pretty mainstream feature to me.  Do I need to add some code to my pages somewhere?

Also, the last time I tried disabling/uninstalling/deleting the mod, I managed to throw an 'Internal Server Error'.  What's -really- weird is that only that ONE PARTICULAR MACHINE is getting those errors.  Every other user reports the forums are running fine and dandy, and I've even tried using another computer myself with the same username/password - it works fine.  Just not on that one machine...that may not have anything to do at all with your mod, but if someone else had that same issue, maybe they can help.
Title: Re: Spoiler Tag
Post by: 青山 素子 on October 27, 2008, 03:50:35 PM
Quote from: Vyen on October 27, 2008, 01:46:33 PM
Hello!  I am using SMF 2.0 Beta 4 (which might be the problem right there XD), and this mod seems to upload and install properly every time.  However, even though every single usergroup (and hence, every single member, no?) has permission to both post and view spoilers, the only users able to do so are the administrator.  Not even my moderators are able to do so.  Everyone else gets an 'You are not authorized to post a spoiler.' error, or something similar.  When I edit a user's post to add a spoiler for them, they are then locked out of their own post and cannot edit it any further.

Make sure you are using global permissions on the boards. If you have a special permission profile or local permissions, you need to edit those items to make sure that the permission is granted. The Board Permissions report (under maintenance in the admin) might be of help to you to find out why things aren't being applied.


Quote from: Vyen on October 27, 2008, 01:46:33 PM
I'm not sure what I could be doing wrong, but this seems to be the only mod available for this version of SMF as far as spoilers go, which seems like a pretty mainstream feature to me.  Do I need to add some code to my pages somewhere?

Nope, under 2.0, all the modifications are in internal files, so no theme edits are needed at all. This feature is working fine on the four 2.0 boards I manage where it is installed (one of those has a special edit to change it to "hide").


Quote from: Vyen on October 27, 2008, 01:46:33 PM
Also, the last time I tried disabling/uninstalling/deleting the mod, I managed to throw an 'Internal Server Error'.  What's -really- weird is that only that ONE PARTICULAR MACHINE is getting those errors.  Every other user reports the forums are running fine and dandy, and I've even tried using another computer myself with the same username/password - it works fine.  Just not on that one machine...that may not have anything to do at all with your mod, but if someone else had that same issue, maybe they can help.

Try and re-create the error and look at the server error logs, if you can access them. These kinds of errors are logged with details in the server's error log.
Title: Re: Spoiler Tag
Post by: L'AltroWeb on October 27, 2008, 07:23:47 PM
I've edit my precedent post and i've inserted a full workable code :)
Title: Re: Spoiler Tag
Post by: budies on November 04, 2008, 01:03:45 AM
Quote from: Duncan85 on October 15, 2008, 03:40:18 PM
Quote from: arifwicaksono on October 15, 2008, 03:36:52 PM
i got some problem here. i have installed this package and i thought all went well but it's wrong, only me and other administrator who can see the spoiler tag(i'm administrator as well). but no one my member can see the spoiler tag. it is about permission? i cannot find how to set the spoiler tag permission.


i'm using smf 1.1.6 , please help me.

and Many thanks for reply.




yep it's about the permission and here we go

Admin CP
Permissions
Regular Members (?) -> Modify

Show Spoilers
Post Spoilers

both permissions should be activated


i have set permission like that ..
but problem still appear, only admin can post spoiler and show spoiler..
other member can show spoiler but can't post spoiler


Sorry - you don't have the proper permissions to post spoilers


it's so weird
any idea..?

i am using SMF 1.1.6 and mod tag spoiler 0.6


and thx b4
Title: Re: Spoiler Tag
Post by: 青山 素子 on November 04, 2008, 01:54:19 AM
Are you using global or local permissions? If local, have you set that in those areas too?
Title: Re: Spoiler Tag
Post by: budies on November 04, 2008, 04:05:18 AM
i activated those options (show spoiler and post spoiler)  in area "Global Board Permissions - Regular Members"
i thought this mean global permission ..
Title: Re: Spoiler Tag
Post by: 青山 素子 on November 04, 2008, 10:29:32 AM
Quote from: budies on November 04, 2008, 04:05:18 AM
i activated those options (show spoiler and post spoiler)  in area "Global Board Permissions - Regular Members"
i thought this mean global permission ..

It does, but perhaps you have some boards with a local permission set? If so, those settings will not apply.
Title: Re: Spoiler Tag
Post by: lexran on November 04, 2008, 04:53:50 PM
Any progress on making this mod work in Personal Messages?
Title: Re: Spoiler Tag
Post by: 青山 素子 on November 04, 2008, 05:04:35 PM
I have not had the time to handle this yet.
Title: Re: Spoiler Tag
Post by: Gilrod on November 12, 2008, 03:06:27 PM
I'm having a problem where I can install this mod in latest v2 beta on a locally hosted "Development" version of my forum site (running Win2k3 and apache 2 and php 5 and mysql5) 100% fine, inc using my custom theme.

However if I try and install it to my live site, again with latest beta, BUT with apache 2 under linux I get the following errors every time. I do NOT get this with other mods ...


1.  Execute Modification  ./Sources/ManagePermissions.php  Test successful
1. Add After ./Sources/ManagePermissions.php Test successful
* 2. Execute Modification ./Sources/ManageSettings.php Test successful
1. Add After ./Sources/ManageSettings.php Test successful
* 3. Execute Modification ./Sources/Post.php Test successful
1. Add Before ./Sources/Post.php Test successful
* 4. Execute Modification ./Sources/Subs-Editor.php Test successful
1. Add After ./Sources/Subs-Editor.php Test successful
* 5. Execute Modification ./Sources/Subs.php Test successful
1. Add Before ./Sources/Subs.php Test successful
2. Add After ./Sources/Subs.php Test successful
* 6. Execute Modification ./Sources/Subs-Post.php Test successful
1. Add Before ./Sources/Subs-Post.php Test successful
7. Execute Modification languages-20/english.xml Modification parse error
8. Execute Modification languages-20/english.xml Modification parse error
9. Execute Modification themes-20/core-20b4.xml Modification parse error
10. Execute Modification themes-20/core-20b4.xml Modification parse error
11. Execute Modification themes-20/classic.xml Modification parse error
12. Execute Modification themes-20/classic.xml Modification parse error
13. Extract File ./Themes/default/images/bbc/spoiler.gif


Any help will be appreciated...

Stewart
Title: Re: Spoiler Tag
Post by: 青山 素子 on November 12, 2008, 03:48:47 PM
Awfully strange. However, since it is only language files, you could manually install those yourself. What version of the mod are you using?
Title: Re: Spoiler Tag
Post by: Gilrod on November 12, 2008, 03:59:02 PM
latest I belive 0.6 !?

Also, when I install it locally there are OTHER steps after the live version stops displaying errors?

IE the list I put above is ALL that is displayed for the mod, the "other themes" options are NOT available. :-/

Title: Re: Spoiler Tag
Post by: L8u8k8e8 on November 13, 2008, 04:24:16 PM
I just installed this mod to my forum, and I like the way it works, however, I'm trying to allow my regular users to be able to use spoiler tag's in their signatures, but I'm unable to figure it out.

As an Admin it will let my post spoilers into my own sig, and I can manually edit other user's profile's and insert spoilers into their sig's, but they themselves can't enter them.

I'm not too familiar with the layout of the SMF forum code, so I'm not sure where to set the permissions for this, or if I need to hard code it, where this would need to go.

Thanks in advance.
Title: Re: Spoiler Tag
Post by: L8u8k8e8 on November 17, 2008, 02:23:52 AM
No one?
Title: Re: Spoiler Tag
Post by: 青山 素子 on November 17, 2008, 10:47:11 AM
It's not currently a feature of the mod, and I've been too busy to implement it. I'll try and get to it soon if no one else can do it and send the code.
Title: Re: Spoiler Tag
Post by: L8u8k8e8 on November 17, 2008, 01:34:35 PM
Thanks, I'm just not familiar with the layout of the SMF code or I would try to figure it out myself. I do appreciate the help.
Title: Re: Spoiler Tag
Post by: Dr. Jay Sin on November 19, 2008, 02:51:48 PM
W007!

GREAT mod!  Thank you VERY MUCH AzaToth!  The only thing I had to do to get it to work right was copy the BBC image from where it installed on the default theme and upload it to the BBC images folder for the theme I use (Aa New Damage) and I was all set to go.

The main thing we talk about on my message board is movies, so when I just happened to run across this mod, I was very pleased, and even more pleased when it installed and saw that it worked like a breeze!

Thank you again.  Keep up the good work.  It is much appreciated.
Title: Re: Spoiler Tag
Post by: tigas3000 on January 06, 2009, 10:12:55 AM
Hi,

In my forum I think that I have the spoiler that in your topic apear "#  You can also have a custom title using the equals modifier.".

I didn't installed your mod (it was another people in my forum), but when I installed the MOD "Load Standard Language      1.0.2 ", it appear this error when we writte a message:
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg179.imageshack.us%2Fimg179%2F3443%2Fspoilerqw1.png&hash=67e5311b07feb057adc27f6b87d3dd4f537f78be) (http://imageshack.us)


I'm using a custom theme and my forum is in portuguese.
Could you say when I can overcome this problem?

Best regards
Title: Re: Spoiler Tag
Post by: 青山 素子 on January 06, 2009, 11:26:42 AM
Copy the spoiler.gif bbc image to the images folder from the default theme to the images folder on your custom theme.
Title: Re: Spoiler Tag
Post by: tigas3000 on January 07, 2009, 11:38:43 AM
I'm here just to say that it worked. ^^
Thank you very much!

I don't if I'm in the rules but I think that I should did this.


Best regards
Title: Re: Spoiler Tag
Post by: coldfusionpower on January 15, 2009, 11:29:47 AM
doesnt work on 2.0.4 BlackRainV2 even after manually install it. and i cant find this

?>

at /Themes/BlackRainv2/style.css ...

Title: Re: Spoiler Tag
Post by: 青山 素子 on January 15, 2009, 11:58:15 AM
How did you manually install the mod? CSS code shouldn't have any PHP in it, so you won't find the ending PHP marker.

Also, did you check on the default theme to be sure it is working in general?
Title: Re: Spoiler Tag
Post by: coldfusionpower on January 15, 2009, 02:06:43 PM
manual install instruction for http://mods.simplemachines.org/index.php?mod=195

its not working at default also .. same thing happend with the packages installer .. and now, i cant uninstall it .. gives out plenty of test failed
Title: Re: Spoiler Tag
Post by: 青山 素子 on January 15, 2009, 02:59:13 PM
If you installed it manually, you will need to manually reverse the changes you made.

Why did you try a manual install? Did automatic installation fail for some reason?
Title: Re: Spoiler Tag
Post by: coldfusionpower on January 16, 2009, 12:51:27 AM
i already tried it with the package installer but no effect .. even with default theme. thats why i go for manual ..
Title: Re: Spoiler Tag
Post by: 青山 素子 on January 16, 2009, 01:17:24 AM
But did it fail on install? If it didn't, did you make sure the code was changed?
Title: Re: Spoiler Tag
Post by: marieu on January 16, 2009, 03:45:05 PM
Someone help me please

I want very much this button

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg93.imageshack.us%2Fimg93%2F7669%2Fspoilerresultbutton0sj.png&hash=edb589125e254d1cc7f36d554a421c05defcaa8f)

but nothing that I tried works

Please

I have:

Version Forum: SMF 2.0 Beta 3.1 Public
Version SMF: SMF 2.0 Beta 4

Thanks
Title: Re: Spoiler Tag
Post by: 青山 素子 on January 16, 2009, 06:22:50 PM
Set the spoiler type to the button style. You can do it either globally or on a per-theme basis.
Title: Re: Spoiler Tag
Post by: marieu on January 16, 2009, 06:32:29 PM
Quote from: Motoko-chan on January 16, 2009, 06:22:50 PM
Set the spoiler type to the button style. You can do it either globally or on a per-theme basis.

I don't understand sorry.

I tried everything in this topic but nothing works.

Thanks for your attention
Title: Re: Spoiler Tag
Post by: 青山 素子 on January 16, 2009, 06:50:27 PM
As the included information in the mod says:

Globally: Configuration -> Features and Options -> Options -> Spoiler Mode

Theme-Specific: Configuration -> Themes and Layout -> Themes Settings -> (Pick the theme) -> Spoiler Mode

You want to choose "Show on Button Click". Be aware that due to the way SMF 2.0 handles caching, it may be a few minutes before existing cached topics show the new style. You can speed things up by clearing the file cache in the Forum Maintenance area.
Title: Re: Spoiler Tag
Post by: gzahl on January 18, 2009, 10:09:34 AM
Hi,

I have made a new translation for this mod. It is a translation for german-utf.
I hope you'll enjoy it. A new package of the mod ist attached.

Changes:
added: languages/german-utf8.xml
added this file to package-info.xml for install and removal.
added changes to CHANGELOG

If needed i could supply a patch for package-info.xml

I've tested and it works for me :-)
Kind Regards
Manuel
Title: Re: Spoiler Tag
Post by: 青山 素子 on January 18, 2009, 02:54:52 PM
Please do not post full packages. It becomes difficult when the official packages are updated. Simply post the language strings.

Attachment removed above.
Title: Re: Spoiler Tag
Post by: coldfusionpower on January 21, 2009, 02:27:01 PM
ok ..reinstall it on 2.0.4 ..working now .. but i cant find the spoiler type option in the theme member option .. so it just show the 'show on hover'. its okay if the option cant be access but is there anyway to change it to the third one 'click to show' button ...hard coded ?
Title: Re: Spoiler Tag
Post by: 青山 素子 on January 21, 2009, 03:00:40 PM
It doesn't show per user. It's in the theme settings for the administrator. Please see the paths I gave in my previous reply.
Title: Re: Spoiler Tag
Post by: tigas3000 on January 23, 2009, 12:07:30 PM
Could I ask a thing?

There is any possibility of change the text "Spoiler" to an image, for example a mirror or a magnifying glass (the translation I found in google)?


Best regards
Title: Re: Spoiler Tag
Post by: tartenpoint on January 27, 2009, 02:29:47 PM
hello,
I have a question :
I can't choose between "hover to show" and "click to show".

I have not the option in "current theme".
Can I modify a file to choose it manually?? And what file?

Can you help me please??
(sorry my english)
Thank you.
Title: Re: Spoiler Tag
Post by: Adalla on January 29, 2009, 12:17:37 AM
As Admin, I see the spoiler tag in Private Messages.

My users cant however, but they can in normal threads. Am I missing a permission somewhere?

Or is this mod still not compatible with Private Messages in SMF?

Thanx in advance,
Adalla
Title: Re: Spoiler Tag
Post by: Maya-chan on February 03, 2009, 03:08:36 AM
Quote from: L8u8k8e8 on November 13, 2008, 04:24:16 PM
I just installed this mod to my forum, and I like the way it works, however, I'm trying to allow my regular users to be able to use spoiler tag's in their signatures, but I'm unable to figure it out.

As an Admin it will let my post spoilers into my own sig, and I can manually edit other user's profile's and insert spoilers into their sig's, but they themselves can't enter them.

I'm not too familiar with the layout of the SMF forum code, so I'm not sure where to set the permissions for this, or if I need to hard code it, where this would need to go.

Thanks in advance.

Same here... I've installed this mod JUST for signatures... the weird thing is that some users, not being moderators, ARE able to post spoilers in their signatures, but the majority can't.

I really need this feature... I hope it will be implemented (or the code posted) soon!

EDIT: I just figured out what the problem is: admin and GMs can post spoilers in their signatures in ANY way, while users must use a custom title (example: [spoiler=TITLE][/spoiler]) to be allowed to post spoilers in their signatures, otherwise they will get an error. On forum posts everyone can post spoilers in any way.
Title: Re: Spoiler Tag
Post by: mirahalo on February 03, 2009, 11:20:32 AM
Quote from: tartenpoint on January 27, 2009, 02:29:47 PM
hello,
I have a question :
I can't choose between "hover to show" and "click to show".

I have not the option in "current theme".
Can I modify a file to choose it manually?? And what file?

Can you help me please??
(sorry my english)
Thank you.

Hi !!!  in admin/Current Theme 

yuo will find the options, you can choose between:

fieldOnHoverShow if not specified in the settings. Additional is linkOnClickShowHide, wich is a link you click on and buttonOnClickShowHide wich is a button you click on.

greetings !!!
Title: Re: Spoiler Tag
Post by: Xepernas on February 03, 2009, 04:46:38 PM
Great mod (being able to select how it looks is a great idea), however it doesn't seem to handle the TOTALLY VERY EXTREMELY IMPORTANT "spoilers within spoilers" very well. You know, like :


[spoiler]
       [spoiler]
       [/spoiler]
       [spoiler]
               [spoiler]
               [/spoiler]
       [/spoiler]
[/spoiler]
[spoiler]
       [spoiler][/spoiler]
[/spoiler]


Is there a way to make it possible ? Or is there another mod that does it ?

And does anyone know if SMF2.0 will, by default, include spoiler tags (of the "avalanche spoilers" variety) ?
Title: Re: Spoiler Tag
Post by: 青山 素子 on February 04, 2009, 10:51:37 AM
Thanks for helping in determining the extent of the issue for signatures, Maya-chan. I added the details you provided and will hopefully have time to find the source of that problem soon.


Quote from: Xepernas on February 03, 2009, 04:46:38 PM
Great mod (being able to select how it looks is a great idea), however it doesn't seem to handle the TOTALLY VERY EXTREMELY IMPORTANT "spoilers within spoilers" very well.

I've honestly never seen that kind of nesting used. However, I added it as a feature enhancement request to my private tracker and will look into it as soon as I have time.


Quote from: Xepernas on February 03, 2009, 04:46:38 PM
And does anyone know if SMF2.0 will, by default, include spoiler tags (of the "avalanche spoilers" variety) ?

2.0 will not include spoiler support in the default features. You will need to use a modification.
Title: Re: Spoiler Tag
Post by: Maya-chan on February 04, 2009, 11:11:28 AM
Quote from: Motoko-chan on February 04, 2009, 10:51:37 AM
Thanks for helping in determining the extent of the issue for signatures, Maya-chan. I added the details you provided and will hopefully have time to find the source of that problem soon.

No problem, I'm glad to be of any help :)

Also, I second the nested spoiler thing... personally I think it is unnecessary, but it' been requested by my forum's users, so it would be a nice addition.
Title: Re: Spoiler Tag
Post by: Lamarck on February 06, 2009, 09:44:03 PM
I can't install it in 2.0 RC1 u.u.
Title: Re: Spoiler Tag
Post by: 青山 素子 on February 07, 2009, 12:23:07 AM
It is very possible the templates needed have changed. I will try to get it functioning as soon as I can. For now, try changing the reported version to beta 4.
Title: Re: Spoiler Tag
Post by: cro.senator on February 16, 2009, 02:22:15 PM
is there any update for 2.0 RC1? im using default theme... i really miss that mod...  :'(
Title: Re: Spoiler Tag
Post by: mirahalo on February 18, 2009, 03:34:49 PM
Quote from: Lamarck on February 06, 2009, 09:44:03 PM
I can't install it in 2.0 RC1 u.u.

hi, I install it in 2.0 RC1, just by changing the package info to accept 2.0 RC1,  and works fine...
Title: Re: Spoiler Tag
Post by: Pedro Parkero on February 22, 2009, 11:07:36 AM
Hi, I'm on 1.1.8 and I installed this package via my package manager. The prob is, it didn't seem to do anything. There aren't any buttons for spoilers while making a post and it didn't show in the options in the current theme [and also in the 'Features & Options' page]. Or maybe it just didn't properly show? [see attached image].

The only mod currently installed is FontandSizeDropdown 1.3 (which strangely enough, also doesn't work and I'm also looking into that...)
Pls tell me how to fix this. Thanks.
Title: Re: Spoiler Tag
Post by: 青山 素子 on February 22, 2009, 12:38:33 PM
What do you have your language set to?
Title: Re: Spoiler Tag
Post by: Pedro Parkero on February 22, 2009, 03:33:35 PM
I'm assuming it's in English because it's in English... I'm sorry, don't know where exactly can I see the settings in language... ???

Athough a detail that could be of help is that I have set the 'Inside BB Style v1.0' as the 'Overall forum default'...  :-\

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.fileden.com%2Ffiles%2F2006%2F12%2F4%2F466344%2Fshrug.gif&hash=c7e33980e7b83cb0608366b0796911409239e23a)
Title: Re: Spoiler Tag
Post by: 青山 素子 on February 22, 2009, 11:00:50 PM
Did you install SMF by using Fantastico?
Title: Re: Spoiler Tag
Post by: Pedro Parkero on February 23, 2009, 07:50:40 AM
I don't know what Fantastico is, but I installed it within the Admin Panel of my boards... the Package Manager... :)


Edit: Ok, even though it's still not showing in the Admin Options & the 'Global Board Permissions - Regular Members' section, I can see the 'spoiler' text among the bbc buttons in the editing post page. And it works. It uses the 'hover to show' feature. I just need to change it. And also, since it shows as text among the BBC buttons, how can I make it display an image button?

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.fileden.com%2Ffiles%2F2006%2F12%2F4%2F466344%2Fspidey.gif&hash=677b625d3288a1154b90e39f6cfb427bdbbe5d0e)
Title: Re: Spoiler Tag
Post by: Chandy on February 23, 2009, 08:15:34 AM
Hey Motoko-chan,what's the version that works with 1.1.8 ?

0.6 or 0.6a  ?

Thx in advanced :) !
Title: Re: Spoiler Tag
Post by: L'AltroWeb on February 23, 2009, 08:54:46 AM
Quote from: Chandy on February 23, 2009, 08:15:34 AM
Hey Motoko-chan,what's the version that works with 1.1.8 ?

0.6 or 0.6a  ?

Thx in advanced :) !
Last release is 0.6a now compatible with 2.0rc1 -> The only difference is on package-info.xml
-
Changelog:

2009-02-19 (Motoko-chan):
- Version 0.6a
- Updated to install directly on 2.0 RC1
-
0.6 and/or 0.6a work both with 1.1.x ;)
Title: Re: Spoiler Tag
Post by: Xepernas on February 23, 2009, 09:33:17 AM
Great !

Now I'm just crossing my fingers for a spoiler-in-spoiler-in-spoiler version.
Title: Re: Spoiler Tag
Post by: 青山 素子 on February 23, 2009, 10:46:20 AM
Quote from: Pedro Parkero on February 23, 2009, 07:50:40 AM
I don't know what Fantastico is, but I installed it within the Admin Panel of my boards... the Package Manager... :)

I meant SMF itself, not just the modification. What you are seeing is a problem that occurs when the language files are either corrupted, or you are using a different language that was not updated.

Non-updated language files can come from a few areas:


The first thing to check is your language since it is the culprit 90% of the time. Under the server settings area, check what is selected for "Default Forum Language". It should hopefully be just "English". Check the drop-down and see if you have other language files showing.

If you are using a non-standard theme (one you downloaded separate), then look in the languages folder and see if there is a Modificiations.english.php file. If there is, you will want to copy the contents of the one in the default theme folder and add them to that file.


Quote from: Pedro Parkero on February 23, 2009, 07:50:40 AM
And also, since it shows as text among the BBC buttons, how can I make it display an image button?

Copy the spoiler.gif file from Themes/default/images/bbc to the bbc folder for the theme you are using.
Title: Re: Spoiler Tag
Post by: Chandy on February 23, 2009, 12:03:02 PM
Thx for reply Dark-Wolf   :D.
Title: Re: Spoiler Tag
Post by: Pedro Parkero on February 23, 2009, 07:28:32 PM
Quote from: Motoko-chan on February 23, 2009, 10:46:20 AM

I meant SMF itself, not just the modification. What you are seeing is a problem that occurs when the language files are either corrupted, or you are using a different language that was not updated.

Non-updated language files can come from a few areas:


  • You used Fantastico to install SMF - Fantastico uses "English UTF-8" language files that are often not updated by modifications.
  • You are using a custom theme that has its own Modifications.english.php file - Some themes inadvertently include a copy, or do so purposefully to add some extra text.

The first thing to check is your language since it is the culprit 90% of the time. Under the server settings area, check what is selected for "Default Forum Language". It should hopefully be just "English". Check the drop-down and see if you have other language files showing.

If you are using a non-standard theme (one you downloaded separate), then look in the languages folder and see if there is a Modificiations.english.php file. If there is, you will want to copy the contents of the one in the default theme folder and add them to that file.



Oh I see... So we were actually using "English utf-8"!  :D
Now that I changed it to just plain "English" I can see it in the options (though it appears twice in the "Current Theme" settings page. Should it do that?) and it works properly. Thanks very much for the help! :)

Though the image still won't load after I have put it in the corresponding images/bbc folder. At first it seemed like it would load like the other bbc button images, but after the 'editing post' has fully loaded, it's still in text. :( Why can't it load? ???

Edit: oops, sorry. I just misplaced the gif. My cPanel just keeps copying/moving it just in the images directory. :-[  I solved it by just manually uploading it.  ;)
Title: Re: Spoiler Tag
Post by: KahneFan on February 23, 2009, 11:57:42 PM
How hard would it be to add a "Spoiler text:" field in the admin? I personally am using this mod to show results, so it would be nice if users could use [results] [/results], as well as have the button to unhide showing [results]. I would imagine others might like to change the text to their application as well (if possible).
Title: Re: Spoiler Tag
Post by: ameo on February 24, 2009, 05:56:12 AM
@ KahneFan - It won't be that hard. You'd just have to uninstall it and install it again, with some minor modifications.
For example, in core.xml you'll have to change to this:

<add><![CDATA[
'spoiler' => array('code' => 'spoiler', 'before' => '[results]', 'after' => '[/results]', 'description' => 'spoiler'),
]]></add>


and in your english.xml you might change $txt['spoiler_tag_text'] = 'Spoiler';
to
$txt['spoiler_tag_text'] = 'Results';
Title: Re: Spoiler Tag
Post by: KahneFan on February 24, 2009, 09:50:50 AM
I changed the second part already. In regards to the first, should I change all of these to read "[results]"...

./Sources/Post.php


// remove spoilers if not allowed to see them or post them
if(!allowedTo('spoiler_show') || !allowedTo('spoiler_post'))
$form_message = preg_replace(array('~\n?\[spoiler.*?\].+?\[/spoiler\]\n?~is', '~^\n~', '~\[/spoiler\]~'), '', $form_message);


./Sources/Subs-Editor.php


'spoiler' => array('code' => 'spoiler', 'before' => '[spoiler]', 'after' => '[/spoiler]', 'description' => $txt['bbc_spoiler']),


./Sources/Subs-Post.php

// Are we allowed to post spoilers?
if(preg_match('~\[spoiler\](.+?)\[/spoiler\]~ise',$message))
isAllowedTo('spoiler_post');


Title: Re: Spoiler Tag
Post by: ameo on February 25, 2009, 08:02:44 AM
most likely - yes.
Title: Re: Spoiler Tag
Post by: Amendoim on March 03, 2009, 11:17:54 AM
Hello

I am here with questions, and I am in support of the Portuguese but I can not even say the question ..

This mod in my topic "DILBER MC Theme" gives error ..
It works as I Admistrador, but the members do not work ..
Appears to me an error when click on send a message ..

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg124.imageshack.us%2Fimg124%2F9718%2Fajudasa.th.jpg&hash=fc196b4fa25346ac945bcb5817dbe2482dc6976c) (http://img124.imageshack.us/my.php?image=ajudasa.jpg)

And I do not know how to solve, somebody help me in a

SMF Version: 1.1.8
Language: Portuguese

Thank you!
Title: Re: Spoiler Tag
Post by: 青山 素子 on March 03, 2009, 11:37:13 AM
Can you translate the error message?

Based on what you described, you probably didn't set up permissions for normal members. You need to do that for them to use the tag.
Title: Re: Spoiler Tag
Post by: Amendoim on March 03, 2009, 01:10:45 PM
well, I moved the site to English and now I have the error appears .. says:

"An error has occurred!
Sorry - you do not have the proper permissions to post spoilers. "


But I do not know the permissions to enable members of the spoiler, could you give me a help?

Thank you!
Title: Re: Spoiler Tag
Post by: 青山 素子 on March 03, 2009, 02:17:30 PM
Admin -> Members -> Permissions.

If you want all registered users to have permissions, modify the Regular Members permissions and give access to both post and show spoilers.
Title: Re: Spoiler Tag
Post by: Amendoim on March 03, 2009, 02:36:16 PM
Bem, o probelma era de ter de alterar a linguagem do meu forum de portugues para ingles, e depois ir as permiçoes dos membros como referiu, e activar para poderem postar e verem o spoiler :)

Tanks


Title: Re: Spoiler Tag
Post by: 青山 素子 on March 03, 2009, 03:02:05 PM
If you don't see the labels, copy the contents of Modifications.english.php to Modifications.portuguese.php in the languages folder.
Title: Re: Spoiler Tag
Post by: neilbombd on March 04, 2009, 07:21:47 PM
I'm getting the same error as reported in this post (http://www.simplemachines.org/community/index.php?topic=50261.msg1795343#msg1795343) by gilrod. 

Quote1. Execute Modification ./Sources/ManagePermissions.php Test successful
  1. Add After ./Sources/ManagePermissions.php Test successful

2. Execute Modification ./Sources/ManageSettings.php Test successful
  1. Add After ./Sources/ManageSettings.php Test successful

3. Execute Modification ./Sources/Post.php Test successful
  1. Add Before ./Sources/Post.php Test successful

4. Execute Modification ./Sources/Subs-Editor.php Test successful
  1. Add After ./Sources/Subs-Editor.php Test successful

5. Execute Modification ./Sources/Subs.php Test successful
  1. Add Before ./Sources/Subs.php Test successful
  2. Add After ./Sources/Subs.php Test successful

6. Execute Modification ./Sources/Subs-Post.php Test successful
  1. Add Before ./Sources/Subs-Post.php Test successful

7. Execute Modification languages-20/english.xml Modification parse error
8. Execute Modification languages-20/english.xml Modification parse error
9. Execute Modification themes-20/core-20b4.xml Modification parse error
10. Execute Modification themes-20/core-20b4.xml Modification parse error
11. Execute Modification themes-20/classic.xml Modification parse error
12. Execute Modification themes-20/classic.xml Modification parse error
13. Extract File ./Themes/default//images/bbc/spoiler.gif

Using the latest SMF 2 RC 1 and mod version 6a.  Any ideas?
Title: Re: Spoiler Tag
Post by: Wesly on March 15, 2009, 05:52:26 PM
this mod works with smf 1.1.8 ??????
Title: Re: Spoiler Tag
Post by: 青山 素子 on March 15, 2009, 06:38:11 PM
Yes, it does. It should work with any 1.1 version newer than 1.1.3 (by my tests). Not sure why 1.1.8 didn't get checked on the last update I did of the mod.

Also, I'm looking into the parsing errors, but I haven't been able to find anything yet. My time is limited due to recent illness and work, but I'll try to do some more investigation soon.
Title: Re: Spoiler Tag
Post by: Cal O'Shaw on March 20, 2009, 02:19:42 AM
I have version 0.3.2 installed and have upgraded to SMF 1.1.8, so the package will not uninstall and allow me to install the latest (0.6 I believe).  I don't have any tool nder Vista that will unpack and pack a tar.gz file, so I can't go in and edit the uninstall line to include 1.1.8.

Any chance I can either find a tar.gz tool to allow me to change the file, or a 0.3.2 version with just the uninstall change be made available?

I've gotten most of my MOD packages fixed so that when we do go to 2.0.0 the upgrade process doesn't run into problems.  Actually, other than Spoiler Tag, the only packages that are uninstallable are the various SMF upgrade packages (1.1.1, 1.1.2, 1.1.3, etc) and I am guessing I can delete those now, yes?

Grazie,

Cal
Title: Re: Spoiler Tag
Post by: 青山 素子 on March 20, 2009, 08:33:45 PM
Quote from: Cal O'Shaw on March 20, 2009, 02:19:42 AM
I have version 0.3.2 installed and have upgraded to SMF 1.1.8, so the package will not uninstall and allow me to install the latest (0.6 I believe).  I don't have any tool nder Vista that will unpack and pack a tar.gz file, so I can't go in and edit the uninstall line to include 1.1.8.

Any chance I can either find a tar.gz tool to allow me to change the file, or a 0.3.2 version with just the uninstall change be made available?

7-Zip (http://www.7-zip.org/) is a great tool to use for managing all kinds of archives. However, you don't need to edit anything. Use the version_emulate "trick" to make the package manager report a different version than you have installed. That will get you back an uninstall link. (Add version_emulate=x.x.x to the end of the package manager URL. Replace the x with the version you want to pretend to be.)

However, if you are not currently having problems with the mod, you don't need to install anything new. Very little has changed in regards to how it functions.


Quote from: Cal O'Shaw on March 20, 2009, 02:19:42 AM
I've gotten most of my MOD packages fixed so that when we do go to 2.0.0 the upgrade process doesn't run into problems.  Actually, other than Spoiler Tag, the only packages that are uninstallable are the various SMF upgrade packages (1.1.1, 1.1.2, 1.1.3, etc) and I am guessing I can delete those now, yes?

If they are successfully installed, you can delete the SMF update packages. You shouldn't have an uninstall link with them, however, as they don't contain uninstall information.
Title: Re: Spoiler Tag
Post by: Xepernas on March 21, 2009, 08:40:00 AM
Quote from: Motoko-chan on February 04, 2009, 10:51:37 AM
Quote from: Xepernas on February 03, 2009, 04:46:38 PM
Great mod (being able to select how it looks is a great idea), however it doesn't seem to handle the TOTALLY VERY EXTREMELY IMPORTANT "spoilers within spoilers" very well.

I've honestly never seen that kind of nesting used. However, I added it as a feature enhancement request to my private tracker and will look into it as soon as I have time.

Just to keep updated : is there still a chance of this being implemented anytime soon, or has the idea been abandonned a bit ?
Title: Re: Spoiler Tag
Post by: tugori on March 21, 2009, 09:29:39 AM
Hi,

I am using this mod in SMF 1.1.8. It perfectly suits my needs. However I have got a small problem. My users can posts spoilers in normal posts but if they want to post spoilers in their signatures SMF says that they lack permission.

I am using version 0.6a of Spoiler Tag in SMF 1.1.8 and german language.

I hope you can help me with my problem.


Greetings from germany,
tugori
Title: Re: Spoiler Tag
Post by: 青山 素子 on March 21, 2009, 12:43:35 PM
Quote from: Xepernas on March 21, 2009, 08:40:00 AM
Just to keep updated : is there still a chance of this being implemented anytime soon, or has the idea been abandonned a bit ?

Between an immediate family member having major surgery (and helping with their ongoing recovery) and me getting ill, I haven't had a chance to work on adding features yet.


Quote from: tugori on March 21, 2009, 09:29:39 AM
I am using this mod in SMF 1.1.8. It perfectly suits my needs. However I have got a small problem. My users can posts spoilers in normal posts but if they want to post spoilers in their signatures SMF says that they lack permission.

That isn't supported currently.
Title: Re: Spoiler Tag
Post by: tugori on March 21, 2009, 01:39:21 PM
That is a pity! Maybe you will support that feature in future?
Title: Re: Spoiler Tag
Post by: 青山 素子 on March 21, 2009, 11:58:58 PM
Yes, eventually when I get the time to implement these things.
Title: Re: Spoiler Tag
Post by: easyrider77 on April 05, 2009, 06:06:59 AM
Great mod,

Question:  i want to remove the text info "click to show/hide"

And change the "spoiler" text in button with "Click", is
possible..?

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Ff.imagehost.org%2F0976%2FClipboard02.png&hash=8beb8fadcea1e1367c994d898a5e03def71d1f51)

Is also possible to add something like border around the spoiler body..?

SMF 1.1.8 / default theme and/or "Pro theme"




Regards

EasyRider



Title: Re: Spoiler Tag
Post by: 青山 素子 on April 05, 2009, 11:43:51 PM
Quote from: easyrider77 on April 05, 2009, 06:06:59 AM
Question:  i want to remove the text info "click to show/hide"

And change the "spoiler" text in button with "Click", is
possible..?

Yes, edit Modifications.english.php in the Themes/default/languages folder.


Quote from: easyrider77 on April 05, 2009, 06:06:59 AM
Is also possible to add something like border around the spoiler body..?

That's controlled by CSS, so edit style.css.
Title: Re: Spoiler Tag
Post by: easyrider77 on April 06, 2009, 05:41:36 AM
Hi Motoko thanks for your reply,

The Modifications.english.php file is like this:

<?php
// Version: 1.1; Modifications

?>



What i must to edit..? look like empty to me..  :-[
Title: Re: Spoiler Tag
Post by: easyrider77 on April 06, 2009, 05:55:08 AM
Quote from: Motoko-chan on April 05, 2009, 11:43:51 PM

That's controlled by CSS, so edit style.css.



About that, is ok, i just see it in preview post were is not border there.  :)
Title: Re: Spoiler Tag
Post by: 青山 素子 on April 06, 2009, 11:16:31 AM
Quote from: easyrider77 on April 06, 2009, 05:41:36 AM
What i must to edit..? look like empty to me..  :-[

Ah, you must be using SMF 1.1. The locations are different there (mainly for legacy reasons). The lines you want to edit are in index.english.php.


Quote from: easyrider77 on April 06, 2009, 05:55:08 AM
About that, is ok, i just see it in preview post were is not border there.  :)

Oh, okay.


Also, please don't double-post. The modify link exists for a reason.
Title: Re: Spoiler Tag
Post by: easyrider77 on April 10, 2009, 08:53:23 AM
Thanks for your reply Motoko..!

1 more question: I want to change the spoiler body color..

What style (css) file i must to change for default and for costum theme..?

And for what part (in "xxx.css") i have to search and edit/change..?  :-\


Regards,

EasyRider

Title: Re: Spoiler Tag
Post by: Lex-BY on May 07, 2009, 05:01:01 PM
Quote from: Motoko-chan on February 04, 2009, 10:51:37 AM
Quote from: Xepernas on February 03, 2009, 04:46:38 PM
Great mod (being able to select how it looks is a great idea), however it doesn't seem to handle the TOTALLY VERY EXTREMELY IMPORTANT "spoilers within spoilers" very well.

I've honestly never seen that kind of nesting used. However, I added it as a feature enhancement request to my private tracker and will look into it as soon as I have time.
"spoilers within spoilers"...
Actually, this is almost standard at some kind of russian forums, for example (I'm from russia). So this is really necessary feature for me and lots of people who just can't post here because they don't speak english.
In forum engine, "spoiler inside spoiler" is the only way to make text logically classified inside one post.
This is what I'm waiting for almost a year and this is what many people do need. So, please, add this feature as soon as possible. :)

BtW... Is there any way to make "link"spoilers (type 1) in revealed mode look like "hover" spoilers? So that the "Spoiler: hover to show" text would be inside border of frame, but not at the top of appearing text with no borders.

BtW #2. Is there any way to completly remove the "Spoiler: " prefix, if user defines his own spoiler name (writes something after "=" sign in 1st spoiler tag)? I didn't find this obviously basic option.
Title: Re: Spoiler Tag
Post by: LHW on May 08, 2009, 05:40:22 AM
Hello!  I'm using SMF v1.1.8, and just installed v0.6a of this Spoiler Mod.

Once I figured out that there were Permissions to be turned on (D'Oh!), both Globally and Locally, they showed up fine, with one exception...

When viewing the Recent Posts page, only Admins can see the Spoilers: they don't show for anyone else.  However, if you go INTO the thread, they show up fine for everyone.

Any ideas why they aren't showing up on the Recent Posts page for the average users and moderators??

Thanks!
Title: Re: Spoiler Tag
Post by: MoskmaN on May 19, 2009, 04:04:23 AM
http://www.expresoanime.com.ar/ModSettings.rar

I have 3 references to :

// Saving?
   if (isset($_GET['save']))


Where i put the :

'',
         array('select', 'defaultSpoilerStyle', array(
            '1' => &$txt['spoiler_tag_onhoverovershow'],
            '2' => &$txt['spoiler_tag_onlinkclickshow'],
            '3' => $txt['spoiler_tag_onbuttonclickshow']
         )),


I have the 8: Undefined index: spoiler_tag_onbuttonclickshow  <---- this error occurs when entering on Configure and Options.

8: Undefined index: spoiler_tag_default
Archivo: /var/www/htdocs/expresoanime.com.ar/httpdocs/foro/Themes/default/Settings.template.php (settings sub template - eval?)
Línea: 218                                                                                    <--- This error occurs when entering on Actual Theme

SMF v1.1.8 and Spoiler Tag 0.6a   i tried 0.6 with the same error.
thanx.
Title: Re: Spoiler Tag
Post by: Deal on May 26, 2009, 09:22:28 AM
Nice mod. Just wonder if you have considered creating a 4th option for the spoiler being a timed event where the display of the spoil code occurs only after the duration of the timer expires.

Possible uses:  People having a contest where they don't want the answer to be displayed until after a certain time period.

Something a little more complex might be that the OP who creates the spoil code selects that they want all responses to their thread to display only after a certain time period. So rather then the text within their post being tagged as spoiled its the responses to the posts that can't be seen by anyone besides the responder until the spoil timer is over.  Again to be used in contest type threads or discussion threads about how to handle certain situations where you don't want other peoples opinions to have any influence.

Title: Re: Spoiler Tag
Post by: 青山 素子 on June 08, 2009, 12:14:27 AM
Timed spoilers would be somewhat difficult to implement in raw bbcode, but I can look into it. It'll be very low priority, however.

As for those wondering about nested spoilers, it'll take some time. Because of the way this was originally set up, I'm going to need to do some examination of the best way to implement this. It might be as simple as some regular expression parsing (while leaving the current handling method in place) or re-writing that too.


Quote from: Essential Knight on May 08, 2009, 05:40:22 AM
When viewing the Recent Posts page, only Admins can see the Spoilers: they don't show for anyone else.  However, if you go INTO the thread, they show up fine for everyone.

Any ideas why they aren't showing up on the Recent Posts page for the average users and moderators??

Probably the same reason they won't show in signatures either. I'll be looking into it when I have time.


Quote from: easyrider77 on April 10, 2009, 08:53:23 AM
What style (css) file i must to change for default and for costum theme..?

It's in style.css. Find the spoiler classes, that's where you will find all the values.
Title: Re: Spoiler Tag
Post by: robotokon on June 08, 2009, 01:47:07 AM
Hi,

I've used this mod with SMF 2.0 RC1-1 no problems previously, but I decided to re-install when some members (in a specific member group) said they couldn't use the spoiler tags.  After re-installing, only I (the admin) can use the tags even though I gave permission to every group for showing and posting spoilers, as well as using the spoiler bbcode.

What could be the problem? :/  (And how can I fix it?)  Thanks for any help in advance.
Title: Re: Spoiler Tag
Post by: 青山 素子 on June 08, 2009, 02:42:59 AM
robotokon:

Try running a group permissions report (It's under Admin -> Maintenance -> Reports) and make sure that it shows "Allow" for those two permissions. If it does, check your board permissions and see if they are set to local or global.




Update on Nested Quotes Support:

I've posted a bug report concerning the issue I found when investigating nesting support: Nested Identical BBCode Tags Broken in unparsed_content (http://www.simplemachines.org/community/index.php?topic=316151).

I'll look for ways around the issue when I get time. I have some ideas to try out. Not tonight, however, as I need to sleep so I can get to my job tomorrow.
Title: Re: Spoiler Tag
Post by: robotokon on June 08, 2009, 12:22:49 PM
Quote from: Motoko-chan on June 08, 2009, 02:42:59 AM
robotokon:

Try running a group permissions report (It's under Admin -> Maintenance -> Reports) and make sure that it shows "Allow" for those two permissions. If it does, check your board permissions and see if they are set to local or global.

Neither post or show spoiler permissions are listed there...  :-[  I'm sure the mod has been installed since I can use it as an admin.

Edit: Problem has been solved by overriding the previous set permissions with a new permissions group.  Didn't work no matter how many times I edit the original permissions within the existing groups but oh well.  Thanks for your help Motoko-chan.
Title: Re: Spoiler Tag
Post by: 青山 素子 on June 09, 2009, 02:43:31 PM
The reason you couldn't see the permission on the global report is because it's set as a board permission. Silly me. Run the Board Permissions report and see if the spoiler permissions are set as "Allow" properly.

One way you could do a global reset would be to make a direct database query and wipe any trace of the permission from the correct table. I'd be happy to help with that if you are interested in that option.
Title: Re: Spoiler Tag
Post by: 青山 素子 on June 15, 2009, 04:00:47 AM
Help guide development of this mod. Vote on if the permission system should be kept! (http://www.simplemachines.org/community/index.php?topic=317701)
Title: Re: Spoiler Tag
Post by: Arveles on June 23, 2009, 12:56:15 PM
Turkish Translate:
Modifications.turkish.php
// Spoiler Mod
// Permission Strings
$txt['permissiongroup_spoiler'] = 'Açılır Kapanır Bilgi İzinleri';
$txt['permissiongroup_simple_spoiler'] = 'Açılır Kapanır Bilgiler gönderebilme ve görebilme yetkileri';
$txt['permissionname_spoiler_show'] = 'Açılır Kapanır Bilgileri Görebilir';
$txt['permissionhelp_spoiler_show'] = 'Bu izin verilirse kullanıcı açılır kapanır bilgileri görebilecek';
$txt['permissionname_spoiler_post'] = 'Açılır Kapanır Bilgileri Gönderebilir';
$txt['permissionhelp_spoiler_post'] = 'Kullanıcılar Açılır Kapanır Bilgiler Gönderebilirler';

// BBC Strings
$txt['bbc_spoiler'] = 'Açılır Kapanır Bilgi Ekle';

// Spoiler Post Permission Error Message
$txt['cannot_spoiler_post'] = 'Üzgünüm, Açılır Kapanır Bilgiler Girmek İçin Yetkiniz Yok.';

// Post View Text
$txt['spoiler_tag_text'] = 'Açılır Kapanır Bilgi';
$txt['spoiler_tag_click_info'] = '(Bilgiyi görmek için butona tıklayınız.)';
$txt['spoiler_tag_hover_info'] = '(Bilgiyi görmek için imleci yazı üzerine getiriniz.)';

// Mod Settings
$txt['defaultSpoilerStyle'] = 'Açılır Kapanır Bilgi Gösterim Şekli';
$txt['spoiler_tag_onhoverovershow'] = 'İmleç Üzerine Gelince Göster';
$txt['spoiler_tag_onlinkclickshow'] = 'Linke Tıklayınca Göster';
$txt['spoiler_tag_onbuttonclickshow'] = 'Butona Tıklayınca Göster';


// Extra Settings String for per-theme selection
$txt['spoiler_tag_label'] = 'Açılır Kapanır Bilgi Gösterim Şekli';
$txt['spoiler_tag_desc'] = 'Açılır Kapanır Bilgilerin Temada Nasıl Gösterileceğini Seç.';
$txt['spoiler_tag_default'] = '(öntanımlı ayarlar)';


Help.turkish.php
// Spoiler Tag Mod
$helptxt['defaultSpoilerStyle'] = 'Varsayılan ayarlar gösterilir.';
Title: Re: Spoiler Tag
Post by: afterdk on July 10, 2009, 12:21:09 AM
I'm having some problems. If I put an image tag inside the spoiler tag, I can't see the image :s
Example (it doesn't work):

[spoiler][img]imageurl[/img][/spoiler]

Sorry my english :$ and thanks
Title: Re: Spoiler Tag
Post by: trebul on July 15, 2009, 04:52:16 PM
I can't seem to get this to install with 1.1.10. I get the following, "The package you are trying to download or install is either corrupt or not compatible with this version of SMF."
Title: Re: Spoiler Tag
Post by: apTyaH on July 16, 2009, 07:11:44 PM
I install mod Enhanced Quick Reply 2.0 custom.simplemachines.org/mods/index.php?mod=883 (http://custom.simplemachines.org/mods/index.php?mod=883)
but spoiler tag not wieved in there, how-to make spoiler wieved in quick reply?

How-to change font size and make spoiler be in textline with other text?
Title: Re: Spoiler Tag
Post by: zanyuki on July 17, 2009, 02:49:56 AM
Hi, good job so far.

I was wondering if we'll have a compatible release with RC1.2 for this mod? It doesn't seem to work with the new SMF version.
Title: Re: Spoiler Tag
Post by: 青山 素子 on July 17, 2009, 01:12:33 PM
It should work fine, just change the version SMF reports. You can do this down in the bottom-right of the package display page.

I'll have a package with an updated version list up at some point, but it will likely be at least a week because of my workload.
Title: Re: Spoiler Tag
Post by: cele on July 21, 2009, 11:40:55 AM
How can i make it work for 1.1.10?
Please
Title: Re: Spoiler Tag
Post by: 青山 素子 on July 21, 2009, 04:05:03 PM
Quote from: cele on July 21, 2009, 11:40:55 AM
How can i make it work for 1.1.10?

Did you try installing it? It should install just fine.
Title: Re: Spoiler Tag
Post by: cele on July 21, 2009, 05:56:43 PM
yeah, that was the first thing i did..... but its says that it's not compatible with my version.
Title: Re: Spoiler Tag
Post by: 青山 素子 on July 21, 2009, 06:20:01 PM
Quote from: cele on July 21, 2009, 05:56:43 PM
yeah, that was the first thing i did..... but its says that it's not compatible with my version.

Looks like you found a bug in SMF. The package instructions say "1.1.2-1.1.99", but it seems 1.1.10 isn't included. Might be an issue with the double-digit third part.

For now, use the "version_emulate" trick to install. I'll fix to a more compatible method of version specifying when I release the next mod update.

Edit: With a bit of investigation by a fellow team member, the version check seems to be going digit-at-a-time. Since 1 isn't between 2 and 9, it fails. For now, use version_emulate until I update the modification.
Title: Re: Spoiler Tag
Post by: Cal O'Shaw on July 21, 2009, 07:27:06 PM
Well, "View Single PM" has the same code problem.  Don't know if someone wants to tell Sleepy and post a notice somewhere.

MODs that use "1.1.*" are okay.

Cal
Title: Re: Spoiler Tag
Post by: Cal O'Shaw on July 22, 2009, 02:09:35 AM
I opened a Support topic here (http://www.simplemachines.org/community/index.php?topic=325849.0) regarding processing "1.1.99".
Title: Re: Spoiler Tag
Post by: Ehemm on July 22, 2009, 07:40:03 AM
not ready for SMF 2.0 RC 1-2 yet ?
thanks
Title: Re: Spoiler Tag
Post by: 青山 素子 on July 22, 2009, 01:05:20 PM
I've been busy on some restructuring and also a really big project at work, so I haven't had a chance to post an updated package. If you want to use the current release, it's a really simple solution to install:

Quote from: Motoko-chan on July 17, 2009, 01:12:33 PM
It should work fine, just change the version SMF reports. You can do this down in the bottom-right of the package display page.
Title: Re: Spoiler Tag
Post by: Ehemm on July 23, 2009, 01:46:11 AM
first
Quote from: Motoko-chan on July 22, 2009, 01:05:20 PM
I've been busy on some restructuring and also a really big project at work, so I haven't had a chance to post an updated package. If you want to use the current release, it's a really simple solution to install:

Quote from: Motoko-chan on July 17, 2009, 01:12:33 PM
It should work fine, just change the version SMF reports. You can do this down in the bottom-right of the package display page.

1st step is work, then when i press install button, still not working :(
Title: Re: Spoiler Tag
Post by: uaFlash on July 25, 2009, 07:11:39 AM
Update it to smf 1.1.10 please :)
Title: Re: Spoiler Tag
Post by: Costa on July 25, 2009, 07:17:50 AM
Quote from: uaFlash on July 25, 2009, 07:11:39 AM
Update it to smf 1.1.10 please :)

Works on smf 1.1.10 :)

Farewell
- Costa
Title: Re: Spoiler Tag
Post by: uaFlash on July 25, 2009, 08:25:50 AM
Quote from: Costa on July 25, 2009, 07:17:50 AM
Quote from: uaFlash on July 25, 2009, 07:11:39 AM
Update it to smf 1.1.10 please :)

Works on smf 1.1.10 :)

Farewell
- Costa
nope. I download all of files and forum can't install it as plugin.
Title: Re: Spoiler Tag
Post by: Costa on July 25, 2009, 02:10:15 PM
Puts this inside the package :)
Title: Re: Spoiler Tag
Post by: 青山 素子 on July 25, 2009, 03:20:05 PM
Instead of tearing apart the package why not use version_emulate?
Title: Re: Spoiler Tag
Post by: Costa on July 25, 2009, 03:47:00 PM
Yep, you're rignt Moyoko-chan, i forgot that feature :P
Title: Re: Spoiler Tag
Post by: MATTEK on July 25, 2009, 05:19:39 PM
Do I install 6. 6a. or 6b.?
Title: Re: Spoiler Tag
Post by: Costa on July 25, 2009, 05:24:07 PM
The last one, 6b :)
Title: Re: Spoiler Tag
Post by: uaFlash on July 26, 2009, 12:31:51 PM
Quote from: Costa on July 25, 2009, 05:24:07 PM
The last one, 6b :)
Error in XML Version
<?xml version="1.1"?>
This package doesn't appear to support your SMF version.
Title: Re: Spoiler Tag
Post by: 青山 素子 on July 26, 2009, 01:19:46 PM
That's the XML declaration, and it's perfectly fine. The problem is SMF's version range check. Use version_emulate to install.
Title: Re: Spoiler Tag
Post by: uaFlash on July 29, 2009, 09:10:03 AM
Quote from: Motoko-chan on July 26, 2009, 01:19:46 PM
That's the XML declaration, and it's perfectly fine. The problem is SMF's version range check. Use version_emulate to install.
So how to use it?
Title: Re: Spoiler Tag
Post by: dilila on July 29, 2009, 03:15:52 PM
Quote from: uaFlash on July 29, 2009, 09:10:03 AM
Quote from: Motoko-chan on July 26, 2009, 01:19:46 PM
That's the XML declaration, and it's perfectly fine. The problem is SMF's version range check. Use version_emulate to install.
So how to use it?


In the Package manager you will see a Advanced link that will allow you to emulate a different version of smf than you have installed and will allow you to install your outdated packages.



As far as the spoiler mod goes, I love it and want more of it.....only thing I would like to see is that members can post spoilers in there sig.  Only ones that can at this point regardless of permissions is Admins.  If that got implemented, than the spoiler tag will be the king of spoiler tags.  Oh and also nested spoilers :)
Title: Re: Spoiler Tag
Post by: uaFlash on July 31, 2009, 08:08:38 AM
Quote from: dilila on July 29, 2009, 03:15:52 PM
Quote from: uaFlash on July 29, 2009, 09:10:03 AM
Quote from: Motoko-chan on July 26, 2009, 01:19:46 PM
That's the XML declaration, and it's perfectly fine. The problem is SMF's version range check. Use version_emulate to install.
So how to use it?


In the Package manager you will see a Advanced link that will allow you to emulate a different version of smf than you have installed and will allow you to install your outdated packages.



As far as the spoiler mod goes, I love it and want more of it.....only thing I would like to see is that members can post spoilers in there sig.  Only ones that can at this point regardless of permissions is Admins.  If that got implemented, than the spoiler tag will be the king of spoiler tags.  Oh and also nested spoilers :)
can't see. Any screenshot?
Title: Re: Spoiler Tag
Post by: 青山 素子 on July 31, 2009, 01:57:06 PM
Quote from: uaFlash on July 31, 2009, 08:08:38 AM
can't see. Any screenshot?

That's because you are using the SMF 1.1 series. The graphical box didn't get put in until the 2.0 series.

Since you seem to be helpless to search for "version_emulate", I'll just repeat the instructions I've given countless times:

When you are at the package manager screen listing all the packages, add ";version_emulate=1.1.9" at the end of the URL.
Title: Re: Spoiler Tag
Post by: uaFlash on July 31, 2009, 03:41:48 PM
Quote from: Motoko-chan on July 31, 2009, 01:57:06 PM
Quote from: uaFlash on July 31, 2009, 08:08:38 AM
can't see. Any screenshot?

That's because you are using the SMF 1.1 series. The graphical box didn't get put in until the 2.0 series.

Since you seem to be helpless to search for "version_emulate", I'll just repeat the instructions I've given countless times:

When you are at the package manager screen listing all the packages, add ";version_emulate=1.1.9" at the end of the URL.
Something like this?
http://xx.xx/index.php?action=packages;sa=browse;version_emulate=1.1.9 ???
Title: Re: Spoiler Tag
Post by: 青山 素子 on July 31, 2009, 05:30:28 PM
Why not try and see if that works? It might be faster than asking. There isn't much you can break in SMF with a bad URL.

And yes, that is correct.
Title: Re: Spoiler Tag
Post by: dgf on August 02, 2009, 01:25:16 PM
Can't seem to install this on the latest SMF version (RC 2)
Title: Re: Spoiler Tag
Post by: 青山 素子 on August 02, 2009, 02:34:48 PM
Quote from: dgf on August 02, 2009, 01:25:16 PM
Can't seem to install this on the latest SMF version (RC 2)

Hopefully you mean RC 1.2. Unfortunately, I can't read minds or be omniscient, so any error messages would be helpful.
Title: Re: Spoiler Tag
Post by: dgf on August 03, 2009, 06:16:21 PM
Quote from: Motoko-chan on August 02, 2009, 02:34:48 PM
Quote from: dgf on August 02, 2009, 01:25:16 PM
Can't seem to install this on the latest SMF version (RC 2)

Hopefully you mean RC 1.2. Unfortunately, I can't read minds or be omniscient, so any error messages would be helpful.

Sorry about that, I meant RC 1.2.

Title: Re: Spoiler Tag
Post by: 青山 素子 on August 03, 2009, 06:39:12 PM
Any error messages you get would still be awfully helpful. If you haven't tried emulating the version, you should try that first.
Title: Re: Spoiler Tag
Post by: fox0r on August 06, 2009, 02:51:17 PM
I tried to emulate using your above instructions with the URL thing, and I get this:


Type  Action  Description
* 1. Execute Modification ./Sources/Subs.php Test failed
1. Add Before ./Sources/Subs.php Test successful
2. Add After ./Sources/Subs.php Test failed
* 2. Execute Modification ./Sources/ManagePermissions.php Test failed
1. Add After ./Sources/ManagePermissions.php Test failed
3. Execute Modification ./Sources/ModSettings.php File not found
* 4. Execute Modification ./Sources/Post.php Test successful
1. Add After ./Sources/Post.php Test successful
* 5. Execute Modification ./Sources/Subs-Post.php Test successful
1. Add Before ./Sources/Subs-Post.php Test successful
* 6. Execute Modification ./Themes/default/style.css Test successful
1. Add Before ./Themes/default/style.css Test successful
* 7. Execute Modification ./Themes/default/Settings.template.php Test successful
1. Add After ./Themes/default/Settings.template.php Test successful
* 8. Execute Modification ./Themes/default/Post.template.php Test failed
1. Add After ./Themes/default/Post.template.php Test failed
* 9. Execute Modification ./Themes/classic/style.css Test successful
1. Add Before ./Themes/classic/style.css Test successful
* 10. Execute Modification ./Themes/default/languages/index.english.php Test successful
1. Add Before ./Themes/default/languages/index.english.php Test successful
* 11. Execute Modification ./Themes/default/languages/Themes.english.php Test successful
1. Add Before ./Themes/default/languages/Themes.english.php Test successful
* 12. Execute Modification ./Themes/default/languages/ManagePermissions.english.php Test successful
1. Add Before ./Themes/default/languages/ManagePermissions.english.php Test successful
* 13. Execute Modification ./Themes/default/languages/ModSettings.english.php Test successful
1. Add Before ./Themes/default/languages/ModSettings.english.php Test successful
* 14. Execute Modification ./Themes/default/languages/Help.english.php Test successful
1. Add Before ./Themes/default/languages/Help.english.php Test successful
* 15. Execute Modification ./Themes/default/languages/Errors.english.php Test successful
1. Add Before ./Themes/default/languages/Errors.english.php Test successful
16. Execute Modification ./Themes/default/languages/index.portuguese.php Skipping file
17. Execute Modification ./Themes/default/languages/Themes.portuguese.php Skipping file
18. Execute Modification ./Themes/default/languages/index.german.php Skipping file
19. Execute Modification ./Themes/default/languages/Themes.german.php Skipping file
20. Execute Modification ./Themes/default/languages/index.french.php Skipping file
21. Execute Modification ./Themes/default/languages/Themes.french.php Skipping file
22. Execute Modification ./Themes/default/languages/index.spanish.php Skipping file
23. Execute Modification ./Themes/default/languages/Themes.spanish.php Skipping file
24. Extract File ./Themes/default/images/bbc/spoiler.gif


Any ideas?
Title: Re: Spoiler Tag
Post by: 青山 素子 on August 06, 2009, 07:00:24 PM
Are you sure you are using the right version in your emulate? That "File Not Found" for ModSettings.php means it is trying to make the edits for the SMF 1.1 series on a 2.0 install.
Title: Re: Spoiler Tag
Post by: Kyrna on August 21, 2009, 07:52:15 PM
I'm using 1.1.10. I tried what I could figure out of the "version_emulate trick" and I still get the following message when I click on Apply Mod:
"The package you are trying to download or install is either corrupt or not compatible with this version of SMF."

The mods currently installed are:
1.     Lots_o_Smileys     1.0
2.    Display Signatures Only Once Per Page    1.0.2

Does anyone have any ideas?
Title: Re: Spoiler Tag
Post by: highlawn on August 25, 2009, 05:46:09 PM
Apologies for coming in late on this. I wish to install a Spoiler for my 1.1.10 version. I found one called spoiler tag which required faster parsecode. Faster parsecode just didn't seem to be an up to date item to me so I won't install it - it's instruuctions do not match my subs.php...

So, I looked on here and I found this - which seems to be a different mod (number 195 instead of 50).

So, I tried getting the manual instructions for 1.1.10 and it stated

QuoteThis package doesn't appear to support your SMF version.
:(

Yet, looking here - it would seem that there is some support. Could someone clarify and let me know if it is OK for 1.1.10 and then a quick guide for what I need to change.

I don't wish to do this via any automated process as I have so many mods to SMF that I find it far better to do it manually and then (a) I understand the changes better and (b) I can take cognisance of the other changes to ensure that all works. If I just let the package manager fire off it will likely not work and then I'd have to do things manually in any case.

So, again - sorry if I'm asking for repeat info - but I promise that if you do tell me I'll then go away and make it work!

Many Thanks
Title: Re: Spoiler Tag
Post by: 青山 素子 on August 25, 2009, 06:08:23 PM
It works fine on 1.1.10. An error in the package parser is keeping the current version string from working. I'm holding that fix to be bundled with a few other changes.

To install manually, use the manual instructions for 1.1.9.
Title: Re: Spoiler Tag
Post by: highlawn on August 25, 2009, 07:02:55 PM
Ripper - works fine. One small thing though, because I installed all the pieces manually from the 1.1.9 spec - it doesn't appear in my list of packages with the files etc. How might I go about correcting that?

Many Thanks - and a nice mod. I think the hover is the best of the three options if of interest to you.

Title: Re: Spoiler Tag
Post by: 青山 素子 on August 25, 2009, 07:08:39 PM
Quote from: highlawn on August 25, 2009, 07:02:55 PM
Ripper - works fine. One small thing though, because I installed all the pieces manually from the 1.1.9 spec - it doesn't appear in my list of packages with the files etc. How might I go about correcting that?

Since you installed it manually, it won't. If you really want it to show up, edit the installed.list file.
Title: Re: Spoiler Tag
Post by: highlawn on August 25, 2009, 07:16:47 PM
OK - thanks. One other thing and sorry to be a pain! I have found the place to change the style (hover, link, button) but I can't find the permissions settings. I would like everyone to be able to use the facility by default.

Many Thanks

Sorry - IGNORE THIS - I've found it. Just needed to open my eyes...
Title: Re: Spoiler Tag
Post by: Kyrna on August 25, 2009, 07:32:04 PM
Quote from: Kyrna on August 21, 2009, 07:52:15 PM
I'm using 1.1.10. I tried what I could figure out of the "version_emulate trick" and I still get the following message when I click on Apply Mod:
"The package you are trying to download or install is either corrupt or not compatible with this version of SMF."

The mods currently installed are:
1.     Lots_o_Smileys     1.0
2.    Display Signatures Only Once Per Page    1.0.2

Does anyone have any ideas?
Geez, I don't even get a "Sorry, no ideas"? I'll just use another mod instead.
Title: Re: Spoiler Tag
Post by: highlawn on August 26, 2009, 04:01:33 PM
Read the last four or five posts. I've just installed it on 1.1.10 no probs. I used the 1.1.9 instructions and did it manually. Took about 30 minutes and works a treat.
Title: Re: Spoiler Tag
Post by: 青山 素子 on August 26, 2009, 08:05:24 PM
Quote from: Kyrna on August 25, 2009, 07:32:04 PM
Geez, I don't even get a "Sorry, no ideas"? I'll just use another mod instead.

Sorry, I'm actually on hiatus right now (as you can see on the left) and probably shouldn't be even posting here right now (I'm at work and have a deadline pending, hence the hiatus). If version_emulate gives you the "corrupt or not compatible" message either you're feeding the wrong string to it, or the download did get corrupted and you need to re-download.
Title: Re: Spoiler Tag
Post by: creatures on September 04, 2009, 04:15:51 PM
For seeing spoiler icon in only permitted boards...
open Themes\default\post.template.php

find
foreach ($context['bbc_tags'][1] as $image => $tag)

replace

// Is this tag disabled?
if (!empty($context['disabled_tags'][$tag['code']]))
continue;

to

// Is this tag disabled?
if (!empty($context['disabled_tags'][$tag['code']]))
continue;

if(!allowedTo('spoiler_post') && $tag['code']=='spoiler')
continue;


It is nice trick, I think. You need to change $tag['code']=='your_spoiler_code') if you use other tag then "spoiler".

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg199.imageshack.us%2Fimg199%2F4194%2Fspoilerl.jpg&hash=141640ebf5d2a306f6080efa958e764de7b7d4f3)

I hope to see that code in the next version...
Title: Re: Spoiler Tag
Post by: Kyrna on September 04, 2009, 06:18:20 PM
Checking into the post above, I have discovered why no spoiler button shows; there's no code for it in post.template.php.

I added it in by hand, going to:
         'list' => array('code' => 'list', 'before' => '[list]\n[li]', 'after' => '[/li]\n[li][/li]\n[/list]', 'description' => $txt[261]),
and adding this after it:
'spoiler' => array('code' => 'spoiler', 'before' => '[spoiler]', 'after' => '[/spoiler]', 'description' => 'spoiler'),

If anyone else has the same problem I had, hopefully this answer will work for you. :)
Title: Re: Spoiler Tag
Post by: PetrusCorporated on September 10, 2009, 12:16:50 PM
Hello there! I've found a problem in my comunity with this mod. Average Users, Admins, guests... everybody can see and post spoilers, but Moderators can't! Moderators don't see the Spoiler, and can't post spoilers because if they do so, the system throws a blank error (no text in the error message).

EDIT: Fixed. I reinstalled :P
Title: Re: Spoiler Tag
Post by: LightDiet on September 12, 2009, 06:52:05 PM
spoilers do not show in pms and on profiles sometimes, possible to fix somewhere?? :(
Title: Re: Spoiler Tag
Post by: 青山 素子 on September 12, 2009, 10:00:33 PM
Not on the current configuration. Spoilers will only work in posts.
Title: Re: Spoiler Tag
Post by: Broken_System on September 14, 2009, 06:13:46 PM
Could you please update this mod to 1.1.10 SMF version?

I don't speak a lot of english, but i hope you understand me
Title: Re: Spoiler Tag
Post by: 青山 素子 on September 14, 2009, 06:37:22 PM
Quote from: Broken_System on September 14, 2009, 06:13:46 PM
Could you please update this mod to 1.1.10 SMF version?

It supports 1.1.10
Title: Re: Spoiler Tag
Post by: Broken_System on September 14, 2009, 06:59:03 PM
Quote from: Motoko-chan on September 14, 2009, 06:37:22 PM
It supports 1.1.10

Oh yes i saw it in the mod's page but when i try to install it (in my 1.1.9, updated to 1.1.10 SMF) it says that the parameters of intall weren't set  :(

I don't know if it's a error of my forum or it's an error of the mod
Title: Re: Spoiler Tag
Post by: 青山 素子 on September 14, 2009, 07:24:49 PM
It's a bug in SMF and how it determines versions. Have the package manager emulate version 1.1.9 and you'll be fine.
Title: Re: Spoiler Tag
Post by: FireDitto on September 15, 2009, 06:48:09 PM
Quote from: Motoko-chan on July 17, 2009, 01:12:33 PM
It should work fine, just change the version SMF reports. You can do this down in the bottom-right of the package display page.

I'll have a package with an updated version list up at some point, but it will likely be at least a week because of my workload.

Sorry, wah? ... What do I do and where do I go to make this work for SMF 2.0 RC1.2 ??
Title: Re: Spoiler Tag
Post by: SilverKnight on September 25, 2009, 08:52:57 PM
The package you are trying to download or install is either corrupt or not compatible with this version of SMF........

On all 3 packages....
Title: Re: Spoiler Tag
Post by: fox0r on September 29, 2009, 03:59:52 AM
Quote from: fox0r on August 06, 2009, 02:51:17 PM
I tried to emulate using your above instructions with the URL thing, and I get this:


Type  Action  Description
* 1. Execute Modification ./Sources/Subs.php Test failed
1. Add Before ./Sources/Subs.php Test successful
2. Add After ./Sources/Subs.php Test failed
* 2. Execute Modification ./Sources/ManagePermissions.php Test failed
1. Add After ./Sources/ManagePermissions.php Test failed
3. Execute Modification ./Sources/ModSettings.php File not found
* 4. Execute Modification ./Sources/Post.php Test successful
1. Add After ./Sources/Post.php Test successful
* 5. Execute Modification ./Sources/Subs-Post.php Test successful
1. Add Before ./Sources/Subs-Post.php Test successful
* 6. Execute Modification ./Themes/default/style.css Test successful
1. Add Before ./Themes/default/style.css Test successful
* 7. Execute Modification ./Themes/default/Settings.template.php Test successful
1. Add After ./Themes/default/Settings.template.php Test successful
* 8. Execute Modification ./Themes/default/Post.template.php Test failed
1. Add After ./Themes/default/Post.template.php Test failed
* 9. Execute Modification ./Themes/classic/style.css Test successful
1. Add Before ./Themes/classic/style.css Test successful
* 10. Execute Modification ./Themes/default/languages/index.english.php Test successful
1. Add Before ./Themes/default/languages/index.english.php Test successful
* 11. Execute Modification ./Themes/default/languages/Themes.english.php Test successful
1. Add Before ./Themes/default/languages/Themes.english.php Test successful
* 12. Execute Modification ./Themes/default/languages/ManagePermissions.english.php Test successful
1. Add Before ./Themes/default/languages/ManagePermissions.english.php Test successful
* 13. Execute Modification ./Themes/default/languages/ModSettings.english.php Test successful
1. Add Before ./Themes/default/languages/ModSettings.english.php Test successful
* 14. Execute Modification ./Themes/default/languages/Help.english.php Test successful
1. Add Before ./Themes/default/languages/Help.english.php Test successful
* 15. Execute Modification ./Themes/default/languages/Errors.english.php Test successful
1. Add Before ./Themes/default/languages/Errors.english.php Test successful
16. Execute Modification ./Themes/default/languages/index.portuguese.php Skipping file
17. Execute Modification ./Themes/default/languages/Themes.portuguese.php Skipping file
18. Execute Modification ./Themes/default/languages/index.german.php Skipping file
19. Execute Modification ./Themes/default/languages/Themes.german.php Skipping file
20. Execute Modification ./Themes/default/languages/index.french.php Skipping file
21. Execute Modification ./Themes/default/languages/Themes.french.php Skipping file
22. Execute Modification ./Themes/default/languages/index.spanish.php Skipping file
23. Execute Modification ./Themes/default/languages/Themes.spanish.php Skipping file
24. Extract File ./Themes/default/images/bbc/spoiler.gif


Any ideas?

I am using 2.1 RC 1.2, and tried to emulate 1.1.9 as instructed in a previous post.  What version do I need to emulate to get this thing to install?
Title: Re: Spoiler Tag
Post by: 青山 素子 on September 29, 2009, 11:40:25 AM
If you are on 2.0, you don't want to emulate 1.1, you'll get many issues like you just saw. Use 2.0 RC 1.
Title: Re: Spoiler Tag
Post by: fox0r on October 04, 2009, 01:15:59 PM
This is with emulation 2.0 RC1

   7.     Execute Modification     languages-20/english.xml     Modification parse error
   8.    Execute Modification    languages-20/english.xml    Modification parse error
   9.    Execute Modification    themes-20/core-20b4.xml    Modification parse error
   10.    Execute Modification    themes-20/core-20b4.xml    Modification parse error
   11.    Execute Modification    themes-20/classic.xml    Modification parse error
   12.    Execute Modification    themes-20/classic.xml    Modification parse error

Everything else checked fine.
Title: Re: Spoiler Tag
Post by: fox0r on October 11, 2009, 05:50:29 PM
I went ahead and installed anyway -- After looking in my FTP I don't even have those files.

It installed okay and seems to work for some members of the forums.  I don't have anything in my admin panel other than a drop down box -- It has no text.

I'm also getting errors in my logs:
8: Undefined index: bbc_spoiler
Apply Filter: Only show the errors from this file
File: /usr/home2/jpohlman/public_html/htss/Sources/Subs-Editor.php
Line: 1233

8: Undefined index: cannot_spoiler_post
Apply Filter: Only show the errors from this file
File: /usr/home2/jpohlman/public_html/htss/Sources/Errors.php
Line: 193

All of the errors seem to be these two, the majority are with the first one.

Anyone have any ideas how I can fix this?
Title: Re: Spoiler Tag
Post by: fox0r on October 11, 2009, 06:09:50 PM
I think I fixed it.  Waiting on more members to report back to know for sure. :)
Title: Re: Spoiler Tag
Post by: Kyrna on October 11, 2009, 06:34:58 PM
Quote from: fox0r on October 11, 2009, 06:09:50 PM
I think I fixed it.  Waiting on more members to report back to know for sure. :)
Is everyone on your forum using the same theme?
Title: Re: Spoiler Tag
Post by: Arkino on October 31, 2009, 01:21:27 PM
Does it works in SMF 2.0 RC1.2?
Title: Re: Spoiler Tag
Post by: tensai on November 09, 2009, 12:20:18 AM
Quote from: Arkino on October 31, 2009, 01:21:27 PM
Does it works in SMF 2.0 RC1.2?

it works with RC 1.2.

any support for RC2?
Title: Re: Spoiler Tag
Post by: 青山 素子 on November 09, 2009, 12:53:47 AM
I have not had time to test (busy at work and in my official SMF duties), and am planning on making some changes (half-done right now). Don't expect any updates for a week or so.

However, I don't believe any templates are changed, so it might work on RC2 if you emulate an older SMF version.
Title: Re: Spoiler Tag
Post by: edogawaconan on November 09, 2009, 04:32:01 AM
It's installed and (probably) still working. Failed on two files though. (somewhere in admin settings and post reply template)
Title: Re: Spoiler Tag
Post by: tensai on November 09, 2009, 10:05:17 AM
yeah it got installed in RC2 but the spoiler tag setting cannot be seen anymore.. a little tweaking perhaps would do the trick :D
Title: Re: Spoiler Tag
Post by: 青山 素子 on November 09, 2009, 10:25:05 AM
I'll see if I can fit in updates earlier than scheduled. Hopefully, I can. Nothing promised however.
Title: Re: Spoiler Tag
Post by: rufen on November 16, 2009, 10:00:20 AM
I can't even install it on RC2.

"This package doesn't appear to support your SMF version."
Title: Re: Spoiler Tag
Post by: busterone on November 16, 2009, 10:13:18 PM
Emulate an earlier version in package manager. It will show an error for 2 files.
With manual edits of /sources/Subs-Editor.php and /sources/ManageSettings.php, the spoiler tag works as it should on RC2.
Title: Re: Spoiler Tag
Post by: Melfra on November 17, 2009, 12:02:55 AM
Upgraded to 2.0 RC2 today and this mod worked perfectly with the previously installed tags - so thanks for savin' my bacon! I do have a quick question... Since it had to be emulated to work and those two files had the errors, how can I manually change the settings to use a button instead of a hover box? I'm not sure what to look for or do with Subs-Editor.php or ManageSettings.php.
Title: Re: Spoiler Tag
Post by: busterone on November 17, 2009, 07:35:24 PM
It may be different for some, I am not 100% sure. The package manager found an error on /sources/ManageSettings.php, saying it could not find the code, but when I searched that file manually, I found the code exactly as it should be, so I just edited it manually.
look for array('select', 'pollMode', array($txt['disable_polls'], $txt['enable_polls'], $txt['polls_as_topics'])),
place after
array('select', 'defaultSpoilerStyle', array(1 => &$txt['spoiler_tag_onhoverovershow'], 2 => &$txt['spoiler_tag_onlinkclickshow'], 3 => &$txt['spoiler_tag_onbuttonclickshow'])), 

In /sources/Subs-Editor.php look for this code instead. (This file has been changed since RC1.2)array(
'image' => 'quote',
'code' => 'quote',
'before' => '[quote]',
'after' => '[/quote]',
'description' => $txt['bbc_quote']
),

place after- array(
'image'=> 'spoiler',
'code' => 'spoiler',
'before' => '[spoiler]',
'after' => '[/spoiler]',
'description' => $txt['bbc_spoiler']
),

This worked for me. I am offering it only as a temp workaround until this mod is upgraded for RC2.  :)
Title: Re: Spoiler Tag
Post by: Melfra on November 17, 2009, 08:03:09 PM
Dear sir, that worked wonderfully! Thank you for the help!
Title: Re: Spoiler Tag
Post by: busterone on November 17, 2009, 08:04:57 PM
You're welcome. :)
Title: Re: Spoiler Tag
Post by: rufen on November 20, 2009, 06:05:31 PM
Quote from: busterone on November 16, 2009, 10:13:18 PM
Emulate an earlier version in package manager. It will show an error for 2 files.
With manual edits of /sources/Subs-Editor.php and /sources/ManageSettings.php, the spoiler tag works as it should on RC2.

ok, I looked around, even searched the forum, and I can't seem to find how to emulate a earlier version in the package manager!

anyone can point me? :)

thx!
Title: Re: Spoiler Tag
Post by: Pяηѕѕ LF on November 20, 2009, 06:11:36 PM
hi,


l have "custom actions" page mod installed and l want utilise spoiler tag mod in. but ça marche pas lol.  :-\

what or how can l do for ulitse spoiler tag in a custom page.?

sorry for my english. but l dont have support in my original support.

thanks for your help.
Title: Re: Spoiler Tag
Post by: busterone on November 20, 2009, 09:24:04 PM
Quote from: rufen on November 20, 2009, 06:05:31 PM
Quote from: busterone on November 16, 2009, 10:13:18 PM
Emulate an earlier version in package manager. It will show an error for 2 files.
With manual edits of /sources/Subs-Editor.php and /sources/ManageSettings.php, the spoiler tag works as it should on RC2.

ok, I looked around, even searched the forum, and I can't seem to find how to emulate a earlier version in the package manager!

anyone can point me? :)

thx!
It only works in SMF 2.0. It isn't in 1.1.x
In 2.0 package manager, look to the bottom right for the  Advanced  link
Title: Re: Spoiler Tag
Post by: 青山 素子 on November 20, 2009, 09:49:17 PM
Quote from: busterone on November 20, 2009, 09:24:04 PM
It only works in SMF 2.0. It isn't in 1.1.x
In 2.0 package manager, look to the bottom right for the  Advanced  link

It does exist in 1.1, but it's just hidden. Add "version_emulate=smfversion" to the end of the package manager URL. Replace "smfversion" with the version of SMF you want to pretend to be.
Title: Re: Spoiler Tag
Post by: busterone on November 20, 2009, 10:16:56 PM
I learn something new every day. I had no idea on that one. Thanks for the correction and heads up.  :)
Title: Re: Spoiler Tag
Post by: rufen on November 23, 2009, 09:08:33 AM
thank you! :)
Title: Re: Spoiler Tag
Post by: MATTEK on November 23, 2009, 04:40:26 PM
It won't work at all no matter what version I emulate to.
Title: Re: Spoiler Tag
Post by: MATTEK on November 24, 2009, 06:03:54 PM
does anyone know if this will be compatible with RC2?
Title: Re: Spoiler Tag
Post by: busterone on November 24, 2009, 06:08:41 PM
Quote from: MATTEK on November 24, 2009, 06:03:54 PM
does anyone know if this will be compatible with RC2?

see this post. I am sure it will be in the near future.  :)
Quote from: Motoko-chan on November 09, 2009, 10:25:05 AM
I'll see if I can fit in updates earlier than scheduled. Hopefully, I can. Nothing promised however.



Title: Re: Spoiler Tag
Post by: 青山 素子 on November 24, 2009, 09:11:31 PM
Not going to happen until December. I still have over 20 customers to migrate at work, and all by Friday. (On Saturday the old servers get turned off.)

Did I mention that Wednesday is the last working day this week in the US because of Thanksgiving? Some places will be open Friday, most will not. Needless to say, I'll be working on the holiday (and for no extra pay - I'm salaried). I have to notify all customers by tomorrow, however.
Title: Re: Spoiler Tag
Post by: realnc on November 28, 2009, 04:40:18 PM
I updated an older 1.1.10 forum to 2.0 RC2 and now all posts with spoilers are a bit messed up :P Did someone manage to modify this mod for RC2 yet? If yes, would he be kind enough to post it here? :D
Title: Re: Spoiler Tag
Post by: realnc on November 28, 2009, 05:39:20 PM
OK, I did it myself :D

I am attaching it to this post. Feel free to review it, but it should be 100% correct. It works as intended and can be perfectly uninstalled without traces if it turns out it doesn't :P

Edit:
I'm also attaching a patch (diff -Naur) so you can easily see the changes.


Edit: Removed attachments
Title: Re: Spoiler Tag
Post by: poolhall on November 29, 2009, 12:19:38 PM
realnc, thanks, it works.
Title: Re: Spoiler Tag
Post by: MATTEK on November 30, 2009, 05:34:59 PM
My comic website does a lot of comic reviews and is in desperate need of this mod. Please update!
Title: Re: Spoiler Tag
Post by: molul on December 03, 2009, 01:14:19 PM
Thanks a lot, it works perfectly :)
Title: Re: Spoiler Tag
Post by: Carlos Faria on December 06, 2009, 06:04:18 PM
Does not work in SMF 1.1.1

"This package does not appear to support your SMF version."


Already thank you
Title: Re: Spoiler Tag
Post by: Cal O'Shaw on December 06, 2009, 06:41:11 PM
Quote from: [T]uGa [M]aSter on December 06, 2009, 06:04:18 PM
Does not work in SMF 1.1.1

"This package does not appear to support your SMF version."


Already thank you

Please go back to this post (http://www.simplemachines.org/community/index.php?topic=50261.msg2367715#msg2367715) for a work-around.
Title: Re: Spoiler Tag
Post by: 青山 素子 on December 06, 2009, 10:38:58 PM
Quote from: [T]uGa [M]aSter on December 06, 2009, 06:04:18 PM
Does not work in SMF 1.1.1

If you are actually running 1.1.1, you really need to upgrade to the latest 1.1.
Title: Re: Spoiler Tag
Post by: Carlos Faria on December 07, 2009, 07:29:00 AM
Quote from: Motoko-chan on December 06, 2009, 10:38:58 PM
Quote from: [T]uGa [M]aSter on December 06, 2009, 06:04:18 PM
Does not work in SMF 1.1.1

If you are actually running 1.1.1, you really need to upgrade to the latest 1.1.

Upss   ::)

SMF 1.1.11   :P

Quote from: Cal O'Shaw on December 06, 2009, 06:41:11 PM

Please go back to this post (http://www.simplemachines.org/community/index.php?topic=50261.msg2367715#msg2367715) for a work-around.

Thanks
Title: Re: Spoiler Tag
Post by: Carlos Faria on December 07, 2009, 05:07:50 PM
Quote from: Motoko-chan on November 20, 2009, 09:49:17 PM
Quote from: busterone on November 20, 2009, 09:24:04 PM
It only works in SMF 2.0. It isn't in 1.1.x
In 2.0 package manager, look to the bottom right for the  Advanced  link

It does exist in 1.1, but it's just hidden. Add "version_emulate=smfversion" to the end of the package manager URL. Replace "smfversion" with the version of SMF you want to pretend to be.

I do not understand.   ???
Title: Re: Spoiler Tag
Post by: realnc on December 07, 2009, 06:25:45 PM
Quote from: [T]uGa [M]aSter on December 07, 2009, 05:07:50 PM
Quote from: Motoko-chan on November 20, 2009, 09:49:17 PM
Quote from: busterone on November 20, 2009, 09:24:04 PM
It only works in SMF 2.0. It isn't in 1.1.x
In 2.0 package manager, look to the bottom right for the  Advanced  link

It does exist in 1.1, but it's just hidden. Add "version_emulate=smfversion" to the end of the package manager URL. Replace "smfversion" with the version of SMF you want to pretend to be.

I do not understand.   ???

What a URL is? It's what gets displayed in your browser's address bar. You just need to copy and paste the string at the end of the address bar and hit enter.
Title: Re: Spoiler Tag
Post by: SEEN on December 07, 2009, 10:55:25 PM
how do you install this mod? i got this error

Install Actions
Installations actions for "Spoiler Tag":
The package you are trying to download or install is either corrupt or not compatible with this version of SMF.

my version is 1.1.11

help plz
Title: Re: Spoiler Tag
Post by: realnc on December 08, 2009, 12:21:46 AM
Dude, read the posts above yours for heaven's sake :P
Title: Re: Spoiler Tag
Post by: Cal O'Shaw on December 08, 2009, 12:28:05 AM
For anyone running SMF 1.1.x who gets an error message saying this package is not compatible with your version, you have three options:

1) Wait for Motoko-chan to get the time to update the package.

2) Use the simulate version trick as described in this post (http://www.simplemachines.org/community/index.php?topic=50261.msg2367715#msg2367715).

3) Install this MOD (http://custom.simplemachines.org/mods/index.php?mod=2113) which will provide a dropdown list of versions to emulate to install MODs that have not been updated to the current SMF 1.1.x version.  Use this MOD, set the version to the latest version of SMF 1.1.x that the MOD supports and then install this MOD (or any other MOD that has the same problem).


I'm collecting these suggestions, given by Motoko-chan many, many times throughout this topic, so that when this question is asked again a few posts from now, this post can either be quote-copied or referenced into the topic as often as needed.
Title: Re: Spoiler Tag
Post by: infyquest on December 08, 2009, 03:33:40 PM
I updated the mod for 2.0RC2
its in the attachment


Edit: Removed attachments
Title: Re: Spoiler Tag
Post by: realnc on December 09, 2009, 07:41:48 AM
Quote from: infyquest on December 08, 2009, 03:33:40 PM
I updated the mod for 2.0RC2
its in the attachment

I already did that a few posts above yours :P
Title: Re: Spoiler Tag
Post by: motomaniacs on December 10, 2009, 07:17:57 AM
i instal manually this mod in smf 1.1.10 (before upgrade)
the problem is only admin can see the spoiler
help...
Title: Re: Spoiler Tag
Post by: Arkino on December 11, 2009, 06:29:56 PM
Quote from: realnc on December 09, 2009, 07:41:48 AM
Quote from: infyquest on December 08, 2009, 03:33:40 PM
I updated the mod for 2.0RC2
its in the attachment

I already did that a few posts above yours :P

I got this error:

16.     Execute Modification     ./Themes/default/style.css     File not found

is it normal?
Title: Re: Spoiler Tag
Post by: realnc on December 11, 2009, 06:37:14 PM
Quote from: Arkino on December 11, 2009, 06:29:56 PM
I got this error:

16.     Execute Modification     ./Themes/default/style.css     File not found

is it normal?

No. Is that file actually there? If not, restore it.
Title: Re: Spoiler Tag
Post by: busterone on December 11, 2009, 09:21:48 PM
On a fresh install of RC2, there is not a style.css. All of that has been moved to themes/default/css/index.css and several other css files in that folder.


Title: Re: Spoiler Tag
Post by: Dante_Arg on December 13, 2009, 04:04:09 PM
Quote from: infyquest on December 08, 2009, 03:33:40 PM
I updated the mod for 2.0RC2
its in the attachment

Working perfect in SMF2.0 RC2 , thanks!
Title: Re: Spoiler Tag
Post by: MATTEK on December 13, 2009, 05:35:13 PM
Works great. Thank you.
Title: Re: Spoiler Tag
Post by: haito on December 14, 2009, 11:32:48 PM
it cant be installed for 1.1.11
update please..
Title: Re: Spoiler Tag
Post by: Cal O'Shaw on December 15, 2009, 12:15:51 AM
For some reason, in this topic, an inordinate number of people do not look through the topic before posting a variation of this question, quoted from the post above:

Quote from: haito on December 14, 2009, 11:32:48 PM
it cant be installed for 1.1.11
update please..

You know, if you had read the previous page of this topic, you would have two solutions.  For your convenience, I am quoting it here:

Quote from: Cal O'Shaw on December 08, 2009, 12:28:05 AM
For anyone running SMF 1.1.x who gets an error message saying this package is not compatible with your version, you have three options:

1) Wait for Motoko-chan to get the time to update the package.

2) Use the simulate version trick as described in this post (http://www.simplemachines.org/community/index.php?topic=50261.msg2367715#msg2367715).

3) Install this MOD (http://custom.simplemachines.org/mods/index.php?mod=2113) which will provide a dropdown list of versions to emulate to install MODs that have not been updated to the current SMF 1.1.x version.  Use this MOD, set the version to the latest version of SMF 1.1.x that the MOD supports and then install this MOD (or any other MOD that has the same problem).


I'm collecting these suggestions, given by Motoko-chan many, many times throughout this topic, so that when this question is asked again a few posts from now, this post can either be quote-copied or referenced into the topic as often as needed.
Title: Re: Spoiler Tag
Post by: Kevin Bachelder on December 21, 2009, 03:59:49 PM
I just installed this mod on our 1.1.11 forum.  I also used the 'version emulate dropdown' and set it to 1.1.9 so that the install would complete.

The spoiler tag option is working fine on the forums but I'm not getting the option to change it's behavior on the 'Current Theme' admin page.

I'm a bit of a newbie to SMF admin work so my apologies if I'm missing something obvious here.


Thanks for any help,

Kevin
Title: Re: Spoiler Tag
Post by: Kevin Bachelder on December 21, 2009, 04:12:21 PM
Quote from: Kevin Bachelder on December 21, 2009, 03:59:49 PM
I just installed this mod on our 1.1.11 forum. 

Forget to mention that I installed version 0.6b.


Kevin
Title: Re: Spoiler Tag
Post by: neo2504 on December 23, 2009, 06:32:12 AM
Quote from: infyquest on December 08, 2009, 03:33:40 PM
I updated the mod for 2.0RC2
its in the attachment

I installed this mod (the one that you attached) and it works only with the txt, i can't see images in the spoiler
Title: Re: Spoiler Tag
Post by: improv on December 24, 2009, 07:38:14 PM
Quote from: infyquest on December 08, 2009, 03:33:40 PM
I updated the mod for 2.0RC2
its in the attachment

The permission settings are NOT working.
The other version isn't working either.
Title: Re: Spoiler Tag
Post by: nwobhm on December 27, 2009, 02:11:35 PM
I installed the mod updated by infyquest for RC2.

Just one little problem which exsisted with the previous versions also.
My regular membars cannot see the spoiler in the "recent posts" -list. I can see them as I am the administrator, but none of the regular members or moderators cannot see the spoiler tag.
Title: Re: Spoiler Tag
Post by: infyquest on December 27, 2009, 02:30:54 PM
u need to set the permissions
Title: Re: Spoiler Tag
Post by: nwobhm on December 27, 2009, 04:49:11 PM
Permissions are set, both of them: show spoiler and add spoiler are on.
They can use them, but they just cannot see them on the "recent posts" list.
Title: Re: Spoiler Tag
Post by: 青山 素子 on December 27, 2009, 05:18:48 PM
Because of the way the modification is designed, they won;t show up. The tag isn't "normal" BBCode. I'm working on a re-design that will fix most of these things (but eliminates the permission system, which most people don't use).
Title: Re: Spoiler Tag
Post by: mimar on December 27, 2009, 10:42:23 PM
I added it a nearly fresh SMF RC2 it worked. But the wisitors can't see in the spoilers.
What can I do for that?
I want the members and visitors(not loginned) see in the spoiler.
I only want a basic spoiler.

Quote from: infyquest on December 08, 2009, 03:33:40 PM
I updated the mod for 2.0RC2
its in the attachment
Title: Re: Spoiler Tag
Post by: 青山 素子 on December 27, 2009, 11:33:45 PM
Enable the permission to view spoilers.
Title: Re: Spoiler Tag
Post by: 青山 素子 on December 28, 2009, 03:47:28 AM
NOTE: I have posted an official update to the modification. It now fully supports 2.0 RC2 and Curve.

Also, the permission settings are now gone. Spoilers will be enabled unless you disable the tag itself. Unfortunately, due to a limitation in how SMF parses certain kinds of bbcode, this was needed to enable nested spoilers and the ability to use the tag in other places than posts. This should resolve missing spoiler data in recent posts as well.

If you disable the spoiler tag, the content of the tag will be hidden from display. This may change in future versions of the modification.
Title: Re: Spoiler Tag
Post by: nwobhm on December 28, 2009, 03:58:14 AM
Works like a charm :) ..... spoilers are visible on recent posts list.  Great job... thank you! :)
Title: Re: Spoiler Tag
Post by: nwobhm on December 28, 2009, 04:04:12 AM
Quote from: nwobhm on December 28, 2009, 03:58:14 AM
Works like a charm :) ..... spoilers are visible on recent posts list.  Great job... thank you! :)
Sorry... I'll take that back
I get one error "unvariable content" on subs.php line 890

890:  );
Title: Re: Spoiler Tag
Post by: lexa90 on December 28, 2009, 01:37:38 PM
Yep me too, undefined variable: content :D

Title: Re: Spoiler Tag
Post by: 青山 素子 on December 28, 2009, 01:44:53 PM
I'll look into the issue.

Edit: Quick fix for those experiencing the issue. It stems from the re-work I did of the code. Open Subs.php and find:


$content.'</div></div>'


Remove the "$content." from that line and the similar item below. Leave the single quotes alone.

I'll post an updated version shortly.
Title: Re: Spoiler Tag
Post by: Reiuji on December 28, 2009, 03:27:43 PM
SMF 2.0 RC 2 with Spoiler Tag 0.7a...

Whenever I try to change the Spoiler Type in the theme settings and I choose "Show on Link Click" or "Show on Button Click", it sets it to "Show on Hover"
Title: Re: Spoiler Tag
Post by: mimar on December 28, 2009, 06:40:43 PM
sorry.where can i enable the permission. and i want to learn this where can i change the spoiler's name like [sth] [/sth]
Thank you so much

Quote from: Motoko-chan on December 27, 2009, 11:33:45 PM
Enable the permission to view spoilers.
Title: Re: Spoiler Tag
Post by: 青山 素子 on December 28, 2009, 06:53:24 PM
Quote from: mimar on December 28, 2009, 06:40:43 PM
sorry.where can i enable the permission. and i want to learn this where can i change the spoiler's name like [sth] [/sth]

I recommend using the new 0.7a release which drops the permission system entirely.

The tags are defined in Subs.php, so you can edit the tag name there. Be careful when doing so and use a proper text editor, not something that rewrites code like Dreamweaver.
Title: Re: Spoiler Tag
Post by: mimar on December 28, 2009, 07:00:09 PM
I used this..
http://www.simplemachines.org/community/index.php?topic=50261.msg2396096#msg2396096
I did't understand which mod works perfect. what are u suggest to me for rc2. I only want the visitors see in the spoiler..

Thank u


Quote from: Motoko-chan on December 28, 2009, 06:53:24 PM
Quote from: mimar on December 28, 2009, 06:40:43 PM
sorry.where can i enable the permission. and i want to learn this where can i change the spoiler's name like [sth] [/sth]

I recommend using the new 0.7a release which drops the permission system entirely.

The tags are defined in Subs.php, so you can edit the tag name there. Be careful when doing so and use a proper text editor, not something that rewrites code like Dreamweaver.
Title: Re: Spoiler Tag
Post by: 青山 素子 on December 28, 2009, 07:05:54 PM
Quote from: mimar on December 28, 2009, 07:00:09 PM
I used this..
http://www.simplemachines.org/community/index.php?topic=50261.msg2396096#msg2396096
I did't understand which mod works perfect. what are u suggest to me for rc2. I only want the visitors see in the spoiler..

I don't support unofficial versions. There is an official update on the modification site that works perfectly.
Title: Re: Spoiler Tag
Post by: mimar on December 28, 2009, 07:23:07 PM
Thank u .. This installation is very long. Tere is many files to edit. isn't there any package file works succesfully?


Quote from: Motoko-chan on December 28, 2009, 07:05:54 PM
Quote from: mimar on December 28, 2009, 07:00:09 PM
I used this..
http://www.simplemachines.org/community/index.php?topic=50261.msg2396096#msg2396096
I did't understand which mod works perfect. what are u suggest to me for rc2. I only want the visitors see in the spoiler..

I don't support unofficial versions. There is an official update on the modification site that works perfectly.
Title: Re: Spoiler Tag
Post by: mimar on December 28, 2009, 08:03:23 PM
whatever i installed the mod manuelly. it done perfect. but there is a wrong. the text's about this mod don't appear as shown on the caps . ( in the admin page setting's texts are not appear too.)
I use turkish language and edited Modifications.turkish.php and Modifications.english.php perfectly.

What can i do for this wrong.

there is only one wrong thing what i didn't

I didn't find "?>" on the "./Themes/default/css/index.css"  so i added this codes on the end of the "index.css"...

CAPS

http://img137.imageshack.us/img137/7223/20091229030419.jpg
http://img694.imageshack.us/img694/3900/20091229030441.jpg


Thank you ...
Title: Re: Spoiler Tag
Post by: 青山 素子 on December 28, 2009, 08:17:31 PM
Quote from: mimar on December 28, 2009, 08:03:23 PM
I use turkish language and edited Modifications.turkish.php and Modifications.english.php perfectly.

If you are using the 1.1 series of SMF, there are about five language files that need to be updated. Check the XML.


Quote from: mimar on December 28, 2009, 08:03:23 PM
I didn't find "?>" on the "./Themes/default/css/index.css"  so i added this codes on the end of the "index.css"...

There shouldn't be a PHP end tag in the CSS.
Title: Re: Spoiler Tag
Post by: mimar on December 28, 2009, 08:18:28 PM
No I'm usin' 2.0 RC2 so what can i do about this.


Quote from: Motoko-chan on December 28, 2009, 08:17:31 PM
Quote from: mimar on December 28, 2009, 08:03:23 PM
I use turkish language and edited Modifications.turkish.php and Modifications.english.php perfectly.

If you are using the 1.1 series of SMF, there are about five language files that need to be updated. Check the XML.


Quote from: mimar on December 28, 2009, 08:03:23 PM
I didn't find "?>" on the "./Themes/default/css/index.css"  so i added this codes on the end of the "index.css"...

There shouldn't be a PHP end tag in the CSS.
Title: Re: Spoiler Tag
Post by: mimar on December 28, 2009, 08:44:05 PM
I checked every changelog in the mod and sure that there is not any problem on the change.  And still the texts don't appear . what can I do
Title: Re: Spoiler Tag
Post by: ACAMS on December 28, 2009, 10:35:32 PM
I am trying to remove the (click to show/hide) text when I use the button mode.
I found spoiler tags in /Sources/Subs.php  and changed the code, but it didn't work....I made this change.


$txt['spoiler_tag_click_info'] = isset($txt['spoiler_tag_click_info']) ? $txt['spoiler_tag_click_info'] : '(click to show/hide)';


TO:


$txt['spoiler_tag_click_info'] = isset($txt['spoiler_tag_click_info']) ? $txt['spoiler_tag_click_info'] : '';


I am using Headline theme by Crip http://custom.simplemachines.org/themes/index.php?lemma=1294 if that makes a difference.

Can this be done?
Title: Re: Spoiler Tag
Post by: 青山 素子 on December 28, 2009, 11:46:45 PM
ACAMS, edit the language files.
Title: Re: Spoiler Tag
Post by: ACAMS on December 29, 2009, 12:10:31 AM
WOW....THANKS!!!

I found it in Themes/default/languages/Modifications.english.php and it is now gone......

THANKS!
Title: Re: Spoiler Tag
Post by: mimar on December 31, 2009, 05:54:39 AM
why this mod only manuel install? isn't there any package install for 2.0 RC2 ?
Title: Re: Spoiler Tag
Post by: hash899 on December 31, 2009, 07:46:58 AM
having the same issue as him

Quote from: Reiuji on December 28, 2009, 03:27:43 PM
SMF 2.0 RC 2 with Spoiler Tag 0.7a...

Whenever I try to change the Spoiler Type in the theme settings and I choose "Show on Link Click" or "Show on Button Click", it sets it to "Show on Hover"
Title: Re: Spoiler Tag
Post by: 青山 素子 on December 31, 2009, 12:00:17 PM
Quote from: mimar on December 31, 2009, 05:54:39 AM
why this mod only manuel install? isn't there any package install for 2.0 RC2 ?

Um, 0.7 and newer should install automatically under 2.0 RC2.


Quote from: hash899 on December 31, 2009, 07:46:58 AM
having the same issue as him

Quote from: Reiuji on December 28, 2009, 03:27:43 PM
SMF 2.0 RC 2 with Spoiler Tag 0.7a...

Whenever I try to change the Spoiler Type in the theme settings and I choose "Show on Link Click" or "Show on Button Click", it sets it to "Show on Hover"

Does the actual type change even if it doesn't display so? Try setting the type you want, then saving and going to view a spoiler.
Title: Re: Spoiler Tag
Post by: ChaosEnergy on January 01, 2010, 11:57:37 AM
i m using 0.7a on rc2 but i always get the issue that hover mode is working, and not burtton mode..
what can be done?
Title: Re: Spoiler Tag
Post by: machmanx on January 02, 2010, 09:02:22 PM
I have an issue with text color.  For some reason it is using black text, regardless of theme used.  While this is ok for light themes, it's not ok for the dark ones.  How do I fix it so that the text color in the spoler tags matches the default text color of the theme?  This used to be the case while I was using the older version 0.6  :-\
Title: Re: Spoiler Tag
Post by: mimar on January 02, 2010, 11:36:38 PM
Hmmm... this is not work on Turkish language..

I don't change [spoiler] to [sth]
or can't edit another language files . When i edit language files, it doesn't change.
And when I turn my board to english language I see all language changes.. work succesfully.  I can change [sth] or another files..

What can I do to use that in Turkish language Boards?
Title: Re: Spoiler Tag
Post by: cassiecw on January 03, 2010, 11:02:13 AM
Quote from: Motoko-chan on December 31, 2009, 12:00:17 PM
Quote from: hash899 on December 31, 2009, 07:46:58 AM
having the same issue as him

Quote from: Reiuji on December 28, 2009, 03:27:43 PM
SMF 2.0 RC 2 with Spoiler Tag 0.7a...

Whenever I try to change the Spoiler Type in the theme settings and I choose "Show on Link Click" or "Show on Button Click", it sets it to "Show on Hover"

Does the actual type change even if it doesn't display so? Try setting the type you want, then saving and going to view a spoiler.

I'm having this issue as well. Version 0.7a works fine on my 1.1.11 test site, but on my 2.0 RC2 test site it doesn't matter what I set the drop down to it always reverts back to "Show on Hover" after saving. The spoiler also shows as this setting in message view.  :-\
Title: Re: Spoiler Tag
Post by: hash899 on January 03, 2010, 12:29:56 PM
Quote from: Motoko-chan on December 31, 2009, 12:00:17 PM
Does the actual type change even if it doesn't display so? Try setting the type you want, then saving and going to view a spoiler.

well it lets me choose the type and when i do and click on save and go back to it its gone back to hover to view spoiler again >.<

i think its an issue with 2.0 rc2 since some other people are having the same problem.
Title: Re: Spoiler Tag
Post by: FlyBoyUnder on January 04, 2010, 03:08:34 PM
Any chances for 2.0 Rc1.2? This mod is great, man. =P
Title: Re: Spoiler Tag
Post by: 青山 素子 on January 04, 2010, 06:38:52 PM
Quote from: hash899 on January 03, 2010, 12:29:56 PM
i think its an issue with 2.0 rc2 since some other people are having the same problem.

It likely is. I'll look at it as soon as I get time.


Quote from: FlyBoyUnder on January 04, 2010, 03:08:34 PM
Any chances for 2.0 Rc1.2? This mod is great, man. =P

You really should upgrade. If you insist on using an older, potentially insecure SMF, use 0.6b, which supports older 2.0 pre-release versions. Due to the very little time I have, I can't provide support for older versions of the modification.
Title: Re: Spoiler Tag
Post by: hash899 on January 04, 2010, 06:44:11 PM
thanks will wait for ur reply ^_^

my website is http://ieatsoul.com (thought I will drop it in case that can help)
Title: Re: Spoiler Tag
Post by: nax on January 07, 2010, 09:16:05 AM
Quote from: Motoko-chan on January 04, 2010, 06:38:52 PM
Quote from: hash899 on January 03, 2010, 12:29:56 PM
i think its an issue with 2.0 rc2 since some other people are having the same problem.

It likely is. I'll look at it as soon as I get time.


It's a great mod and I have been waiting for it for my SMF 2 RC2 site, I'm going to install it as is and wait for the bug fix as I too would prefer the "Show on button click" option.  Are you any closer to creating it as a BBC tag we can add to the post window etc?

Under Admin, Configuration, Features & Options you can select you can select "Show on button click" and save this ok.  You then also have to go into  Admin, Configuration, Current Theme, you can select "Show on button click" but when you save the page it resets itself to "Show on Hover".
Title: Re: Spoiler Tag
Post by: 青山 素子 on January 07, 2010, 10:45:12 AM
Quote from: nax on January 07, 2010, 09:16:05 AM
It's a great mod and I have been waiting for it for my SMF 2 RC2 site, I'm going to install it as is and wait for the bug fix as I too would prefer the "Show on button click" option.  Are you any closer to creating it as a BBC tag we can add to the post window etc?

With the re-work of the tag, it should show in other places than just the topic view.

Quote from: nax on January 07, 2010, 09:16:05 AM
Under Admin, Configuration, Features & Options you can select you can select "Show on button click" and save this ok.  You then also have to go into  Admin, Configuration, Current Theme, you can select "Show on button click" but when you save the page it resets itself to "Show on Hover".

Yes, thank you. That was pointed out clearly in the above posts.

I'll try to find time to work on fixing this. I just came off a two week vacation at work and am trying to get caught up on all the tasks that built up.
Title: Re: Spoiler Tag
Post by: nax on January 07, 2010, 11:14:02 AM
Thank you Motoko-Chan, I and others really appreciate what you do.
Title: Re: Spoiler Tag
Post by: souljaa on January 08, 2010, 03:22:19 AM
The MOD works awesome thank you :).
Just a quick question, I can't see how to change it in the Admin Panel > Current Theme. I want to change it so I have to push a button not just over the text.
Thanks
Souljaa
Title: Re: Spoiler Tag
Post by: hash899 on January 08, 2010, 08:54:37 AM
Quote from: souljaa on January 08, 2010, 03:22:19 AM
The MOD works awesome thank you :).
Just a quick question, I can't see how to change it in the Admin Panel > Current Theme. I want to change it so I have to push a button not just over the text.
Thanks
Souljaa

hi if u have read the previous posts u would notice that this problem has been identified and being worked on by the mod creator. just gotta be a little patient ^_^
Title: Re: Spoiler Tag
Post by: machmanx on January 17, 2010, 02:38:09 AM
Quote from: machmanx on January 02, 2010, 09:02:22 PM
I have an issue with text color.  For some reason it is using black text, regardless of theme used.  While this is ok for light themes, it's not ok for the dark ones.  How do I fix it so that the text color in the spoler tags matches the default text color of the theme?  This used to be the case while I was using the older version 0.6  :-\

Eh, I hope you didn't miss my question.  This is really a big deal for me and perhaps it may be just not related to an update, hence I ask this.
Title: Re: Spoiler Tag
Post by: Bugo on January 18, 2010, 05:20:02 AM
Russian translation

Modifications.russian-utf8.php and Modifications.russian.php:
// Spoiler Mod
// BBC Strings
$txt['bbc_spoiler'] = 'Вставить спойлер';

// Post View Text
$txt['spoiler_tag_text'] = 'Спойлер';
$txt['spoiler_tag_click_info'] = '(кликните для показа/скрытия)';
$txt['spoiler_tag_hover_info'] = '(подведите сюда указатель мышки)';

// Mod Settings
$txt['defaultSpoilerStyle'] = 'Вид спойлера';
$txt['spoiler_tag_onhoverovershow'] = 'Показывать при наведении указателя мышки';
$txt['spoiler_tag_onlinkclickshow'] = 'Показывать при клике на ссылку';
$txt['spoiler_tag_onbuttonclickshow'] = 'Показывать при клике на кнопку';

// Extra Settings String for per-theme selection
$txt['spoiler_tag_label'] = 'Вид спойлера';
$txt['spoiler_tag_desc'] = 'Выберите вид спойлеров, используемых этой темой.';
$txt['spoiler_tag_default'] = '(использовать вид спойлера по умолчанию)';


Help.russian-utf8.php and Help.russian.php:
// Spoiler Tag Mod
$helptxt['defaultSpoilerStyle'] = 'Спойлеры используются для скрытия больших блоков текста. Для прочтения подобных блоков достаточно нажать на спойлер (ссылка, кнопка) либо просто подвести к нему указатель мышки.';
Title: Re: Spoiler Tag
Post by: 青山 素子 on January 19, 2010, 11:35:24 AM
I found the cause of the tag not changing and am working on the code changes for that. My big issue right now is getting per-theme options working (I have yet to figure out how to expose theme settings with the newer versions of SMF).
Title: Re: Spoiler Tag
Post by: machmanx on January 21, 2010, 03:45:47 PM
Quote from: Motoko-chan on January 19, 2010, 11:35:24 AM
I found the cause of the tag not changing and am working on the code changes for that. My big issue right now is getting per-theme options working (I have yet to figure out how to expose theme settings with the newer versions of SMF).

So it is related to the new themes and how they're handled.  Oh well, I'll wait for the fix.

For a temporary measure, can you tell me which line modifies the text color?  I'll force a color for now ;)
Title: Re: Spoiler Tag
Post by: 青山 素子 on January 21, 2010, 04:14:19 PM
machmanx, that comment was for a different issue.

This modification makes no color changes to the text of the spoilers themselves. There are a few styles that define colors of borders and other elements, located in the same file as all the other styles. If you need to find out what is defining the color wrong, I recommend FireBug (http://getfirebug.com/).
Title: Re: Spoiler Tag
Post by: machmanx on January 22, 2010, 01:46:22 AM
What about the core.xml?  If I did something like that for each theme, then wouldn't it solve my problem as well?  What would I need to do to attempt this?
Title: Re: Spoiler Tag
Post by: 青山 素子 on January 22, 2010, 11:11:32 AM
The xml files are the modification instructions. Like I suggested before, get Firebug and find out what's applying the wrong color.
Title: Re: Spoiler Tag
Post by: machmanx on January 26, 2010, 02:41:26 PM
Ok, I think I am a little confused here.  I assumed that this mod captures the color of the default body text color (aka the color of the text of the posts) and uses that, but perhaps I'm mistaken.  When this mod is installed, it is only meant for the Core and Curve theme, so it does not compensate for other themes.  For other themes, it just uses the default #0f0f0f color.

So in summary, when it comes to text color it just uses #0f0f0f for all other themes besides those defined in the .xml files.  Otherwise, it's upto me to modify the color manually in the index.css file.  Am I correct?

And yes, I figured this out by using Firebug.  Basically, I'm modifying the color in div.spoilerbody
Title: Re: Spoiler Tag
Post by: 青山 素子 on January 26, 2010, 05:43:29 PM
Ah, yes. Changing that value should change the text color. Sorry for the absentmindedness, I've been awfully busy lately.
Title: Re: Spoiler Tag
Post by: dembow on January 27, 2010, 02:04:52 PM
sorry i haven't read the hole thread so i don't know if this question has been answered before

i have this mod in 2.0 installed and no matter what option i choose in the admin panel i always get the hover option in posts, which is not what i want, i want a button

how can i make it work?

i have Version 0.7a installed btw
Title: Re: Spoiler Tag
Post by: 青山 素子 on January 27, 2010, 02:47:27 PM
That's a known issue, and I'm working on an update that will include a fix for it.
Title: Re: Spoiler Tag
Post by: dembow on January 27, 2010, 03:25:10 PM
thanks  ;)

*edit
i just realized that, since i'm using 4 different themes in my forum, it's just in only one that's happening and is in the one i use lol

what could i edit in order for it to work in that theme?
Title: Re: Spoiler Tag
Post by: dembow on January 27, 2010, 03:34:29 PM
ok just figured it out  (https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi44.tinypic.com%2F9sa1jl.jpg&hash=ff7c3c72e6d53c1d84bdc79aa24ea6ae2502d5ba)

in the features and options i had show on button click but in the current theme setting of that theme i had show on hover, so i selected (use global default spoiler mode) and voila!

thanks for your time and for this great mod!  (https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi41.tinypic.com%2Fwwcjz9.jpg&hash=45354ca720372f065d98e0414248b8e1a22e4c5b)
Title: Re: Spoiler Tag
Post by: dumblonde on February 04, 2010, 02:18:43 PM
Thanks so much dembow!!  I was having the exact problem you were.  Implemented your fix & now it's working perfectly :)
Title: Re: Spoiler Tag
Post by: dembow on February 06, 2010, 04:47:20 PM
np, it's just little details that sometimes we overlook  ;)
Title: Re: Spoiler Tag
Post by: rickmastfan67 on February 07, 2010, 10:40:32 PM
I have a problem in 1.1.11.

When I'm in the Admin area, and I try to select the type of the spoiler in use in the "Features and Options > Basic Features" area, the area for this mod is completely blank.   I mean, there is no text and no text in the pull down menu (but the "?" text when you click on it works just fine.)

However, the pull down menu somehow shows up in the "Current Theme > Themes and Settings" area.  This is a custom theme based off the default that I made this on.

What do you think I could have done wrong?  The mod installed correctly with no errors and I added the stuff I needed to in my custom theme.  It worked in my "offline" forum, but not on the "online" one.

Any suggestions?
Title: Re: Spoiler Tag
Post by: 青山 素子 on February 07, 2010, 11:00:27 PM
rickmastfan67, what language are you using?
Title: Re: Spoiler Tag
Post by: rickmastfan67 on February 07, 2010, 11:01:00 PM
English

BTW, the mod works fine in the forum posts.  Just the options in the Admin area doesn't want to work right online. (offline it did)  Weird, eh?
(Also the pull down menu offline shows up in the "Current Theme > Themes and Settings" offline as well, but it shows up correctly in the "Features and Options > Basic Features" area offline.)
Title: Re: Spoiler Tag
Post by: 青山 素子 on February 08, 2010, 01:12:19 AM
It almost sounds like the language files didn't get edited correctly. For 1.1, this modification edits a few different language files. Use the parser on the modification site and check that the edits look to have been done correctly.
Title: Re: Spoiler Tag
Post by: rickmastfan67 on February 08, 2010, 01:18:05 AM
Install Actions
Installations actions for "Spoiler Tag":
Installing this package will perform the following actions:  Type Action Description
1. Execute Modification ./Sources/Subs.php Test successful
2. Execute Modification ./Sources/ModSettings.php Test successful
3. Execute Modification ./Themes/default/style.css Test successful
4. Execute Modification ./Themes/default/Settings.template.php Test successful
5. Execute Modification ./Themes/default/Post.template.php Test successful
6. Execute Modification ./Themes/classic/style.css Test successful
7. Execute Modification ./Themes/default/languages/index.english.php Test successful
8. Execute Modification ./Themes/default/languages/Themes.english.php Test successful
9. Execute Modification ./Themes/default/languages/ModSettings.english.php Test successful
10. Execute Modification ./Themes/default/languages/Help.english.php Test successful
11. Execute Modification ./Themes/default/languages/index.portuguese.php Skipping file
12. Execute Modification ./Themes/default/languages/Themes.portuguese.php Skipping file
13. Execute Modification ./Themes/default/languages/index.german.php Skipping file
14. Execute Modification ./Themes/default/languages/Themes.german.php Skipping file
15. Execute Modification ./Themes/default/languages/index.french.php Skipping file
16. Execute Modification ./Themes/default/languages/Themes.french.php Skipping file
17. Execute Modification ./Themes/default/languages/index.spanish.php Skipping file
18. Execute Modification ./Themes/default/languages/Themes.spanish.php Skipping file
19. Extract File ./Themes/default/images/bbc/spoiler.gif

I un-installed it just so I could get this (and there were no errors in the un-install as well.

Would running in UTF8 cause a problem? (I wasn't the one that installed the forum, but I'm doing the work on it right now and can't un-install and re-install the forum)

And since my theme is just a copy of the default one, I'm relying on the original language files in the default theme.
Title: Re: Spoiler Tag
Post by: 青山 素子 on February 08, 2010, 01:22:02 AM
Yes, if you are using the UTF-8 language files, you'll need to copy the added strings to the correct language files.
Title: Re: Spoiler Tag
Post by: rickmastfan67 on February 08, 2010, 01:27:27 AM
Quote from: Motoko-chan on February 08, 2010, 01:22:02 AM
Yes, if you are using the UTF-8 language files, you'll need to copy the added strings to the correct language files.

Hmm.  I'll talk to the guy that has the FTP access to see if he can just copy and rename the regular language files in the default theme to UTF-8 version ones.  If that doesn't work, I'll let you know.

BTW, how hard in the future would it be to add in UTF-8 support in the installer? :)
Title: Re: Spoiler Tag
Post by: 青山 素子 on February 08, 2010, 01:43:34 AM
Not too hard for English at least. I'll see if i can add in for that in a later release. Development for the 1.1 series is not really ongoing since it's stable. I'm concentrating on getting things cleaned up for 2.0
Title: Re: Spoiler Tag
Post by: ACAMS on February 28, 2010, 10:38:10 AM
My users can't use this in PM's.....(Says they don't have permission) is there an easy fix?
I can't find any settings in the control panel, and in Permissions I have Spoilers checked, because they work on the forum.


I have SMF 2.0 RC2
Title: Re: Spoiler Tag
Post by: 青山 素子 on February 28, 2010, 11:30:49 AM
If you are using a version older than the newest, the permissions portion doesn't allow use outside posts. The newest release did away with permissions since they weren't really widely used.

Unfortunately, the newest version has a few bugs and I haven't had a chance yet to solve all of them to put out a new release.
Title: Re: Spoiler Tag
Post by: fraska on February 28, 2010, 12:56:33 PM
hi! i just installed this mod and everything works fine. BUT when i switch to italian language tag is missing. what should i do? thanx
Title: Re: Spoiler Tag
Post by: 青山 素子 on February 28, 2010, 10:26:20 PM
You'll need to translate the language strings from Modifications.english.php to Modifications.italian.php. The files are in Themes/default/languages/.
Title: Re: Spoiler Tag
Post by: fraska on March 01, 2010, 05:40:12 AM
Quote from: Motoko-chan on February 28, 2010, 10:26:20 PM
You'll need to translate the language strings from Modifications.english.php to Modifications.italian.php. The files are in Themes/default/languages/.

thank you motoko!
i'll uninstall the spoiler mod, create a translated version of modifications.english.php, zip it and reinstall it, is that correct? i'll provide the italian translation for this mod if anyone is interested :)
Title: Re: Spoiler Tag
Post by: 青山 素子 on March 01, 2010, 10:06:17 AM
You don't need to uninstall the modification, just copy the language strings. They'll be picked up right away.

If you send me the translation, I'll add them to the next release.
Title: Re: Spoiler Tag
Post by: 青山 素子 on March 04, 2010, 03:37:44 PM
Version 0.7.1 has been released which should fix all known bugs in selecting spoiler styles.
Title: Re: Spoiler Tag
Post by: Rayk on March 07, 2010, 04:18:56 PM
Can I get the older versions of this mod somewhere? I'd actually like to use the permissions. :)
Title: Re: Spoiler Tag
Post by: 青山 素子 on March 07, 2010, 08:16:21 PM
The older versions should be on the download page. Please know that they do not support newer versions of 2.0.

Also know that nested spoilers and spoilers in any place other than posts won't work due to how the permissions were implemented in past versions.
Title: Re: Spoiler Tag
Post by: atfosan on March 09, 2010, 09:01:47 AM
How about supporting 2.0 RC3? Are there any problems?
Title: Re: Spoiler Tag
Post by: 青山 素子 on March 09, 2010, 11:53:28 AM
Haven't had a chance to check yet, but give the install a try with a version emulation. I can't think of anywhere major that would have changed enough to break it.
Title: Re: Spoiler Tag
Post by: busterone on March 09, 2010, 06:13:07 PM
It installed perfectly using version emulation.  :)
Title: Re: Spoiler Tag
Post by: atfosan on March 10, 2010, 06:35:58 AM
Quote from: Motoko-chan on March 09, 2010, 11:53:28 AM
Haven't had a chance to check yet, but give the install a try with a version emulation. I can't think of anywhere major that would have changed enough to break it.

OK. We will wait for this check and changes if they are needed...

Here is russian and russian-utf8 translations.
Title: Re: Spoiler Tag
Post by: okae on March 11, 2010, 07:35:31 AM
version emulation? what i need to change to do that?
Title: Re: Spoiler Tag
Post by: Nimnix on March 11, 2010, 07:38:12 AM
Simple Machines should build in a spoiler function in their forums..
Title: Re: Spoiler Tag
Post by: 青山 素子 on March 11, 2010, 11:05:33 AM
Quote from: okae on March 11, 2010, 07:35:31 AM
version emulation? what i need to change to do that?

If you are using 2.0, there is a little box at the bottom-right in the package browser where you can change your reported version.


Quote from: Westlund on March 11, 2010, 07:38:12 AM
Simple Machines should build in a spoiler function in their forums..

Spoiler tags are only really useful for certain types of forums. I think I'm only using it on two of the five forums I manage, and on one of those it's heavily modified. I don't see a spoiler tag becoming part of the default BBCode in SMF.
Title: Re: Spoiler Tag
Post by: Nimnix on March 11, 2010, 11:21:55 AM
So any fixed RC3 version for this?
Title: Re: Spoiler Tag
Post by: 青山 素子 on March 11, 2010, 02:05:00 PM
Not yet. I do have a job and other obligations, so I just haven't found the time to update yet. The more people ask, the less motivated I will be to update anytime soon.
Title: Re: Spoiler Tag
Post by: busterone on March 11, 2010, 05:42:10 PM
Quote from: Westlund on March 11, 2010, 11:21:55 AM
So any fixed RC3 version for this?
It installs with no errors using version emulation, or you can unzip the package and change the following in package-info.xml-
<install for="2.0 RC2"> to <install for="2.0 RC3">
and
<uninstall for="2.0 RC2"> to <uninstall for="2.0 RC3">
re-zip it and upload it to your packages folder. There will be no need for version emulation then.
Title: Re: Spoiler Tag
Post by: Nimnix on March 12, 2010, 02:19:00 AM
Quote from: busterone on March 11, 2010, 05:42:10 PM
Quote from: Westlund on March 11, 2010, 11:21:55 AM
So any fixed RC3 version for this?
It installs with no errors using version emulation, or you can unzip the package and change the following in package-info.xml-
<install for="2.0 RC2"> to <install for="2.0 RC3">
and
<uninstall for="2.0 RC2"> to <uninstall for="2.0 RC3">
re-zip it and upload it to your packages folder. There will be no need for version emulation then.

Alright, thanks!
Title: Re: Spoiler Tag
Post by: atfosan on March 15, 2010, 11:11:39 AM
Thanks for update! :) But why my translation was not include into new version?
Title: Re: Spoiler Tag
Post by: Bugo on March 15, 2010, 11:21:52 AM
Quote from: atfosan on March 15, 2010, 11:11:39 AM
Thanks for update! :) But why my translation was not include into new version?
Мой тоже не включили, я не переживаю :) http://www.simplemachines.org/community/index.php?topic=50261.msg2460935#msg2460935
Title: Re: Spoiler Tag
Post by: 青山 素子 on March 15, 2010, 03:22:04 PM
I just only had time to check compatibility and upload a working copy. I'll add translations to the modification as I get time. They can always be added manually until then.
Title: Re: Spoiler Tag
Post by: Nimnix on March 16, 2010, 02:34:25 AM
Hey, is there any chance to make "Click on Button" to look like hover? It looks fugly when it just reveals text like that ;)
Title: Re: Spoiler Tag
Post by: 青山 素子 on March 16, 2010, 11:52:43 AM
Westlund, sure. That's why it's styled with CSS. Style it up however you want.

Keep in mind that some browsers won't respect certain styles (Safari won't allow styling of form elements, at least last I checked).
Title: Re: Spoiler Tag
Post by: hansdampf on March 30, 2010, 04:01:06 PM
Hey...

Even though it is working for me with 2.0 RC3 this modification is generating a huge amount of error log entries:

http://www/index.php?topic=3328.25;wap2
8: Undefined index: spoiler_tag_click_info
File: /srv/www/Sources/Subs.php
Line: 872


http://www/index.php?topic=3328.25;wap2
8: Undefined index: spoiler_tag_text
File: /srv/www/Sources/Subs.php
Line: 871


So this seems to be happening for WAP users only. What can I do to get this sorted....?


OK, I think I found it. I had to clean the cache to get the new values picked up from the German language file.
Title: Re: Spoiler Tag
Post by: Mave on May 31, 2010, 08:54:41 AM
Thanx for great mod

By use your mod i became some idea

http://www.simplemachines.org/community/index.php?topic=384205.0

its works great and is so usefull.

And here the german translate for 2.0
Title: Re: Spoiler Tag
Post by: Kurakama on May 31, 2010, 01:14:22 PM
@RC3

I have various errors when I try to ''preview'' in my post.
Title: Re: Spoiler Tag
Post by: 青山 素子 on May 31, 2010, 08:22:10 PM
Quote from: Euskor on May 31, 2010, 01:14:22 PM
@RC3

I have various errors when I try to ''preview'' in my post.

You'll need to be more specific if you want support.
Title: Re: Spoiler Tag
Post by: Kurakama on June 01, 2010, 01:08:51 AM
Dont worry motoko chan, I have fixed the error

thank you ;)
Title: Re: Spoiler Tag
Post by: gotskott on June 06, 2010, 03:05:24 PM
Thanks for a great mod!  Very useful... the forum I run is about puzzles, riddles, and such, so the spoiler tag will come in handy.

One thing, though:  A lot of our members make use of the news feed, where the spoiler-text shows up in full.  Is there any way around this?
Title: Re: Spoiler Tag
Post by: 青山 素子 on June 06, 2010, 03:32:16 PM
gotskott, not that I'm aware of. I believe the RSS stuff in SMF strips all but the most basic formatting. Most readers will strip out the JS and CSS that is relied upon for the tag anyway as they won't load remote styles.
Title: Re: Spoiler Tag
Post by: gotskott on June 06, 2010, 05:43:16 PM
Thanks Motoko-chan!  I don't suppose you know where that stripping takes place?  I was thinking if I could understand it, then maybe I could add an exception for [spoiler] tags.
Title: Re: Spoiler Tag
Post by: ExWizzard on June 09, 2010, 12:43:58 AM
Was the spoiler tagging in private messages ever made possible?
Title: Re: Spoiler Tag
Post by: jnghh on July 06, 2010, 02:47:57 AM
Hi, I'm using a rather old version of the mod -- but haven't had any problems with it so haven't really seen the need to update.

However, I and my users have noticed that if we just use the spoiler in post without any other text outside of the spoiler tag, in Chrome and Safari, the spoiler doesn't quite expand. No problems in FF or IE. Was wondering if this has been fixed,  hasn't been fixed yet, or if it's a browser+CSS issue that can't be fixed.
Title: Re: Spoiler Tag
Post by: NanoSector on July 15, 2010, 01:05:22 PM
Erhm I'm getting Parse Errors...

              4.   Execute Modification   languages-20/english.xml   Modification parse error
   5.   Execute Modification   languages-20/english.xml   Modification parse error
   6.   Execute Modification   themes-20/curve.xml   Modification parse error
   7.   Execute Modification   themes-20/curve.xml   Modification parse error
   8.   Execute Modification   themes-20/core.xml   Modification parse error
   9.   Execute Modification   themes-20/core.xml   Modification parse error

How can this be solved?
Title: Re: Spoiler Tag
Post by: 青山 素子 on July 15, 2010, 02:35:50 PM
Hmmmm. I'll double-check the package as soon as I have time, but it should work fine.
Title: Re: Spoiler Tag
Post by: Foozer on August 06, 2010, 01:52:57 PM
Hey guys! I can't seem to be able to change the spoiler permissions. When I go to Admin/Permissions, there is no mention of the world spoiler and it doesn't seem to be possible to change spoiler permissions. I am running smf version 1.1.11 and I have tried the following versions of the spoiler tag from the following mod:

http://custom.simplemachines.org/mods/index.php?mod=195 (http://custom.simplemachines.org/mods/index.php?mod=195)

Spoiler-0.7.1.tar.gz
Spoiler-0.7.2.tar.gz

Neither of those versions has enabled me to change spoiler permissions... has the feature been removed completely? I remember reading the readme that said that I should be able to change permissions. Any help?
Title: Re: Spoiler Tag
Post by: 青山 素子 on August 06, 2010, 03:11:00 PM
Newer versions of the Spoiler modification removed the permissions "system" as it created a ton of bugs concerning where the tag would work and broken nesting.
Title: Re: Spoiler Tag
Post by: JamesWC on August 06, 2010, 03:16:20 PM
Do later versions allow everyone to post spoiler tags in private messages?
Title: Re: Spoiler Tag
Post by: 青山 素子 on August 06, 2010, 06:39:47 PM
As they are just normal BBC now, they should; I didn't test specifically for that use, however.
Title: Re: Spoiler Tag
Post by: Foozer on August 07, 2010, 12:22:47 PM
Quote from: 青山 素子 on August 06, 2010, 03:11:00 PM
Newer versions of the Spoiler modification removed the permissions "system" as it created a ton of bugs concerning where the tag would work and broken nesting.
It would be quite useful for my forum to have spoiler tags visible to members only... is there an older version I can download that allows permissions to be set?
Title: Re: Spoiler Tag
Post by: 青山 素子 on August 07, 2010, 02:43:38 PM
Quote from: Foozer on August 07, 2010, 12:22:47 PM
It would be quite useful for my forum to have spoiler tags visible to members only... is there an older version I can download that allows permissions to be set?

The 0.6 series was the last with the ability to set "permissions". It is not supported nor is it coded to work with 2.0 RC2 or newer.
Title: Re: Spoiler Tag
Post by: hcfwesker on September 03, 2010, 05:29:34 AM
I have a request.  Using SMF 1.1.11

I prefer the button click spoiler option, but I really , really like how the "show on hover" looks more professionsl ( with the border around the spoiler text to organize what all is contained in the spoiler tag.

Is there any way to make the content from the click on button look the same as when it's hovered on.

Title: Re: Spoiler Tag
Post by: 青山 素子 on September 03, 2010, 11:43:31 AM
Quote from: hcfwesker on September 03, 2010, 05:29:34 AM
Is there any way to make the content from the click on button look the same as when it's hovered on.

Edit the CSS added to the theme.
Title: Re: Spoiler Tag
Post by: hcfwesker on September 03, 2010, 07:28:24 PM
Let's pretend I have no idea what I'm doing.   Whic one goes for the spoiler click on button, and which goes for the hover ...

fieldset.spoiler
{
border: 1px dashed gray;
}

fieldset.spoiler > legend
{
font-size: 1.2em;
}

div.spoilerheader a
{
font-family: sans-serif;
font-size: 1.1em;
font-weight: bold;
}

div.spoilerheader input
{
background-color: #cececc;
color: #3e3e33;
font: 0.9em sans-serif;
}

div.spoilerbody
{
color: #0f0f0f;
border: 1px dotted gray;
padding: 1em;
margin: 1em;
}

fieldset.spoiler div.spoilerbody
{
border: 0px;
padding: 0em;
}
Title: Re: Spoiler Tag
Post by: KensonPlays on September 15, 2010, 12:12:26 PM
Not a single failed modification, and I cannot find the Admin item for it at all! I don't want hover to show, the click a button one. Thanks, I like this better than the other smf 2.0rc3 version of a spoiler tag.
Title: Re: Spoiler Tag
Post by: 青山 素子 on September 15, 2010, 12:22:03 PM
For 2.0:

Global Style: Admin -> Configuration -> Features and Options -> General -> Spoiler Mode
Per-Theme: Admin -> Configuration -> Themes and Layout -> Theme Settings -> Theme Name -> Spoiler Mode
Title: Re: Spoiler Tag
Post by: Kat9119 on October 16, 2010, 11:19:40 PM
I'm confused as to which version to download for 1.1.11...when I try to search on the site at all tonight I get "Unable to access the search daemon" so sorry if its been asked before, I can't currently search
Title: Re: Spoiler Tag
Post by: 青山 素子 on October 17, 2010, 01:52:01 PM
0.7.2 should support 1.1.11 as indicated in the modification description.
Title: Re: Spoiler Tag
Post by: Noiz on October 21, 2010, 09:56:21 AM
I'm trying to install this on my forum running 1.1.11 but both the 0.7.1 and 0.7.2 packages produce the error:

Quote
The package you tried to upload either is not a valid package or has become corrupted.

I can open the package just fine on my local PC and have tried using Firefox and Chrome to upload with the same results. I even tried repackaging as a zip file to no avail. Any ideas?
Title: Re: Spoiler Tag
Post by: 青山 素子 on October 21, 2010, 11:00:09 AM
Have you been able to install other modifications without problem?
Title: Re: Spoiler Tag
Post by: Noiz on October 22, 2010, 03:23:43 AM
Yeah, I've just now installed the latest Tapatalk plugin, and when I couldn't get yours working I installed an alternate spoiler mod. But I prefer the functionality of yours!

I was previously using a much older version of your mod, 0.38 I think but that recently vanished, which is why I've been trying to update it.
Title: Re: Spoiler Tag
Post by: 青山 素子 on October 22, 2010, 10:57:51 AM
I'll try and do some tests as soon as I can to see if there is some reason it won't install correctly.
Title: Re: Spoiler Tag
Post by: kaitenkid on November 03, 2010, 12:27:20 PM
Is a cool spoiler.. 

in 2.0 rc3 was amazing..

now I need this again but for RC4 .... pleaaaaaseeee  :'( :'( :'( :'(
Title: Re: Spoiler Tag
Post by: 青山 素子 on November 03, 2010, 02:13:39 PM
Crying won't give me the free time I need to check compatibility and update if needed. I'll be updating my modifications as soon as I am able.
Title: Re: Spoiler Tag
Post by: busterone on November 03, 2010, 05:59:54 PM
Quote from: kaitenkid on November 03, 2010, 12:27:20 PM
Is a cool spoiler.. 

in 2.0 rc3 was amazing..

now I need this again but for RC4 .... pleaaaaaseeee  :'( :'( :'( :'(
Use version emulation, it installed with no errors for me.
Title: Re: Spoiler Tag
Post by: Neo_TE on November 05, 2010, 07:46:46 AM
Quote from: kaitenkid on November 03, 2010, 12:27:20 PM
Is a cool spoiler.. 

in 2.0 rc3 was amazing..

now I need this again but for RC4 .... pleaaaaaseeee  :'( :'( :'( :'(

To get rc4 support, open package-info.xml and replace it with the following code.

<?xml version="1.0"?>
<!DOCTYPE package-info SYSTEM "http://www.simplemachines.org/xml/package-info">

<package-info xmlns="http://www.simplemachines.org/xml/package-info" xmlns:smf="http://www.simplemachines.org/">
        <id>azatoth:spoiler</id>
        <name>Spoiler Tag</name>
        <version>0.7.2</version>
        <type>modification</type>
        <install for="1.1.*">
                <readme>README</readme>
                <modification>install.xml</modification>
                <modification>themes/core.xml</modification>
                <modification>themes/classic.xml</modification>
                <modification>languages/english.xml</modification>
                <modification>languages/portuguese.xml</modification>
                <modification>languages/german.xml</modification>
                <modification>languages/french.xml</modification>
                <modification>languages/spanish.xml</modification>
                <require-file name="files/spoiler.gif" destination="$boarddir/Themes/default/images/bbc" />
        </install>
    <install for="2.0 RC2, 2.0 RC3, 2.0 RC4">
        <readme>README</readme>
        <modification>install-20.xml</modification>
        <modification>languages-20/english.xml</modification>
        <modification>themes-20/curve.xml</modification>
        <modification>themes-20/core.xml</modification>
        <require-file name="files/spoiler.gif" destination="$themedir/images/bbc" />
        <require-file name="files/spoiler.gif" destination="$boarddir/Themes/core/images/bbc" />
    </install>
    <install>
        <readme type="inline">This package doesn't appear to support your SMF version.</readme>
    </install>
        <uninstall for="1.1.*">
                <modification reverse="true">install.xml</modification>
                <modification reverse="true">themes/core.xml</modification>
                <modification reverse="true">themes/classic.xml</modification>
                <modification reverse="true">languages/english.xml</modification>
                <modification reverse="true">languages/portuguese.xml</modification>
                <modification reverse="true">languages/german.xml</modification>
                <modification reverse="true">languages/french.xml</modification>
                <modification reverse="true">languages/spanish.xml</modification>
                <remove-file name="$boarddir/Themes/default/images/bbc/spoiler.gif" />
        </uninstall>
    <uninstall for="2.0 RC2, 2.0 RC3, 2.0 RC4">
        <modification reverse="true">install-20.xml</modification>
        <modification reverse="true">languages-20/english.xml</modification>
        <modification reverse="true">themes-20/curve.xml</modification>
        <modification reverse="true">themes-20/core.xml</modification>
        <remove-file name="$themedir/images/bbc/spoiler.gif" />
        <remove-file name="$boarddir/Themes/core/images/bbc/spoiler.gif" />
    </uninstall>
</package-info>
Title: Re: Spoiler Tag
Post by: 青山 素子 on November 05, 2010, 11:06:01 PM
Quote from: Neo_TE on November 05, 2010, 07:46:46 AM
To get rc4 support, open package-info.xml and replace it with the following code.

Or, if the modification doesn't need actual changes, just use the version emulation option. Saves a bunch of repackaging and is easier to handle.
Title: Re: Spoiler Tag
Post by: nax on December 16, 2010, 12:09:47 PM
Thanks Motoko that worked for me. I will remove it and apply the RC4 version when it comes out.
Title: Re: Spoiler Tag
Post by: neverfox on December 20, 2010, 10:59:22 PM
Quote from: Noiz on October 21, 2010, 09:56:21 AM
I'm trying to install this on my forum running 1.1.11 but both the 0.7.1 and 0.7.2 packages produce the error:

Quote
The package you tried to upload either is not a valid package or has become corrupted.

I can open the package just fine on my local PC and have tried using Firefox and Chrome to upload with the same results. I even tried repackaging as a zip file to no avail. Any ideas?

Ditto for me. Any solutions yet?
Title: Re: Spoiler Tag
Post by: keiner on January 06, 2011, 06:45:23 AM
we could need that support, too
Title: Re: Spoiler Tag
Post by: Robin1989 on March 01, 2011, 10:04:07 PM
does this work on rc5?
Title: Re: Spoiler Tag
Post by: poolhall on March 02, 2011, 07:45:35 AM
Quote from: Robin1989 on March 01, 2011, 10:04:07 PM
does this work on rc5?
yes
Title: Re: Spoiler Tag
Post by: CodeMonkey76 on March 18, 2011, 11:46:36 AM
Is there a way to get it so that the button itself says "Show Spoiler" and "Hide Spoiler", instead of the text next to it?  That would be a bit cleaner interface.
Title: Re: Spoiler Tag
Post by: 青山 素子 on March 18, 2011, 12:23:08 PM
Sure, it's possible. Set the value of the button to the phrase.
Title: Re: Spoiler Tag
Post by: dembow on March 21, 2011, 06:35:43 PM
Quote from: poolhall on March 02, 2011, 07:45:35 AM
Quote from: Robin1989 on March 01, 2011, 10:04:07 PM
does this work on rc5?
yes

so how should i install it then? parse it for rc3 even though is rc5 and follow the same steps?
Title: Re: Spoiler Tag
Post by: busterone on March 21, 2011, 06:40:36 PM
That will work.
Title: Re: Spoiler Tag
Post by: dembow on March 21, 2011, 08:35:20 PM
nevermind that, i installed it with no problems by changing the emulate version to rc3   ;D
Title: Re: Spoiler Tag
Post by: Gryzor on May 12, 2011, 02:47:33 AM
I tried installing it by emulating RC3 and I get parsing errors:

              4.   Execute Modification   languages-20/english.xml   Modification parse error
   5.   Execute Modification   languages-20/english.xml   Modification parse error
   6.   Execute Modification   themes-20/curve.xml   Modification parse error
   7.   Execute Modification   themes-20/curve.xml   Modification parse error
   8.   Execute Modification   themes-20/core.xml   Modification parse error
   9.   Execute Modification   themes-20/core.xml   Modification parse error

Weird??
Title: Re: Spoiler Tag
Post by: Vangald on June 07, 2011, 09:11:09 AM
I just added your mod to my forum and I love it! However, I was wondering how hard it would be to change the button into an image? My thought was to change the spoiler button that gets put in a thread to a cartoon image of sorts.
Title: Re: Spoiler Tag
Post by: 青山 素子 on June 07, 2011, 05:06:20 PM
If you know how to use CSS, you can use it to change the look of the buttons, including substituting with images.
Title: Re: Spoiler Tag
Post by: Vangald on June 08, 2011, 08:42:34 AM
I see. I will look up how to do so in css then. Would be good for me to learn. I have to ask though, what file contains the css for the button?
Title: Re: Spoiler Tag
Post by: seficar on June 16, 2011, 05:34:44 AM
does this works on 2.0?
Title: Re: Spoiler Tag
Post by: 青山 素子 on June 16, 2011, 08:54:44 PM
Possibly. I haven't had time to verify against stable 2.0. It does support earlier RC releases.
Title: Re: Spoiler Tag
Post by: busterone on June 16, 2011, 10:06:54 PM
It is working on 2.0.  Use version emulation to install it.
Title: Re: Spoiler Tag
Post by: Zanryu on June 20, 2011, 04:51:43 PM
I'm currently running SMF 1.1.14 on my forum, and the Package Installer claims that everything was installed correctly, but nothing has changed in the admin control panel, and I can't use the spoiler tags on my forum - any ideas? :x
Title: Re: Spoiler Tag
Post by: eric1234 on June 22, 2011, 12:51:28 AM
Any idea why when i put spoiler in image it just cant show up >.< It only works with "hover to show" setting, the other 2 that by clicking link or something just wont work.. why??
Title: Re: Spoiler Tag
Post by: 青山 素子 on June 22, 2011, 11:54:15 AM
In image? What do you mean?
Title: Re: Spoiler Tag
Post by: eric1234 on June 23, 2011, 06:11:15 AM
Sorry for my crappy english. I mean the spoiler was unable to preview the images. When i post an images thread without spoiler , the thread is working fine and the images were shown out. However, after i add in Spoiler, which mean the images in the spoiler , then the images just wont showed out . I click the spoiler to show the images , but it just show a blank page. Nothing else... >.<
Title: Re: Spoiler Tag
Post by: 青山 素子 on June 23, 2011, 01:57:26 PM
Can you provide an example of the bbcode used so I can test that?
Title: Re: Spoiler Tag
Post by: eric1234 on June 29, 2011, 03:53:47 PM
[spoiler](https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi.imgur.com%2FmyJLR.jpg&hash=42ebce4f377e828a26fb1cd4d9bfa7654cd2afc9)[/spoiler]

Can you test it ? I am using 2.0 Gold version
Title: Re: Spoiler Tag
Post by: busterone on June 29, 2011, 09:43:18 PM
it works on my site running 2.0
Title: Re: Spoiler Tag
Post by: eric1234 on June 30, 2011, 05:58:31 AM
but not mine
Title: Re: Spoiler Tag
Post by: 青山 素子 on June 30, 2011, 11:20:28 AM
Quote from: eric1234 on June 29, 2011, 03:53:47 PM
Can you test it ? I am using 2.0 Gold version

It works fine for me on my test forum. Are you using a recent release of the modification?
Title: Re: Spoiler Tag
Post by: eric1234 on July 01, 2011, 11:57:28 AM
Think so. I will reinstall it.
Title: Re: Spoiler Tag
Post by: eric1234 on July 06, 2011, 01:44:40 PM
I re-install already still cant.

Check the attachment , it don't show the picture.

Title: Re: Spoiler Tag
Post by: Zanryu on July 06, 2011, 09:13:41 PM
Quote from: Zanryu on June 20, 2011, 04:51:43 PM
I'm currently running SMF 1.1.14 on my forum, and the Package Installer claims that everything was installed correctly, but nothing has changed in the admin control panel, and I can't use the spoiler tags on my forum - any ideas? :x

Sorry for seeming impatient, but it's been quite some time since I asked and I've had no help as of yet, my staff is getting kind of anxious. :x
Title: Re: Spoiler Tag
Post by: eric1234 on August 09, 2011, 05:58:06 AM
Quote from: eric1234 on July 06, 2011, 01:44:40 PM
I re-install already still cant.

Check the attachment , it don't show the picture.

Need help here !  :(
Title: Re: Spoiler Tag
Post by: MiY4Gi on August 09, 2011, 08:00:45 AM
Quote from: Zanryu on July 06, 2011, 09:13:41 PM
Quote from: Zanryu on June 20, 2011, 04:51:43 PM
I'm currently running SMF 1.1.14 on my forum, and the Package Installer claims that everything was installed correctly, but nothing has changed in the admin control panel, and I can't use the spoiler tags on my forum - any ideas? :x

Sorry for seeming impatient, but it's been quite some time since I asked and I've had no help as of yet, my staff is getting kind of anxious. :x

Have you tried uninstalling then re-installing the mod? What theme are you using? When you say you can't use spoiler tags on your forum, what do you mean? Do you mean the spoiler tags just appears as text in a post, or do you mean the forum gives an error when you use the tags?

What theme are you using?

Quote from: eric1234 on August 09, 2011, 05:58:06 AM
Quote from: eric1234 on July 06, 2011, 01:44:40 PM
I re-install already still cant.

Check the attachment , it don't show the picture.

Need help here !  :(

What theme are you using?
Title: Re: Spoiler Tag
Post by: wwwserfer on August 26, 2011, 08:41:59 AM
Hi!

Anybody can help me modify the code to look like this:

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fsavepic.ru%2F3031871.gif&hash=ff3f087bef9edd4efe873f08f9c6607d9092919a)

I would be very grateful!
Title: Re: Spoiler Tag
Post by: WillyP on August 26, 2011, 10:34:27 AM
Nice mod, thank you for making this.

One small thing, though, the button for the spoiler tag:

Edit, I had to copy the image from the default theme to the themes I am using, problem solved.
Title: Re: Spoiler Tag
Post by: 青山 素子 on August 28, 2011, 04:04:41 PM
Quote from: wwwserfer on August 26, 2011, 08:41:59 AM
Anybody can help me modify the code to look like this:

It's all CSS, so use the developer tools in Chrome/Chromium or Safari or Firebug under Firefox to find the classes. It shouldn't be too difficult as long as you know basic CSS.

Quote from: WillyP on August 26, 2011, 10:34:27 AM
One small thing, though, the button for the spoiler tag:

Edit, I had to copy the image from the default theme to the themes I am using, problem solved.

Yeah, if you're installing on 2.0, make sure to check the boxes for other themes you use so the image will be copied. Otherwise, a manual copy will work perfectly fine.
Title: Re: Spoiler Tag
Post by: wwwserfer on September 04, 2011, 08:18:57 AM
Quote from: 青山 素子 on August 28, 2011, 04:04:41 PM
Quote from: wwwserfer on August 26, 2011, 08:41:59 AM
Anybody can help me modify the code to look like this:

It's all CSS, so use the developer tools in Chrome/Chromium or Safari or Firebug under Firefox to find the classes. It shouldn't be too difficult as long as you know basic CSS.


Only CSS? No php, java additionaly coding?
Title: Re: Spoiler Tag
Post by: Tryan on September 15, 2011, 07:51:22 AM
Thank you for making the spoiler tag it is wonderful. However, when I installed it, the image for the spoiler tag button when you make a post is a broken image.

As you can see on this - (https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi55.tinypic.com%2Fmh3qrq.jpg&hash=8e9d6f5ff85ebd730eb85a0cb7a35ab3caa6a61c)
cap I have taken the spoiler button is a broken image.

Also there were no instructions on how to upload a new image for the broken one.
Title: Re: Spoiler Tag
Post by: Winter on September 15, 2011, 08:25:18 AM
In SMF 2.0 (gold) I get the following problem when I try to install:

Quote1.   Execute Modification   ./Sources/Subs.php   Test successful
   2.   Execute Modification   ./Sources/ManageSettings.php   Test successful
   3.   Execute Modification   ./Sources/Subs-Editor.php   Test successful
4.   Execute Modification   languages-20/english.xml   Modification parse error
5.   Execute Modification   languages-20/english.xml   Modification parse error
6.   Execute Modification   themes-20/curve.xml   Modification parse error
7.   Execute Modification   themes-20/curve.xml   Modification parse error
8.   Execute Modification   themes-20/core.xml   Modification parse error
9.   Execute Modification   themes-20/core.xml   Modification parse error
10.   Extract File   ./Themes/default/images/bbc/spoiler.gif   
11.   Extract File   ./Themes/core/images/bbc/spoiler.gif

If I continue with the installation, nothing actually installs. I've tried 0.7.2 and 0.7.2a and I've also tried emulating RC2 and RC3 but to no avail.

This mod used to work perfectly for me in RC5, sadly :(

edit: i accidentally a word
Title: Re: Spoiler Tag
Post by: 青山 素子 on September 15, 2011, 12:04:40 PM
Quote from: Tryan on September 15, 2011, 07:51:22 AM
Thank you for making the spoiler tag it is wonderful. However, when I installed it, the image for the spoiler tag button when you make a post is a broken image.

Also there were no instructions on how to upload a new image for the broken one.

You must be using a custom theme and forgot to check the box to apply to the custom theme in 2.0 (or are still using 1.1). Copy the spoiler.gif from themes/default/bbc/" and put it in the same directory on your custom theme.


Quote from: Winter on September 15, 2011, 08:25:18 AM
In SMF 2.0 (gold) I get the following problem when I try to install:

That is indeed odd. Unfortunately, I can't replicate the issue. Parse errors like that usually indicate that the server didn't unpack the modification properly. You could try extracting it and then re-archiving into another format like zip.
Title: Re: Spoiler Tag
Post by: Winter on September 20, 2011, 10:12:38 AM
Quote from: 青山 素子 on September 15, 2011, 12:04:40 PM

Quote from: Winter on September 15, 2011, 08:25:18 AM
In SMF 2.0 (gold) I get the following problem when I try to install:

That is indeed odd. Unfortunately, I can't replicate the issue. Parse errors like that usually indicate that the server didn't unpack the modification properly. You could try extracting it and then re-archiving into another format like zip.

Just to follow up and let you know that the issue is resolved, and how: I downloaded the modification directly through the SMF Download Packages page in the Admin interface and the mod installed correctly after that.

Thanks for this mod :)
Title: Re: Spoiler Tag
Post by: Tibbetts on October 18, 2011, 08:36:50 PM
Is it possible to change the font color of the spoiler?  We have a dark background for our skin and the spoiler is font-color black.  Is there a spot in the CSS that I can edit to change that? :D


Regards.
Title: Re: Spoiler Tag
Post by: 青山 素子 on October 18, 2011, 09:47:33 PM
It should use the standard post text color, but you can define a color for the class "spoilerbody" and that will be used.
Title: Re: Spoiler Tag
Post by: Tibbetts on October 18, 2011, 10:23:18 PM
Do I find that in the CSS?  If not, what should I add to the CSS to make that happen?

Regards.
Title: Re: Spoiler Tag
Post by: 青山 素子 on October 19, 2011, 12:24:03 AM
It's very basic CSS, you should be able to search and add if needed without any handholding.
Title: Re: Spoiler Tag
Post by: Tibbetts on October 19, 2011, 01:00:20 AM
Actually, I don't know CSS.  So what should I put in and where?


Regards.
Title: Re: Spoiler Tag
Post by: 青山 素子 on October 19, 2011, 01:15:04 AM

.spoilerbody {
  color: #00ff00;
}


Add to index.css

Also, you should really learn some basic CSS. It's the easiest way to make changes to your forum's theme.
Title: Re: Spoiler Tag
Post by: Tibbetts on October 19, 2011, 01:22:04 AM
EDIT: Thanks! Found it near the bottom.  I was looking for just .spoilerbody and not div.spoilerbody, so my eyes just skimmed over it.

As for learning it?  Meh, I'm only adding this to help out some friends and their forum.  It's not like I'll be doing this every day for the rest of my life. lol...

Thanks again! :D

Regards.
Title: Re: Spoiler Tag
Post by: 青山 素子 on October 19, 2011, 12:10:14 PM
Quote from: Tibbetts on October 19, 2011, 01:22:04 AM
EDIT: Thanks! Found it near the bottom.  I was looking for just .spoilerbody and not div.spoilerbody, so my eyes just skimmed over it.

The find feature in any text-editing software should be able to find it without you needing to go blind searching.


Quote from: Tibbetts on October 19, 2011, 01:22:04 AM
As for learning it?  Meh, I'm only adding this to help out some friends and their forum.  It's not like I'll be doing this every day for the rest of my life. lol...

It's always good to learn. It keeps the brain in shape. Heck, I'm working on learning Android programming, how to play the guitar and harmonica, and in my less-sane moments, seeing how I can fit in properly learning Japanese.

You also never know where you'll be in the future, and some of that "useless" knowledge will come in handy. Many years ago (over five), I learned about many areas of fansubbing (unofficial subtitling of foreign-language videos) - editing subtitles, encoding video using various filters, etc. Just a few months ago, the place I work was approached by a client to do some work involving video processing. It turns out those video encoding skills have come in very handy as I've been able to engage on the technical side of the processing and work out solutions for things.
Title: Re: Spoiler Tag
Post by: eric1234 on October 23, 2011, 10:13:09 AM


Quote
What theme are you using?

AnimeHeaven

Until now, the problem still exist  :( 
Title: Re: Spoiler Tag
Post by: KensonPlays on October 25, 2011, 05:47:31 PM
Works perfectly on 2.0.1 :D
Title: Re: Spoiler Tag
Post by: gisfreak on December 03, 2011, 10:35:30 AM
I have black themes, and all word under spoiler turn to black, how to make it white?
Title: Re: Spoiler Tag
Post by: 青山 素子 on December 03, 2011, 12:42:52 PM
It's been asked before. Look earlier in this very topic.
Title: Re: Spoiler Tag
Post by: hcfwesker on December 03, 2011, 05:23:56 PM
Quote from: gisfreak on December 03, 2011, 10:35:30 AM
I have black themes, and all word under spoiler turn to black, how to make it white?

I had to change a color setting in the CSS (http://www.simplemachines.org/community/index.php?topic=50261.msg1244160#msg1244160)

You need to find the css in that theme that makes the spoiler text black, and make it white, or a color that shows.
Title: Re: Spoiler Tag
Post by: gisfreak on December 05, 2011, 03:14:05 AM
ah thanx didn't notice , sorry

solved
Title: Re: Spoiler Tag
Post by: Belford on February 05, 2012, 09:55:23 AM
// Spoiler Mod // BBC Strings $txt['bbc_spoiler'] = 'Insert Spoiler'; // Post View Text $txt['spoiler_tag_text'] = 'Spoiler'; $txt['spoiler_tag_click_info'] = '(click to show/hide)'; $txt['spoiler_tag_hover_info'] = '(hover to show)'; // Mod Settings $txt['defaultSpoilerStyle'] = 'Spoiler Mode'; $txt['spoiler_tag_onhoverovershow'] = 'Show on Hover'; $txt['spoiler_tag_onlinkclickshow'] = 'Show on Link Click'; $txt['spoiler_tag_onbuttonclickshow'] = 'Show on Button Click'; // Extra Settings String for per-theme selection $txt['spoiler_tag_label'] = 'Spoiler Mode'; $txt['spoiler_tag_desc'] = 'Choose how spoilers will display on the theme.'; $txt['spoiler_tag_default'] = '(use global default spoiler mode)';


What's going on?
Title: Re: Spoiler Tag
Post by: hcfwesker on February 05, 2012, 11:23:42 AM
Need more input.
Title: Re: Spoiler Tag
Post by: Belford on February 05, 2012, 11:51:35 AM
Quote1.   Execute Modification   ./Sources/Subs.php   Test successful
   2.   Execute Modification   ./Sources/ManageSettings.php   Test successful
   3.   Execute Modification   ./Sources/Subs-Editor.php   Test successful
   4.   Execute Modification   ./Themes/default/languages/Modifications.english.php   Test successful
5.   Execute Modification   ./Themes/default/languages/Modifications.english-utf8.php   Skipping file
6.   Execute Modification   ./Themes/default/languages/Modifications.english_british.php   Skipping file
7.   Execute Modification   ./Themes/default/languages/Modifications.english_british-utf8.php   Skipping file
   8.   Execute Modification   ./Themes/default/languages/Help.english.php   Test successful
9.   Execute Modification   ./Themes/default/languages/Help.english-utf8.php   Skipping file
10.   Execute Modification   ./Themes/default/languages/Help.english_british.php   Skipping file
11.   Execute Modification   ./Themes/default/languages/Help.english_british-utf8.php   Skipping file
   12.   Execute Modification   ./Themes/default/css/index.css   Test successful
   13.   Execute Modification   ./Themes/default/Settings.template.php   Test successful
   14.   Execute Modification   ./Themes/core/css/index.css   Test successful
   15.   Execute Modification   ./Themes/core/Settings.template.php   Test successful
16.   Extract File   ./Themes/default/images/bbc/spoiler.gif   
17.   Extract File   ./Themes/core/images/bbc/spoiler.gif

Language files missed, because I use the national language on the forum.
Then
QuoteThe package was installed successfully. You should now be able to use whatever functionality it adds or changes; or not be able to use functionality it removes.
but on the top I see:
Quote// Spoiler Mod // BBC Strings $txt['bbc_spoiler'] = 'Insert Spoiler'; // Post View Text $txt['spoiler_tag_text'] = 'Spoiler'; $txt['spoiler_tag_click_info'] = '(click to show/hide)'; $txt['spoiler_tag_hover_info'] = '(hover to show)'; // Mod Settings $txt['defaultSpoilerStyle'] = 'Spoiler Mode'; $txt['spoiler_tag_onhoverovershow'] = 'Show on Hover'; $txt['spoiler_tag_onlinkclickshow'] = 'Show on Link Click'; $txt['spoiler_tag_onbuttonclickshow'] = 'Show on Button Click'; // Extra Settings String for per-theme selection $txt['spoiler_tag_label'] = 'Spoiler Mode'; $txt['spoiler_tag_desc'] = 'Choose how spoilers will display on the theme.'; $txt['spoiler_tag_default'] = '(use global default spoiler mode)';

Fortunately, the uninstall done smoothly.
Title: Re: Spoiler Tag
Post by: hcfwesker on February 05, 2012, 11:59:29 AM
Ok, I see what your problem is.  After Installing the MOd, and you see that text on the top of your forum, follow this path in your file directory

Themes/default/languages/Modifications.english.php

The closing statement ..

?>

Is not where it should be, and looks like edit is getting added AFTER the closing statement.

So, just find the ?> , close to where the spoiler language edit gets added towards the bottom of the file, and move ?> it to the VERY bottom.

So, ?>  , is the last thing in that file.
Title: Re: Spoiler Tag
Post by: Belford on February 05, 2012, 12:11:09 PM
Howerwer, could you tell me what are .php~ files?

I checked this file and it looks fine:
<?php
// Version: 2.0; Modifications

// SMF Sitemap Strings
$txt['sitemap'] = 'Sitemap';
$txt['sitemap_boards'] = 'Boards';
$txt['sitemap_topics'] = 'Topics';
$txt['sitemap_xml'] = 'Show Sitemap XML <em>link</em>';
$txt['sitemap_topic_count'] = 'Maximum number of topics to display in XML sitemap<br /><span class="smalltext">0 to show all (<strong class="error">NOT RECOMMENDED ON LARGE BOARDS</strong>)</span>';
$txt['sitemap_cache_ttl'] = 'Time that XML data should be cached (seconds)';
$txt['sitemap_board_none'] = 'No boards to display';
$txt['sitemap_topic_none'] = 'No topics to display';
$txt['sitemap_30day_priority'] = 'Priority for topics active in the last 30 days';
$txt['sitemap_60day_priority'] = 'Priority for topics active in the last 60 days';
$txt['sitemap_90day_priority'] = 'Priority for topics active in the last 90 days';
$txt['sitemap_91day_priority'] = 'Priority for topics older than 90 days';
$txt['invalid_sitemap_subaction'] = 'Invalid selection';
// SMFPacks Shoutbox -->
$txt['sba_title'] = 'Shoutbox';
$txt['sba_link'] = 'Shoutbox';

$txt['permissiongroup_shoutbox'] = 'Shoutbox';
$txt['permissiongroup_simple_shoutbox'] = 'Shoutbox';
$txt['permissionname_shoutbox_view'] = 'View Shoutbox';
$txt['permissionname_shoutbox_post'] = 'Post messages in Shoutbox';
$txt['permissiongroup_shoutbox_panel'] = 'Shoutbox Moderation Panel';
$txt['permissiongroup_simple_shoutbox_panel'] = 'Shoutbox Moderation Panel';
$txt['permissionname_shoutbox_edit'] = 'Edit messages in Shoutbox';
$txt['permissionname_shoutbox_delete'] = 'Delete messages in Shoutbox';
$txt['permissionname_shoutbox_prune'] = 'Empty Shoutbox';
$txt['permissionname_shoutbox_ban'] = 'Ban users in Shoutbox';
// <-- SMFPacks Shoutbox

$txt['gtalk'] = 'Google Talk';
$txt['your_gtalk'] = 'This is your GTalk address.';
$txt['gtalk1'] = 'G-Talk';
$txt['skype'] = 'Skype';
$txt['your_skype'] = 'This is your Skype username.';
 
?>


.php~ one:
<?php
// Version: 2.0; Modifications

// SMF Sitemap Strings
$txt['sitemap'] = 'Sitemap';
$txt['sitemap_boards'] = 'Boards';
$txt['sitemap_topics'] = 'Topics';
$txt['sitemap_xml'] = 'Show Sitemap XML <em>link</em>';
$txt['sitemap_topic_count'] = 'Maximum number of topics to display in XML sitemap<br /><span class="smalltext">0 to show all (<strong class="error">NOT RECOMMENDED ON LARGE BOARDS</strong>)</span>';
$txt['sitemap_cache_ttl'] = 'Time that XML data should be cached (seconds)';
$txt['sitemap_board_none'] = 'No boards to display';
$txt['sitemap_topic_none'] = 'No topics to display';
$txt['sitemap_30day_priority'] = 'Priority for topics active in the last 30 days';
$txt['sitemap_60day_priority'] = 'Priority for topics active in the last 60 days';
$txt['sitemap_90day_priority'] = 'Priority for topics active in the last 90 days';
$txt['sitemap_91day_priority'] = 'Priority for topics older than 90 days';
$txt['invalid_sitemap_subaction'] = 'Invalid selection';
// SMFPacks Shoutbox -->
$txt['sba_title'] = 'Shoutbox';
$txt['sba_link'] = 'Shoutbox';

$txt['permissiongroup_shoutbox'] = 'Shoutbox';
$txt['permissiongroup_simple_shoutbox'] = 'Shoutbox';
$txt['permissionname_shoutbox_view'] = 'View Shoutbox';
$txt['permissionname_shoutbox_post'] = 'Post messages in Shoutbox';
$txt['permissiongroup_shoutbox_panel'] = 'Shoutbox Moderation Panel';
$txt['permissiongroup_simple_shoutbox_panel'] = 'Shoutbox Moderation Panel';
$txt['permissionname_shoutbox_edit'] = 'Edit messages in Shoutbox';
$txt['permissionname_shoutbox_delete'] = 'Delete messages in Shoutbox';
$txt['permissionname_shoutbox_prune'] = 'Empty Shoutbox';
$txt['permissionname_shoutbox_ban'] = 'Ban users in Shoutbox';
// <-- SMFPacks Shoutbox

$txt['gtalk'] = 'Google Talk';
$txt['your_gtalk'] = 'This is your GTalk address.';
$txt['gtalk1'] = 'G-Talk';
$txt['skype'] = 'Skype';
$txt['your_skype'] = 'This is your Skype username.';


// Spoiler Mod
// BBC Strings
$txt['bbc_spoiler'] = 'Insert Spoiler';

// Post View Text
$txt['spoiler_tag_text'] = 'Spoiler';
$txt['spoiler_tag_click_info'] = '(click to show/hide)';
$txt['spoiler_tag_hover_info'] = '(hover to show)';

// Mod Settings
$txt['defaultSpoilerStyle'] = 'Spoiler Mode';
$txt['spoiler_tag_onhoverovershow'] = 'Show on Hover';
$txt['spoiler_tag_onlinkclickshow'] = 'Show on Link Click';
$txt['spoiler_tag_onbuttonclickshow'] = 'Show on Button Click';


// Extra Settings String for per-theme selection
$txt['spoiler_tag_label'] = 'Spoiler Mode';
$txt['spoiler_tag_desc'] = 'Choose how spoilers will display on the theme.';
$txt['spoiler_tag_default'] = '(use global default spoiler mode)';
?>
Title: Re: Spoiler Tag
Post by: hcfwesker on February 05, 2012, 03:50:11 PM
Quote from: Belford on February 05, 2012, 12:11:09 PM
Howerwer, could you tell me what are .php~ files?

php~ is just a backup of the original file.  It usually saves a copy of the file prior to the last edit made.

Looking at what you posted, the Spoiler $txt tags are not in the file, so the copy posted was not when the MOD was installed.  Install th eMOd, then check the language file and see if everything looks normal.
Title: Re: Spoiler Tag
Post by: Redric on May 08, 2012, 12:01:26 PM
Do you think there would be any way to set it up so you can use an image as the spoiler button instead of the default button?

like
[spoiler=http://image]content[/spoiler]
Title: Re: Spoiler Tag
Post by: Arantor on May 08, 2012, 12:13:22 PM
It wouldn't work properly without being totally rewritten.
Title: Re: Spoiler Tag
Post by: 青山 素子 on May 08, 2012, 12:35:06 PM
Quote from: Redric on May 08, 2012, 12:01:26 PM
Do you think there would be any way to set it up so you can use an image as the spoiler button instead of the default button?

like
[spoiler=http://image]content[/spoiler]

It could be done, yes. Are you thinking of allowing users to decide what the image would be?
Title: Re: Spoiler Tag
Post by: Alb0 on June 17, 2012, 01:55:53 AM
Why can't I input an image between the spoiler tags? When I do, and the post is made, the image doesn't show up. Works fine in the post preview though.
Title: Re: Spoiler Tag
Post by: 青山 素子 on June 17, 2012, 01:40:23 PM
Odd, you should be able to. Are you using the newest version of the modification?
Title: Re: Spoiler Tag
Post by: Alb0 on June 17, 2012, 01:45:11 PM
I've actually figured out the problem. The mod Resize Images To Fit Screen (http://custom.simplemachines.org/mods/index.php?mod=1769) was interfering with the spoiler tags from showing the images. No idea as to why, but I've removed the mod, and installed another similar one instead. All works fine now.
Title: Re: Spoiler Tag
Post by: yoanna on September 09, 2012, 05:15:40 PM
I tried to install the spoiler mod (http://custom.simplemachines.org/mods/index.php?mod=195) after our previous spoiler stopped working. I de-installed the previous spoiler and deleted it but after trying to install a new spoiler I was getting the following error message
QuoteStrict Standards: require_once() [function.require-once]: It is not safe to rely on the system's timezone settings. Please use the date.timezone setting, the TZ environment variable or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/Los_Angeles' for 'PDT/-7.0/DST' instead in /home/forum/public_html/Sources/Subs.php on line 1007

Fatal error: Cannot redeclare build_spoiler() (previously declared in /home/prsten5/public_html/Sources/Subs.php:848) in /home/forum/public_html/Sources/Subs.php on line 1007

I think something from my previous spoiler tag remained, I managed to delete enough to put the forum back online. Now I have an annoying spoiler code at the top of the forum. Does anyone know a quick easy way to get rid of it or do I have to do it manually in all the themes?
Title: Re: Spoiler Tag
Post by: aerolite on September 27, 2012, 10:42:30 PM
After the update of Spoiler Tag, I was not able to see the SPOILER in my actual post, but visible when preview it...

Can anyone help me fix this?

I'm so sorry this mod works 100%, I was using 2 SPOILER package, and that's why i'm having conflicts.

Solved already by uninstalling the old one.

Thank you!
Title: Re: Spoiler Tag
Post by: 青山 素子 on September 27, 2012, 10:44:11 PM
Are you using a custom theme? If so and you switch to the default theme, does it work?
Title: Re: Spoiler Tag
Post by: davidhs on April 26, 2013, 06:40:45 AM
Can you modify your MOD so that it do not add "Spoiler" text to custom title?

I do this on my forum
QuoteOn function build_spoiler, replace
if($topic != '')
$topic = ':'.$topic;

by
if($topic == '')
$topic = $txt['spoiler_tag_text'];

and replace
$txt['spoiler_tag_text'].$topic
by
$topic
Title: Re: Spoiler Tag
Post by: naoko15 on June 17, 2013, 04:45:59 AM
Hello, i've just installed your mod in my SMF 2.04 board. I need to remove the (click to show/hide) text  but there's no way i can do this.

I've removed the text from "Themes/default/languages/Modifications.english.php' but it keeps on showing up.

What can i do?

Thanks.
Title: Re: Spoiler Tag
Post by: Apllicmz on June 26, 2013, 03:28:20 PM
Update portuguese_pt
smf 2.x
Title: Re: Spoiler Tag
Post by: Neo_TE on June 26, 2013, 04:26:27 PM
Quote from: naoko15 on June 17, 2013, 04:45:59 AM
Hello, i've just installed your mod in my SMF 2.04 board. I need to remove the (click to show/hide) text  but there's no way i can do this.

I've  but it keeps on showing up.

What can i do?

Thanks.

If your forum is using UTF8 then you should remove the text from "Themes/default/languages/Modifications.english-utf8.php'
Title: Re: Spoiler Tag
Post by: GleamPlay.com on February 01, 2014, 06:48:55 AM
hello I just installed your mod.
I really like the style of the "Hover type"
but at the same time I would like it to be click to show/hide.

Is it possible to actually use the hover style but click to show/hide?
Title: Re: Spoiler Tag
Post by: Jeffrey King on February 01, 2014, 10:10:46 AM
Quote from: Gleam.tk on February 01, 2014, 06:48:55 AM
hello I just installed your mod.
I really like the style of the "Hover type"
but at the same time I would like it to be click to show/hide.

Is it possible to actually use the hover style but click to show/hide?

Yep
Title: Re: Spoiler Tag
Post by: GleamPlay.com on February 01, 2014, 10:21:39 AM
how?
Title: Re: Spoiler Tag
Post by: NekoJonez on September 07, 2014, 08:49:40 AM
I have a problem :/ The spoilers always appear without any space between each other.

What I see:

spoiler
spoiler

What I hoped to see:

spoiler

spoiler.

It even ignores if I made an enter or not. :/
Title: Re: Spoiler Tag
Post by: alexetgus on June 01, 2015, 03:31:23 PM
Correction for french.
Translation is no correct... :P

File /languages/french.xml of mod.

<?xml version="1.1"?>
<!DOCTYPE modification SYSTEM "http://www.simplemachines.org/xml/modification">
<modification xmlns="http://www.simplemachines.org/xml/modification" xmlns:smf="http://www.simplemachines.org/">
<id>azatoth:spoiler</id>


<!-- Default Theme -->
<file name="$languagedir/index.french.php" error="skip">
<operation>
<search position="end"></search>
<add><![CDATA[
$txt['spoiler_tag_text'] = 'Spoiler';
$txt['spoiler_tag_click_info'] = '(Cliquez pour montrer ou cacher)';
$txt['spoiler_tag_hover_info'] = '(Survoler pour montrer)';
]]></add>
</operation>
</file>

<file name="$languagedir/Themes.french.php" error="skip">
<operation>
<search position="end"></search>
<add><![CDATA[
$txt['spoiler_tag_label'] = 'Titre du Spoiler';
$txt['spoiler_tag_desc'] = 'Le d&eacute;faut est <b>voir au survol</b> si non sp&eacute;cifi&eacute; dans les param&egrave;tres. Vous pouvez changer pour <b>Voir au clic sur le lien</b> ou <b>voir au clic sur le bouton</b>.';
$txt['spoiler_tag_onhoverovershow'] = 'Voir au survol';
$txt['spoiler_tag_onlinkclickshow'] = 'Voir au clic sur le lien';
$txt['spoiler_tag_onbuttonclickshow'] = 'Voir au clic sur le bouton';
]]></add>
</operation>
</file>
</modification>


Title: Re: Spoiler Tag
Post by: Linkjay on January 31, 2017, 09:23:04 PM
Very beautiful! Was able to install it successfully on my SMF 2.0.13 forums with only one issue; it didn't install properly on non-default themes but I was able to work on it and make it work with my non-default themes.
Title: Re: Spoiler Tag
Post by: jamesalan85 on September 05, 2017, 02:49:29 PM
I installed on the mod.