Pages (2):    1 2
Member
Member
sbillard   06-06-2008, 22:09
#21

Also go to your admin overview page. You should see statistics on unpublished albums and images with the new changes.

Admin is using the new calls to get this information, so if it shows the data, the function is working.

Have you initialized your $gallery variable? Perhaps you should be using $_zp_gallery

Member
Member
MelodyNelson   07-06-2008, 02:02
#22

thanks !

I've tried $_zp_gallery->getNumImages(true), it's almost perfect (some images should not be counted)

it will be long and difficult for me to explain the problem in english, I've made a screenshot with the "description" of the problem, I think it's linked with subalbums

http://img527.imageshack.us/img527/1010/image2hz6.png

Member
Member
sbillard   07-06-2008, 15:45
#23

Try running a refresh database to clean up any orphaned albums or images. Also note that if you are looking at the database table, there may be one extra album and two extra images in it that are not counted.

Member
Member
MelodyNelson   07-06-2008, 20:30
#24

thanks

I've tried before and did it again when I read your message but nothing changes... it's not so important, I think images counted are in subalbums even if they are not published

I'll deal with it because I choose to share the same folder for ZP albums and a CMS, and these subalbums contain images for the CSS of the CMS

for the moment, my problem is to understand how does ZP works when I add new images on existing albums via FTP...

I've searched and read subjects on the forum and don't understand yet (english is not my first language, it doesn't help)

I've checked this :

  • safe_mode is OFF
  • mod_rewrite is ON
  • cache folder + every folder in cache folder have 777 permission
  • each folder in "album folder" has 755 permission
  • each image in album folder has 644 permission
  • thumbnails created in cache folders have 666 permission

when I send images via FTP :

  • count on the gallery is OK (new images are in)
  • if I look the gallery, new images are not there, it's normal because if I look in the database new images are not there (no new entry)

I'm trying to understand when entries are created in the database :

  1. wait half an hour to see if new images will be created in the database > no
  2. refresh the database > no
  3. I try "pre-cache images" (without checking "clear") on the admin, after 40 minutes, Safari stopped loading the page (5317 errors - timeout mention in acitivty window) > but it works, new images are in the DB

yesterday, I've tried something else : edit the album on the admin, it creates also entries in the DB for new images but loading the "album page" is too slow for galeries over 400 images (more than 5 minutes for 400 images)

using "pre-cache" or "edit the album" on the admin tool are too slowly to update "big gallery"... for me, it's better to use phpMyAdmin to update informations (title, etc) for saving time...

what should I do ?

how does it works when images are uploaded by FTP ?

sorry for the "off-topic" (and maybe redundant subject) but I'm trying to understand

Member
Member
sbillard   07-06-2008, 23:18
#25

New entries are created in the database when the album/image is "viewed". You can force that to happen by the pre-cache functions. The getNumImages() function counts database records, either published or all.

Member
Member
MelodyNelson   08-06-2008, 01:57
#26

ok

I find a way to use "pre-cache" very quickly, in cache-images.php, I comment this :

echo '[img]' . getImageThumb() . '[/img] | [img]' . getDefaultSizedImage() . '[/img]' . "n";

my solution is :

  • pre-cache, everytime I send new pics
  • use phpmyadmin to update data in "big galleries", otherwise the admin is cool for "small galleries"

sorry if I bother you... I'll be a nice quiet girl now...

Administrator
Administrator
acrylian   08-06-2008, 09:19
#27

[i]'ll deal with it because I choose to share the same folder for ZP albums and a CMS, and these subalbums contain images for the CSS of the CMS[/i]
There actually should be only images/albums that are to be used for zenphoto in the albums folder. Confusion is preprepared if you put css images in there. I would recommend to keep images for "styling" separate from the "content" ones.

Member
Member
MelodyNelson   08-06-2008, 18:04
#28

I chose zenphoto because I could share this folder between galleries and the CMS, essential points of my checklist were:

  • share my "media folder" (didn't want to duplicate images)
  • using same image in a ZP gallery or, for example, in an article or a slideshow included in an article
  • publish latest images on the homepage (CMS)
  • publish albums on a special page (CMS)

this folder contains docs, images, etc for 3 websites (same website in 3 languages) and also galleries... images I use for ZP galleries are in folders untitled "alb" and contain only images (folders don't start by the prefix "alb" are unpublished precisely to avoid confusion)

Administrator
Administrator
acrylian   08-06-2008, 18:08
#29

Ok, I understand, I maybe was a too little quick with my answer. That indeed works. Which CMS do you use?

EDIT: I see you use Plume CMS.

Member
Member
MelodyNelson   08-06-2008, 19:26
#30

don't worry... also, maybe my answers sound "quick" (or "hard"), I don't know "polite things" to make nice sentences in english

Administrator
Administrator
acrylian   09-06-2008, 08:54
#31

No problem with your english...:-) (BTW, english is not my native language, too)

Pages (2):    1 2
  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.