vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=192)
-   -   Miscellaneous Hacks - BBcode Mouse Over Spoiler Tag (https://vborg.vbsupport.ru/showthread.php?t=154586)

KevNJ 09-19-2007 02:11 PM

Simple, easy install, very effective. Thanks!

AzH 09-19-2007 05:51 PM

ONly effective with black text though, isn't it? Won't work on dark styles as it is or if someone has an option of light and dark styles for their members.

bobster65 09-19-2007 07:22 PM

Quote:

Originally Posted by AzH (Post 1342579)
ONly effective with black text though, isn't it? Won't work on dark styles as it is or if someone has an option of light and dark styles for their members.

Just change the Black (#000000) and White (#FFFFFF) color codes to suit your needs.

razmyth 10-13-2007 12:47 AM

Just some additions I did to make this code more fun, also solves problems like bgcolours, text colours, skins, etc. Thought I'd share it cause I loved the original code this thread provided.

Code:

<table  border bgcolor="yellow"><tr><td><font size= 3><font color="red"><b>Spoiler Alert:  </b></font><font color="yellow"><span class="spoiler" onmouseover="this.style.color='#000000';" onmouseout="this.style.color=this.style.backgroundColor='#FFFF00'">{param}</span></font></tr></table>
Then the css code

Code:

.spoiler
{
color: #FFFF00;
text-decoration: none;
background-color: #FFFF00;
}

Results:
https://vborg.vbsupport.ru/external/2007/10/29.jpg

Magnumutz 10-13-2007 07:55 AM

Dude... remove that second picture, it's offensive.

razmyth 10-13-2007 12:06 PM

Hardly offensive but i won't argue, done

repairman jack 05-07-2008 01:18 PM

Quote:

Originally Posted by Trillian (Post 1325454)
I've also attached an optional Icon to use with the Spoiler Tag.

How do you add this icon to vBulletin?

bobster65 05-07-2008 01:24 PM

Quote:

Originally Posted by repairman jack (Post 1511615)
How do you add this icon to vBulletin?

upload the image to your images directory and then in the BB Code Manager, edit the spoiler BB Code and add the path to the image in the "Button Image (Optional)" area of the form.

repairman jack 05-07-2008 02:03 PM

Quote:

Originally Posted by bobster65 (Post 1511619)
upload the image to your images directory and then in the BB Code Manager, edit the spoiler BB Code and add the path to the image in the "Button Image (Optional)" area of the form.

Great. Thanks!

Thelonius Beck 05-17-2008 03:04 PM

This works well with 3.7 as well. Just so everyone is aware. ;)


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.01014 seconds
  • Memory Usage 1,730KB
  • 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
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)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