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.

pedroenf 08-05-2006 10:36 AM

Thanks Blaine. It would be very usefull. Hope you can do it.

MajorFm.com 08-05-2006 10:55 AM

Just installed this but on some links im getting:

http://www.myforum.com/ext.php?go=ht...?do=editavatar

Please advise!

MajorFm.com 08-05-2006 10:58 AM

^^^ i have worked it out, there is a problem with this code, every time you edit the post and save, it add's another http://www.myforum.com/ext.php?go= so this can go on forever if you edit posts alot, please fix this and repost.

Blaine0002 08-05-2006 02:22 PM

Thanks for telling me, ill look into it.

JaneWindall 08-06-2006 12:02 AM

the live example does not work in firefox. no frame appears it looks 100% normal. (live link was at http://www.gentendo.com/forum/showth...=2406#post2406)

Blaine0002 08-06-2006 03:47 AM

yeah sorry im in the process of updating to 3.6.0 :)

BCC 08-09-2006 12:18 PM

Cant Wait For this Modification to be Fixed.
Will Come in Very Very Very Handy.
Hope You Fix it Soon, Thanks

MajorFm.com 08-15-2006 09:10 PM

whats the ETA on this?

MajorFm.com 08-23-2006 09:52 PM

...any luck with this... you have many eagerly waiting people!

MajorFm.com 08-27-2006 02:06 PM

Anyone else willing to offer a fix? i can pay a small contribution.

MajorFm.com 09-02-2006 06:53 PM

This must be for external links only, there has to be a way of entering domains that you do not want framed.

MajorFm.com 09-06-2006 09:13 PM

I'm willing to pay for a fix to this... anyone?

*slaps his head against a brick wall trying to convince himself he is not talking to himself*

MajorFm.com 09-11-2006 10:45 PM

ok got the fix... (credit Hambil for fix)

use this code to replace with in class_bbcode.php instead of the above and it should work fine:

Code:

                // standard URL hyperlink
                if (stristr($rightlink, 'frame=true') === FALSE)
                        return "<a href=\"http://www.urltoyourexternalframe.php?frame=true&go=$rightlink\" target=\"_blank\">$text</a>";
                else
                        return "<a href=\"$rightlink\" target=\"_blank\">$text</a>";


P.Jackson 09-11-2006 11:23 PM

Same on firefox

MediaHound 09-12-2006 04:20 AM

clicks subscribe

markbolyard 09-26-2006 04:09 PM

Once you use this, and then uninstall it, all previous links posted in the forum will still direct to the framed page. New links will be normal however. So the big question is, how do you remove all the old links that still point to the framed page? One by one?

SVZ 12-19-2006 06:05 PM

So I'm guessing this doesn't work?

yingzhou 12-20-2006 01:16 AM

Can it work with firefox? I dont like using the IE. :D

SiMateoAko 01-12-2007 04:16 PM

I just made a version of this that works... will post it today.

SiMateoAko 01-12-2007 05:15 PM

This has everything you guys want and more. https://vborg.vbsupport.ru/showthread.php?t=136311

I'm pretty sure it will work on 3.6, but havn't test it yet.

psico 01-13-2007 07:28 PM

Quote:

Originally Posted by SiMateoAko (Post 1157280)
This has everything you guys want and more. https://vborg.vbsupport.ru/showthread.php?t=136311

I'm pretty sure it will work on 3.6, but havn't test it yet.

I cannot access that page, what happend?

SiMateoAko 01-13-2007 10:05 PM

Quote:

Originally Posted by psico (Post 1158307)
I cannot access that page, what happend?

Had a small security hole in the file so it was removed. It's fixed now.

https://vborg.vbsupport.ru/showthread.php?t=136333

lazydesis 01-22-2007 02:14 AM

Quote:

Originally Posted by markbolyard (Post 1083999)
Once you use this, and then uninstall it, all previous links posted in the forum will still direct to the framed page. New links will be normal however. So the big question is, how do you remove all the old links that still point to the framed page? One by one?

you will have to undo this step which u performed durin insallation
Code:

EDIT includes/class_bbcode.php


All times are GMT. The time now is 03:28 AM.

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.01353 seconds
  • Memory Usage 1,792KB
  • 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
  • (5)bbcode_code_printable
  • (1)bbcode_html_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (33)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete