![]() |
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 |
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'])) ETA: Unfortunately it just occured to me that this would make it impossible to make a clickable image. |
Thank you! I think that will do the job. (Thanks for your reply to the other post as well.)
Chuck |
All times are GMT. The time now is 05: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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|