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. ;)


All times are GMT. The time now is 02:54 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.01434 seconds
  • Memory Usage 1,751KB
  • 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
  • (2)bbcode_php_printable
  • (2)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
  • (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