How can I do this?

Discussion in 'Site & Server Administration' started by sufi, May 20, 2007.

  1. #1
    Hi everyone,

    I hope this is the right place to ask the following question..

    One of my site is getting lots of traffic from Google Images but most of people just hit the "See full-size image".

    Is there anyway to take them to picture page instead of just the picture link?

    Any help is appreciated. Thanks
     
    sufi, May 20, 2007 IP
  2. carolynheath

    carolynheath Peon

    Messages:
    680
    Likes Received:
    63
    Best Answers:
    0
    Trophy Points:
    0
    #2
    I think there is some JS you can use, I will try and find it :)
     
    carolynheath, May 20, 2007 IP
  3. sufi

    sufi Well-Known Member

    Messages:
    2,095
    Likes Received:
    108
    Best Answers:
    0
    Trophy Points:
    105
    #3
    Thanks Carolyn, but I don't think it can be done via simple JS, because the "See full size image" directly leads to the image URL.

    However, it might be possible by .htaccess file but I don't know anything about it.
     
    sufi, May 20, 2007 IP
  4. carolynheath

    carolynheath Peon

    Messages:
    680
    Likes Received:
    63
    Best Answers:
    0
    Trophy Points:
    0
    #4
    carolynheath, May 20, 2007 IP
  5. sufi

    sufi Well-Known Member

    Messages:
    2,095
    Likes Received:
    108
    Best Answers:
    0
    Trophy Points:
    105
    #5
    Thanks Carolyn, I have tried with the code provided on that website but this damn thing isn't still working. Do we need to alter the code?
     
    sufi, May 21, 2007 IP
  6. carolynheath

    carolynheath Peon

    Messages:
    680
    Likes Received:
    63
    Best Answers:
    0
    Trophy Points:
    0
    #6
    all that does is calls up redirect.cgi if the refferer is G.I.
    so you would have to write your own CGI, but a simpler example it to just REMOVE the frame before they have the chance to click it :D
    I'll pm the code :)
     
    carolynheath, May 21, 2007 IP
    sufi likes this.
  7. sufi

    sufi Well-Known Member

    Messages:
    2,095
    Likes Received:
    108
    Best Answers:
    0
    Trophy Points:
    105
    #7
    Thanks Carolyn, You rock.. I've implemented that JS code and it removes the frame as soon as someone click the image from google results.
     
    sufi, May 21, 2007 IP
  8. carolynheath

    carolynheath Peon

    Messages:
    680
    Likes Received:
    63
    Best Answers:
    0
    Trophy Points:
    0
    #8
    sweet, can I see the site or an image search I can use to see a demo? I want to see!
     
    carolynheath, May 21, 2007 IP
  9. sufi

    sufi Well-Known Member

    Messages:
    2,095
    Likes Received:
    108
    Best Answers:
    0
    Trophy Points:
    105
    #9
    Sure, Just check your PM.. I've sent you the URL. It's working great with the javascript code you provided.
     
    sufi, May 21, 2007 IP