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
  #12  
Old 08-17-2007, 10:12 AM
Robert7 Robert7 is offline
 
Join Date: Nov 2006
Posts: 22
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Good work! Thx.
Reply With Quote
  #13  
Old 08-17-2007, 02:57 PM
skrazydogz skrazydogz is offline
 
Join Date: Apr 2007
Posts: 74
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

works fine thx !
Reply With Quote
  #14  
Old 08-17-2007, 05:44 PM
htscpl's Avatar
htscpl htscpl is offline
 
Join Date: Sep 2003
Location: Houston
Posts: 151
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nice, anything that protects my images is OK in my book, Thanks!
Reply With Quote
  #15  
Old 08-17-2007, 06:05 PM
monstergamer's Avatar
monstergamer monstergamer is offline
 
Join Date: Feb 2003
Location: around the corner
Posts: 433
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

great mod

clicks installed
Reply With Quote
  #16  
Old 08-17-2007, 06:05 PM
Coldhands's Avatar
Coldhands Coldhands is offline
 
Join Date: Oct 2005
Posts: 87
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Carlos2 View Post
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.
I don't see any reason this should hurt your ranking in google's web results.

SEOing for google images is perhaps the easiest thing of all, since few people do it. Their image search has almost nothing to do with their web results. As long as you have descriptive file names, title/alt tags, and complementary content to go with a picture, there's no reason not to rank pretty well in google images. Then you're only one click away from a new unique visitor.

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?
Well, if you click on the direct linked image, before the bottom frame has a chance to load the script in the header, you'll go to the deep linked image, but if you wait for one extra second, you should be redirected to the page that the image was found on.

On second thought, you may actually want to add the script above '<!-- CSS Stylesheet -->', so the lower frame doesn't load your CSS file before it redirects.

Quote:
Originally Posted by hornstar1337 View Post
So there is no problem in using this right? google wont derank you will they? otherwise this is great!

Thanks.
See above.
Reply With Quote
  #17  
Old 08-17-2007, 09:55 PM
alqloob alsahya alqloob alsahya is offline
 
Join Date: Dec 2006
Posts: 78
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thanks thes good jop nice
Reply With Quote
  #18  
Old 08-20-2007, 07:27 PM
Doug Nelson Doug Nelson is offline
 
Join Date: Nov 2001
Posts: 148
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is an excellent template mod, except it messes up pages in admincp that call on regular site pages, such as when manually sending an activation email.
Reply With Quote
  #19  
Old 08-22-2007, 03:49 PM
Coldhands's Avatar
Coldhands Coldhands is offline
 
Join Date: Oct 2005
Posts: 87
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Doug Nelson View Post
This is an excellent template mod, except it messes up pages in admincp that call on regular site pages, such as when manually sending an activation email.
hmmmmm. . . I've never used that feature in vb, but I'm sure it just a matter of adding an extra argument in the if statement. I'll see if I can add a workaround some time soon.
Reply With Quote
  #20  
Old 08-22-2007, 07:28 PM
rapidphim rapidphim is offline
 
Join Date: Feb 2007
Posts: 733
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

nice tweak on this!
Reply With Quote
  #21  
Old 08-24-2007, 03:38 PM
Coldhands's Avatar
Coldhands Coldhands is offline
 
Join Date: Oct 2005
Posts: 87
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Doug Nelson View Post
This is an excellent template mod, except it messes up pages in admincp that call on regular site pages, such as when manually sending an activation email.
You can actually wrap the code in a conditional statement to bypass it for admins and mods.

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.
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:09 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.07837 seconds
  • Memory Usage 2,316KB
  • 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
  • (3)bbcode_code
  • (5)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
  • (3)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
  • (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