vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Active Link Security 4.0 (https://vborg.vbsupport.ru/showthread.php?t=70684)

Abe1 10-24-2004 02:41 PM

Quote:

Originally Posted by djohn
how can i make the script exclude site-wide links? for example, i would not like to open a redirection popup, if the link is to another topic or part of my site.

Tell your users to use the [thread] and [post] BB codes.

turkforum 10-27-2004 04:06 AM

great hack installed and saved a bunch of money on my car insurance

Mone' 11-02-2004 09:14 PM

Ae1 , great hack work almost perfectly for normal url
however if you have url like this one:

Code:

http://support.microsoft.com/default.aspx?scid=kb;en-us;832790
the links.php will redirect to:

Code:

http://support.microsoft.com/default.aspx?scid=kb
cutting the ";en-us;832790" part at the end of the url.

the weird thing it's that it work perfectly in firefox but my user get's the problem with IE6 sp2 with links like the above example.

Do you know how to fix it ?

thank you

Mone'

pco 11-04-2004 02:30 AM

Hi,

you can use javascript to redirect instead of the meta-tag.

In links.php instead of

Code:

<META HTTP-EQUIV="refresh" content="0; URL=<? echo $site; ?>"></HEAD>
use this

Code:

<script type="text/javascript">window.location.href="<? echo $site; ?>"</script></HEAD>
You'll still have the title "Redirecting..." (just use the global phrase $vbphrase['redirecting'] instead no hardcoding for compatibilty with other languages) but it will redirect you right away even better and faster than the meta tag, no "extra info page" either :) Tested with internet explorer 5.5 and 6.0, no "cut offs" :D :D



Quote:

Originally Posted by djohn
how can i make the script exclude site-wide links? for example, i would not like to open a redirection popup, if the link is to another topic or part of my site.

In functions_bbcodeparse.php first change this:

Code:

function handle_bbcode_url($text, $link, $type = 'url')
{
        global $wysiwygparse;

to this:

Code:

function handle_bbcode_url($text, $link, $type = 'url')
{
        global $wysiwygparse, $vboptions;

in order to have access to vboptions first. Now again at around line 1480 or so use this:

Code:


        if ($type == 'url')
        {
                // standard URL hyperlink
                $lenbburl=strlen($vboptions['bburl']);
                if ( substr($vboptions['bburl'],0,$lenbburl) == substr($rightlink,0,$lenbburl) ) {
                        return "<a href=\"$rightlink\" target=\"_blank\">$text</a>";
                } else {
                        return "<a href=\"" . $vboptions['bburl'] . "/links.php?url=$rightlink\" target=\"_blank\">$text</a>";
                }
               
        }
        else

Good luck :)

teamgofast 11-27-2004 11:45 PM

install, great hack thank you!

H2k 12-28-2004 11:47 PM

Quote:

Originally Posted by azmi
our related link is with an infoframe:
http://redirect.koelnboard.de/redire...p://google.com

i saw it @giga and i think it works very well ;-)

text on the left:
the koelnboard is not responsible for the content
text on the right:
close infoframe

can we use anther url like said thati dont need to usemy url i need to use google.. so if TheUser enter forumssiteother.com and the forumssiteother.com check his log or state to find where poeple come from etc.. it will show from google if they was enter from my site.?

aranthorn 01-17-2005 03:52 PM

Just the ticket!

Sin City 01-22-2005 06:03 AM

great hack :)

Bubble #5 05-11-2005 04:15 PM

Quote:

Originally Posted by djohn
suggestions: replace return return
HTML Code:

"<a href=\"http://www.yourwebsite.com/links.php?url=$rightlink\" target=\"_blank\">$text</a>";
with
HTML Code:

"<a href=\"$vboptions[bburl]/links.php?url=$rightlink\" target=\"_blank\">$text</a>";
for future versions: per-forums setting, whether to use this hack or not.

Are we supposed to make this modification? What is it's benifit?

Abe1 05-11-2005 04:28 PM

Quote:

Originally Posted by Bubble #5
Are we supposed to make this modification? What is it's benifit?

Up to you.


All times are GMT. The time now is 07:33 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.01135 seconds
  • Memory Usage 1,749KB
  • 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
  • (7)bbcode_code_printable
  • (2)bbcode_html_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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