The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Prohibit spoil bbcode within hyperlink?
We've run into a problem where people are using a construct like this in a post:
[ URL="http://mirrors.rit.edu/instantCSI/"][ SPOIL]Lock[/SPOIL][/URL] The problem is that clicking on the "spoiler" button causes the hyperlink to be followed. How can I prohibit the spoil tag within a hyperlink? Thanks, Chuck |
#2
|
|||
|
|||
I think you might be able to disallow any bbcode between url tags by creating a plugin using hook bbcode_fetch_tags and code like this:
Code:
if (is_array($tag_list['option']['url'])) { $tag_list['option']['url'][''stop_parse'] = true; } if (is_array($tag_list['no_option']['url'])) { $tag_list['no_option']['url'][''stop_parse'] = true; } ETA: Unfortunately it just occured to me that this would make it impossible to make a clickable image. |
#3
|
|||
|
|||
Thank you! I think that will do the job. (Thanks for your reply to the other post as well.)
Chuck |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|