Back to vBulletin 3.6 Add-ons

External Links Framed
Mod Version: 1.00, by Blaine0002

This modification is in the archives.
vB Version: 3.6.0 Rating: (1 vote - 5.00 average) Installs: 25
Released: 04 Aug 2006 Last Update: Never Downloads: 115
Not Supported  

This will make all links out of your forum, come in a nice frame

Upload external.php to your forum root directory

Simply Create a template 'external_link'
Code:
<body bgcolor="#CCCCCC" text="#FF6633" link="#FF6633" vlink="#FF6633" alink="#FF6633" style="margin: 0px;">
<table border="0" cellspacing="0" cellpadding="0" width="100%" >
  <tr> 
    <td valign="top"><img src="http://www.gentendo.com/forum/images/top_bg.gif"> 
      <a href="javascript:window.close()"><font size="7">Close Window</font></a> 
    </td>
  </tr>
</table>
<iframe src="{$go}" height="90%" width="100%" frameborder="0">
</iframe>
</body>
Change this, this just gives you the jist of what it does.

Edit includes/class_bbcode.php
find
Code:
return "<a href=\"$rightlink\" target=\"_blank\">$text</a>";
replace with
Code:
return "<a href=\"http://www.urltoyourexternalframe.php?go=$rightlink\" target=\"_blank\">$text</a>";
and of course replace urltoyourexternal to the url to your external...

MAKE SURE YOU CHANGE THE TEMPLATE
The one i made was ugly and i made it in like 5 minutes :P Dont think the example is what it will look like, it can look like anything you want


example: http://www.gentendo.com/forum/external.php?go=http://www.google.com
(they wont need to put the path to external.php on the url, vb.org dosent have it installed so i need to put the full path for the example.)
or go to http://www.gentendo.com/forum/showthread.php?p=2406#post2406 for a live link.

Download

This modification is archived, downloads are still allowed.

File Type: %1$s externalframe.php (567 Bytes, 191 downloads)

Similar Mods

Miscellaneous Hacks External URL Redirects in framed page vBulletin 3.6 Add-ons
External URL Redirects in framed page vBulletin 3.5 Add-ons

vblts.ru supports vBulletin®, 2022-2024