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

Reply
 
Thread Tools
Two-Step External Links for Link Weight Retention Details »»
Two-Step External Links for Link Weight Retention
Version: 1.05, by aspen0 aspen0 is offline
Developer Last Online: Jun 2015 Show Printable Version Email this Page

Category: Miscellaneous Hacks - Version: 3.8.x Rating:
Released: 07-01-2009 Last Update: 01-25-2011 Installs: 52
Uses Plugins
Code Changes Additional Files Translations  
No support by the author.

Two-Step External Links
Thought up by Chris Beasley, coded by Chris Bowyer, copyright Jalic Inc. 2009.

Compatibility
Tested on 3.7.x and 3.8.x, may work on older versions as well.

Description
With Google's recent change to nofollow calculations using nofollow on your user submitted external links will still harm your site by depriving your internal links of PageRank. (See here.)

Forums that had installed nofollow on signature or other such user contributed links thinking they were controlling this are in fact no longer doing so.

One solution is a two-step linking process presenting a disclaimer on a redirect page (filled
with your internal links) to mitigate link weight loss. For a full explanation of benefits and the math behind them see the official page (a wordpress plugin is also available there).

Two-Step External Linking

This method is also useful for sites needing a disclaimer before sending people to third party user contributed websites for legal or liability reasons.

Using this plugin can reduce the amount of pagerank sent through user contributed signature and other links by over 90%, for every post or thread on your forum. It also allows you to keep using nofollow to indicate to search engines that if the link is to a bad neighborhood you are not at fault, while not wasting link weight on the nofollow link.

Settings
The settings are located in vBulletin Options -> vBulletin Options -> All the way at the bottom. You can do the following:

1. Create a white list of domains or urls exempt from redirecting.
2. Decide to apply "nofollow" to the external link that shows on the redirect page or not.
3. Turn on two-step linking for signature links.
4. Turn on two-step linking for post/profile visitor message/blog links.
5. Turn on two-step linking for user profile/memberlist links.
6. Define your redirect warning disclaimer paragraph.
7. Decide to use an additional automated meta-redirect or not, and the second delay.


Statistics

New Files: 1
File Edits: 2
Products to Install: 1
Readme included

Additional Uses
Because the actual redirect page is fairly independent of vbulletin and easy to access, you can run any other external links from any software on your site through it simply with the format of example.com/forums/externalredirect.php?url=http://www.externalexample.com. So if you're able to edit your CMS or otherwise manually format your links as such, they will be run through the redirect as well.

Support

I'll do my best to provide support in this thread only for people who have it installed.

Version History

1.00 - Initial Release
1.01 - bug fixes
1.02 - bug fixes, added admin toggle to allow you to choose to only show redirects to guests.
1.03 - bug fixes
1.04 - bug fixes, non-www urls & sigpic problems fixed.
1.05 - Jan 25th 2011, small xss flaw fixed

Download Now

File Type: zip two-step-external-link.zip (4.7 KB, 242 views)

Supporters / CoAuthors

Show Your Support

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

Comments
  #72  
Old 07-05-2009, 10:51 AM
NLP-er's Avatar
NLP-er NLP-er is offline
 
Join Date: Aug 2008
Location: Wrocław
Posts: 1,353
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by aspen0 View Post
I'm sorry NLP'er, I'm not understanding your issue.
so look on this link:
http://www.forum.simple-nlp.pl/exter...tp://www.wp.pl

There is an error about aess denied. But thi is not access to externalredirect.php, because when you go here:
http://www.forum.simple-nlp.pl/externalredirect.php

It generates. So somesthing is wrong with externalredirect.php code. Whad to do to have it working?
Reply With Quote
  #73  
Old 07-05-2009, 12:05 PM
Sayid Sayid is offline
 
Join Date: Jan 2009
Posts: 143
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi,

First I want to thank you, I like seo mods btw .

I,m afraid now before installing about this ,

Quote:
I think I know what is happening here, the image URL is being rewritten as a redirect as well, causing the image to fail and be broken. That would be my guess anyways.
Is it a bug ? I mean when install this mod , forums signatures that have external images will not displayed ??
Reply With Quote
  #74  
Old 07-05-2009, 12:21 PM
aspen0 aspen0 is offline
 
Join Date: Apr 2003
Posts: 65
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Sayid View Post
Hi,

First I want to thank you, I like seo mods btw .

I,m afraid now before installing about this ,



Is it a bug ? I mean when install this mod , forums signatures that have external images will not displayed ??
it was fixed in the last update I believe.
Reply With Quote
  #75  
Old 07-05-2009, 12:22 PM
aspen0 aspen0 is offline
 
Join Date: Apr 2003
Posts: 65
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by NLP-er View Post
so look on this link:
http://www.forum.simple-nlp.pl/exter...tp://www.wp.pl

There is an error about aess denied. But thi is not access to externalredirect.php, because when you go here:
http://www.forum.simple-nlp.pl/externalredirect.php

It generates. So somesthing is wrong with externalredirect.php code. Whad to do to have it working?
I have no idea, there is nothing in the mod that would print out a page like that. It has to be a conflict with something you have on your server. A setting that handles query strings for PHP pages, a security setting that disallows URLs from being in query strings, something like that.
Reply With Quote
  #76  
Old 07-05-2009, 12:45 PM
NLP-er's Avatar
NLP-er NLP-er is offline
 
Join Date: Aug 2008
Location: Wrocław
Posts: 1,353
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by aspen0 View Post
I have no idea, there is nothing in the mod that would print out a page like that. It has to be a conflict with something you have on your server. A setting that handles query strings for PHP pages, a security setting that disallows URLs from being in query strings, something like that.
:/ Ok - till solution mod dissabled. I send query to my hosting company - see do they will find out somesthing. Thanks anyway
Reply With Quote
  #77  
Old 07-05-2009, 01:05 PM
Sayid Sayid is offline
 
Join Date: Jan 2009
Posts: 143
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It works

But as I said about signatures,

it shows the url of the image like this

PHP Code:
http://i9.photobucket.com/albums/a58...o1ni0220-1.jpg 
when I click on it, it redirects me as expected .. And if there is an image without extension like attachments of other forums, it give another message in redirect page which is "Invalid url"

PHP Code:
http://localhost/123vb/externalredirect.php?url=http://i48.servimg.com/u/f48/11/38/19/72/110.jpg 
Note: I installed it in localhost forum.

btw, I think vbanonymizer does redirect . Is there a difference ??
Reply With Quote
  #78  
Old 07-05-2009, 01:31 PM
Sayid Sayid is offline
 
Join Date: Jan 2009
Posts: 143
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

another small bug

URL that contains '&' gives the same invalid message in redirect page

example:

Code:
http://localhost/123vb/externalredirect.php?url=http://www.external.com/vb/external.php?type=rss2&forumids=56
Reply With Quote
  #79  
Old 07-05-2009, 01:47 PM
NLP-er's Avatar
NLP-er NLP-er is offline
 
Join Date: Aug 2008
Location: Wrocław
Posts: 1,353
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Sayid View Post
btw, I think vbanonymizer does redirect . Is there a difference ??
I just installed it - difference is that you don't have to make strange file edition which will disappear after next vb update like in this mod. Unfortunately i have same behavior like in this mod... So right now I'm sure that my problem is not with mod but something else...
Reply With Quote
  #80  
Old 07-05-2009, 03:41 PM
TWTCommish's Avatar
TWTCommish TWTCommish is offline
 
Join Date: Oct 2001
Location: Pittsburgh, PA, USA
Posts: 783
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Sayid View Post
Is it a bug ? I mean when install this mod , forums signatures that have external images will not displayed ??
I used a signature picture on my test forum and it worked fine, so I've been unable to duplicate the problem in question. I'm not sure if it's limited to this one user, who seems to have many modifications installed.

It also, in theory, shouldn't change it, if only because it only modifies links passed through vB's link creation function. Can't imagine that vB would be passing image URLs through that by default.
Reply With Quote
  #81  
Old 07-05-2009, 03:57 PM
TWTCommish's Avatar
TWTCommish TWTCommish is offline
 
Join Date: Oct 2001
Location: Pittsburgh, PA, USA
Posts: 783
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Sayid View Post
another small bug

URL that contains '&' gives the same invalid message in redirect page
I've attached an updated externalredirect.php file that relaxes the URL validating regular expression a bit. Thanks for bringing this to our attention!
Attached Files
File Type: php externalredirect.php (1.4 KB, 14 views)
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 12:41 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.04786 seconds
  • Memory Usage 2,352KB
  • Queries Executed 27 (?)
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
  • (1)bbcode_code
  • (2)bbcode_php
  • (8)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (2)postbit_attachment
  • (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_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete