vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=246)
-   -   Mini Mods - All External Link Redirect To anonym.to Site (https://vborg.vbsupport.ru/showthread.php?t=237329)

haddad 04-24-2012 01:08 PM

Quote:

Originally Posted by qubed (Post 2164557)
Working fine for me on 4.1.2

All I have done is Style & Templates----->Style Manager----->Edit Templates----->Footer

Paste at the very end of your footer after the last </ div> tag:

Good on Version 4.1.12 :)
thx

Mr_Devlin 04-25-2012 08:03 AM

There is an easier way to anomize your urls. Only one file edit, no style edits required.

Open "class_bbcode.php".

Search for

PHP Code:

// standard URL hyperlink
        
return "<a href=\"$rightlink\" target=\"_blank\"" . ($is_external ' rel="nofollow"' '') . ">$text</a>"

Replace it with following code:

PHP Code:

// standard URL hyperlink
        
return "<a href=\"http://anonym.to/$rightlink\" target=\"_blank\"" . ($is_external ' rel="nofollow"' '') . ">$text</a>"

This will work on all vb editions and all kind of links, incl SSL. You can use an alternating redirector instead of anonym.to, it will work fine also.

knelo1 04-25-2012 10:55 AM

thanks installed 4.1.11 working

davidg 04-26-2012 05:01 PM

Quote:

Originally Posted by Mr_Devlin (Post 2323299)
There is an easier way to anomize your urls. Only one file edit, no style edits required.

Open "class_bbcode.php".

Search for

PHP Code:

// standard URL hyperlink
        
return "<a href=\"$rightlink\" target=\"_blank\"" . ($is_external ' rel="nofollow"' '') . ">$text</a>"

Replace it with following code:

PHP Code:

// standard URL hyperlink
        
return "<a href=\"http://anonym.to/$rightlink\" target=\"_blank\"" . ($is_external ' rel="nofollow"' '') . ">$text</a>"

This will work on all vb editions and all kind of links, incl SSL. You can use an alternating redirector instead of anonym.to, it will work fine also.

this is the best method out there Mr_Devlin
here is the same code with diferent redirecting service if people dont like anonym.to

Code:

// standard URL hyperlink
        return "<a href=\"http://dereferer.ws/?$rightlink\" target=\"_blank\"" . ($is_external ? ' rel="nofollow"' : '') . ">$text</a>";


psd_hunter 08-16-2012 06:33 AM

Could someone please help me with this code and explain me how I can exclude my own website URL , and maybe some others from this?

I need my own board Url beeing untouched from this redirecting when Users post links to threads within my board.

Code:

// standard URL hyperlink
        return "<a href=\"http://anonym.to/$rightlink\" target=\"_blank\"" . ($is_external ? ' rel="nofollow"' : '') . ">$text</a>";

How does the code need to look like with the protected links inside?
Thanks a lot guys 'n gulls.

Cheers,
psd_hunter

Keythacker 03-31-2013 09:52 AM

Just when I was about to Mark this as "didn't work on VB5 I realized I didn't implement the change into all Themes....lol Great Job glad this still works.

YOODA230 03-31-2013 10:29 AM

its good for what ??
Why should I transfer my users to another site?

rgreene1971 04-02-2013 02:55 AM

Quote:

Originally Posted by YOODA230 (Post 2413331)
its good for what ??
Why should I transfer my users to another site?

If you do not want other sites to know they were link to them from your site. I use this on a couple of my adult sites. Works great.

Keythacker 05-22-2013 12:43 AM

Well this works on all links except links with https wish there was a way around it but till then just cant use https links

freak46 05-25-2013 05:58 PM

working fine mark as installed thanks


All times are GMT. The time now is 07:23 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.01386 seconds
  • Memory Usage 1,748KB
  • 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
  • (2)bbcode_code_printable
  • (4)bbcode_php_printable
  • (3)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