Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Not Solved Open Forum Links In New Window?
#6
Not Solved
I hadn't checked out the complete code, but find this:
	function mycode_parse_url($url, $name="")
	{
and add this on a new line below it:
		global $mybb;

That should work.

However (!!!) there is a much better solution that doesn't require a core modification and that works with all URLs. Add a new MyCode via AdminCP > Configuration > MyCode with these settings:
Title: Open internal links in same window
Regular expression:
\<a\ href=\"(http://www.yourdomain.com/.*?)\" target=\"_blank\"
Replacement:
<a href="$1"


Messages In This Thread
Open Forum Links In New Window? - by Jayfore - 2011-05-23, 03:00 AM
RE: Open Forum Links In New Window? - by Yaldaram - 2011-05-23, 07:36 AM
RE: Open Forum Links In New Window? - by Jayfore - 2011-05-23, 01:11 PM
RE: Open Forum Links In New Window? - by Aries-Belgium - 2011-05-23, 01:43 PM
RE: Open Forum Links In New Window? - by Jayfore - 2011-05-23, 01:51 PM
RE: Open Forum Links In New Window? - by Tim_bc - 2011-05-27, 04:59 AM
RE: Open Forum Links In New Window? - by Tim_bc - 2011-05-27, 08:00 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)