Thank you, it would seem we are half way there now. I found the lines. They look like this....
Code:
function handle_bbcode_url($text, $link)
{
$rightlink = trim($link);
if (empty($rightlink))
{
// no option -- use param
$rightlink = trim($text);
}
$rightlink = str_replace(array('`', '"', "'", '['), array('`', '"', ''', '['), $this->strip_smilies($rightlink));
if (!preg_match('#^[a-z0-9]+(?<!about|javascript|vbscript):#si', $rightlink))
{
$rightlink = "http://$rightlink";
}
if (!trim($link) OR $text == $rightlink)
{
$tmp = unhtmlspecialchars($rightlink);
if (vbstrlen($tmp) > 55 AND $this->is_wysiwyg() == false)
{
$text = htmlspecialchars_uni(substr($tmp, 0, 36) . '...' . substr($tmp, -14));
}
}
// remove double spaces -- fixes issues with wordwrap
$rightlink = str_replace(' ', '', $rightlink);
// standard URL hyperlink
return "<a href=\"$rightlink\" target=\"_blank\">$text</a>";
}
So I see at the end the hyperlink return, that is where I assumed I would add the domain the way we need for the script to work. However, I have tried several different ways of adding it and can't seem to get the proper syntax, up to this point PHP seemed fairly easy the past year or so.
Can anyone give a suggestion? I keep getting the following error:
Code:
Parse error: parse error, unexpected T_STRING in /domainname/public_html/forum/includes/class_bbcode.php on line 1705
Line 1705 is the hyperlink return line.
Again what we need the rendered as is :
http://www.hisdomain.com/link?out=http://www.link.com
I assume too that
$rightlink is the submitted link. Can anyone help out with the proper php format for adding the additional domain before the submitted?