![]() |
external links target=_blank, internal links target=_top?
The default behavior in vBulletin is that when someone posts a URL vBulletin converts it to a clickable link and adds target=_blank. This is great for when people post links to other websites, etc. so that my forum stays open in the background.
But when people post internal links to other threads, it can get annoying for them to open in a new window. Is there any way I could create an "if else" logic that would: -add target="_blank" when creating autolinks to any external url -except add target="_top" when creating autolinks to mydomain.com/forum threads? (I guess the if else logic would actually work the other way around, if the URL=myurl, vBulletin would add target="_top", else it would add "target="_blank". How would I do this exactly? The question originally asked by Boatdesign for VB3 |
You might be able to try a str_replace for links in messages:
PHP Code:
|
All times are GMT. The time now is 07:20 AM. |
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:
|