vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.7 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=228)
-   -   BB Code Enhancements - DI - BBCode [spoiler] (https://vborg.vbsupport.ru/showthread.php?t=178573)

maidos 05-20-2009 11:50 AM

Quote:

Originally Posted by vasek (Post 1803678)
can anyone provide simple how-to about adding spoiler button to quickedit?
or may be it'll be a new feature in 1.31? :)

also want to know that

W!cKeD 05-31-2009 10:44 PM

* Thanks & Installed * :up:

Works fine with vBulletin Version: 3.8.2

I use this Add-on for adding [SPOILER]-Code in Editors ==> Quick Editor Improver :-)

ArnyVee 06-13-2009 01:24 PM

Any suggestions on using this for registered users only?

I've installed and it seems to work on initial testing. But, I want this spoiler info to only display when the users actually are registered.

Also, any idea as to how to make this mod/hack only be available for mods and admins?

H3C x Nevz 06-15-2009 11:38 PM

I don't see any XML file?

emperatour 06-17-2009 08:17 AM

Quote:

Originally Posted by ArnyVee (Post 1828955)
Any suggestions on using this for registered users only?

I've installed and it seems to work on initial testing. But, I want this spoiler info to only display when the users actually are registered.

I also want to prevent unregistered users from seeing spoiled info. Any suggestions?

Flowsion 07-08-2009 05:55 PM

Is there a reason sometimes, the spoilers don't work and you have to refresh multipl etimes?

Makc666 07-14-2009 02:10 PM

Double space before with in phrases:

Code:

This is an example  with default header.
Code:

This is an example  with user define header.

M.C. 07-16-2009 10:15 PM

I have problem on my 3.8 it's work only in first post (not first post of thread but first post it used), other spoilers in thread don't work :(

Also my image resize hack don't work within spoiler :(

ArnyVee 07-17-2009 11:54 PM

Anyone have a suggestion on how to hide this from 'guests'?

Konstantinos 07-18-2009 08:28 AM

one question . since it uses javascript. is the content inside the spoiler indexable by search engines ? i whould prefer if it wasnt

ArnyVee 07-25-2009 05:59 PM

Am I assuming correctly by thinking that I can limit the view of this mod to registered users only by editing the xml file?

If so, any tips on where I put the code?

fly 07-26-2009 01:38 PM

Quote:

Originally Posted by ArnyVee (Post 1855314)
Am I assuming correctly by thinking that I can limit the view of this mod to registered users only by editing the xml file?

If so, any tips on where I put the code?

Not really. You'll want the 'hide' hack for that.

itsheinz 07-27-2009 03:10 PM

great mod..imma use it now :)

Kirschtorte 10-06-2009 08:14 AM

Great job! https://vborg.vbsupport.ru/external/2011/02/1.gif

But there is a little bug i think.

1.) Create a spoiler and submit the Posting.
2.) Edit the spoiler and submit the changes.
3.) Now you will see, the spoiler doesn't work anymore. you can click, but nothing happens.

Only this two ways are possible to make the spoiler works again:

1.) reopen the page or
2.) refresh the browser window

That is not so good i find...

Hubbitus 10-25-2009 09:01 AM

Hello, guys.

Fix spoiler on quick post/edit is quite trivial. Main what we must doing it is attach event handler not only to page ready, but to post add/change too.

Please see attached patches.

One additional note. In archive bundled 2 patches, first, called "quick-post|edit.old.patch" is "quick" fix. But I also suggest (really this idea was by Plague admin of imho.ws ;) ) move function initSpoilers and its attachment to document ready event into external file to allow caching it by browser. And full changes present in "quick-post|edit.patch".

With best wishes, Pavel.

MixFTW 11-03-2009 11:04 AM

hi i got some prob with displaying spoiler img on editor bar:
http://img249.imageshack.us/img249/486/prob.gif
P.S.: i tried all instruction in this tread but img still didnt appear.

Any suggestions?

Hubbitus 11-03-2009 11:28 AM

What image now set for button? Adjust path to where you place it.

Kirschtorte 11-03-2009 11:33 AM

Hello,

you have to correct the path to the image. You can find it in the "spoiler.css" file in:
...yourforum/clientscript/vbulletin_css/spoiler.css

Hell Bomb 11-21-2009 06:35 PM

any change this becoming a 3.8 mod?

Warlord 11-26-2009 01:33 AM

To install this on the quick reply edit the showthread_quickreply template

Find:

PHP Code:

        <td><div class="imagebutton" id="{$editorid}_cmd_wrap0_quote"><img src="$stylevar[imgdir_editor]/quote.gif" width="21" height="20" alt="$vbphrase[wrap_quote_tags]/></div></td>
    </if> 

Add after:

PHP Code:

<td><div class="imagebutton" id="{$editorid}_cmd_wrap0_spoiler"><img src="$stylevar[imgdir_editor]/spoiler.gif" alt="[SPOILER]" width="21" height="20" border="0" /></div></td

EDIT: I created my own BB Code the old fashioned way and did not install this mod so to speak, but I don't see why it wouldn't work on 3.8

If not, just add the following BB Code.

In the Admin CP Click Custom BB Codes then select Add New BB Code. Fill in the blanks with this information.

Title: Spoiler
BB Code Tag Name: spoiler
Replacement:
HTML Code:

<div style="margin:5px 20px 20px 20px">

<div class="smallfont" style="margin-bottom:2px"><b>Spoiler:</b>

<input type="button" value="Click to Reveal" style="width:100px;font-size:10px;margin:0px;padding:0px;" onclick="if (this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display != '') { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = '';this.innerText = ''; this.value = 'Hide'; } else { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = 'none'; this.innerText = ''; this.value = 'Show'; }">

</div>

<div class="alt2" style="margin: 0px; padding: 6px; border: 1px inset;">

<div style="display: none;">

{param}

</div>

</div>

Example: [spoiler]This text is Animation Spoiler[/spoiler]
Description: The [spoiler] tag allows you hide your text.

Make sure you upload the attached image to forumroot/images/editor.

Skyrider 12-23-2009 05:54 PM

Will this work for vBulletin 4 by any chance?

Ghostt 01-04-2010 11:49 PM

will that problem fixed soon or no chance to fix it??

Quote:

1. Not work if a quick reply or quick edit with AJAX functions was used for adding spoiler to post. You must reload page.
/EDIT
thx at Hubbitus ! your fix fixed it :)

Makc666 01-28-2010 07:01 AM

There is a little bug here.

This product doesn't handle private messages.

The fix is very simple.

Just add this one to plugins section:

PHP Code:

        <plugin active="1" executionorder="5">
            <
title>BBCode [spoiler]: private</title>
            <
hookname>private_complete</hookname>
            <
phpcode><![CDATA[eval('$headinclude .= "' fetch_template('spoiler_connector') . '";');]]></phpcode>
        </
plugin


edytwinky 01-30-2010 02:10 PM

Quote:

Originally Posted by FF|Skyrider (Post 1936658)
Will this work for vBulletin 4 by any chance?

Nope. Did not work for me on the install

topper_grave 04-01-2010 05:56 PM

Have been using this Spoiler for ages now, and I love it dearly, but it does not work in PM's or in Visitor Messages.

Does anyone know how to enable this in PM's and Visitor Messaging? I tried to use Makc666's example to make spoilers in PM's work, but I have no idea what to put in the Hook field for example.


All times are GMT. The time now is 04:34 PM.

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.01381 seconds
  • Memory Usage 1,786KB
  • 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
  • (2)bbcode_code_printable
  • (1)bbcode_html_printable
  • (3)bbcode_php_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (25)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