vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   New Posting Features - [YUI] VSQ - Spoiler (https://vborg.vbsupport.ru/showthread.php?t=240674)

MikalMirkas 08-11-2011 05:06 PM

Quote:

Originally Posted by Semmi (Post 2230466)
Please Update this. It's the best Spoiler in vB.

I don't think he cares about this modification anymore.
He still hangs around his website, last time I checked.

fatal1980 08-11-2011 06:49 PM

As a temp fix:

in the BB code manager:

add:

Title:
Spoilers

BB Code Tag Name:
sp ( or whatever you want)

Replacement: (from the VSQ template)

<div class="spoiler">
<h2>Spoiler</h2>
<div class="hidden">{param}</div>
</div>

Example:

[sp] this is a test [/sp]

Button Image:
http://www.yourdomain.com/images/editor/spoiler.gif (if you want an image in the advanced editor)

Ichigo88 08-12-2011 03:48 PM

thank you fatal! in this spoiler there are tow spoiler! one is fix thanks to you!

the second is [spoiler=Title Text]Hidden Text Here[/spoiler] with title! how to ad in editor?

HoSStiA 08-13-2011 02:25 AM

Fix for 4.1.5:
1). Open Plugin Manager and search for BBCode [spoiler]: button
2). Click on edit and change the hook to editor_toolbar_start
3). Replace the Plugin PHP Code with a new content:
PHP Code:

if ($show['editor_toolbar'])
{
    
$imgdir_editor vB_Template_Runtime::fetchStyleVar('imgdir_editor');
        
$vbulletin->bbcodecache[] = array(
        
'buttonimage' => "$imgdir_editor/spoiler.gif",
        
'twoparams' => 0,
        
'bbcodetag' => 'spoiler',
        
'tag' => 'Spoiler',
                
'title' => 'Spoiler'
    
);

    
$vbulletin->bbcodecache[] = array(
        
'buttonimage' => "$imgdir_editor/spoiler_a.gif",
        
'twoparams' => 1,
        
'bbcodetag' => 'spoiler',
        
'tag' => 'Spoiler +',
                
'title' => 'Spoiler +'
    
);



archet1337 08-13-2011 08:26 AM

Tried your fix HoSStiA, but it still doesn't work on my 4.1.5 board.

The spoiler buttons and box works, but I can't click them to see the hidden content.

Any ideas on what I can do to make it work?

hacksden 08-14-2011 01:32 AM

@HoSStiA

Thank you very much. :)

haidm 08-14-2011 12:46 PM

Quote:

Originally Posted by HoSStiA (Post 2232873)
Fix for 4.1.5:
1). Open Plugin Manager and search for BBCode [spoiler]: button
2). Click on edit and change the hook to editor_toolbar_start
3). Replace the Plugin PHP Code with a new content:
PHP Code:

if ($show['editor_toolbar'])
{
    
$imgdir_editor vB_Template_Runtime::fetchStyleVar('imgdir_editor');
        
$vbulletin->bbcodecache[] = array(
        
'buttonimage' => "$imgdir_editor/spoiler.gif",
        
'twoparams' => 0,
        
'bbcodetag' => 'spoiler',
        
'tag' => 'Spoiler',
                
'title' => 'Spoiler'
    
);

    
$vbulletin->bbcodecache[] = array(
        
'buttonimage' => "$imgdir_editor/spoiler_a.gif",
        
'twoparams' => 1,
        
'bbcodetag' => 'spoiler',
        
'tag' => 'Spoiler +',
                
'title' => 'Spoiler +'
    
);



Still not display the icon on toolbar.

MarceloS 08-26-2011 01:05 PM

Quote:

Originally Posted by HoSStiA (Post 2232873)
Fix for 4.1.5:
1). Open Plugin Manager and search for BBCode [spoiler]: button
2). Click on edit and change the hook to editor_toolbar_start
3). Replace the Plugin PHP Code with a new content:
PHP Code:

if ($show['editor_toolbar'])
{
    
$imgdir_editor vB_Template_Runtime::fetchStyleVar('imgdir_editor');
        
$vbulletin->bbcodecache[] = array(
        
'buttonimage' => "$imgdir_editor/spoiler.gif",
        
'twoparams' => 0,
        
'bbcodetag' => 'spoiler',
        
'tag' => 'Spoiler',
                
'title' => 'Spoiler'
    
);

    
$vbulletin->bbcodecache[] = array(
        
'buttonimage' => "$imgdir_editor/spoiler_a.gif",
        
'twoparams' => 1,
        
'bbcodetag' => 'spoiler',
        
'tag' => 'Spoiler +',
                
'title' => 'Spoiler +'
    
);



Unfortunatelly, button still not showing in quick or advanced reply;

haidm 08-30-2011 02:24 AM

1 Attachment(s)
Quote:

Originally Posted by Plus (Post 2051137)
Installed with some style modifications (using stylevars from bbcode_quote_...). Looks great and native.

Attachment 118265 Attachment 118271

Not working in help (/misc.php?do=bbcode).

How can I change the color of background like this in dark style?

lilgezuz 09-30-2011 02:42 AM

Is there a way to change the background color on the word spoiler then when the hidden part drops down it has a different background color


All times are GMT. The time now is 09:23 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01283 seconds
  • Memory Usage 1,766KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_php_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete