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

Reply
 
Thread Tools
URL Cloak for SEO Details »»
URL Cloak for SEO
Version: 1.00, by blckecode blckecode is offline
Developer Last Online: Sep 2013 Show Printable Version Email this Page

Category: Administrative and Maintenance Tools - Version: 4.2.x Rating:
Released: 12-11-2012 Last Update: Never Installs: 10
Uses Plugins
Re-useable Code Translations  
No support by the author.

SEO, Privacy, Encryption, Redirect, Invest and Affiliate Link Cloaker of URL inside your posts.

Features:
  • Make long ugly affiliate links turn into short "hijack proof" url's.
  • Improve your SEO by hide out-links from your threads, posts and signatures.
  • URL Encryption
  • Automatically process Redirect of URLs
  • Retain pagerank of your site by giving links out parameter that makes Googlebot think it was looking at a session id link and ignore it.
  • Process all threads, posts and signatures.

Installation:
  1. Upload letsw.php file attached here to your forum root.
  2. Go to your forum admin panel to "Plugins & Products" then "Add New Plugin".
  3. Hook Location: choose "postbit_display_complete"
  4. Title: "URL Cloak".
  5. Plugin PHP Code: copy below code and paste it htere:
    PHP Code:
       include_once('./letsw.php');
       global 
    $vbulletin;  
       if (
    $GLOBALS['perpage'] > 0)  
          
    $post_modulus $post['postcount'] % $GLOBALS['perpage'];  
           
          if(
    function_exists('letsw_text')) $post['message'] = letsw_text($post['message']) ;             
          if(
    function_exists('letsw_text')) $post['signature'] = letsw_text($post['signature']) ; 
  6. Plugin is Active: set it to "Yes"
  7. Click "Save"

That's it. Surf your posts to see how your in-post links look like.
See test site http://forum.letsfx.com

Download Now

File Type: php letsw.php (1.2 KB, 53 views)

Screenshots

File Type: jpg urlcloak.jpg (94.8 KB, 0 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Благодарность от:
sodasusu

Comments
  #2  
Old 12-12-2012, 06:57 PM
smirkley smirkley is offline
 
Join Date: Apr 2008
Posts: 627
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Installed exactly as described, but doesnt change my urls in posts.

Double checking everything again.

Question,... are there long term PR results that have been experienced?
Reply With Quote
  #3  
Old 12-12-2012, 07:07 PM
smirkley smirkley is offline
 
Join Date: Apr 2008
Posts: 627
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

OK,.... you might want to tell everyone they have to edit the php file and replace the 2 url's that will redirect everything to your website.


Also, you left out the

Code:
include_once('./letsw.php');

//=================
that should be in your code example instructions also.


Still havent got it to work yet properly. Page opens up but it never redirects to the link source, just ends up on my homepage.
Reply With Quote
  #4  
Old 12-12-2012, 07:20 PM
blckecode blckecode is offline
 
Join Date: May 2006
Posts: 7
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It is working just fine with me see example here:
http://forum.letsfx.com/showthread.p...=7216#post7216

Here you find link to external site with words "Legal Documents". My plugin code replace url automatically through j.letsw.com (free global service).

This helps me for 5 months to get PR3 because google bot will not see many external links from your site else one global free service (j.letsw.com)

Let me know your site name to help you solve your problem
Best,
Reply With Quote
  #5  
Old 12-12-2012, 07:26 PM
smirkley smirkley is offline
 
Join Date: Apr 2008
Posts: 627
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have been to your site and I see it working.

BUT,.. the php code MUST be edited to replace the j.letsw.com in lzoo_white and the user must also replace the link in $eurl = string.

Additionally I had to add the include_once statement above that was not in the code box in instructions, but was in the image screenshot.

After that the url structure on my site was as intended for posted links, but when clicked on the redirect never occurs. Just a pop-up that retains my website as the ?url never gets redirected to.

Thats pretty much it tho.
Reply With Quote
  #6  
Old 12-12-2012, 07:31 PM
blckecode blckecode is offline
 
Join Date: May 2006
Posts: 7
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You are right about include code I forgot:
include_once('./letsw.php');

But no any changes required on file included. Use original one from here again and let me know.
Reply With Quote
  #7  
Old 12-12-2012, 07:34 PM
smirkley smirkley is offline
 
Join Date: Apr 2008
Posts: 627
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

OK,...just downloaded another copy and this is what I get...
Code:
<?php
    
    function letsw_text($text){
      $lzoo_white = array('letsw.com'); // TODO: ADD HERE SITES TO EXCLUDE OF CLOAK   
      $lzoo_white[] = $_SERVER['HTTP_HOST'];

      //global $vbulletin;
      //$userid = $vbulletin->userinfo[userid];
      
      $p = strpos($text, '<a ');
      while($p!==false){
         $p1 = strpos($text, 'href',$p);
         if($p1!==false){
            $p2 = strpos($text, '"',$p1); if($p2!==false) $p2 = strpos($text, '"',$p2+1); 
            if($p2!==false && $p2-$p1<200){
               $url = substr($text,$p1,($p2-$p1)+1);
               $link = substr($url,strpos($url,'"')+1,-1);
               $ignore=false;
               foreach($lzoo_white as $val)
                  if(strlen($val)>1) if(strpos($url,$val)!==false) $ignore = true;
                    
               $eurl = 'href="http://j.letsw.com/?'.(str_replace('"','',str_replace('href=','',$url))).'"';    
               if(!$ignore && (strpos($url,"http://")!==false || strpos($url,"https://")!==false) )
                  $text = str_replace($url, $eurl, $text);             
            }           
         }
         $p = strpos($text, '<a ',$p+5);
      }
      return($text);
   }
?>
Reply With Quote
  #8  
Old 12-12-2012, 07:37 PM
blckecode blckecode is offline
 
Join Date: May 2006
Posts: 7
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is correct. Just copy it to your forum root by FTP.
PM me if you want
Reply With Quote
  #9  
Old 12-12-2012, 07:40 PM
smirkley smirkley is offline
 
Join Date: Apr 2008
Posts: 627
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

No, lets hash this out here.

I tried it for a second before disabling it, because on my site I dont want any hidden url's in links that arent mine.

Am I missing something here?
Reply With Quote
  #10  
Old 12-12-2012, 08:12 PM
blckecode blckecode is offline
 
Join Date: May 2006
Posts: 7
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by smirkley View Post
No, lets hash this out here.

I tried it for a second before disabling it, because on my site I dont want any hidden url's in links that arent mine.

Am I missing something here?
You can change j.letsw.com to any public anonymity services like anonym.to

For me and many friends use this way to hide external links from search bots to raise page rank.

Best,
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 10:48 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.04655 seconds
  • Memory Usage 2,332KB
  • Queries Executed 24 (?)
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
  • (1)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
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (1)post_thanks_box_bit
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (2)postbit_attachment
  • (10)postbit_onlinestatus
  • (10)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
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • 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