evhwanabe Posted September 13, 2005 Posted September 13, 2005 Importing Entry Appears to be successfull But when I go look at my entries they are not there!!! I have checked the database and they aren't in the database either. I followed the MT docs and made sure I have the correct format. I have tried importing on my main site (which is mt 3.2) and I have also tried importing on another one of my sites which is mt 3.1.x and have had no luck with either one. Which leads me to believe that something is wrong with my file that I am trying to import. I created a custom web export template for Picasa 2. So it exports photos and createsa text file with an entry for each photo. This will be how my new photo gallery is set up. Here is my export format for picasa. >AUTHOR: My Name TITLE: <%itemName%> STATUS: Publish ALLOW COMMENTS: 1 CONVERT BREAKS: 0 ALLOW PINGS: 1 PRIMARY CATEGORY: <%albumName%> CATEGORY: DATE: 09/12/2005 03:54:31 PM ----- BODY: <img alt="<%itemName%>" title="<%itemName%>" src="i/<%albumName%>/<%itemLargeImage%>" width="480" height="360" /> ----- EXTENDED BODY: <img alt="<%itemName%>" title="<%itemName%>" src="i/<%albumName%>/<%itemthumbImage%>" width="90" height="68" /> ----- EXCERPT: <%itemCaption%> ----- KEYWORDS: ----- -------- Thanks! Quote
TweezerMan Posted September 13, 2005 Posted September 13, 2005 I don't see anything obviously wrong with your template, but ultimately it's the actual export file that Picasa produces that's important, and that's really what should be looked at. The only suggestion I have on your template is that the very last line may need a line feed after it (there doesn't appear to be one in the code you posted). If you can make a copy of your export file available on your web site and post the URL to it, then we can look at the same thing MT is looking at and try to spot whatever MT is objecting to. Quote
evhwanabe Posted September 13, 2005 Author Posted September 13, 2005 I don't see anything obviously wrong with your template, but ultimately it's the actual export file that Picasa produces that's important, and that's really what should be looked at. The only suggestion I have on your template is that the very last line may need a line feed after it (there doesn't appear to be one in the code you posted). If you can make a copy of your export file available on your web site and post the URL to it, then we can look at the same thing MT is looking at and try to spot whatever MT is objecting to. <{POST_SNAPBACK}> Hey David, thanks for the reply here is the export file. Export file Quote
TweezerMan Posted September 13, 2005 Posted September 13, 2005 The file you linked to is the same as what you posted above - it's the Picasa template, not the actual export file that you would import into MT. Quote
evhwanabe Posted September 13, 2005 Author Posted September 13, 2005 The file you linked to is the same as what you posted above - it's the Picasa template, not the actual export file that you would import into MT. <{POST_SNAPBACK}> ah im sorry, here ya go Quote
evhwanabe Posted September 13, 2005 Author Posted September 13, 2005 I re wrote the template from scratch and the new output is what you are looking at.... I tried to import and now it seems to almost work lol it doesnt like the date format... but it did add a new category. I will try and mess with the date format now. Quote
TweezerMan Posted September 13, 2005 Posted September 13, 2005 I believe MT is not importing your entries because there is no value for 'DATE:' in the export file. Your template does also appear to need a line feed after the last line. Quote
evhwanabe Posted September 13, 2005 Author Posted September 13, 2005 I believe MT is not importing your entries because there is no value for 'DATE:' in the export file. Your template does also appear to need a line feed after the last line. <{POST_SNAPBACK}> I input a bogus date and now the import works......... I don't believe picasa can output a date that is in the format of MT's oh well not a big deal I guess......as long as the rest works. Thanks Quote
evhwanabe Posted September 14, 2005 Author Posted September 14, 2005 I input a bogus date and now the import works......... I don't believe picasa can output a date that is in the format of MT's oh well not a big deal I guess......as long as the rest works. Thanks <{POST_SNAPBACK}> I spoke to soon! Now its not working at all. here is my picasa export template again. export and here is my latest exported file (what would get imported to MT) entries See anything wrong? Quote
TweezerMan Posted September 14, 2005 Posted September 14, 2005 The file appears to be double-spaced (there's an extra blank line inserted after each proper line in the file), and the file has Windows-style line breaks in it instead of Linux-style line breaks. Quote
evhwanabe Posted September 15, 2005 Author Posted September 15, 2005 The file appears to be double-spaced (there's an extra blank line inserted after each proper line in the file), and the file has Windows-style line breaks in it instead of Linux-style line breaks. <{POST_SNAPBACK}> David, What editor are you using that you can see all this??? when I open the file it looks fine as far as the spacing is concerned, but the line breaks I cannot see. For some reason when I open the file in my browser I can see that it is double spaced, but when I open it in my text editor it appears single spaced. Quote
TweezerMan Posted September 15, 2005 Posted September 15, 2005 I'm using the PSPad text editor. It indicates in the status bar at the bottom of the window that the file has Windows (DOS) style line breaks in it. I also looked at the file in a hex editor. This file has both Mac-style (described as \r or CR) and Windows-style (described as \r\n or CR/LF) line breaks intermingled in the file - the non-extra lines have Mac-style line breaks, and the extra blank lines that have been added to the export file have Windows-style line breaks. Ideally, this file should have Linux-style line breaks in it only (described as \n or LF). Your browser is displaying the file single-spaced because it is only seeing and displaying one style of line break (probably the Windows-style line breaks) and ignoring the other one (the Mac-style line breaks). Your previous file did have only Linux-style line breaks in it. I'm at a loss to explain why the line breaks in your file have changed so dramatically. Quote
evhwanabe Posted September 15, 2005 Author Posted September 15, 2005 I'm using the PSPad text editor. It indicates in the status bar at the bottom of the window that the file has Windows (DOS) style line breaks in it. I also looked at the file in a hex editor. This file has both Mac-style (described as \r or CR) and Windows-style (described as \r\n or CR/LF) line breaks intermingled in the file - the non-extra lines have Mac-style line breaks, and the extra blank lines that have been added to the export file have Windows-style line breaks. Ideally, this file should have Linux-style line breaks in it only (described as \n or LF). Your browser is displaying the file single-spaced because it is only seeing and displaying one style of line break (probably the Windows-style line breaks) and ignoring the other one (the Mac-style line breaks). Your previous file did have only Linux-style line breaks in it. I'm at a loss to explain why the line breaks in your file have changed so dramatically. <{POST_SNAPBACK}> Well it stopped working so I redid the file......and obviously messed something up lol. I will take a look at that text editor. I was using textpad and had line breaks set to UNIX style breaks. I am not sure why the file has a mix of MAC and WIN style breaks. Thanks for all your help.......hopefully I can get this working. Quote
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.