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
Erase to Reveal Spoiler Details »»
Erase to Reveal Spoiler
Version: 1.00, by orangegold orangegold is offline
Developer Last Online: Aug 2012 Show Printable Version Email this Page

Category: BB Code Enhancements - Version: 4.2.0 Rating:
Released: 07-23-2012 Last Update: Never Installs: 9
 
No support by the author.

Please mark as installed if you use this!

This code creates a spoiler in which the user has to click and drag over the spoiled (hidden) text you reveal it, simulating an eraser effect... This should stimulate user interactivity in your forum and make members feel more enticed to view spoiled text! Click the smiley face for a live demo --->



How to install:

Upload the contents of the zip folder attached below to "/images" directory (*Make sure it's www.mysite.com/images ... NOT www.mysite.com/forums/images or anything else like that)

There are two files, one for people who need the spoiler to have black text (they have light backgrounds for their forums skin/theme) and one for people who need the spoiler to have white text (like in the demo above because I have a dark background for my forums skin/theme)

Now log-in to your AdminCP --> Custom BBCodes --> BBCode Manager --> Add New BBCode

Title: "Eraser Spoiler"

BBCode Tag Name: "espoil"

Replacement (Use this one if you want your spoiler to have white text):
Code:
<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
 codebase=""http://macromedia.com/cabs/swflash.cab#version=6,0,0,0""
 WIDTH="550" HEIGHT="200" id="flaMovie1" ALIGN="CENTER">
 <PARAM NAME=movie VALUE="/images/EraserSpoiler_WhiteText.swf">
 <PARAM NAME=FlashVars VALUE="metavar={param}">
 <PARAM NAME=quality VALUE=high>
 <PARAM NAME=bgcolor VALUE=#FFFFFF>
 <PARAM NAME="wmode" value="transparent"> 
 <embed src="/images/EraserSpoiler_WhiteText.swf" FlashVars="metavar={param}"
  quality="high" bgcolor="#FFFFFF" WIDTH="550" HEIGHT="200"
  NAME="flaMovie1" ALIGN TYPE="application/x-shockwave-flash"
  PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer" wmode="transparent">
</OBJECT>
Replacement (Use this one if you want your spoiler to have black text):
Code:
<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
 codebase=""http://macromedia.com/cabs/swflash.cab#version=6,0,0,0""
 WIDTH="550" HEIGHT="200" id="flaMovie1" ALIGN="CENTER">
 <PARAM NAME=movie VALUE="/images/EraserSpoiler_BlackText.swf">
 <PARAM NAME=FlashVars VALUE="metavar={param}">
 <PARAM NAME=quality VALUE=high>
 <PARAM NAME=bgcolor VALUE=#FFFFFF>
 <PARAM NAME="wmode" value="transparent"> 
 <embed src="/images/EraserSpoiler_BlackText.swf" FlashVars="metavar={param}"
  quality="high" bgcolor="#FFFFFF" WIDTH="550" HEIGHT="200"
  NAME="flaMovie1" ALIGN TYPE="application/x-shockwave-flash"
  PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer" wmode="transparent">
</OBJECT>
Example: "[espoil]hide your text in here and the user has to 'erase' the spoiler coverup in order to reveal your message![/espoil]"

Description: "Hide your text until a user "erases" the text's cover up and the text is revealed!"

Use Option: "no"

Remove Tag If Empty: "yes"

Disable BB Code Within This BB Code: "yes"

Disable Smilies Within This BB Code: "yes"

Disable Word Wrapping Within This BB Code: "no"

Disable Automatic Link Parsing Within This BB Code: "no"

Now hit save, When you click save you may get an error notification on the next page... just ignore it and hit continue, this has to do with the use of quotes in the code while communicating to flash and it will not affect your forum at all, don't worry! (Also this is a flash spoiler so it will run on flash supporting devices (aka not iPhones) enjoy!)

Download Now

File Type: zip Eraser Spoiler.zip (104.8 KB, 52 views)

Show Your Support

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

Comments
  #2  
Old 07-24-2012, 11:33 AM
Stormnet Stormnet is offline
 
Join Date: Mar 2012
Posts: 4
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Tried it but it did not work for me, I got nothing where the spoiler should be so the bbcode was working, not the flash...
Reply With Quote
  #3  
Old 07-24-2012, 02:50 PM
orangegold orangegold is offline
 
Join Date: Jul 2012
Posts: 11
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Did you upload it to www.mysite.com/images or did you upload it to www.mysite.com/forum/images?
Reply With Quote
  #4  
Old 07-24-2012, 11:31 PM
samburrito samburrito is offline
 
Join Date: Mar 2012
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you works very well. Tested with images couldn't get to work. But good job!
Reply With Quote
  #5  
Old 07-25-2012, 05:07 AM
orangegold orangegold is offline
 
Join Date: Jul 2012
Posts: 11
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ye, I programmed it and added all glyphs for text, I know hot to add images with HTML code but then users could potentially post html code throughout your site, I'm working on some workarounds to just allow some tags like <img> etc.
Reply With Quote
  #6  
Old 07-25-2012, 09:54 AM
Stormnet Stormnet is offline
 
Join Date: Mar 2012
Posts: 4
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I uploaded it to www.mysite.com/forum/images

I'll try it the other way

EDIT: Yes! That worked! Thanks very much...
Reply With Quote
  #7  
Old 07-25-2012, 02:52 PM
orangegold orangegold is offline
 
Join Date: Jul 2012
Posts: 11
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Glad you got it working, I edited the upload instructions for the app... no-body else should experience these problems anymore hopefully!
Reply With Quote
  #8  
Old 07-25-2012, 06:33 PM
zhai zhai is offline
 
Join Date: Jun 2006
Posts: 27
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

can the spoiler be hide back?
Reply With Quote
  #9  
Old 07-25-2012, 09:26 PM
orangegold orangegold is offline
 
Join Date: Jul 2012
Posts: 11
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

When you refresh the page or another user visits the page it automatically re-hides.
Reply With Quote
  #10  
Old 07-26-2012, 01:02 AM
hrenos hrenos is offline
 
Join Date: Jul 2012
Posts: 11
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Stormnet View Post
I uploaded it to www.mysite.com/forum/images

I'll try it the other way

EDIT: Yes! That worked! Thanks very much...
well because im new with this if my images folder is located on /forum/images what is the alternative. do I make new folder images ?
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 01:20 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.04364 seconds
  • Memory Usage 2,320KB
  • Queries Executed 24 (?)
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
  • (2)bbcode_code
  • (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
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (1)postbit_attachment
  • (10)postbit_onlinestatus
  • (10)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_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
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete