Jump to content

Recommended Posts

Posted

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!

Posted

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.

Posted
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.

 

Hey David, thanks for the reply

here is the export file.

 

Export file

Posted

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.

Posted
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.

 

 

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

Posted
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

 

 

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?

Posted

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.

Posted
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.

 

 

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.

Posted

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. :tchrocks:

Posted
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.  :tchrocks:

 

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.

Join the conversation

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

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
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...