Author Topic: [Plugin] ImageFolio Import-Script  (Read 67893 times)

0 Members and 2 Guests are viewing this topic.

Offline DReffects

  • Newbie
  • *
  • Posts: 24
    • View Profile
[Plugin] ImageFolio Import-Script
« Reply #15 on: August 11, 2002, 12:46:01 PM »
i'll try :) danke für den großartigen support!
Daniel Räbiger
www.treknews.de

Offline DReffects

  • Newbie
  • *
  • Posts: 24
    • View Profile
[Plugin] ImageFolio Import-Script
« Reply #16 on: August 11, 2002, 01:46:12 PM »
hmm ne geht immer noch ned. der sucht immer nach .counts dateien... aber die will ich ja gar ned *g*

(Could not open /home/virtual/site1/fst/var/www/cgi-bin/gallery-treknews/data/Conventions_-_Specials_-_Sonstiges.Conventions.FedCon_9.Freitag.Monaghan.tcaptions.txt

Could not open /home/virtual/site1/fst/var/www/cgi-bin/gallery-treknews/data/Conventions_-_Specials_-_Sonstiges.Conventions.FedCon_9.Freitag.Monaghan.captions.txt

Could not open /home/virtual/site1/fst/var/www/cgi-bin/gallery-treknews/data/Conventions_-_Specials_-_Sonstiges.Conventions.FedCon_9.Freitag.Monaghan.counts.txt)




die captions sind auch noch immer klein geschrieben und unvollständig...

ich hab dir hier mal den inhalt einer captions datei gepastet - evtl. hilft dir das weiter:

Code: [Select]
fedcon_closing.jpg FedCon9 Closing Ceremony Video
my_love_is_an_alien.jpg Christian Schmidt & Band - My love is an Alien
you_are_my_angel.jpg Christian Schmidt & Band - Your Are my Angel
fedcon9_promo_dsl.jpg FedCon9 Video Promo 1 (DSL)
fedcon9_promo_isdn.jpg FedCon9 Video Promo 1 (ISDN)
fedcon9_promo_mpg.jpg FedCon9 Video Promo 1 (MPG)



So das war jetzt die datei 'Conventions_-_Specials_-_Sonstiges.Conventions.FedCon_9.tcaptions.txt'

und das komische ist, dass der als caption nur 'my love is an alien' z.b. importiert... wie er darauf kommt weis ich ned so ganz ;)

grüße
daniel
Daniel Räbiger
www.treknews.de

Offline Jan

  • Administrator
  • 4images Guru
  • *****
  • Posts: 5.024
    • View Profile
    • 4images - Image Gallery Management System
[Plugin] ImageFolio Import-Script
« Reply #17 on: August 11, 2002, 03:03:32 PM »
Ok, ich habe das Script nochmal geändert.

1.
Ich habe eine neue Option eingeführt: "Import hits, votes, ratings".
Du kannst dort dann "Nein" wählen wenn Du diese Sachen nicht importieren willst.

2.
ACHTUNG: Caption ist NICHT gleich Bildname!!
ImageFolio verwendet als Bildname den Dateinamen der Bilddatei und entfernt dort die Dateiendung und ersetzt Unterstriche durch Leerzeichen.
Die Captions sind praktisch die Beschreibung und werden  auch so importiert.
Ich habe jetzt allerdings auch noch eine weitere Option eingeführt wo Du einstellen kannst, dass als Bildname die captions oder die tcaptions verwendet werden sollen. Ist kein caption/tcaption vorhanden wird wieder standardmässig der Dateiname mit oben genannten Änderungen verwendet.

Gruß Jan
Your first three "must do" before you ask a question:
1. Forum rules
2. FAQ
3. Search

Offline DReffects

  • Newbie
  • *
  • Posts: 24
    • View Profile
[Plugin] ImageFolio Import-Script
« Reply #18 on: August 11, 2002, 03:21:14 PM »
super - ich werde es testen

zu den captions: ich blick nicht ganz durch...
my_love_is_an_alien.jpg   Christian Schmidt & Band - My love is an Alien
steht in der datei

sprich zum dateinamen 'my_love_is_an_alien.jpg' ist die Caption (Beschreibung) 'Christian Schmidt & Band - My love is an Alien'

ich bekomme aber in 4 images lediglich 'my love is an alien' angezeigt und nicht 'Christian Schmidt & Band - My love is an Alien'
Daniel Räbiger
www.treknews.de

Offline Jan

  • Administrator
  • 4images Guru
  • *****
  • Posts: 5.024
    • View Profile
    • 4images - Image Gallery Management System
[Plugin] ImageFolio Import-Script
« Reply #19 on: August 11, 2002, 03:53:53 PM »
Stimmt, mir ist auch aufgefallen, dass bei Dir nirgends Beschreibungen oder Keywords auftauchen. Du kannst ja während des Imports sehen ob jeweils eine Beschreibung und Keywords gefunden wurden. Überprüfe das mal...

Gruß Jan
Your first three "must do" before you ask a question:
1. Forum rules
2. FAQ
3. Search

Offline DReffects

  • Newbie
  • *
  • Posts: 24
    • View Profile
[Plugin] ImageFolio Import-Script
« Reply #20 on: August 13, 2002, 12:49:57 PM »
nochmal getestet (umfangreich) geht ned :(

Description: (captions and tcaptions) Not found


er findet das einfach nicht... kann man das irgendwie debuggen? oder liegt es an was anderem ?

grüße
daniel
Daniel Räbiger
www.treknews.de

Offline Jan

  • Administrator
  • 4images Guru
  • *****
  • Posts: 5.024
    • View Profile
    • 4images - Image Gallery Management System
[Plugin] ImageFolio Import-Script
« Reply #21 on: August 13, 2002, 01:50:05 PM »
Hast Du evtl. beim Pfad verschrieben ($if_data_path)?

/home/virtual/site1/fst/var/www/cgi-bin/gallery-treknews/data/Conventions_-_Specials_-_Sonstiges.Conventions.FedCon_9.Freitag.Monaghan.captions.txt

Existiert denn die angegebene Datei exakt unter diesem Pfad?

Gruß Jan
Your first three "must do" before you ask a question:
1. Forum rules
2. FAQ
3. Search

Offline DReffects

  • Newbie
  • *
  • Posts: 24
    • View Profile
[Plugin] ImageFolio Import-Script
« Reply #22 on: August 13, 2002, 01:55:31 PM »
ne DAS file gibts nicht ;) aber es gibt genug andere....

Conventions_-_Specials_-_Sonstiges.Conventions.FedCon_9.tcaptions.txt z.b.
da sollte die beschreibung für die ganzen files im FedCon9 Ordner drin sein (sind sie auch...)

könnte es probleme mit dem auftrennen geben? dass der z.b. das TAB zeichen nicht richtig erkennt (UNIX problem evtl?)
Daniel Räbiger
www.treknews.de

Offline Jan

  • Administrator
  • 4images Guru
  • *****
  • Posts: 5.024
    • View Profile
    • 4images - Image Gallery Management System
[Plugin] ImageFolio Import-Script
« Reply #23 on: August 13, 2002, 02:36:17 PM »
Das mit dem TAB könnte evtl. sein, ist aber eher unwahrscheinlich da PHP und Perl ja eher Unix orientiert sind. Probleme machen da eher Macs.

Leider hab ich momentan keine weitere Idee woran es liegen könnte, bei mir funktioniert es einwandfei. Die einzige Möglichkeit wäre evtl., dass Du mir Zugriff auf Deinen Server gewährst damit ich mir das ganze mal direkt ansehen kann, liegt aber bei Dir ob Du das willst.

Gruß Jan
Your first three "must do" before you ask a question:
1. Forum rules
2. FAQ
3. Search

Offline DReffects

  • Newbie
  • *
  • Posts: 24
    • View Profile
[Plugin] ImageFolio Import-Script
« Reply #24 on: August 13, 2002, 04:00:24 PM »
hmm ich verstehs ned...

kannst du das script mal so umschreiben dass er jeden schritt incl. variableninhalt mit echo"" ausgibt ?

dann könnt ich sehen ob der ds file überhaupt einließt und was damit macht oder so...

wegen dem server: können wir das vorher noch versuchen ;) ?

danke

grüße
daniel
Daniel Räbiger
www.treknews.de

Offline Jan

  • Administrator
  • 4images Guru
  • *****
  • Posts: 5.024
    • View Profile
    • 4images - Image Gallery Management System
[Plugin] ImageFolio Import-Script
« Reply #25 on: August 13, 2002, 04:46:26 PM »
Ok, hier mal eine Debug-Version.

Download: import_imagefolio_debug.zip

Die captions werden aus der Datei in Array gelesen. Diese Array wird jetzt immer dargestellt. Dort sollte dann immer als Key der Dateiname und als Value die captions auftauchen. Probiers mal aus...

Gruß Jan
Your first three "must do" before you ask a question:
1. Forum rules
2. FAQ
3. Search

Offline DReffects

  • Newbie
  • *
  • Posts: 24
    • View Profile
[Plugin] ImageFolio Import-Script
« Reply #26 on: August 13, 2002, 05:02:07 PM »
hui die teile scheinen da zu sein - ich glaube der versucht auf ein falsches array zuzugreifen....

schau mal hier:

Code: [Select]
array(6) {
  ["fedcon_closing.jpg"]=>
  string(30) "FedCon9 Closing Ceremony Video"
  ["my_love_is_an_alien.jpg"]=>
  string(46) "Christian Schmidt & Band - My love is an Alien"
  ["you_are_my_angel.jpg"]=>
  string(44) "Christian Schmidt & Band - Your Are my Angel"
  ["fedcon9_promo_dsl.jpg"]=>
  string(27) "FedCon9 Video Promo 1 (DSL)"
  ["fedcon9_promo_isdn.jpg"]=>
  string(28) "FedCon9 Video Promo 1 (ISDN)"
  ["fedcon9_promo_mpg.jpg"]=>
  string(27) "FedCon9 Video Promo 1 (MPG)"
}


--------------------------------------------------------------------------------
Available captions:
array(0) {
}


--------------------------------------------------------------------------------
1. Importing image TMP8.zip
Copy Image: OK
Copy Thumbnail: No thumbnail found
Image name: TMP8
Description: (tcaptions only) Not found
Date: 15.04.2002 21:08

2. Importing image fedcon9_promo_dsl.rm
Copy Image: OK
Copy Thumbnail: OK
Image name: fedcon9 promo dsl
Description: (tcaptions only) Not found
Date: 15.04.2002 21:08

3. Importing image fedcon9_promo_isdn.rm
Copy Image: OK
Copy Thumbnail: OK
Image name: fedcon9 promo isdn
Description: (tcaptions only) Not found
Date: 15.04.2002 21:08

4. Importing image fedcon9_promo_mpg.mpg
Copy Image: OK
Copy Thumbnail: OK
Image name: fedcon9 promo mpg
Description: (tcaptions only) Not found
Date: 15.04.2002 21:08

5. Importing image fedcon_closing.rm
Copy Image: OK
Copy Thumbnail: OK
Image name: fedcon closing
Description: (tcaptions only) Not found
Date: 15.04.2002 21:09

6. Importing image my_love_is_an_alien.mp3
Copy Image: OK
Copy Thumbnail: OK
Image name: my love is an alien
Description: (tcaptions only) Not found
Date: 15.04.2002 21:09

7. Importing image you_are_my_angel.mp3
Copy Image: OK
Copy Thumbnail: OK
Image name: you are my angel
Description: (tcaptions only) Not found
Date: 15.04.2002 21:09
Daniel Räbiger
www.treknews.de

Offline Jan

  • Administrator
  • 4images Guru
  • *****
  • Posts: 5.024
    • View Profile
    • 4images - Image Gallery Management System
[Plugin] ImageFolio Import-Script
« Reply #27 on: August 13, 2002, 05:18:52 PM »
Aha, jetzt kommen wir der Sache schon näher. Ich glaube da ist ein kleiner Bug in ImageFolio. Wenn Du z.B. ins tcaption file schaust, da wird zum Beispiel
fedcon_closing.rm als fedcon_closing.jpg  
gespeichert. Deshalb kann er auch den richtigen Eintrag nicht lokalieren.
Ich werde das Script dann nochmal überarbeiten müssen...

Gruß Jan
Your first three "must do" before you ask a question:
1. Forum rules
2. FAQ
3. Search

Offline DReffects

  • Newbie
  • *
  • Posts: 24
    • View Profile
[Plugin] ImageFolio Import-Script
« Reply #28 on: August 13, 2002, 05:58:38 PM »
hui :) da ist er unser fehlender ansatz ;)
Daniel Räbiger
www.treknews.de

Offline Jan

  • Administrator
  • 4images Guru
  • *****
  • Posts: 5.024
    • View Profile
    • 4images - Image Gallery Management System
[Plugin] ImageFolio Import-Script
« Reply #29 on: August 13, 2002, 06:29:20 PM »
So, jetzt lade Dir nochmal das File herunter (das von ganz am Anfang). Ich hoffe jetzt klappts.

Gruß Jan
Your first three "must do" before you ask a question:
1. Forum rules
2. FAQ
3. Search