News:

Wondering if this will always be free?  See why free is better.

Main Menu

Quick Spoiler

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

Previous topic - Next topic

Adrek

Polskie wsparcie SMF na simplemachines.org

the simplest solution is most likely the right one

Bugo

I tested it. No problems.

Adrek

just checked on Opera, FF Google Chrome and IE (all latest versions) and it seems that this error is only in Google Chrome.
Polskie wsparcie SMF na simplemachines.org

the simplest solution is most likely the right one

Adrek

Don't know why didn't check source before...
For some reason, in opening code tag there is style option:
<code class="bbc_code" style="height: 20px; ">

If I remove this part everything is correct:
style="height: 20px; "

But I can't find this part in any file :|
Polskie wsparcie SMF na simplemachines.org

the simplest solution is most likely the right one

Arantor

It's added in JavaScript for certain browsers because of a bug around the way they handle the code tag (IIRC it's Webkit)

ocmdiaz714

How can I get rid of this space?  ???


Bugo


ocmdiaz714

Quote from: Bugo on September 06, 2012, 02:23:45 AM
Firebug + spoiler.css

I set the padding of every element to 0, but nothing!  :'(

edit: never mind, I think I got it.

ocmdiaz714

Quote from: Bugo on October 13, 2011, 09:51:33 AM
Link to Mod

This mod based on BB2Spoiler for phpBB.
The images that placed under the spoiler, are loading only when you click on the spoiler title.
You can change permission settings for every group.

You can set up any title for spoiler:
[spoiler=Title]Text[/spoiler]

Can you by any chance tell me how to move the button's location to right before the 'no formation' bbcode?

Bugo

Subs-QuickSpoiler.php, find and remove this block:

function spoiler_bbc_buttons(&$buttons)
{
global $txt;

$buttons[count($buttons) - 1][] = array(
'image' => 'spoiler',
'code' => 'spoiler',
'before' => '[spoiler]',
'after' => '[/spoiler]',
'description' => $txt['quick_spoiler']
);
}


Then Open Subs-Editor.php, find this
$context['bbc_tags'][count($context['bbc_tags']) - 1][] = array(
'image' => 'unformat',
'code' => 'unformat',
'before' => '',
'description' => $txt['unformat_text'],
);

and replace with
$context['bbc_tags'][count($context['bbc_tags']) - 1][] = array(
'image' => 'spoiler',
'code' => 'spoiler',
'before' => '[spoiler]',
'after' => '[/spoiler]',
'description' => $txt['quick_spoiler']
);
$context['bbc_tags'][count($context['bbc_tags']) - 1][] = array(
'image' => 'unformat',
'code' => 'unformat',
'before' => '',
        'description' => $txt['unformat_text'],
);

ocmdiaz714

Quote from: Bugo on September 17, 2012, 11:38:54 PM
Subs-QuickSpoiler.php, find and remove this block:

function spoiler_bbc_buttons(&$buttons)
{
global $txt;

$buttons[count($buttons) - 1][] = array(
'image' => 'spoiler',
'code' => 'spoiler',
'before' => '[spoiler]',
'after' => '[/spoiler]',
'description' => $txt['quick_spoiler']
);
}


Then Open Subs-Editor.php, find this
$context['bbc_tags'][count($context['bbc_tags']) - 1][] = array(
'image' => 'unformat',
'code' => 'unformat',
'before' => '',
'description' => $txt['unformat_text'],
);

and replace with
$context['bbc_tags'][count($context['bbc_tags']) - 1][] = array(
'image' => 'spoiler',
'code' => 'spoiler',
'before' => '[spoiler]',
'after' => '[/spoiler]',
'description' => $txt['quick_spoiler']
);
$context['bbc_tags'][count($context['bbc_tags']) - 1][] = array(
'image' => 'unformat',
'code' => 'unformat',
'before' => '',
        'description' => $txt['unformat_text'],
);


Thanks, but it triggers this error:
Parse error: syntax error, unexpected T_IF in /home/u184889718/public_html/Sources/Subs-QuickSpoiler.php on line 1

Bugo

Did you well-read my instruction?

Subs-QuickSpoiler.php, find
function spoiler_bbc_buttons(&$buttons)
{
global $txt;

$buttons[count($buttons) - 1][] = array(
'image' => 'spoiler',
'code' => 'spoiler',
'before' => '[spoiler]',
'after' => '[/spoiler]',
'description' => $txt['quick_spoiler']
);
}

remove this.

ocmdiaz714

Quote from: Bugo on September 18, 2012, 05:01:39 AM
Did you well-read my instruction?

Subs-QuickSpoiler.php, find
function spoiler_bbc_buttons(&$buttons)
{
global $txt;

$buttons[count($buttons) - 1][] = array(
'image' => 'spoiler',
'code' => 'spoiler',
'before' => '[spoiler]',
'after' => '[/spoiler]',
'description' => $txt['quick_spoiler']
);
}

remove this.

It worked great until I disabled wyswyg.

Bugo

Yeah, because this button - no formation - appears only if WYSIWYG enabled.

ocmdiaz714

Quote from: Bugo on September 18, 2012, 11:19:56 PM
Yeah, because this button - no formation - appears only if WYSIWYG enabled.

Could you give me a quick edit to place it next to the email icon please?

Glowbot

Quote from: Bugo on September 18, 2012, 11:19:56 PM
Yeah, because this button - no formation - appears only if WYSIWYG enabled.

hello Bugo, thanks for a great mod.

Some of my members claim they get the message "Sorry but you are not allowed to view spoilers content." when the spoilers are used in signatures. Any idea?

edit, sorry I fixed it, I hadn't changed the permissions
modification settings> miscellaneous> enable permissions

I will leave my post to help others and thank Bugo for the great mod lol!!

Skaty

Hi again Bugo.  i have an error in my logs.

subs-quickspoiler.php line 88

i think this is because SCEditor does not have Sp BCC button. am i right ?

natasa (NT)

Hello Bugo!
I have older version of Quick Spoiler that have option to be closed by clicking on bottom button of open spoiler.
As I can see newer version does not have that option? Is it possible to add it somehow, an how to do that if it is possible?
Thanks!

Bugo

Unfortunately, I don't keep old versions of my mods. But you can make it with html/css. See example: http://tapochek.net/viewtopic.php?t=118395

epikurieu

Hi,

I still have version 0.8 on my forum, and based on what I read (see quote below) I don't know if I want to upgrade. I really like the "img2" feature, and I don't think you answered lordnex's question/problem.

I have a problem of my own, though : "img2" now seems to be out of order (today at least, but I don't know if it's not been the case permanently for some time. It only shows the loading image, forever.) Any information on the subject ? Can I fix it ?

Quote from: lordnex on April 15, 2012, 07:42:34 PM
Hi Bugo,

I have recently installed quick spoiler - version 0.9.1 on my new forum and there seems img2 tag is not available anymore, which I have on my other forum where version 0.8 is installed.

Downgrading from 0.9.1 to 0.8 also didn't work, spoilers wouldn't work at all after that.

Any help advice? Can I and how activate img2 on 0.9.1? Or how to downgrade it 0.8? (I guess something is left from 0.9.1 after removing it)...  or should I just wait for new upgrade?


Thanks
Quote from: lordnex on April 16, 2012, 11:43:28 AM
lol, that's not at all what I want... :)

I don't want to replace img2 with img, I want img2 functionality on my forum - thumbnail that opens in popup screen on click!
Why is it omitted from latest versions?

Advertisement: