vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Mini Mods - Redirect Archive Search Engine Results To Full Forum (https://vborg.vbsupport.ru/showthread.php?t=131946)

Viper007Bond 11-18-2006 10:00 PM

Redirect Archive Search Engine Results To Full Forum
 
Another plugin that came about due to my own personal needs and which I thought I'd share. :)


Description:

What this does is hooks into the top of your forum's archive script (ex: this forum's archive) and checks the referrer that the user's browser sends. If it's from Google, Yahoo, or MSN searches, then it redirects to the full version of the index/forum/thread/whatever.

This is needed (IMO) since the search engines crawl that archive and very often show links to it in search results. However, it's rather ugly and has no reply box, etc. etc., so incoming users shouldn't be seeing it.

This plugin does not block access to the archive though. If you click the archive link in your footer or manually type in the URL to it, you won't notice any difference.


Installation:

Download and install the attached product. It's just a single plugin, but products are more powerful, so I thought I'd wrap it into a whole product.


How do I know if it's working right?

Go to Google and type this into the search box:

Code:

site:http://yoursite.com/forum/archive/
That will bring up a list of links to pages in your archive. When you click on one, your forum should redirect you from the archives to the main forum. :)


It's still not working right!

Reply to this thread and let me know. I may need to slightly adjust the checks to see if you're coming from a search engine or not. ;)


==============================
DON'T FORGET TO CLICK INSTALL!

https://vborg.vbsupport.ru/
==============================

WritersBeat 11-19-2006 09:12 AM

This kind of defeats the purpose of the archive. The archive allows search engines to spider and index your site a lot easier. There fore bringing you more traffic.

Viper007Bond 11-19-2006 09:20 AM

Quote:

Originally Posted by WritersBeat (Post 1120634)
This kind of defeats the purpose of the archive. The archive allows search engines to spider and index your site a lot easier. There fore bringing you more traffic.

That's exactly why I have the archive enabled and why this plugin doesn't affect spiders or anyone accessing it directly. It only affects people who enter into the archive coming from a search engine (i.e. they search for something and are presented with a link to your archive).

EasyTarget 11-19-2006 09:52 AM

great idea.. probably helps a lot with guest to member conversion in such instances.

Viper007Bond 11-19-2006 09:57 AM

Yeah, many times I have Googled for something only to be presented with the archive view of a thread from some forum which can be quite confusing for the novice user.

MillerLight 11-19-2006 03:57 PM

Thanks Viper!

Installed

projectego 11-19-2006 07:44 PM

Nice idea, cheers! ;)

[high]* projectego clicks install[/high]

RaZor Edge 11-19-2006 07:52 PM

Great! This is a really great idea! Install!

993ti 11-19-2006 10:16 PM

Nice one :)
Works great :)
Another method to try it is to use site:www.yourdomain/archive in google which shows the archive pages indexed.
Click a few :)

Viper007Bond 11-20-2006 12:47 AM

Quote:

Originally Posted by 993ti (Post 1121127)
Another method to try it is to use site:www.yourdomain/archive in google which shows the archive pages indexed.

Yeah, I remembered that after I made my test script. I'll go change my post. :)

Robru 11-20-2006 07:53 PM

Thanks for this handy hack :)

Hornstar 11-21-2006 04:15 AM

nice work, many times i have been confused when i was a novice at vbulletin coming from search engines to see the archive.

nice work.

AdmiralSpock 11-23-2006 02:25 PM

Thank you so much! This is exactly what I have been looking for!

*installed

nokiacep 11-26-2006 07:11 PM

good job! thanks

Nick0r 11-30-2006 04:21 PM

Cloaking is NOT a good idea and can get you banned from google.

Viper007Bond 12-01-2006 03:35 AM

Quote:

Originally Posted by Nick0r (Post 1128800)
Cloaking is NOT a good idea and can get you banned from google.

What's that have to do with my plugin? My plugin has nothing to do with Google's or anyone else's crawl bots.

Nick0r 12-01-2006 07:05 AM

Showing one thing to google and another thing to a user is called cloaking.

Viper007Bond 12-01-2006 09:16 AM

Quote:

Originally Posted by Nick0r (Post 1129249)
Showing one thing to google and another thing to a user is called cloaking.

I know what it is, I looked it up on Wikipedia. :)

This doesn't show different things to Google vs. users. Users can view the archive all they want and this doesn't affect bots. This simply makes sure people who found your forum via a search engine always come in to the real thread which is easier to read. Why would Google care about that? It's the exact same content and there's no malicious intent (or even advantage) here.

Veer 01-14-2007 08:38 PM

Thanks, any idea about how can i disable archive?

Viper007Bond 01-15-2007 12:46 AM

Quote:

Originally Posted by Pehchaan (Post 1159292)
Thanks, any idea about how can i disable archive?

http://www.vbulletin.com/docs/html/m..._group_archive

ZzZ_ZzZ 02-10-2007 08:26 PM

thanks :)

noonespecial 02-10-2007 10:00 PM

Is there anyway to modify this to work with printthread.php results too?

alexanderpas 02-19-2007 01:32 AM

Quote:

Originally Posted by noonespecial (Post 1179470)
Is there anyway to modify this to work with printthread.php results too?

just forbid your bots to even move in there ;)

rjmjr69 02-25-2007 09:45 AM

installed does not work for me 3.6.4 . Type in url and still displays my regular archive

rjmjr69 02-26-2007 06:39 AM

Hello any support on this?

jmw 09-03-2007 06:58 PM

This can get you banned from Google. It appears to be cloaking per original hack explanation.

my_aly 09-16-2007 02:53 PM

ty man

Viper007Bond 10-18-2007 08:48 AM

Quote:

Originally Posted by rjmjr69 (Post 1190266)
installed does not work for me 3.6.4 . Type in url and still displays my regular archive

As intended. This doesn't block users from using your archive.

To get it to "trigger", go to Google and type this into the search box:

Quote:

site:http://yoursite.com/forum/archive/
Then click one of the links. You should be taken to the real thread.

Viper007Bond 10-18-2007 08:51 AM

Quote:

Originally Posted by jmw (Post 1331624)
This can get you banned from Google. It appears to be cloaking per original hack explanation.

Honestly, I'm not sure which side of the line it falls on as it only applies to users incoming from a search engine.

It's not as if it's detecting the bot's user agent and then displaying different content to the search bot in an attempt to change page rank or whatever.

It's simply redirecting to the real thread when the archive is found via a search engine. If you directly browse to the archive, it won't do any redirecting.

So personally, I don't think Google would have a problem with this. Then again, I can't speak for Google.

yathyo 11-18-2007 06:59 PM

Thanks Viper, nice plugin! ;) If you want to avoid duplicated contents at Search Engines replace PHP Code with the following one:

PHP Code:


    
if ( $threadinfo['threadid'] ){
        
header ('HTTP/1.1 301 Moved Permanently');
        
header('Location:'$vbulletin->options['bburl'] . '/showthread.php?t=' $threadinfo['threadid']);
        exit();
    } 


HALF MOON 12-22-2007 02:21 PM

Installed

Gharibe 01-18-2008 09:15 AM

Nice and great ,
does it decrease our serps?

apiasto 01-18-2008 11:37 AM

superb work very handy thnx you got my vote

inciarco 01-18-2008 03:57 PM

Excellent Mod!! :up::up::up:

Works OK in vB 3.6.7 PL1!! :up:

My Best Regards!! ;)

:)

Phornixx 06-15-2008 10:33 PM

Great Mod, I had it in my pendent installs folder and finally installed, thanks!


All times are GMT. The time now is 06:02 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.01184 seconds
  • Memory Usage 1,789KB
  • 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
  • (1)bbcode_code_printable
  • (1)bbcode_php_printable
  • (9)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (35)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete