Popfetcher trouble

Creating and modifying plugins.
Post Reply
user1234
Regular
Posts: 75
Joined: Tue Sep 22, 2009 9:49 pm

Popfetcher trouble

Post by user1234 »

Hi,

I have problems with the popfetcher plugin. It gets the mail alright, it also publishes the entry in the category defined. The subject gets used as title, content as entry. So far so fine.

But when I attach a picture the trouble starts.

At first I had no folder defined for the mediadatabase, the field was empty as instructed, because I initially planned to populate the lowermost uploads level with the emailed entry pictures. When I called the cronjob from the external URI the plugin got the email, put the photo in the mediadatabase and wrote the entry. When I checked the entry I saw no picture. Then I tried to look at it in the mediamanager and the manager told me it just deleted the file and its directories. I believe there is another thread with someone who experiences the same problem.

Then I defined a special folder for the emailed photos, specified that in the plugin admin interface and tried again. Everything went so far okay, the plugin this time wrote the photo into the mediadatabase's second level folder - ADDING two levels! And still no photo in the entry.

Now, how to cure these problems?

First off, these add-on folders are totally idiotic, so sorry to say so directly. In my current case I get this:

uploads (0)
--subfolder (0)
-------2009 (0)
------------11 (1 photo)

I don't need those additional folders, they cause major disarray with the whole photogallery structure. By next month I'll probably have another sub-sub-subfolder "12", next January it'll be "2010" and "1". That's not going to meet with joy from the visitors who may have to look into dozens of folders in the end to find photos strewn all around, 1 pic to a folder or so.

So, is there a way to turn this off? I need to be able to define one folder into which all photos directly go.

Next, obviously the photo should also be attached to the entry and not just exist in the mediamanager.

Cheers,

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

Re: Popfetcher trouble

Post by garvinhicking »

Hi!

Does uploading pictures via the s9y media database itself work? It sounds as if your server generally might not be able to create thumbs.

As for popfetcher, recent versions always create a date-based subdirectory structure to not clutter up a single directory. This is currently not configurable, because I was quite sure everybody favoured a structure like this instead a flat directory.
I don't need those additional folders, they cause major disarray with the whole photogallery structure. By next month I'll probably have another sub-sub-subfolder "12", next January it'll be "2010" and "1". That's not going to meet with joy from the visitors who may have to look into dozens of folders in the end to find photos strewn all around, 1 pic to a folder or so.
Well, the pictures are linked, so it shouldn't matter to the visitor cause he doesn't call up the image URLs manually?! :)

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/
user1234
Regular
Posts: 75
Joined: Tue Sep 22, 2009 9:49 pm

Re: Popfetcher trouble

Post by user1234 »

Hi Garvin,

the media database works just peachy. No trouble there at all! In fact I use it for the gallery plugin and that displays very nicely. The mediamanager also works as it should when photos are manually added to entries written on s9y.
Well, the pictures are linked, so it shouldn't matter to the visitor cause he doesn't call up the image URLs manually?! :)
Well, none of those voting for such a curious structure then were using the gallery plugin!

Right now I have a gallery which has this structure

photogallery
- flowers (10)
- stones (15)
- trees (8)
- ocean (7)
- dogs (19)

The main gallery is linked to as a static page and people navigate through the photos using the name of the directory. The photos themselves are named so that it is easy to know what is shown (e.g. rose_at_windsor_castle.jpg). A perfect setup, very logical, very easy for visitors to find around.

With the forced structure of popfetcher I'll soon get this:

photogallery
- general (0)
-------2009 (0)
------------11 (1)
------------12 (1)
-------2010 (0)
------------1 (1)
------------2 (1)
------------3 (2)
------------4 (1)
------------5 (1)
------------6 (1)
- flowers (10)
- stones (15)
- trees (8)
- ocean (7)
- dogs (19)

Which will be HIGHLY irritating to visitors as it's not at all logical to strew photos far and wide. And yes, these photos need to be available inside the Photogallery as a group of photos. What I need is this:

photogallery
- general (9) <--------- all photos mailed in
- flowers (10)
- stones (15)
- trees (8)
- ocean (7)
- dogs (19)

So how can these gazillions of folders be worked around and photos inserted ONLY as photos and in one pre-set folder?

Cheers,

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

Re: Popfetcher trouble

Post by garvinhicking »

Hi!

Okay, I get that point. I just took some time to implement a config option for this subfolder storage in the latest revision (1.36) that should be available on spartacus soon.

This version also has a debugging switch that you could enable, then you would be able to maybe see why images are not added? I suppose it's due to an option in the s9y popfetcher config, or the filenames. Did you also check the extended entry, if that contains your blog images? What's your URL with an entry that should contain images?

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/
user1234
Regular
Posts: 75
Joined: Tue Sep 22, 2009 9:49 pm

Re: Popfetcher trouble

Post by user1234 »

Hi Garvin,
Okay, I get that point. I just took some time to implement a config option for this subfolder storage in the latest revision (1.36) that should be available on spartacus soon.
That's fantastic! Thank you :D The main reason I implemented popfetcher for that client is that this way she can post texts and pictures to her site by email. She wasn't able to deal with the admin interface's learning curve. So, keeping the preset structure is very important for that site.
This version also has a debugging switch that you could enable, then you would be able to maybe see why images are not added? I suppose it's due to an option in the s9y popfetcher config, or the filenames. Did you also check the extended entry, if that contains your blog images? What's your URL with an entry that should contain images?
I found it nowhere but in the mediadatabase. Neither category view nor full view showed the picture. I'll send a test message and will give you the URI via PM.

Cheers,

Dachs
Post Reply