Jump to content
TNG Community

Getting images listed with Yahoo and Google


Scott Graham

Recommended Posts

Scott Graham

I am trying to figure out how to get media (images) to show up with google images and with yahoo images.

It seems yahoo wants media rss.

I know that TNG rss does not fulfill this.

Any ideas on what to do in order to get google or yahoo to index the photos I have with TNG?

Thanks,

Scott Graham

http://clanhistory.info

Link to comment
Share on other sites

  • 3 months later...
LR Majercin

I am trying to figure out how to get media (images) to show up with google images and with yahoo images.

It seems yahoo wants media rss.

I know that TNG rss does not fulfill this.

Any ideas on what to do in order to get google or yahoo to index the photos I have with TNG?

http://clanhistory.info

I have the same question, so I'm giving this message a 'bump' to see if there are any TNG'ers with an answer.

The only images that are currently indexed are from static HTML pages still on my site. No images from the 'photos' or 'documents' folders get indexed.

Any input is greatly appreciated.

Larry

Link to comment
Share on other sites

LR Majercin

I think I found an answer to getting Google to index our photos.

You will need to have a Google Analytics account. If you already do, then you need to check a box on your Analytics account page, that allows Google to use their "enhanced image search' feature.

Read more about it here: What does it mean to opt-in to enhanced image search?

I just activated my account, and will report back as soon as I see some results.

Larry

Link to comment
Share on other sites

  • 2 weeks later...
LR Majercin

I just activated my account, and will report back as soon as I see some results.

Well, a little more than two weeks passed since I activated the "enhanced image search feature" on my Google Analytics account.

Today, I saw a bump in the number of photos indexed from (3) to (9) photos!!! Whoo Hoo!

The funny thing is that the only page that got added was the ONE static html page that I have on the site. All my older HTML pages are now redirects to PHP pages, usint the historytemplate.php form.

So it seems that Google still has issues indexing photos from dynamic pages.

Back to the drawing board.

Larry

Link to comment
Share on other sites

Scott Graham

What do you think the impact would be of saving the page as a static html file on the desktop and then doing a quick edit for links and then loading that page somewhere else on the site?

It is a pain :( to do. But I can't think of any other way to get Google to index the image.

And then there is Yahoo...

Maybe the next iteration of TNG will have this issue fixed. :-D

Scott

Link to comment
Share on other sites

I might be able to do this using php to generate a static page automatically (save a bunch of edit time).

I can't work on it until this evening, but I can see what I come up with...

Rush

Link to comment
Share on other sites

Below is a little script (I can't credit for writing it, but I figure there's no need to re-invent the wheel :wink: )


<?php
function wwwcopy($link,$file)
{
   $fp = @fopen($link,"r");
   while(!feof($fp))
   {
       $cont.= fread($fp,1024);
   }
   fclose($fp);
   $fp2 = @fopen($file,"w");
   fwrite($fp2,$cont);
   fclose($fp2);
}

//Example:
wwwcopy("http://yourwebsite.com/tng/browsemedia.php?mediatypeID=headstones", "headstones_page_1.html");
//and you can add more functions for other pages you want to convert to html.
wwwcopy("http://yourwebsite.com/tng/browsemedia.php?mediasearch=&tnggallery=&mediatypeID=headstones&offset=50&tree=&page=2", "headstones_page_2.html");

?>
You can copy and paste this into a file and name it whatever you wish, something like gen_html.php or whatever. Upload the file to your TNG root directory. Here's the catch, the directory must be writable. So you can make it writable to run the script then change the permissions back if you want to. the function works like this

wwwcopy("http://yourwebsite.com/tng/the_tng_page_you_want_converted", "filename_of_the_converted_page.html");

Go to http://yourwebsite.com/tng/gen_html.php and run the script. It will pause for a second or two while it generates the files.

If you go to the page: http://yourwebsite.com/tng/filename_of_the...erted_page.html

in your browser, you should see the HTML page nicely rendered.

You should be able to add as many wwwcopy functions to the script for each page that you would like to convert to HTML.

You would need to link to it somewhere so Google could find it.

If one wanted to take it a step further, using a normal naming schema, a link could be auto generated through TNG, so search engines could find all the converted pages.

This could have several applications, but I hope it helps...

Rush

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...