Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.5 > vBulletin 3.5 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Link Anonymizer Details »»
Link Anonymizer
Version: 1.10, by Marco van Herwaarden Marco van Herwaarden is offline
Developer Last Online: Dec 2010 Show Printable Version Email this Page

Version: 3.5.1 Rating:
Released: 09-05-2005 Last Update: 11-24-2005 Installs: 154
Uses Plugins
 
No support by the author.

Link Anonymizer v1.02a & 1.03, 1.04, 1.05.3 & 1.10

Author: MarcoH64

vBulletin Version: 3.5.1

Warning: Version 1.02 might create double anonym links if you edit a post multiple times. Version 1.03 has been reported not to be working for some people. Please read posts in this thread if you plan on using this hack, until i had time to look into this.
v1.05 and higher should be the best versions
1.10 Is an updated version of 1.05.3 and is considered a stable release. Only version 1.10 will be supported now.

Description:
This Product will add a self configurable anonymising link to all external urls in posts.

Installation:
Install the XML-file as Product.

Configuration:
vBulletin Options->Link Anonymizer :
  • Local Addresses
Local addresses are not anonymized. If you leave this option blank, the value for vBulletin Options Cookie Domain will be used. Do not use a http:// prefix.

If you start the name with a dot (.mydomain.com) all server addresses ending with this will be considered local. If you want to add mulitple domain/servernames, seperate them by a single space.


Link to a anonymizer function. Use preceding / if needed. Other Usable Anonymizers:
Code:
http://anon.free.anonymizer.com/ 
 
http://anonym.webgurus.de (Thanks Wachtmeister)

  • Allways anonymize Unparseble URLs (* New in version 1.10)
Please click install if you are using this hack.

Donations are always welcomed at Paypal: marcoh64 AT gmail.com

Change log:
6-9-2005 v1.01
- 1 setting was missing from product file due to wrong Product. Fixed
7-9-2005 v1.02
- Under some conditions a newly posted post with only a link would not get anonymized. Fixed.
7-9-2005 v1.02a
- Fixed bug when handling generic local domain (starting with a dot '.'') Sorry for the many updates.
8-10-2005 v1.03
- Totally new way of doing this, on view instead of on write.
- Solved doubling the anonym link on edit
10-10-2005 v1.04
- Link not didn't get anonym prefix if URL= didn't contain http://. Solved.
- Added truncate table post_parsed to install routine.
1-11-2005 v1.05
- Standard Editor fixed
- Simple URL's in standard editor fixed.
- Default anonymizer changed
2-11-2005 v1.05.1
- Fixed bug where only the last url to the same domain in a single post was anonymised.
9-11-2005 v1.05.2
- Added option to ignore certain protocols in the vBulletin Options (ie. ignore https, ftp, ....).
- Attempt to fix reported bug where an inline fragment (#fragment) would also be anonymized.
10.11.2005 v1.05.3
- Another attempt to ignore fragments
25.11.2005 v1.10
- Fixed a bug where some urls could lead to a parse error. Example of an url leading to this error:
Code:
http://mymail@mymail.com:password@www.mydomain.com
- Added new parameter to vB Options: Always anonimyze unparseble URLs
- This is considered a very stable release. No bug reports pending
- All previous versions are from now on unsupported

Upgrades:
If you are running an older version and want to upgrade, simply do an overwrite install.

It is possible that there are still double links in the database from old versions. If you wish to remove these, run the following queries (make backup first!!):

SQL Query: (how to run queries)
update post set pagetext = replace(pagetext, "http://YOURANONIMIZERLINK/","");

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #62  
Old 10-10-2005, 03:20 PM
RMS-Chef RMS-Chef is offline
 
Join Date: Aug 2003
Location: MA, USA
Posts: 326
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I am back again to v1.2a
Sorry brother but v1.4, like v1.3 just does not work for me.
Again, I tried to first just overwrite. Then uninstalled the reinstalled v1.4 and it simply is not doing anything. I am on v3.5 Gold now.

v1.2a is perfect for me except for the WYSIWYG Editor issue.
I appreciate your efforts sir.
Reply With Quote
  #63  
Old 10-10-2005, 03:49 PM
Chad F. Chad F. is offline
 
Join Date: Nov 2004
Posts: 92
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I installed 1.04 and..

- All of the old links are untouched by the anonymizer.

- Some of the links in new posts are anonymized and the rest have "http://anonym.to/?" in front of it 6 times.
Reply With Quote
  #64  
Old 10-10-2005, 06:42 PM
Marco van Herwaarden Marco van Herwaarden is offline
 
Join Date: Jul 2004
Posts: 25,415
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Chad F.
Some of the links in new posts are anonymized and the rest have "http://anonym.to/?" in front of it 6 times.
This could still be left overs from 1.02, i promised you i would give you the exact SQL to fix it, but didn't have time for it yet.

If one of you who still have 1.04 installed would let me have a llok at their board, i could maybe figure out why it is not working for you. If you're interested, please pm me contact info.
Reply With Quote
  #65  
Old 10-10-2005, 07:45 PM
Chad F. Chad F. is offline
 
Join Date: Nov 2004
Posts: 92
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by MarcoH64
This could still be left overs from 1.02, i promised you i would give you the exact SQL to fix it, but didn't have time for it yet.

If one of you who still have 1.04 installed would let me have a llok at their board, i could maybe figure out why it is not working for you. If you're interested, please pm me contact info.
Oh ok sorry, anyways I PMed you.
Reply With Quote
  #66  
Old 10-10-2005, 08:47 PM
RMS-Chef RMS-Chef is offline
 
Join Date: Aug 2003
Location: MA, USA
Posts: 326
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by MarcoH64
This could still be left overs from 1.02, i promised you i would give you the exact SQL to fix it, but didn't have time for it yet.

If one of you who still have 1.04 installed would let me have a llok at their board, i could maybe figure out why it is not working for you. If you're interested, please pm me contact info.
OK MarcoH64, thanks again for your diligence.

Behavior for current 1.4
WYSIWYG:
-Working fine with WYSIWYG
-Editing issues seem fixed with WYSIWYG

Standard Editor:
-Does not prefix with anon properly if you only type the URL and have the board parse after you hit submit.
-Does work in standard if you click the add link button ()

Also a note, with your procedure for 1.2a, all links, even pre-existing links are prefixed with anon properly. With your current 1.3/4 method, pre-existing links created in WYSIWYG or in standard with the create link button are prefixed properly but regular typed URLs that were done in a standard editor do not seem to be prefixed after this install.

It seems to me that your original method works best, if you could iron out the Enhanced Editor issues with it. I would use 1.4 in it's current form if only I could force everyone to use WYSIWYG but that is a user option. My last couple posts reporting this as not working for me are because I had not reinstated the WYSIWYG editor on the board that I had disabled due to the v1.3+ issues. I am back to 1.2a right now and not missing WYSIWYG at this point as much as I thought I would.

Hope I explained that clearly enough....I tend to ramble sometimes.
Reply With Quote
  #67  
Old 10-16-2005, 03:10 AM
bigmonay2k bigmonay2k is offline
 
Join Date: May 2004
Posts: 169
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

No Go For Me :ermm:
Reply With Quote
  #68  
Old 10-16-2005, 08:29 PM
Chad F. Chad F. is offline
 
Join Date: Nov 2004
Posts: 92
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

What happened to Marco? :ermm:
Reply With Quote
  #69  
Old 10-18-2005, 02:20 AM
Computer_Angel Computer_Angel is offline
 
Join Date: Aug 2004
Posts: 25
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

1. Case sensitive bugs:
just detect URL tag, but no for url, URl, uRl, Url ...
when typeing like this no anonymizer anymore.
2. Just parsing the pattern
[ URL = "xxxxxxx" ] xxxxx [ / URL ]
no for
[ URL ] xxxxxx [ / URL]
Reply With Quote
  #70  
Old 10-20-2005, 07:19 AM
Computer_Angel Computer_Angel is offline
 
Join Date: Aug 2004
Posts: 25
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is my solution for ver 1.04:

PHP Code:
if ($post['pagetext'])
{
    if (
preg_match_all("/(\[URL=\")(.[^\"\]]*)/i"$post['pagetext'], $matches))
    {
        
$localdomains = ($vbulletin->options['mh_anolink_localaddresses'] ? explode(" "$vbulletin->options['mh_anolink_localaddresses']) : ($vbulletin->options['cookiedomain'] ? array($vbulletin->options['cookiedomain']) : array($_SERVER['SERVER_NAME'])));
        
$preg_search = array();
        
$preg_replace = array();
        
        foreach (
$matches[2] AS $key=>$serverurl)
        {
            
// Do we have a local url?
            
$parsed_url parse_url($serverurl);
            
$servername $parsed_url['host'];
            foreach (
$localdomains AS $localdomain)
            {
                if (
substr($localdomain01) == ".")
                {
                    if (
preg_match("/$localdomain$/i"$servername))
                    {
                        continue 
2;
                    }
                }
                else
                {
                    if (
$localdomain == $servername)
                    {
                        continue 
2;
                    }
                }
            }
            
$anonymurl $vbulletin->options['mh_anolink_anonymizer'] . $serverurl;            
            
//$preg_search["$servername"] = "[URL=\"$serverurl";
            
$preg_search["$servername"] = $matches[0]["$key"];
            
//$preg_replace["$servername"] = "[URL=\"" . $anonymurl;
            
$preg_replace["$servername"] = $matches[1]["$key"].$anonymurl;            
            if (
$preg_search)
            {
                
$post['pagetext'] = str_replace($preg_search$preg_replace$post['pagetext']);            
            }
        }        
    }
    
//[URL]link[/URL]
    
if (preg_match_all("/(\[URL)(])(.[^\]]*)/i"$post['pagetext'], $matches))
    {
        
$localdomains = ($vbulletin->options['mh_anolink_localaddresses'] ? explode(" "$vbulletin->options['mh_anolink_localaddresses']) : ($vbulletin->options['cookiedomain'] ? array($vbulletin->options['cookiedomain']) : array($_SERVER['SERVER_NAME'])));
        
$preg_search = array();
        
$preg_replace = array();
        
        foreach (
$matches[3] AS $key=>$serverurl)
        {
            
// Do we have a local url?
            
$parsed_url parse_url($serverurl);
            
$servername $parsed_url['host'];
            foreach (
$localdomains AS $localdomain)
            {
                if (
substr($localdomain01) == ".")
                {
                    if (
preg_match("/$localdomain$/i"$servername))
                    {
                        continue 
2;
                    }
                }
                else
                {
                    if (
$localdomain == $servername)
                    {
                        continue 
2;
                    }
                }
            }
            
$anonymurl $vbulletin->options['mh_anolink_anonymizer'] . substr($serverurl,0,strlen($serverurl)-5);
            
$preg_search["$servername"] = $matches[0]["$key"];
            
$preg_replace["$servername"] = $matches[1]["$key"]."=\"".$anonymurl."\"".$matches[2]["$key"].$serverurl;                        
            if (
$preg_search)
            {
                
$post['pagetext'] = str_replace($preg_search$preg_replace$post['pagetext']);
            }
        }        
    }

Reply With Quote
  #71  
Old 10-20-2005, 07:59 PM
Marco van Herwaarden Marco van Herwaarden is offline
 
Join Date: Jul 2004
Posts: 25,415
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Sorry huys, i have been real busy the last week. I will try to have a look at the issues and the suggestions next week.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


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


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05355 seconds
  • Memory Usage 2,365KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_code
  • (1)bbcode_php
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete