Turn Google Image Results into Page Views (also helps w/ hotlinking)
This modification is in the archives.
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. 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 --> 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 --> 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 ,and if you're feeling spunky, why not http://www.vbulletin.org/forum/vborg_miscactions.php?do=nominate&threadid=155432&type=1 ?!? Download No files for download. |