popfetcher image&category help

Creating and modifying plugins.
Post Reply
strecth
Regular
Posts: 9
Joined: Sat May 23, 2009 5:22 pm

popfetcher image&category help

Post by strecth »

Hi

I've recently installed popfetcher and got it working with cron etc but ideally i'de like to be able to have images posted in the body rather than just adding them to the gallery. Also i'de like to be able to post in a particular category by using a tag in subject line.

Any help would be great
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: popfetcher image&category help

Post by garvinhicking »

Hi!

Having images in the body would require you to post HTML mails, this should be possible if your sending mailclient properly supports it. Posting in the subject line can be done according to the configuration page if you prepend "[category name]" to the subject.

HTH,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
strecth
Regular
Posts: 9
Joined: Sat May 23, 2009 5:22 pm

Re: popfetcher image&category help

Post by strecth »

Thanks for the reply I got the category bit to work but no luck with images, so far i've tried hotmail.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: popfetcher image&category help

Post by garvinhicking »

Hi!

Send me an example mail that contains HTML markup and images that you would want in the post to mail at garv dot in, then I can have a look. Also tell me your current popfetcher settings (there are many options, some of them related to attachment/media handling).

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
strecth
Regular
Posts: 9
Joined: Sat May 23, 2009 5:22 pm

Re: popfetcher image&category help

Post by strecth »

Ah i'm thinking i've made a mistake with the html markup side of things as i've jsut been adding the pictures as attachments, could you give me an example?

Settings
Use plaintext attachments as entry body? Yes
First text attachment is entry body, the rest extended Yes
Text preference HTML
Strip advertisements? Yes
Strip HTML Tags from message No
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: popfetcher image&category help

Post by garvinhicking »

Hi!

If pictures are embedded as attachments, also serendipity/popfetcher can only handle them as attachments, unless you configured the plugin to show all attachments inline at the end of the blog article.

You would need to send a HTML mail with inline images, just like when creating a website witha WYISWYG editor. I don't use hotmail, so I cannot tell you if that is possible at all.

You might want to set "First text attachment is entry body, the rest extended" to "No".

HTH,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
strecth
Regular
Posts: 9
Joined: Sat May 23, 2009 5:22 pm

Re: popfetcher image&category help

Post by strecth »

After doing
You might want to set "First text attachment is entry body, the rest extended" to "No".
The image is now added to the post but via a link of the username of the poster? ie admin
strecth
Regular
Posts: 9
Joined: Sat May 23, 2009 5:22 pm

Re: popfetcher image&category help

Post by strecth »

Anyone help? don't really want to have to change blog software
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: popfetcher image&category help

Post by garvinhicking »

Hi!

Can you please supply a link to such a blog entry, and maybe attach the mail that was used to create the entry, and tell us your configuration of the popfetcher plugin?

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
DwB
Regular
Posts: 32
Joined: Fri Feb 10, 2006 11:06 am
Contact:

Re: popfetcher image&category help

Post by DwB »

Have a look here, just if you use POPfetcher v1.34 (the latest) you have to change it at line 1356.
Also the settings of the plugin should be

Use plaintext attachments as entry body? -> Yes
Text preference -> I personaly suggest to use "Plain Text"

The changed code in the linked thread makes it possible that you may have more than one picture in the entry, so setting "First text attachment is entry body, the rest extended" to "No" will result in having all send pictures in the entry.
strecth
Regular
Posts: 9
Joined: Sat May 23, 2009 5:22 pm

Re: popfetcher image&category help

Post by strecth »

Cheers DWB

Gavin as per my message i've upgraded to latest version of pop fetcher and i'm a little closer now, images are showing up as thumbnails however on clicking the image the link is broken, the image file is shown as

2009-12-03-11.49.10_188.0</u>-81.0_-5.0.jpg

however the bit that shows </u> should be a _ character ie

2009-12-03-11.49.10_188.0_-81.0_-5.0.jpg

Also is there a way to have image displayed at a specific resolution rather than the thumb?

Also for some reason the email message section is duplicated?
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: popfetcher image&category help

Post by garvinhicking »

Hi!

This underline replacement comes from the "Serendipity Markup" event plugin. You'd need to disable that plugin so that it doesn't replace underscored words als underlined entities...

The default thumb size can be configured in serendipity itself, it always uses that one. Duplication of a mail section could happen when your mail has more than one text/plain attachment, or maybe a duplicate text/html part...

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
strecth
Regular
Posts: 9
Joined: Sat May 23, 2009 5:22 pm

Re: popfetcher image&category help

Post by strecth »

Cheers Garvin i'll look into those bits, with the popfetcher images is it possible to have them posted next to each other rather than in a vertical line ie

IMAGE IMAGE IMAGE
IMAGE IMAGE IMAGE

Rather than

IMAGE
IMAGE
IMAGE
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: popfetcher image&category help

Post by garvinhicking »

Hi!

You should be able to do that with CSS and floats, yes!

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Post Reply