PDA

View Full Version : Board Optimization - Turn Google Image Results into Page Views (also helps w/ hotlinking)


Coldhands
08-15-2007, 10:00 PM
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.


<!-- 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. :mad:

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

<!-- 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 (https://vborg.vbsupport.ru/vborg_miscactions.php?do=installhack&threadid=155432) ,and if you're feeling spunky, why not MOTM while you're at it (https://vborg.vbsupport.ru/vborg_miscactions.php?do=nominate&threadid=155432&type=1) :o ?!?

Coldhands
08-16-2007, 07:42 PM
Here's a demo of how it works.

Just click on this link (http://images.google.com/images?gbv=2&svnum=50&hl=en&safe=off&q=funny+site%3Aactuarialoutpost.com&btnG=Search+Images), 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.

4x4 Mecca
08-16-2007, 08:05 PM
I clicked this image
http://www.actuarialoutpost.com/actuarial_discussion_forum/customavatars/avatar285_27.gif
and it showed me the image alone, not the forum page. Is that how it is supposed to work?

music legend
08-16-2007, 08:07 PM
nice mod

concepts
08-16-2007, 08:11 PM
I clicked this image
http://www.actuarialoutpost.com/actuarial_discussion_forum/customavatars/avatar285_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!

thedvs
08-16-2007, 08:11 PM
works great many thanks!

Carlos2
08-16-2007, 09:22 PM
Great Mod, i will try it!!

993ti
08-16-2007, 09:55 PM
Very nice.
I noticed sites using something like this.
Comes in handy ;)
Thanks.

Carlos2
08-17-2007, 12:10 AM
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.

Hornstar
08-17-2007, 05:36 AM
So there is no problem in using this right? google wont derank you will they? otherwise this is great!

Thanks.

Robert7
08-17-2007, 10:12 AM
Good work! Thx.

skrazydogz
08-17-2007, 02:57 PM
works fine thx !

htscpl
08-17-2007, 05:44 PM
Nice, anything that protects my images is OK in my book, Thanks!

monstergamer
08-17-2007, 06:05 PM
great mod

clicks installed

Coldhands
08-17-2007, 06:05 PM
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.

I clicked this image
http://www.actuarialoutpost.com/actuarial_discussion_forum/customavatars/avatar285_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.

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

Thanks.
See above.

alqloob alsahya
08-17-2007, 09:55 PM
thanks thes good jop nice :)

Doug Nelson
08-20-2007, 07:27 PM
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.

Coldhands
08-22-2007, 03:49 PM
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.

rapidphim
08-22-2007, 07:28 PM
nice tweak on this!

Coldhands
08-24-2007, 03:38 PM
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.


<!-- 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.

PugWD
09-14-2007, 09:15 PM
It's easily circumvented by using NoScript-enabled browsers though, obviously...

* PugWD steals all Coldhands' images ;)

:D

ETDC
09-15-2007, 06:26 PM
Actuarial Outpost huh? I designed their logo! :D

Are the tweaks mentioned above now incorporated in the download?

Doug Nelson
11-02-2007, 07:15 AM
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.

Doug Nelson
11-02-2007, 07:25 AM
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.

Doug Nelson
11-02-2007, 07:27 AM
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.

mano1.com
11-15-2007, 11:40 PM
installed! thank you

Coldhands
11-29-2007, 04:38 PM
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]

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.

peterpigman
12-02-2007, 10:20 PM
Very few of our images are listed on google, would this help?

Phr34q
05-01-2008, 12:06 AM
Brilliant :)

* Phr34q clicks installed

dadoc
06-15-2008, 05:59 AM
Great mod

thanks

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

Well done:D

sunnylikbeckham
06-20-2008, 10:23 AM
great
i will try to

MrD
05-06-2010, 12:31 PM
Hi,
any Port to VB4?