Advanced search  

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Pages: [1] 2   Go Down

Author Topic: XP Publisher Wizard creating some weird directory names...  (Read 11433 times)

0 Members and 1 Guest are viewing this topic.

jeeplaw

  • Coppermine newbie
  • Offline Offline
  • Posts: 15
XP Publisher Wizard creating some weird directory names...
« on: October 27, 2003, 11:52:13 pm »

Well, after installing the reg file and using the wizard to upload 25 documents, each of those documents got put into its own folder name "wpw-cc, wpw-et,wpw-ee, etc, etc, etc". When I uploaded the pictures, the wizard asked me what directories they should go into..after specifying what directory, it just uploads them into their own folders in the main pics directory..any ideas?

jeeplaw

  • Coppermine newbie
  • Offline Offline
  • Posts: 15
XP Publisher Wizard creating some weird directory names...
« Reply #1 on: October 29, 2003, 04:58:45 pm »

Nobody has come across this problem before?

jasendorf

  • VIP
  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 350
    • http://www.338tharmyband.com
XP Publisher Wizard creating some weird directory names...
« Reply #2 on: October 29, 2003, 06:29:12 pm »

So THAT'S where those came from.  Yeah, I saw those too but didn't put two and two together.  I don't know why it does it though...
Logged
Read the Online DOCs,FAQ, and SEARCH the board BEFORE posting questions for help.

jeeplaw

  • Coppermine newbie
  • Offline Offline
  • Posts: 15
XP Publisher Wizard creating some weird directory names...
« Reply #3 on: October 30, 2003, 03:17:56 am »

Hmm..I wouldn't take issue with it, EXCEPT, it puts a folder in the main albums directory for EACH file uploaded. That's a pain if you're doing more than 1. And yes, I know that's what ftp is for, but this seems like a big oversight?

wormie_dk

  • Tester
  • Coppermine regular visitor
  • *
  • Offline Offline
  • Posts: 73
XP Publisher Wizard creating some weird directory names...
« Reply #4 on: October 30, 2003, 01:22:48 pm »

Its to reduce number of images pr. folder.

I have modified my own xp_publish as follows:
line 756:
Code: [Select]

    if (USER_ID && !defined('SILLY_SAFE_MODE')) {
        if (USER_IS_ADMIN && ($category != (USER_ID + FIRST_USER_CAT))) {
            $filepath = 'wpw-' . $album;
        } else {
            $filepath = $CONFIG['userpics'] . (USER_ID + FIRST_USER_CAT);
        }
        $dest_dir = $CONFIG['fullpath'] . $filepath;

The thing changed is:  $filepath = 'wpw-' . $album;

Works fine on my host and creates dirs called wpw-albumnumber
Logged

jasendorf

  • VIP
  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 350
    • http://www.338tharmyband.com
XP Publisher Wizard creating some weird directory names...
« Reply #5 on: October 30, 2003, 02:43:39 pm »

Thanks.
Logged
Read the Online DOCs,FAQ, and SEARCH the board BEFORE posting questions for help.

jeeplaw

  • Coppermine newbie
  • Offline Offline
  • Posts: 15
xp_publish code
« Reply #6 on: October 30, 2003, 05:50:50 pm »

Thanks for the response. But I have a question. After putting this code in and modifying the xp_publish file, does the only thing that change is the name of the folders? I'm more concerned about the sheer number of folders that are put in the main directory. If I upload 10 pictures, I don't want 10 individual folders..I want them put into the categories they belong in. Any ideas?

Quote from: "wormie_dk"
Its to reduce number of images pr. folder.

I have modified my own xp_publish as follows:
line 756:
Code: [Select]

    if (USER_ID && !defined('SILLY_SAFE_MODE')) {
        if (USER_IS_ADMIN && ($category != (USER_ID + FIRST_USER_CAT))) {
            $filepath = 'wpw-' . $album;
        } else {
            $filepath = $CONFIG['userpics'] . (USER_ID + FIRST_USER_CAT);
        }
        $dest_dir = $CONFIG['fullpath'] . $filepath;

The thing changed is:  $filepath = 'wpw-' . $album;

Works fine on my host and creates dirs called wpw-albumnumber

jasendorf

  • VIP
  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 350
    • http://www.338tharmyband.com
XP Publisher Wizard creating some weird directory names...
« Reply #7 on: October 30, 2003, 06:24:55 pm »

Should cut down the amount of directories immensely...

going from:
Code: [Select]
$hash = md5(time());
$filepath = 'wpw-' . substr($hash, 0, 2);

to:
Code: [Select]
$filepath = 'wpw-' . $album;
Should make a huge difference.  But it will also increase the possibliities of overwriting pictures possibly I think.  I'm not really sure what the purpose of that weird random number was all about...
Logged
Read the Online DOCs,FAQ, and SEARCH the board BEFORE posting questions for help.

wormie_dk

  • Tester
  • Coppermine regular visitor
  • *
  • Offline Offline
  • Posts: 73
XP Publisher Wizard creating some weird directory names...
« Reply #8 on: October 31, 2003, 11:22:43 pm »

I don't think so as each album has its own unique number. If you upload photos with equal names coppermine adds ~1 or something to the filename...
Logged

mika2k3

  • Coppermine newbie
  • Offline Offline
  • Posts: 16
    • http://www.ecrantotal.org
Nothing changed !
« Reply #9 on: November 07, 2003, 12:43:20 am »

Hi,

I've made the change on line 756 (xp_publish.php) but when i publish pictures via xp wizard, it always continues to create a lot of folders !

I've remove the entrie in the registry of my pc and reinstall ... but nothing !

Can someone tell me how to success ??

Thanks,
Michael.
Logged

Inigo

  • Coppermine newbie
  • Offline Offline
  • Posts: 3
    • http://www.kshke.com/coppermine
XP Publisher quit working
« Reply #10 on: November 18, 2003, 02:49:16 am »

Quick question:

The Windows XP Publisher quit working on me when I tried to apply this modification (jasendorf's) in 1.1, to get rid of all the extra folders.  I upgraded to 1.2 to see if that would fix the issue, and it didn't.  I have modified the xp_publish back to its original form, but it still won't work.  I get an error in the publisher:
Quote
The wizard encountered a problem while copying the files. A number of things can cause this problem.  For example, the Web server might be down, or you might have lost your internet connection.  

To try again, click Back.  If the problem keeps occurring, close this wizard and try again later.

I'm still on the network, so I know that's not the issue.  I ran ethereal on my pc while running the publisher to see if I could sniff the traffic an find my issue that way, but I can't see the error.  Here's the last bit of output from ethereal:
Code: [Select]

function window.onload() {
        window.external.SetHeaderText('the matasovsky photo album','images, thoughts, and recollections of our life');
        window.external.SetWizardButtons(true,true,false);
}
</script>
</body>
</html>

0

Any thoughts on how to go about troubleshooting this?  I tried looking for the xp_publish.log (after turning on debug mode) but there isn't one.

Anyone?  :?:
Logged

jasendorf

  • VIP
  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 350
    • http://www.338tharmyband.com
XP Publisher Wizard creating some weird directory names...
« Reply #11 on: November 18, 2003, 02:59:09 pm »

This mod works fine for me on both Win and Linux servers...  My guess is that 1) you didn't apply the modification correctly or 2) that there is now a weird registry problem on your client.

You will still get a number of new folders... those folders will be named wpw-(the number of the album you have put the picture in).


You could always change it so that you have the default wpw folder be just "wpw" by taking out the $album in the name of the directory.
Logged
Read the Online DOCs,FAQ, and SEARCH the board BEFORE posting questions for help.

wormie_dk

  • Tester
  • Coppermine regular visitor
  • *
  • Offline Offline
  • Posts: 73
XP Publisher Wizard creating some weird directory names...
« Reply #12 on: November 18, 2003, 05:52:08 pm »

It could have something to do with safemode. Does the original xp_publish create folders with random names? Have you tried the original recently. Is albums chmodded correctly?
Logged

chetriya

  • Coppermine newbie
  • Offline Offline
  • Posts: 1
Publishing with Xp
« Reply #13 on: November 19, 2003, 10:28:17 am »

Hi  I read through all you guys discussed regarding the issue about the too many folders being created. I am running into the same problme. I love this gallery however this one feature of making a folder for each picture is definitely a nuisance. Has anyone actually come up with agood way of creating albums folder with the name specified rather than wp or 1001 .  I know i can upload pic through the ftp but the ftp takes forever to upload especially because of my pic sizes. Also it seems like suchs ahassel to simply have album with the name specified and small file size. Coppermine gallery definietely needs work in making album folder area.
Anyways keep up the great work and may be in future release developers could improve in making the album easier.
thanks guys for any help you can provide. :D
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
XP Publisher Wizard creating some weird directory names...
« Reply #14 on: November 19, 2003, 10:51:00 am »

as a gallery admin you're meant to always use ftp upload (resize the pics on your pc before uploading them - there's a load of tools available for this purpose); the xp-wizard is meant to be an add-on for "regular" users to make uploading easier, not for admins.

GauGau
Logged

ojohn

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 44
XP Publisher Wizard creating some weird directory names...
« Reply #15 on: December 18, 2003, 12:37:13 am »

How can i make a custom size image?

You know at the end before upload it ask if you want to resize the images, But it only has three sizes how can i change one of them or add one or something.
Logged

jason

  • Contributor
  • Coppermine regular visitor
  • ***
  • Offline Offline
  • Posts: 78
XP Publisher Wizard creating some weird directory names...
« Reply #16 on: December 18, 2003, 12:55:43 am »

Quote from: "ojohn"
How can i make a custom size image?


one suggestion (its how i do it) : use irfanview.  

you can resize as many pics as you want at once and it will save the resized ones in a specified folder (called batch conversion) so your originals are left alone.

once in the new folder (resized pics from irfanview), use the xp_publish tool but do not resize.  this way, you can specify any dimension (while maintaining aspect ratio) and also the exif info can be retained (an option in irfanview when batch converting).  ive struggled to find a way to resize and retain exif but was unable from windows xp publishing wizard.

another note, i notice from a post here that xp_publish was not an admin use intention but rather a standard user ease of use feature.  i must say, even as an admin it makes it real quick to upload and even create a new album right before the upload begins.  also, i have 1289 pics already from only 3 months of uploads and having the pics spread out in many folders seems to make alot of sense.

ok, my $0.02 is all used up here ;).
Logged
jason

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
XP Publisher Wizard creating some weird directory names...
« Reply #17 on: December 18, 2003, 01:01:10 pm »

just as a side-note: those who want their exif info to remain intact, although their favorite image maniplution tool on the desktop deletes it are recommended to use the free tool Exifer (postcard-ware), which allows you to back up your exif-info of a folder of pics and restore them after they have been removed or manipulated. Exifer comes for Windows 98/ME/NT/2K/XP (not 95!) in English and German and is, as mentioned, available for free:
www.exifer.friedemann.info

GauGau
Logged

jason

  • Contributor
  • Coppermine regular visitor
  • ***
  • Offline Offline
  • Posts: 78
XP Publisher Wizard creating some weird directory names...
« Reply #18 on: December 18, 2003, 02:15:00 pm »

Quote from: "gaugau"
Exifer (postcard-ware), which allows you to back up your exif-info of a folder of pics and restore them after they have been removed or manipulated.


that doesnt apply too well for xp_publish since the pics are randomized into many different folders, would require more work (so it seems).  while i proclaimed victory with irfanview, it shouldnt matter...point is that something other than windows publishing wizard needs to resize if exif data is to be retained simply.

clearly more than 1 way to skin this cat :wink:.
Logged
jason

zpeek

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 36
XP Publisher Wizard creating some weird directory names...
« Reply #19 on: January 16, 2004, 06:28:57 am »

I install the "How can I display the name of the uploader with the picture info?" and its not working and I think the problem is that I'm using Coppermine Windows XP Web Publishing Wizard.  So is there anyway to make it work with the XP Web Publishing.

Link to mod:
http://coppermine.sourceforge.net/oldboard/viewtopic.php?t=1843
Logged
Pages: [1] 2   Go Up
 

Page created in 0.028 seconds with 18 queries.