vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=192)
-   -   Board Optimization - Turn Google Image Results into Page Views (also helps w/ hotlinking) (https://vborg.vbsupport.ru/showthread.php?t=155432)

Coldhands 08-15-2007 10:00 PM

Turn Google Image Results into Page Views (also helps w/ hotlinking)
 
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. :mad:

**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 :o ?!?

Coldhands 08-16-2007 07:42 PM

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.

4x4 Mecca 08-16-2007 08:05 PM

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?

music legend 08-16-2007 08:07 PM

nice mod

concepts 08-16-2007 08:11 PM

Quote:

Originally Posted by 4x4 Mecca (Post 1319168)
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!

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

Quote:

Originally Posted by Carlos2 (Post 1319305)
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 (Post 1319168)
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 (Post 1319431)
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

Quote:

Originally Posted by Doug Nelson (Post 1321828)
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

Quote:

Originally Posted by Doug Nelson (Post 1321828)
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.

PugWD 09-14-2007 09:15 PM

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

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

: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

Quote:

Originally Posted by Doug Nelson (Post 1374057)
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.

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 :)

[high]* Phr34q clicks installed[/high]

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?


All times are GMT. The time now is 05:12 AM.

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.03937 seconds
  • Memory Usage 1,799KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_code_printable
  • (8)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (32)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete