Zikula: A Flexible Open Source Content Management System
home | forum | contact us

Dizkus

Bottom
v4bJournal issues&questions
  • Posted: 15.05.2005, 22:05
     
    wwalker
    rank:
    Registered User Registered User
    registered:
     May 2005
    Status:
    offline
    last visit:
    15.05.05
    Posts:
    1
    First of all, great thanks for your beautiful module.
    It is core of my project - small independent literature site.
    My users post their poetry, photos, etc. via v4bJournal.

    But (oh, really, it would be better just to say "THANKS A LOT" instead
    of "but", but... All of strange things in life starting with damned
    "but".)

    I have some image upload issues, problems and suggestions.
    Some of my users has non-latin nicknames/usernames (like this:P

    P4P:P0).
    Well, abbr title="The former name of Zikula">PostNuke allows to have usernames in different
    languages. So, v4bJournal creates image folder for each user and name
    of the folder is the same as username. User then posts something and make image upload. After that, then user browse to his post via Internet
    Explorer, he can't view uploaded image! When I, as website administrator, goes to same post via FireFox, image is in place and all working fine.

    I can't force all my users to use FireFox icon_frown Also, I can't directly tell
    B. Gates about IE bug with show non-latin named folders at Linux hosting.
    So, how can I fix this problem? My suggestion and question is to use "owner_uid" as a folder name, because it is a digit, not letter, and IE has no problem to show digit-name folders. And if replace in upload function $uname to $owner_uid, it, may be a right and correct decision for
    new-registered users. But this decision ruins existed journals. May be
    use autorenaming script to batch rename folder "unames" to
    "owner_uids"?
    Second part of the upload problem I saw in Apache error_log:
    "[Sun May 8 08:40:58 2005] [info] [client xxx.xxx.xxx.xxx] (32)Broken pipe: client stopped connection before send mmap completed
    [Sun May 8 08:40:58 2005] [info] [client xxx.xxx.xxx.xxx] (32)Broken pipe: client stopped connection before rwrite completed"

    I think it happens than user try to upload a non-latin named picture
    (example: P:P0Q.jpg). I haven't any ideas about how to tell users to rename their pictures before uploading. And may be it possible to rename pictures on-the-fly, via upload function too?

    But I'm not an advanced PHP-specialist (in fact, I'm not a programmer at all), so I would be very grateful for any help and advice.

  • Posted: 18.05.2005, 12:58
     
    rgasch
    rank:
    Professional Professional
    registered:
     January 2003
    Status:
    offline
    last visit:
    26.11.08
    Posts:
    568
    Hi,

    sorry that I didn't reply sooner; I was away ...

    Anyhow, your problem is one I never considered when writing v4bJournal. It's clear that this would cause problems.

    I think the proper solution is to use the userid as the directory name. Since this will always be numeric, it shouldn't cause any problems. I guess it would be possible to write a script to rename the existing directories from <name> to <userid>.

    As for the upload problem, we'll have to test that once we've fixed the above issue.

    I'm currently in the process of re-writing v4bJournal so that it runs under pnRender (about 80% done). Once I push out a release based on that code, I'll try to take care of your file naming issue. Hopefully this will happen in 1-2 weeks.

    In the meantime though, if you wish to convert the directories from username to userid, you'll have to write a script for that yourself; I currently don't have the time to write this for you.

    Greetings
    --> R</userid></name>

Extensions Moderation

Main Menu

Extensions Database

Documentation

Development

Login

Donate to Zikula