Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: Google does not index the full-sized image  (Read 4078 times)

0 Members and 1 Guest are viewing this topic.

serg5777

  • Coppermine frequent poster
  • ***
  • Country: ru
  • Offline Offline
  • Gender: Male
  • Posts: 171
    • Широкоформатные обои для рабочего стола
Google does not index the full-sized image
« on: April 27, 2012, 04:17:26 pm »

More recently noticed that Google does not index the full-sized image. The fact that the transition to full-sized image via javascript, and Google does not pass through it. It is therefore necessary to prohibit the opening of a full-size images via javascript, but to a direct link to it, and Google to no problems on it went.
I replaced this code:
Code: [Select]
{$pic_html .= "<a href=\"javascript:;\" onclick=\"MM_openBrWindow('displayimage.php?pid=$pid&amp;fullsize=1','" . uniqid(rand()) . "','scrollbars=yes,toolbar=no,status=no,resizable=yes,width=$winsizeX,height=$winsizeY')\">";}
At this:
Code: [Select]
{$pic_html = "<a href=\"" . $picture_url . "\"  )>";}
But unfortunately this code to the intermediate image (normal), and need full-size. Αndré help solve this question. Thank you very much.

http://s019.radikal.ru/i628/1204/87/81ab0cffd2b5.jpg
Logged

serg5777

  • Coppermine frequent poster
  • ***
  • Country: ru
  • Offline Offline
  • Gender: Male
  • Posts: 171
    • Широкоформатные обои для рабочего стола
Re: Google does not index the full-sized image
« Reply #1 on: April 27, 2012, 04:32:30 pm »

Logged

serg5777

  • Coppermine frequent poster
  • ***
  • Country: ru
  • Offline Offline
  • Gender: Male
  • Posts: 171
    • Широкоформатные обои для рабочего стола
Re: Google does not index the full-sized image
« Reply #2 on: April 27, 2012, 05:11:25 pm »

It seems he has understood  ::)
Code: [Select]
{$pic_html = "<a href=\"" . get_pic_url($CURRENT_PIC_DATA, 'fullsize') . "\" >";}Is it true? :)
Logged

serg5777

  • Coppermine frequent poster
  • ***
  • Country: ru
  • Offline Offline
  • Gender: Male
  • Posts: 171
    • Широкоформатные обои для рабочего стола
Re: Google does not index the full-sized image
« Reply #3 on: April 28, 2012, 04:02:12 pm »

Still did not work for me. Is there any way to make the transition from the intermediate image came not through JavaScript, and the direct link:
{$pic_html .= "<a href=\"javascript:;\" onclick=\"MM_openBrWindow('displayimage.php?pid=$pid&amp;fullsize=1','" . uniqid(rand()) . "','scrollbars=yes,toolbar=no,status=no,resizable=yes,width=$winsizeX,height=$winsizeY')\">";}

http://url/displayimage.php?pid=1&fullsize=1

Maybe then Google will be able to click on this link and index the full-sized image :)
Logged

serg5777

  • Coppermine frequent poster
  • ***
  • Country: ru
  • Offline Offline
  • Gender: Male
  • Posts: 171
    • Широкоформатные обои для рабочего стола
Re: Google does not index the full-sized image
« Reply #4 on: April 28, 2012, 09:34:21 pm »

Completely solved the problem. Thank you for your concern ;)
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Google does not index the full-sized image
« Reply #5 on: April 29, 2012, 09:30:13 am »

Completely solved the problem.
Resolve your threads
If you have found an answer to your question, resolve your thread. Don't just post "I have found the answer", but tell others what you actually did to solve your issues. Posting a link to the page where you found the answer might help. Describing what you did might help as well.

I assume you used
Code: [Select]
$pic_html .= "<a href=\"displayimage.php?pid=$pid&amp;fullsize=1'\">";
Logged

serg5777

  • Coppermine frequent poster
  • ***
  • Country: ru
  • Offline Offline
  • Gender: Male
  • Posts: 171
    • Широкоформатные обои для рабочего стола
Re: Google does not index the full-sized image
« Reply #6 on: April 29, 2012, 09:44:39 am »

Under the image I used the melon code:
Code: [Select]
<a target=_blank href="http://megawallpapers.ru/displayimage.php?pid={pid}&amp;fullsize=1">Скачать обои</a>
and in add theme_html_picture:
Code: [Select]
'{pid}' => $CURRENT_PIC_DATA['pid']
And clicking on the intermediate image is displayed only full-sized image.
In theme_html_picture:
Code: [Select]
{$pic_html = "<a target=_blank href=\"http://megawallpapers.ru/" . get_pic_url($CURRENT_PIC_DATA, 'fullsize') . "\">";}
Now I will wait for the Google-bot. I have to index the full-size images accurately. Thank you ;)
Logged
Pages: [1]   Go Up
 

Page created in 0.026 seconds with 20 queries.