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)

D.Ilyin 05-07-2008 10:00 PM

DI - BBCode [spoiler]
 
DI - BBCode [spoiler] 1.30


Product information:
It's simple BBcode. But all of released here was too "difficult" to install :p. This one is very simple :rolleyes:. It use jQuery javascript library v.1.2.3.
And can be usefull for large listing, for image hiding and so on...

Usage:
Code:

[spoiler=Custom header]some text
some text
some text
some text[/spoiler]

or
Code:

[spoiler]text
text
text
text[/spoiler]

Result on screen-01.gif

Installation information:
Files edit: 0
Templates edit: 0
Files to upload: 5
Time to install: less then 1 minute

Installation instructions:
  1. Upload all content in ./upload folder of plugin to your forum root directory
  2. Import XML file through ACP: Plugin System > Manage Products > [Add/Import Product]
  3. Optional: edit ./clientscript/vbulletin_css/spoiler.css to customize spoiler

Knowing problems:
  1. Not work if a quick reply or quick edit with AJAX functions was used for adding spoiler to post. You must reload page.

Tips:
  1. To edit default spoiler header when bbcode used without option - use that link ./admincp/phrase.php?do=edit&e[GLOBAL][spoiler_default_header]
  2. If you use english phrase and then translate it on your own language, you must rebuil post cache ./admincp/misc.php?do=buildpostcache
    (full instructions in screenshots see in this post from Ims)
  3. If you have very customized editor template (like in this post) and [SPOILER] button do not display you should add it manualy (if you want it of course :D):
    • In Style manager ./admincp/template.php?do=modify open your style and choose Edit Temlates
    • Open editor_toolbar_on template
    • Find
      PHP Code:

      <if condition="$vBeditTemplate['extrabuttons'] != '' "

      and add it before
      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


History:
Released: 1.00 - 09.05.2008
v.1.00 - first public release

Updated: 1.10 - 12.05.2008
v.1.10 - changed slide time to be faster
v.1.10 - changed place of deafault header phrase
v.1.10 - fixed bug with new thread preview with spoiler
v.1.10 - fixed bug with new reply preview with spoiler post

Updated: 1.20 - 21.05.2008
v.1.20 - added link to vbulletin.org modification thread
v.1.20 - added version check link
v.1.20 - added SPOILER button in advanced editor
v.1.20 - added spoiler.gif for advanced editor
v.1.20 - fixed bbcode parsing in WYSIWYG editor (post)
v.1.20 - added history.txt and readme.txt file

Updated: 1.30 - 26.05.2008
v.1.30 - added flash demo
v.1.30 - added usage help in bbcode list ./misc.php?do=bbcode (post)
v.1.30 - added support for announcements (post)
v.1.30 - made modification - Valid XHTML 1.0 Transitional


Please, click install if you like it!

Thanks for help: Marco van Herwaarden & Boofo

urdu 05-08-2008 09:31 PM

Thanks ... i will try this (click install button)

Zweeper 05-09-2008 04:25 PM

when the quick reply fault was fixed, i will use it

D.Ilyin 05-09-2008 04:50 PM

I think that can't be fixed. Because JS included in <head> could not initializate spoiler that was not created or added when page was loaded. It initializate all spoilers only on full page reload.

maidos 05-09-2008 05:15 PM

i will also use this mods when the quickreply has been fixed

Magnumutz 05-09-2008 05:51 PM

Looks pretty nice :)
Good job.

ramsayeg 05-09-2008 06:08 PM

Well, I've got to join the others.. if this will work with Auto-reply I'll make sure to install, most of my users don't bother going into Advanced mode so this won't help me.

D.Ilyin 05-09-2008 07:24 PM

Quote:

Originally Posted by Magnumutz (Post 1514014)
Looks pretty nice :)
Good job.

Thanks! :rolleyes:
Quote:

if this will work
it works! But it's a Javascript maxims. I can't jump over my head. Nobody can't. If somebody know how to do this... then tell me and i do this mod better.

Derek Chai 05-09-2008 09:10 PM

Do you have a demo because this might be the spoiler I needed and can I remove the button?

Boofo 05-10-2008 01:09 AM

Looks good. ;)

dvbusuario 05-10-2008 04:34 AM

And the button to this bbcode?

Speedy1505 05-10-2008 07:52 AM

how i can use this BB-code ???
i have installed ... and why .....
[spoiler]bla bla[/spoiler] <== dosn't work on Post
Attachment 80262

DubaiHost 05-10-2008 12:40 PM

Great one ..
Installed ,,
Thanks.

D.Ilyin 05-12-2008 10:40 AM

Updated:
v.1.10 - changed slide time to be faster
v.1.10 - changed place of deafault header phrase
v.1.10 - fixed bug with new thread preview with spoiler
v.1.10 - fixed bug with new reply preview with spoiler (post
)

Speedy1505 05-12-2008 01:07 PM

thx ...
this Update works ...

i have found 1 Bug -- sorry ....
see Pic's please

and cann you insert a Button on the Editor ???

:( -- bad english -- sorry

D.Ilyin 05-12-2008 01:21 PM

Quote:

i have found 1 Bug -- sorry ....
see Pic's please
hm.... i didn't see anything strage, with the exception of code formating.
Quote:

and cann you insert a Button on the Editor ???
will be added in next version.

Speedy1505 05-12-2008 01:49 PM

i have upload all Files and dir's ...
the images will not be see on this post ...

i have reinstall -- the image is not visible :(

great, you ar insert ab button at the editor ... :)

D.Ilyin 05-12-2008 02:16 PM

Quote:

the images will not be see on this post ...
try to open this file: http://<your_forum.com>/images/misc/icon_plus.gif

Speedy1505 05-12-2008 04:48 PM

yes .. file is present an i can open in browser

http://www.netvision-technik.de/foru.../icon_plus.gif

D.Ilyin 05-13-2008 06:25 AM

Quote:

Originally Posted by Speedy1505 (Post 1517430)
yes .. file is present an i can open in browser

http://www.netvision-technik.de/foru.../icon_plus.gif

Just open ./clientscript/vbulletin_css/spoiler.css
FIND (2 times):
/images/misc/icon_plus.gif
REPLACE WITH
/forum/images/misc/icon_plus.gif

Ronya 05-13-2008 06:36 AM

wrong link on INSTALLL button
Code:

http://http//www.vbulletin.org/forum/vborg_miscactions.php?do=installhack&threadid=178573

D.Ilyin 05-13-2008 06:49 AM

Ronya thanks! fixed.

Speedy1505 05-13-2008 05:44 PM

ich have replace 2 Links ...
its not visible ....
view Threade....
http://www.netvision-technik.de/foru...read.php?t=899
and Posting
http://www.netvision-technik.de/foru...25&postcount=9

D.Ilyin 05-14-2008 05:23 AM

you didn't add
/ before forum/images/misc/icon_plus.gif
must be
/forum/images/misc/icon_plus.gif
not
forum/images/misc/icon_plus.gif

Ronya 05-14-2008 05:36 PM

Dont work in announcements, i guess there is no javascript.

Ronya 05-16-2008 07:37 AM

i dont know how to change code for annunsments :( Can any1 help ?

D.Ilyin 05-17-2008 07:37 AM

Quote:

Originally Posted by Ronya (Post 1519579)
Dont work in announcements, i guess there is no javascript.

Do you mean external mod? Or native vB announcements?

Ronya 05-17-2008 09:23 AM

Native

dvbusuario 05-19-2008 01:20 AM

not work in internet explorer

any help me?

P.s. Sorry for my english

D.Ilyin 05-21-2008 08:15 AM

Sory for silence... Was in busy....

Updated: 1.20 - 21.05.2008
1.20 - added link to vbulletin.org modification thread
1.20 - added version check link
1.20 - added SPOILER button in advanced editor
1.20 - added spoiler.gif for advanced editor
1.20 - fixed bbcode parsing in WYSIWYG editor (post)
1.20 - added history.txt and readme.txt file

D.Ilyin 05-21-2008 11:08 AM

Quote:

Originally Posted by Derek Chai (Post 1514239)
Do you have a demo because this might be the spoiler I needed and can I remove the button?

added SWF demo in first post.

topper_grave 05-22-2008 02:52 AM

Installed.

Works perfectly in Internet Explorer, but it does not work in Firefox 3.

D.Ilyin 05-22-2008 05:02 AM

topper_grave can you explain what did you mean? And how can i reproduce this bug?

D.Ilyin 05-22-2008 01:51 PM

Quote:

Originally Posted by enderep12
Hi, i just installed your Spoiler Addon on my vB 3.7.0

Works perfectly.

But as I use a German board, I wanted to have the phrase in German, too.

I did as stated in your first post ( To edit default spoiler header when bbcode used without option - use that link ./admincp/phrase.php?do=edit&e[GLOBAL][spoiler_default_header] )

But the Text still says "Click here to see full text", instead of "Spoiler: Hier klicken um den ganzen Text zu lesen" (My translation).

How can this be fixed?

good and right question (i don't know why it was deleted). Added TIP 2 how to fix it in first post.

choccyclaire 05-22-2008 06:00 PM

How do we get it to show up in the bbcode list?

www.xxx.com/misc.php?do=bbcode

Works great btw. :)

belceb 05-23-2008 01:53 AM

where is the button?

topper_grave 05-23-2008 02:32 AM

Quote:

Originally Posted by D.Ilyin (Post 1527576)
topper_grave can you explain what did you mean? And how can i reproduce this bug?

Oh, I'm so sorry, of course I should have described the problem better. Well, here it is:

Using Firefox 3 I can see the spoiler bar, with the little + sign and all, but it does not expand to reveal the contents when I click it, which it should. To get to the bottom of this I tried it with both Internet Explorer 7 and Firefox 2 and both worked without a glitch, but with Firefox 3 nothing happens when you click to expand. Firefox 3 supposedly handles overlays/layers differently (some other sites I frequent has had problems with this - such as http://wigflip.com/roflbot/ - but solved them with workarounds), but I do not know if your addon used any kind of overlays or something of the sort.

I realize this could very well be a bug in Firefox 3 and not something you can or should try to fix, but seeing as more and more people on our forum (currently 15% of our userbase, and climbing) is using Firefox 3 we had to stop using your addon to not alienate them, which would drive them off the forum rather than changing their favorite browser.

I am going to post this at the Mozilla forums too, to see if the error is on their part.

D.Ilyin 05-23-2008 05:22 AM

Quote:

Originally Posted by choccyclaire (Post 1528192)
How do we get it to show up in the bbcode list?

www.xxx.com/misc.php?do=bbcode

Works great btw. :)

will be added in next version.
Quote:

Originally Posted by Ronya
Dont work in announcements, i guess there is no javascript.

and this too.

dvbusuario 05-23-2008 05:24 AM

Esta nueva version, se muestra el contenido rapidamente y luego se oculta por si solo, hay manera de solucionarlo? :(

D.Ilyin 05-23-2008 06:01 AM

Quote:

Originally Posted by belceb (Post 1528526)
where is the button?

belceb you have a customized editor template (or you template was not revert to vB 3.7.0) and should edit it manualy.
  1. In Style manager ./admincp/template.php?do=modify open your style and choose Edit Temlates
  2. Open editor_toolbar_on template
  3. Find
    PHP Code:

    <if condition="$vBeditTemplate['extrabuttons'] != '' "

    and add it before
    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

Added in TIPs list.


All times are GMT. The time now is 12:33 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.02720 seconds
  • Memory Usage 1,843KB
  • 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_code_printable
  • (4)bbcode_php_printable
  • (13)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
  • (40)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