![]() |
|
Article Options |
BBCode manager Suggestion: (Nested Spoiler Example)
by
![]() I was recently adding a spoiler BB code from the site here. (Sadly I forget which thread I found it). It didn't work as expected. I was using it to "fold Sections" Demo http://www.techtir.ie/forums/showthread.php?t=19 Examination suggested that using {option} or {param} in a javascript called function is simply not going to work sensibly if there are multiple instances in the same page. The BB Code will expand and put the javascript function multiple times. Any {option} or {param} in the last instance on the page will "fill in" the values when you click anywhere. Also I realised that if a BB code has a Javascript function, it will be inserted N times on the page for N instances of the object. So for now I put the function in headinclude The BB code manager only has the instance code that calls it with {option} as a parameter to the javascript function. My suggestions:
For those interested here is the code. (Make sure the <img src= paths match your install from root of web site, both in the javascript function and in the BB code definition that calls it.) It allows nested folded sections/spoilers
In the BB code Manager Answers Ans
[ANS=Some suitable Title]Lots of body, inc BBcode for images, tables & video[/ANS] No members have liked this post.
Last edited by techtir; 24 Oct 2009 at 12:54.. Reason: Emphasis on nested, new URL |
||||||||
Views: 2930
|
![]() |
![]() |
||||
Article | Author | Type | Replies | Last Post |
Kill 1 Query In BBCode Manager (ACP) | Zero Tolerance | vBulletin 3.0 Full Releases | 22 | 04 Aug 2005 19:07 |
«
Previous Article
|
Next Article
»
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Article Options | |
|
|
New To Site? | Need Help? |
All times are GMT. The time now is 00:52.