Scott Graham Posted January 8, 2007 Report Share Posted January 8, 2007 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 Grahamhttp://clanhistory.info Quote Link to comment Share on other sites More sharing options...
LR Majercin Posted April 18, 2007 Report Share Posted April 18, 2007 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 Quote Link to comment Share on other sites More sharing options...
LR Majercin Posted April 18, 2007 Report Share Posted April 18, 2007 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 Quote Link to comment Share on other sites More sharing options...
LR Majercin Posted May 2, 2007 Report Share Posted May 2, 2007 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 Quote Link to comment Share on other sites More sharing options...
Scott Graham Posted May 3, 2007 Author Report Share Posted May 3, 2007 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. Scott Quote Link to comment Share on other sites More sharing options...
Rush Posted May 3, 2007 Report Share Posted May 3, 2007 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 Quote Link to comment Share on other sites More sharing options...
Rush Posted May 4, 2007 Report Share Posted May 4, 2007 Below is a little script (I can't credit for writing it, but I figure there's no need to re-invent the wheel )<?phpfunction 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 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.