|
|
|
Forum Member
Group: Forum Members
Last Login: Today @ 6:08:15 AM
Posts: 35,
Visits: 169
|
|
| Thank you for the pointer to the article. I did look at the article. No success. Jerry
|
|
|
|
|
Forum Deity
Group: Moderators
Last Login: Yesterday @ 11:47:09 PM
Posts: 1,537,
Visits: 7,205
|
|
Whew!
That was a bugger...
OK, after a) installing Wordpress onto my site, getting it configured, b) migrating my old blog from Movable Type to the new Wordpress so I had some content (and screwing up the site when I forgot about the heavy customizations to my .htaccess file to work around some MT issues I was having ) and c) several hours of poring over the code and database tables, I think I've FINALLY got it figured out. It can be done, but it has to be plain text.
try this: http://www.mywebsite.com/wordpressfolder/wp-admin/post-new.php?post_type=post&content=$ITEM_DESCRIPTION_PLAIN$&post_title=$ITEM_TITLE$
(you can also add &excerpt=$ITEM_SUMMARY_PLAIN$)
Nick, one thing I did run into was that if I was posting a longish article (http://www.engadget.com/2010/02/05/google-waxes-poetic-on-nexus-ones-design-in-video-series-new-d/ is the one I was testing with)) and I included both the excerpt and the summary, the URL was truncated. I had Description, then Summary, then title in the URL - and the title didn't post because it was cut off before then. Is that a FeedDemon issue (or an IE issue)? I checked and Firefox (which I was using while testing everything) can handle URLs of up to 65,536 characters - and this was nowhere near that.
(Full Disclosure: I was planning on migrating to WordPress soon anyway, so this was going to happen sooner or later )
critter42
-----------------------------
Note: I am not employed by NewsGator Technologies in any capacity
|
|
|
|
|
Forum Member
Group: Forum Members
Last Login: 2/6/2010 2:04:20 PM
Posts: 3,
Visits: 8
|
|
Hey critter! I'm interested in this feature. Is there some page, somewhere on the wordpress page better explaining this functionality? (How did the feeddemon dev's find out wordpress can do this?)
The reason I ask, is because I'm trying to edit the URL so that it includes the title as a HYPERLINK in the body. For example...
http://www.neurointerests.com/wp-admin/post-new.php?post_type=post&content=%3Ca%20href%3D%22$ITEM_LINK$%22%3E$ITEM_TITLE$%3C%2F%3E%20-%20$ITEM_DESCRIPTION_PLAIN$&post_title=$ITEM_TITLE$
This is almost what I want, except it inserts Title -
into the WYSIWYG editor instead of into the HTML of the post.
Dan Patrick
MDPatrick.com
|
|
|
|
|
Forum Deity
Group: Moderators
Last Login: Yesterday @ 11:47:09 PM
Posts: 1,537,
Visits: 7,205
|
|
I don't know how the dev (Nick's the only actual FD dev ) learned - IIRC, it was a WordPress guru who uses FD that first posted the old method several years ago (and I THINK Nick made a blog post about it also).
For me, I just installed WordPress on my old site, started pawing through the code and looked at the field names in the WordPress database on my server. Armed with info gleaned there (and sucessfully getting post_title to show up), I started in on some very deep Google-fu, and eventually found a site that had a perl script with different WP variables on it. I then went through some trial-and-error using the variables listed in the code near the bottom of the page until I found a combination that worked. I won't link to the site because it's in Russian, and I am not convinced the script is not malicious (I believe it's just for search engine optimization, but I'm not taking any chances since I can't read Cyrillic )
(just saw your edit) - As I noted above, you have to pass it as plain text. I would have to do a lot more expermination (and probably have to hack the WP code itself) to get the html to pass; I would think it would be a large threat to allow html to be injected into a post in that manner...
critter42
-----------------------------
Note: I am not employed by NewsGator Technologies in any capacity
|
|
|
|
|
Forum Member
Group: Forum Members
Last Login: Today @ 6:08:15 AM
Posts: 35,
Visits: 169
|
|
| A very big THANK YOU! Really, that works and works well. I'll study your solution so I see what on earth I was doing wrong. Again, THANK YOU! Jerry
|
|
|
|
|
Forum Deity
Group: Moderators
Last Login: Yesterday @ 11:47:09 PM
Posts: 1,537,
Visits: 7,205
|
|
It wasn't that you were doing anything wrong, it's that WordPress has undergone significant changes since the Knowledgebase article was written (2006!) so the format we had was no longer valid. All the variables passed to post-new.php are completely different than they used to be.
critter42
-----------------------------
Note: I am not employed by NewsGator Technologies in any capacity
|
|
|
|
|
Forum Member
Group: Forum Members
Last Login: Today @ 6:08:15 AM
Posts: 35,
Visits: 169
|
|
| Thanks for your note. Taking a look at the information, I noticed the following: a) URL to the site remains the same -- http://www.mywebsite.com/ b) Path to the blog folder is the same -- wordpressfolder/ c) Need to access the wordpress directory -- wp-admin/ d) Need a new post command -- post-new.php? d) Need to tell it is a POST and NOT a GET -- post_type=post e) Now add the variables you want to add &content=$ITEM_DESCRIPTION_PLAIN$ &post_title=$ITEM_TITLE$
&excerpt=$ITEM_SUMMARY_PLAIN$ Very logical now that I see it. Again, thanks for your hard work. Jerry
|
|
|
|
|
Forum Deity
Group: Moderators
Last Login: Yesterday @ 11:47:09 PM
Posts: 1,537,
Visits: 7,205
|
|
you got it, except post_type is wordpress specific and can be "page", "post", "attachment" and one other that I can't remember right now
critter42
-----------------------------
Note: I am not employed by NewsGator Technologies in any capacity
|
|
|
|