Advertisement:
GCWebhosting

Author Topic: Quick Spoiler  (Read 58520 times)

Offline phantomm

  • Sophist Member
  • *****
  • Posts: 1,064
  • Gender: Male
    • pages/smfpl/171860759503032 on Facebook
    • Polish ElkArte community
Re: Quick Spoiler
« Reply #40 on: July 03, 2012, 02:36:03 AM »
Polskie wsparcie SMF na simplemachines.org

My mods

Offline Bugo

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 1,533
  • Gender: Male
    • dragomano on GitHub
    • @dragomano on Twitter
    • Russian translations for SMF mods
Re: Quick Spoiler
« Reply #41 on: July 04, 2012, 03:41:08 AM »
I tested it. No problems.

Offline phantomm

  • Sophist Member
  • *****
  • Posts: 1,064
  • Gender: Male
    • pages/smfpl/171860759503032 on Facebook
    • Polish ElkArte community
Re: Quick Spoiler
« Reply #42 on: July 04, 2012, 04:51:42 AM »
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

My mods

Offline phantomm

  • Sophist Member
  • *****
  • Posts: 1,064
  • Gender: Male
    • pages/smfpl/171860759503032 on Facebook
    • Polish ElkArte community
Re: Quick Spoiler
« Reply #43 on: July 18, 2012, 11:52:00 AM »
Don't know why didn't check source before...
For some reason, in opening code tag there is style option:
Code: [Select]
<code class="bbc_code" style="height: 20px; ">
If I remove this part everything is correct:
Code: [Select]
style="height: 20px; "
But I can't find this part in any file :|
Polskie wsparcie SMF na simplemachines.org

My mods

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 71,228
    • StoryBB/StoryBB on GitHub
Re: Quick Spoiler
« Reply #44 on: July 18, 2012, 02:50:54 PM »
It's added in JavaScript for certain browsers because of a bug around the way they handle the code tag (IIRC it's Webkit)
Don’t try to tell me that some power can corrupt a person. You haven’t had enough to know what it’s like.

No good deed goes unpunished / No act of charity goes unresented.

Offline ocmdiaz714

  • Jr. Member
  • **
  • Posts: 202
Re: Quick Spoiler
« Reply #45 on: September 06, 2012, 01:33:10 AM »
How can I get rid of this space?  ???


Offline Bugo

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 1,533
  • Gender: Male
    • dragomano on GitHub
    • @dragomano on Twitter
    • Russian translations for SMF mods
Re: Quick Spoiler
« Reply #46 on: September 06, 2012, 02:23:45 AM »
Firebug + spoiler.css

Offline ocmdiaz714

  • Jr. Member
  • **
  • Posts: 202
Re: Quick Spoiler
« Reply #47 on: September 06, 2012, 04:01:22 AM »
Firebug + spoiler.css

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

edit: never mind, I think I got it.

Offline ocmdiaz714

  • Jr. Member
  • **
  • Posts: 202
Re: Quick Spoiler
« Reply #48 on: September 17, 2012, 11:02:36 PM »
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:
Code: [Select]
[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?

Offline Bugo

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 1,533
  • Gender: Male
    • dragomano on GitHub
    • @dragomano on Twitter
    • Russian translations for SMF mods
Re: Quick Spoiler
« Reply #49 on: September 17, 2012, 11:38:54 PM »
Subs-QuickSpoiler.php, find and remove this block:
Code: [Select]
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
Code: [Select]
$context['bbc_tags'][count($context['bbc_tags']) - 1][] = array(
'image' => 'unformat',
'code' => 'unformat',
'before' => '',
'description' => $txt['unformat_text'],
);
and replace with
Code: [Select]
$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'],
);

Offline ocmdiaz714

  • Jr. Member
  • **
  • Posts: 202
Re: Quick Spoiler
« Reply #50 on: September 18, 2012, 02:13:48 AM »
Subs-QuickSpoiler.php, find and remove this block:
Code: [Select]
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
Code: [Select]
$context['bbc_tags'][count($context['bbc_tags']) - 1][] = array(
'image' => 'unformat',
'code' => 'unformat',
'before' => '',
'description' => $txt['unformat_text'],
);
and replace with
Code: [Select]
$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:
Code: [Select]
Parse error: syntax error, unexpected T_IF in /home/u184889718/public_html/Sources/Subs-QuickSpoiler.php on line 1

Offline Bugo

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 1,533
  • Gender: Male
    • dragomano on GitHub
    • @dragomano on Twitter
    • Russian translations for SMF mods
Re: Quick Spoiler
« Reply #51 on: September 18, 2012, 05:01:39 AM »
Did you well-read my instruction?

Subs-QuickSpoiler.php, find
Code: [Select]
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.

Offline ocmdiaz714

  • Jr. Member
  • **
  • Posts: 202
Re: Quick Spoiler
« Reply #52 on: September 18, 2012, 10:32:08 PM »
Did you well-read my instruction?

Subs-QuickSpoiler.php, find
Code: [Select]
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.

Offline Bugo

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 1,533
  • Gender: Male
    • dragomano on GitHub
    • @dragomano on Twitter
    • Russian translations for SMF mods
Re: Quick Spoiler
« Reply #53 on: September 18, 2012, 11:19:56 PM »
Yeah, because this button - no formation - appears only if WYSIWYG enabled.

Offline ocmdiaz714

  • Jr. Member
  • **
  • Posts: 202
Re: Quick Spoiler
« Reply #54 on: September 18, 2012, 11:27:39 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?

Offline Glowbot

  • Jr. Member
  • **
  • Posts: 131
Re: Quick Spoiler
« Reply #55 on: December 06, 2012, 06:09:18 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!!

Offline Skaty

  • Jr. Member
  • **
  • Posts: 357
Re: Quick Spoiler
« Reply #56 on: January 13, 2013, 12:01:32 AM »
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 ?

Offline natasa (NT)

  • Semi-Newbie
  • *
  • Posts: 66
  • Gender: Female
Re: Quick Spoiler
« Reply #57 on: January 15, 2013, 03:55:39 AM »
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!

Offline Bugo

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 1,533
  • Gender: Male
    • dragomano on GitHub
    • @dragomano on Twitter
    • Russian translations for SMF mods
Re: Quick Spoiler
« Reply #58 on: January 15, 2013, 06:18:49 AM »
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

Offline epikurieu

  • Semi-Newbie
  • *
  • Posts: 40
Re: Quick Spoiler
« Reply #59 on: January 19, 2013, 10:54:04 AM »
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 ?

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
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?