Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Template Modifications
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Turn Google Image Results into Page Views (also helps w/ hotlinking) Details »»
Turn Google Image Results into Page Views (also helps w/ hotlinking)
Version: 1.02, by Coldhands Coldhands is offline
Developer Last Online: Jun 2020 Show Printable Version Email this Page

Category: Board Optimization - Version: 3.6.x Rating:
Released: 08-15-2007 Last Update: Never Installs: 65
 
No support by the author.

What it does: If a site tries to show your content in frames, this makes sure that your forum is the only frame. Forums get a lot of hits from Google Images. This makes sure they go to your page, and not a deep linked image. Also useful when dishonest people try to display your content in one frame, and their AdSense in another.

Compatibility: Works in all versions of vBulletin. Just add script in the headerinclude template.

Time to install: about 13-18 seconds. :up:

Install instructions: Go to Styles & Templates >> Style Manager >> in your default style choose "Common Templates" from the drop down menu.

In the 'headinclude' template find "<!-- CSS Stylesheet -->" and add the following code above that.

Code:
<!-- Check for Frames -->
<script language="JavaScript" type="text/javascript">
if (top.location != self.location) top.location = self.location;
</script>
<!-- / Check for Frames -->
Click Save.

You're done. If you have a blog or CMS in conjunction with your forum, you should add this code to those headers as well.

Usually, when a person uses Google Images, they click the image thumbnail, and once the next page loads, they click on the direct link to the image. With this little hack, you now have the chance to turn someone who was more than likely just going to hotlink your images, into a possible member.

Another thing this is good for is making sure that someone isn't linking to your content in one frame and displaying ads in another. I whipped this little script up after I found another site doing that very thing to my site.

**If you have problems viewing your forum in the admin CP, use this code as a workaround. **

Code:
<!-- Check for Frames and Admins -->
<if condition="!is_member_of($bbuserinfo, X, Y, Z)">
<script language="JavaScript" type="text/javascript">
if (top.location != self.location) top.location = self.location;
</script>
</if>
<!-- / Check for Frames and Admins -->
Where X, Y and Z are the user group IDs of your Admins, Mods and so fourth.

It uses a conditional to check if the person viewing in frames is logged in as an admin, mod, or even your members.

Version Changes:
1.01 - Changed location of code to above the style sheet to reduce the time it takes to close top frame (basically it doesn't have to download the CSS, before it gets to the code that checks for the top level frame).

If you decide to use this Mod, Please mark as Installed ,and if you're feeling spunky, why not MOTM while you're at it ?!?

Show Your Support

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

Comments
  #2  
Old 08-16-2007, 07:42 PM
Coldhands's Avatar
Coldhands Coldhands is offline
 
Join Date: Oct 2005
Posts: 87
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Here's a demo of how it works.

Just click on this link, and then click on a thumbnail in the results.

You'll see how it forwards directly to the thread/page, before it loads it in Google's frame.
Reply With Quote
  #3  
Old 08-16-2007, 08:05 PM
4x4 Mecca 4x4 Mecca is offline
 
Join Date: Feb 2007
Posts: 396
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I clicked this image
http://www.actuarialoutpost.com/actu...atar285_27.gif
and it showed me the image alone, not the forum page. Is that how it is supposed to work?
Reply With Quote
  #4  
Old 08-16-2007, 08:07 PM
music legend music legend is offline
 
Join Date: Mar 2006
Posts: 81
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

nice mod
Reply With Quote
  #5  
Old 08-16-2007, 08:11 PM
thedvs thedvs is offline
 
Join Date: May 2002
Posts: 353
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

works great many thanks!
Reply With Quote
  #6  
Old 08-16-2007, 08:11 PM
concepts's Avatar
concepts concepts is offline
 
Join Date: May 2005
Location: Woodland Hills, Ca
Posts: 332
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by 4x4 Mecca View Post
I clicked this image
http://www.actuarialoutpost.com/actu...atar285_27.gif
and it showed me the image alone, not the forum page. Is that how it is supposed to work?
worked when I clicked on it????
great mod!
Reply With Quote
  #7  
Old 08-16-2007, 09:22 PM
Carlos2 Carlos2 is offline
 
Join Date: Sep 2002
Posts: 187
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Great Mod, i will try it!!
Reply With Quote
  #8  
Old 08-16-2007, 09:55 PM
993ti 993ti is offline
 
Join Date: Dec 2005
Location: Netherlands
Posts: 108
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Very nice.
I noticed sites using something like this.
Comes in handy
Thanks.
Reply With Quote
  #9  
Old 08-17-2007, 12:10 AM
Carlos2 Carlos2 is offline
 
Join Date: Sep 2002
Posts: 187
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

And google doesnt mean that this is ilegal or something like this for they?

I asked this because if is ilegal for they, you will go down in the google search position.
Reply With Quote
  #10  
Old 08-17-2007, 05:36 AM
Hornstar Hornstar is offline
 
Join Date: Jun 2005
Location: Australia
Posts: 2,469
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

So there is no problem in using this right? google wont derank you will they? otherwise this is great!

Thanks.
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 08:48 PM.


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.04652 seconds
  • Memory Usage 2,299KB
  • Queries Executed 23 (?)
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_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
  • (2)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (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
  • 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