Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
ksjQuery Sliding Spoiler Details »»
ksjQuery Sliding Spoiler
Version: 0.1, by Raug Raug is offline
Developer Last Online: Jun 2011 Show Printable Version Email this Page

Category: BB Code Enhancements - Version: 4.x.x Rating:
Released: 02-08-2011 Last Update: Never Installs: 8
Uses Plugins Auto-Templates
Re-useable Code Additional Files Translations  
No support by the author.

My very first attempt at a plugin so where else to start other than BB code (yet another one, right)?

In essence, everything this plugin does, can be done via a template edit and by creating 2 custom BB codes.

I created this little plugin based on some javascript by Andy Langton (http://andylangton.co.uk/articles/ja...iple-elements/) which, maybe not very efficiently, prevents problems when multiple spoilers are on one page. This is significant because many of the other jQuery spoilers I have tried could only handle one per page as a second or more would just mean no working spoilers at all. I have seen an alternate version using $(this.hash) in far less lines but I only tried this one and it worked which was good enough for me.

Installation Note: only tested on 4.1.1 but it should work on 4.x
1) Upload the file in the upload folder to your forum root (clientscript/ksspoiler.js).
2) Import the product (product-ksjqueryspoiler.xml)

The plugin adds two scripts (mine and jquery) to headinclude_css and manually inserts two custom BB codes called jspoiler. One version uses {option} and the other does not to allow for a little flexibility. I highly suggest that you customize the name and titles of the BB codes to your liking. All this is meant to do is to a utomate a couple easy steps (mainly because I haven't been able to learn any more than that ._. sorry!)

Uninstall
However, due to my lack of knowledge, the only way to fully uninstall the plugin is to uninstall the plugin and then manually deleting the custom BB code.

A live preview can be seen here near the bottom: http://kagami-sama.com/content/shinr...ka-musume-119/

=============================

Credit to Andy Langton for writing the javascript

Download Now

File Type: zip ksspoiler-0.1.zip (5.1 KB, 112 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 02-10-2011, 03:39 PM
mokonzi's Avatar
mokonzi mokonzi is offline
 
Join Date: Nov 2007
Location: SW Scotland
Posts: 137
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

How does this deal with the sidebar previews that often reveal BBCode?
Reply With Quote
  #3  
Old 02-11-2011, 06:52 PM
mfnforex mfnforex is offline
 
Join Date: Jan 2010
Posts: 25
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you
Reply With Quote
  #4  
Old 02-14-2011, 07:25 AM
Raug Raug is offline
 
Join Date: Apr 2008
Posts: 25
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by mokonzi View Post
How does this deal with the sidebar previews that often reveal BBCode?
Unfortunately, as far as I know, BB code just doesn't work with the forum side bar. I personally don't use it right now (and I don't really use the forums atm. I'm just trying to use vB in some way bit by bit since I paid for it and I only really need the CMS side where even Wordpress would be infinitely better). However, that aside, I haven't come across any type of fixes and my best guess is that a file edit will be required.
Reply With Quote
  #5  
Old 07-16-2011, 04:54 PM
Khriz's Avatar
Khriz Khriz is offline
 
Join Date: Apr 2011
Location: Per?
Posts: 42
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Do not work me in vbulletin 4.1.4
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


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


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04457 seconds
  • Memory Usage 2,256KB
  • Queries Executed 21 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (5)post_thanks_box
  • (5)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (5)post_thanks_postbit_info
  • (4)postbit
  • (1)postbit_attachment
  • (5)postbit_onlinestatus
  • (5)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete