2011-01-16, 10:16 PM
Hey, i found this post below made in 2006. I am new to MyBB. I heard that this forum is better then phpBB. So, I figured that I would give it a shot. I did a search on inc/functions_post.php for the below and couldn't' find it. I guess the programming of code has changed. Does anyone know where I would complete this. So any external link in posts opens in new window, but external links in posts will post in new window.
Thanks
Thanks
Quote:By default any link in any posted in mybb opens in a new window.
However if we understood you right and you want only external links to open in a new window. then try this
above
PHP Code:
$link = "<a href=\"$fullurl\" target=\"_blank\">$name</a>";
add
PHP Code:
if(strstr($fullurl,$mybb->settings['bburl'])) { $target = "_self"; } else { $target = "_blank"; } now change target=\"_blank\" to target=\"$target\"