vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Why would this not work in spoiler BB Code? (https://vborg.vbsupport.ru/showthread.php?t=242805)

BirdOPrey5 05-18-2010 02:45 PM

Why would this not work in spoiler BB Code?
 
I think this is more related to programming then a general issue so it's here, feel free to move it if this is the wrong forum.

There are a number of 'spoiler' bb codes out there that generally hide text from being seen unless a user clicks on a button or does some other action to view the text. However this text is usually still visible if it's the first thing in the thread if someone uses the 'mouse over' preview of the thread. A way to block this is to put text inside square brackets-
example: [this text would not be shown in the mouse-over preview]
So I figured this was a simple enough fix, in the HTML replacement box simply enclose the {param} in square brackets- [{param}] and it would hide the text from mouse over's too, right?

No dice.

When the square brackets are added by the HTML replacement box they show up in the mouse-over as regular text. If I type them into a post directly though they do hide the text. I viewed source of the pages and they are identical... they both show [my sample text] in the HTML code, but vBulletin somehow 'knows' the difference between me typing them in the post and the bbcode putting it in... OK well I just figured it out - on the mouse-over no bbcode is being rendered so the square brackets don't exist yet in the text. oh well... I typed all this out, seems like a shame not to submit this post anyway. ;)


All times are GMT. The time now is 01:02 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.00941 seconds
  • Memory Usage 1,704KB
  • 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
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (1)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete