Quick Spoiler

Started by Bugo, October 13, 2011, 09:51:33 AM

Previous topic - Next topic

grandseb59

yes I have lunarfall as a theme
so what should I add and where?
I don't know what glyphs are

Speed King

Maybe you need to ask the theme's author in related support topic:

https://www.simplemachines.org/community/index.php?topic=561934.0

Bugo

Quote from: grandseb59 on December 11, 2022, 03:26:28 PMyes I have lunarfall as a theme
so what should I add and where?
I don't know what glyphs are
https://www.simplemachines.org/community/index.php?msg=4126242

Use this code for example:
.fa-spoiler:before {
    content:"\f185";
}

You can see Unicodes at the fontawesome site.

grandseb59

thanks a lot bugo.
it's ok the code works fine and I put the letter "S" inside the space.

.fa-spoiler:before {
    content:"\53";
}

FragaCampos

Portuguese_pt-utf8 translation

<?php

$txt
['quick_spoiler'] = 'Spoiler';
$txt['qs_title'] = 'Título padrão da tag';
$txt['qs_settings'] = 'Configurações de spoiler';
$txt['qs_no_spoiler_sorry'] = 'Lamentamos, mas não tem permissão para ver o conteúdo do spoiler.';
$txt['groups_view_spoiler'] = 'Grupos que podem ver o conteúdo de spoilers';

$txt['qs_footer']  = '[fechar]';
$txt['qs_bgcolor'] = 'Cor do spoiler';
$txt['qs_colors']  = array(
'default'   => 'Padrão',
'green'     => 'Verde',
'red'       => 'Vermelho',
'blue'      => 'Azul',
'yellow'    => 'Amarelo',
'orange'    => 'Cor de laranja',
'brown'     => 'Castanho',
'purple'    => 'Roxo',
'cyan'      => 'Azul claro',
'lime'      => 'Verde lima',
'steelblue' => 'Azul aço'
);

$txt['permissionname_view_spoiler'] = $txt['group_perms_name_view_spoiler'] = $txt['groups_view_spoiler'];
$txt['permissionhelp_view_spoiler'] = 'Utilizadores podem ver informação escondida pelos spoilers.';

User2

I would like to remove the bold from the spoiler title so that the spoiler does not stand out among other text.

Bugo

See /Themes/default/css/quick_spoiler.css

User2

Bugo, what exactly needs to be changed? I'm just a user, not a web programmer.

And is it possible to add settings to the user interface so that the administrator can change the appearance of the spoiler using the user interface, rather than making changes to the forum code.

Bugo

Well, if you are just a user, then you should know about Ctrl-C/Ctrl-V/Ctrl-F? Open Themes/default/css/quick_spoiler.css, press Ctrl-F and find "font-weight: bold;" line and remove it. Save the file.

If you want to learn how to find and change any interface elements on your forum pages, then read about Developer Tools, and then press F12 key in your browser.

About the new settings - I'll think about it.

Darknico

Updated the Italian Translation  8)
Italian SMF - Supporto Italiano per la board SMF - Ci trovate tutti li!! :)


Darknico

Hi!
There is a problem with chrome (and I think all browser use webkit)

If add a tag code in to spoiler, the content is not visible

Thanks :)
Italian SMF - Supporto Italiano per la board SMF - Ci trovate tutti li!! :)


Bugo

Try to add this rule to your theme's index.css:

.bbc_code {
    height: auto !important;
}

Darknico

Italian SMF - Supporto Italiano per la board SMF - Ci trovate tutti li!! :)


SethStudent

I've searched this topic, could not find an answer. I've been using Quick Spoiler for years, we all LOVE it, it's very helpful when copyright issues might be at stake. The spoiler contents are hidden from the general public, and the warning is "Sorry but you are not allowed to view spoiler contents." I'd like to change it to "Sorry but you need to log in to see spoiler contents." I did it once years ago but can't find out what file to edit now.

Thanks!

Bugo

See /Themes/default/languages/QuickSpoiler/.english.php. Use any FTP manager for that.

SethStudent

Thanks, that was the first place I looked but the languages/Quickspoiler directory is empty. I'd reinstall the Mod but I downloaded the latest version (I'm running SMF 2.1.4) and that also is missing the files. Is there another version I should get? The one that came up when I searched in Mods says "hooks only."

m4z

Make sure your file manager / ftp client shows "hidden" files. On Linux, files beginning with a dot are hidden by default.
"Faith is what you have in things that don't exist."
--Homer Simpson

Es gibt hier im Forum ein deutsches Support-Board!

SethStudent

Brilliant @m4z, that did the trick! Problem solved. It's odd to me that .php files would be hidden, but I just noticed these are dotfiles. Thank you.

jsx

Hello @Bugo

I'm using the NameX theme which has a dark mode. I also use Quick Spoiler and would like the spoiler background to be a dark color when the theme's dark mode is enabled. Can you help me with this?

Bugo

You can add styles for dark mode to quick_spoiler.css. For example, if you use the color brown for the main theme, but you want to have the color red in dark mode, you can add these lines at the end of the file:

Code (css) Select
[data-colormode="dark"] .sp-wrap-brown {
background: none repeat scroll 0% 0% red;
border-color: #d92f31;
}

[data-colormode="dark"] .sp-wrap-brown .sp-head {
color: #fff;
}

Similarly for other styles. Just add the prefix [data-colormode="dark"]

Advertisement: