Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Template Modifications

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
  #22  
Old 09-14-2007, 09:15 PM
PugWD PugWD is offline
 
Join Date: Jun 2007
Posts: 17
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It's easily circumvented by using NoScript-enabled browsers though, obviously...

[high]* PugWD steals all Coldhands' images
[/high]

Reply With Quote
  #23  
Old 09-15-2007, 06:26 PM
ETDC ETDC is offline
 
Join Date: Aug 2007
Location: United Kingdom
Posts: 354
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Actuarial Outpost huh? I designed their logo!

Are the tweaks mentioned above now incorporated in the download?
Reply With Quote
  #24  
Old 11-02-2007, 07:15 AM
Doug Nelson Doug Nelson is offline
 
Join Date: Nov 2001
Posts: 148
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I added the new improved version, and it no longer has the problem reported. But now I need a framed site to test it (google has none of my images, the way I want it).

Thanks for the new version.
Reply With Quote
  #25  
Old 11-02-2007, 07:25 AM
Doug Nelson Doug Nelson is offline
 
Join Date: Nov 2001
Posts: 148
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Interestingly (to me), this doesn't work with yahoo image search (the only frame I could find any of my images in). My adsense also doesn't show in their frames, and neither do my dropdown menus, so I suspect they block all javascripts.
Reply With Quote
  #26  
Old 11-02-2007, 07:27 AM
Doug Nelson Doug Nelson is offline
 
Join Date: Nov 2001
Posts: 148
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok, this doesn't work at all with MSN, and I can also see my adsense ads and dropdown menus.

UPDATE: this works great on MSN, I forgot to log out, so it also proves the admin hack works. Sorry for doubting you.
Reply With Quote
  #27  
Old 11-15-2007, 11:40 PM
mano1.com mano1.com is offline
 
Join Date: May 2002
Posts: 54
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

installed! thank you
Reply With Quote
  #28  
Old 11-29-2007, 04: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
Ok, this doesn't work at all with MSN, and I can also see my adsense ads and dropdown menus.

UPDATE: this works great on MSN, I forgot to log out, so it also proves the admin hack works. Sorry for doubting you.
[wise china man voice]No need to appologize grasshoppa, you now follow the path of the tiger, for which you shall grow strong.[/wise china man voice]

Quote:
Actuarial Outpost huh? I designed their logo!

Are the tweaks mentioned above now incorporated in the download?
Really, thanks! You must have worked with Glenn. I'm the new admin, Tom. Keep up the good work.
Reply With Quote
  #29  
Old 12-02-2007, 10:20 PM
peterpigman peterpigman is offline
 
Join Date: May 2006
Posts: 200
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Very few of our images are listed on google, would this help?
Reply With Quote
  #30  
Old 05-01-2008, 12:06 AM
Phr34q Phr34q is offline
 
Join Date: Feb 2008
Posts: 29
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Brilliant

[high]* Phr34q clicks installed[/high]
Reply With Quote
  #31  
Old 06-15-2008, 05:59 AM
dadoc's Avatar
dadoc dadoc is offline
 
Join Date: Apr 2008
Location: Australia
Posts: 193
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Great mod

thanks

Simple but effective, the best type of mod you can have

Well done
Reply With Quote
Reply

Thread Tools

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 04:43 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.11500 seconds
  • Memory Usage 2,303KB
  • 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
  • (2)bbcode_code
  • (2)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