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

MrsTryst 09-29-2013 11:47 AM

*marked Installed*

Works in 4.2.1 HOWEVER When i added code in footer at the start, it never worked. Moved code to the end of footer and works perfectly.

Mr_Devlin 09-30-2013 09:07 AM

Quote:

Originally Posted by psd_hunter (Post 2357301)
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

It's not possible to exclude an URL in this simple way.
All Links will be transferred via the anonymizer-service. In my opinion there's no need to exclude any external link.

In the "ACP --> General settings" you'll find the option "Post Referrer Whitelist" where you can define friendly urls, that may pass the anonymizer.

Achelos 11-18-2013 06:59 AM

I'm very new to this, can someone please explain where this "Footer Template" is?

Krusty1231 11-18-2013 07:38 AM

Log into your admin panel.

Go to Styles and Templates. (click on it)

Click on Style Manager

This will expand and show you the current skins you have installed.

Find the skin you are currently using.

In the drop down menu - click on style variable editor.

Click edit templates

Scroll down the list presented and find "footer"

Hope it helps!

tbworld 11-18-2013 07:42 AM

Quote:

Originally Posted by Achelos (Post 2461697)
I'm very new to this, can someone please explain where this "Footer Template" is?

Goto your Admincp:
admincp -> Styles & Templates -> Style Manager --> Dropdown box (on right): "Edit Templates" --> Scroll till you find "footer" --> Then Click on it.

vBulletin Manual
http://www.vbulletin.com/docs/html/s...edit_templates

I hope it helps :)

Achelos 11-18-2013 08:00 AM

Thank you guys, wonderful :)

I edited the parent, so any child will take this change along as well.

I do have an additional question though, this does not seem to work for https-links. I reckon this is a fault from anonym's js-script?

Additionally, I noticed one has to refresh the page to see if it works. Is there a way to auto-refresh after a post? The userbase will stay small, so I'm not going to be murdering the server here :)

Mr_Devlin 11-22-2013 03:58 PM

Quote:

Originally Posted by Achelos (Post 2461714)
I do have an additional question though, this does not seem to work for https-links. I reckon this is a fault from anonym's js-script?...

Have a look at Post 42. That's the way to transfer any url via the given anonymizer. NOTE: Don't forget to roll back the changes you made in the footer template!

Quote:

Originally Posted by Achelos (Post 2461714)
Additionally, I noticed one has to refresh the page to see if it works. Is there a way to auto-refresh after a post? The userbase will stay small, so I'm not going to be murdering the server here :)

Add an meta tag to headinclude template:

Quote:

<meta http-equiv="refresh" content="X; URL=your.forumindex.php">
content=X means in seconds the time for refreshing
URL should be your forumhome index...

Note, that this kind of refresh will cause heavy server loads; it will be also not useful when posting...

Easier way is to use <CTRL>+<F5> (or <F5> only>...

Achelos 11-23-2013 10:40 PM

Mr_Devlin

That post42 edit results into links like:
Code:

http://anonym.to/http://anonym.to/http://anonym.to/http://anonym.to/http://anonym.to/http://anonym.to/http://seenive.com/
It seems to have the tendency to work cumulative, redirecting a redirection that's redirected through a redirection, if you catch my drift.

Also a shame that the footer-hack doesn't seem to be compatible with this: https://vborg.vbsupport.ru/showpost....postcount=1941 I am using the 7.84 version (without collapse)

Mr_Devlin 11-24-2013 05:53 PM

Quote:

That post42 edit results into links like:
Code:
http://anonym.to/http://anonym.to/ht...//seenive.com/
It seems to have the tendency to work cumulative, redirecting a redirection that's redirected through a redirection, if you catch my drift.
That's weird...Ok, here is a little work around:

Open class_bbcode.php (same file you used above) and search for this code (around line 2383):

PHP Code:

        $rightlink str_replace(array('`''"'"'"'['), array('`''&quot;'''''['), $this->strip_smilies($rightlink)); 

Change it to:

PHP Code:

        $rightlink str_replace(array('`''"'"'"'['), array('`''&quot;'''''[','http://anonym.to/?'), $this->strip_smilies($rightlink)); 


Achelos 11-27-2013 04:51 PM

I've done this, but it results in this error:

Code:

Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ')' in /home/id787280/domains/someforumname.com/public_html/includes/class_bbcode.php on line 2406
I am running: vB 4.2.2

Mr_Devlin 11-29-2013 05:01 PM

Quote:

I am running: vB 4.2.2
I run this hack on 4.1.9 and it works well - I don't know why this error occurs on your vb...maybe the whole function is different for 4.2.x-versions. So reset the code to the default if this will not work

scoutz 12-09-2013 02:15 AM

Thanks for this.

Anyway I can get this to work with links inside of the [hide] bb code from the vFCoders - Hide Hack?
Works fine with the rest of the content.

magiccen 12-24-2013 01:38 PM

Instalado y funcionando!!!!! gracias.

ozzy47 12-24-2013 02:22 PM

Quote:

Originally Posted by magiccen (Post 2470354)
Instalado y funcionando!!!!! gracias.

Please keep all posts in English.

gsmlover4u 12-24-2013 03:16 PM

it will work with vbseo ?

richTV 12-28-2014 03:24 AM

the last few days, google has been reporting anonym.to as malware so i removed it on my site.

http://www.google.com/interstitial?u...p://anonym.to/

anyone heard about this?

thetechgenius 01-07-2015 05:06 PM

I coded a custom a script that redirects all external links to an Anonymizer URL. The addon has the javascript file for vBulletin that redirects the links, and it also has the Anonym PHP script that actually redirects the LINK Anonymously.

You can use a different domain or subdomain, or you could just use another directory of your main domain.

This is how I have it setup on my server:

My main domain is:

https://thetechgenius.net


My Anonym Domain (where the addon is installed):

https://ttechg.link

So when a someone clicks an anonym link on my vB forum at https://thetechgenius.net, the link will show like this: https://ttechg.link/?http://vbulletin.org

Note: You can actually click that Anonym link, and it will Anonymously redirect to vBulletin.org. And as you can see, it works for SSL/HTTPS also. Anonym.to doesn't work for SSL, because the server doesn't have SSL enabled.

You host all the files on your own server, so you are in control. You dont have to worry about Anonym.to going down.

I will be releasing the full Addon very soon. I am just cleaning up the javascript, and working out a few bugs. This addon should also work with any website, or web software. Its just Javascript and PHP.

chudvs 06-13-2019 08:06 PM

Quote:

Originally Posted by Mr_Devlin (Post 2463406)
That's weird...Ok, here is a little work around:

Open class_bbcode.php (same file you used above) and search for this code (around line 2383):

PHP Code:

        $rightlink str_replace(array('`''"'"'"'['), array('`''&quot;'''', '['), $this->strip_smilies($rightlink)); 

Change it to:

PHP Code:

        $rightlink str_replace(array('`''"'"'"'['), array('`''&quot;'''', '[','http://anonym.to/?'), $this->strip_smilies($rightlink)); 


Im running vb 4.2.5 and the class_bbcode.php code is different!

my code is... on line 2452

Code:

$rightlink = str_replace(array('`', '"', "'", '['), array('`', '&quot;', ''', '['), $this->strip_smilies($rightlink));

so how to I change it so his code works?


All times are GMT. The time now is 01:13 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.01981 seconds
  • Memory Usage 1,834KB
  • 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
  • (6)bbcode_code_printable
  • (8)bbcode_php_printable
  • (12)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (28)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