MyBB Community Forums

Full Version: URL Link
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Where can I modify how URL links are processed? I want to add something to every link that is not part of the domain of the forums.

For example, if the URL link contains the domain of the forums, it will just go to the page like it does now, but when it is a URL link for another site, I want to add something in front of the URL link. So instead of http://mybb.com, it would be ABChttp://mybb.com.
You could possibly use a plugin, and I know there is a plugin for this but just can't think of the name for it. It basically gives the user a notice that it is leaving the forum and going to a external site.
(2013-01-25, 04:39 AM)iHydra Wrote: [ -> ]You could possibly use a plugin, and I know there is a plugin for this but just can't think of the name for it. It basically gives the user a notice that it is leaving the forum and going to a external site.

I am not really looking to inform my members that they are going to another site. I am more interested in add something to their URL.
I still need help with this if anyone knows.
You can edit inc/class_parser.php

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

Source: http://community.mybb.com/thread-128502-...#pid931032

And not sure how PHP and it's \***\ works but you would add w.e you want in front of the \"$fullurl\"