vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   New Posting Features - External Links Framed (https://vborg.vbsupport.ru/showthread.php?t=122975)

Blaine0002 08-03-2006 10:00 PM

External Links Framed
 
This will make all links out of your forum, come in a nice frame :D

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 :D
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/extern...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/showth...=2406#post2406 for a live link.

Kaleem 08-04-2006 04:11 AM

can we put adsense also ? :P

well nice one :)

Sean S 08-04-2006 05:10 AM

<<--install. very nice Blaine0002, thank you for this release.

apdcanari 08-04-2006 07:41 AM

Style GOOGLE :cool:

HTML Code:

<body bgcolor="#ffffff" text="#000000" link="#0000cc" vlink="#551A8B" alink="#ff0000">
<style>
<!--
body,td,div,.p,a{font-family:arial,sans-serif;font-size:10pt}
-->

</style>
<table width="100%" cellpadding="5" cellspacing="0" border="0">
        <tr>
                <td valign="center">
                        <a href="http://www.apdcanari.com/" target="_top"><img src="http://www.apdcanari.com/v7/images/logo.jpg" border="0" title="Au Paradis des Canaris" width="340" height="60" hspace="5" vspace="7"></a>
                </td>
                <td width="100%" valign="top" nowrap>
                        <a href="http://www.apdcanari.com/">Au Paradis des Canaris</a><br /><img alt="" width="1" height="5" border="0"><br />
                        <font color="#008000">www.apdcanari.com</font><br />A vos Plumes! Donnez-vous des Ailes..<br />
                        <i>Notre objectif est de vous pr?senter en d?tails les canaris gr?ce ? de nombreux articles et photos.</i>
                </td>
                <td nowrap width="1%" valign="top" align="right" rowspan="2">
                        <a href="{$go}" target="_top">
                        <font color="#0000cc">Supprimer ce cadre</font><img src="http://www.apdcanari.com/forum/images/frame_remove.gif" height="12" width="13" border="0"></a><br />
                </td>
        </tr>
        <tr>
        <td colspan="5" bgcolor="#efefef">
                Lien externe au site <b>Au Paradis des Canaris</b>, vous vous trouvez sur la page <b><a href="{$go}" target="_top">{$go}</a></b>
        </td>
        </tr>
</table>
<iframe src="{$go}" height="90%" width="100%" frameborder="0">
</body>

C?dric :cool:

Blaine0002 08-04-2006 11:40 AM

yep, anything you want can go in there :)

If you like it click install!

TygerTyger 08-04-2006 12:57 PM

Um. External.php already exists in that location, it handles feed output.

Blaine0002 08-04-2006 01:23 PM

weird, in 3.6 stable? cause im still using rc1, oh well, ill rename it.

Blaine0002 08-04-2006 01:31 PM

Thanks, updated.

pedroenf 08-05-2006 03:55 AM

Hi there. Excelent add-on. I have one question, is it possible to exclude from this frame the internal links? Exemple: http://www.myforum.org/showthread.php?t=16140. Is it? Thanks.

Blaine0002 08-05-2006 03:57 AM

hmm, ill look into it.


All times are GMT. The time now is 07:00 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01124 seconds
  • Memory Usage 1,747KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_code_printable
  • (1)bbcode_html_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete