Not Solved Open Internal link on same window
#1
Not Solved
How can i open internal link posted by users to open in same window. However still make the signature link open in new window.

Its really annoying at times to open the thread links posted by users {inside the post content} in several new windows/tabs.

Is there a way out ?:
Reply
#2
Not Solved
Anyone ?
Reply
#3
Not Solved
Might not be the best way of doing it but should work. Line 838 of ./inc/class_parser.php:

if(!preg_match("#^[a-z0-9]+://#i", $url))

to:

global $mybb;

if(!preg_match("#^[a-z0-9]+://#i", $url))

Line 869:

$link = "<a href=\"$fullurl\" target=\"_blank\">$name</a>";

to:

if(strpos($fullurl, $mybb->settings['bburl']) !== false)
{
	$link = "<a href=\"$fullurl\">$name</a>";
}
else
{
	$link = "<a href=\"$fullurl\" target=\"_blank\">$name</a>";
}

See if that works.
MyReactions - All Plugins

Can you still feel the butterflies?

Free never tasted like pudding.
Reply
#4
Not Solved
Works Perfect.

Cheers Smile
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)