Pages (2):    1 2
Member
Member
jssmadtown   05-04-2008, 22:59
#21

sorry, I meant to say saw the suspicious line in image.php...

Developer
Developer
trisweb   06-04-2008, 03:13
#22

jssmadtown - the URL will change if you turn off mod_rewrite, so it will no longer be /albums/gallery/x, it will be index.php?album=gallery&image=x, so start from the root of the gallery when you change that setting and things should work...

ulfben - I'm not seeing any problems, but I do remember there being bugs if you went too fast and got ahead of the loading, so it is possible. I'm also noticing that the size of the lo-res image seems to be wrong, like the wrong proportion or something. Not sure why that is either... I'll download the latest and see if I can find out.

Member
Member
jssmadtown   06-04-2008, 04:19
#23

Well, I've tried default_tricasa with mod_rewrite on/off in the administration settings. I get a "not found" error in both cases when asking for the full image, and in both a leading prefix /albums/ appears which will certainly not work for my directory setup (if the browser's reporting an error looking for the actual image URL). The URL's are different in detail, but have the /albums/ prefix in common. They might work if /albums/ and my ZP root directory (/gallery/) were interchanged in order.

Of course the default theme works fine (with both mod_rewrite on/off).

Take this as friendly, if ill informed feedback. I hope it goes better later if ulfben keeps up the good work, as I like the tricasa speed.

Thanks!

Administrator
Administrator
acrylian   06-04-2008, 08:46
#24

Regarding image centering, try margin: 0 auto in combination with text-align: center on the image.

Member
Member
ulfben   06-04-2008, 09:17
#25

Quote:ulfben - I'm not seeing any problems [...]
In IE6 the order of the low-rez images are off. Not so for you?

Quote:[...] I'm also noticing that the size of the lo-res image seems to be wrong, like the wrong proportion or something. [...]
Yeah, I'm using the thumbnails instead of generating a new low-rez. Reason: performance again. The thumbnails are already in the cache (at the client even), and are very small. We wont be looking at the low-rex version for very long so the quality of them is largely inrelevant.

(I've got thumbnail cropping on, thus the aspect is off.)

Member
Member
ulfben   06-04-2008, 15:27
#26

Aight. I've spent some time refactoring and cleaning up. The script should be much easier to modify now (and the page source looks much nicer. )

There are two significant patches to the ZP core (included) - I'll try and get them onto trac later today.

template-functions.php - added symmetric getters for various "print"-functions. (for feeding comments to the javascript).
functions-controller.php - redirects after posting comments now takes you back to the image properly. (also when you fail the captcha!)

Search the files for "ulfben" to quickly find my changes.

default_tricasa 0.2.3

captchas are back
fixed: full size images should work for everyone
*refactoring: images[] holds associative arrays instead of numericly indexed ones.
seeding the javascript is handled purely by PHP now

Member
Member
ulfben   06-04-2008, 17:45
#27

Still 0.2.3, but replaced my custom functions-controller.php with a customfunctions.php for the theme so you won't need to replace the ZP core-file.

You'll still need my functions-controller.php for proper redirects when people comment though. I put a patch on trac so hopefully it'll not be a problem for long.

Member
Member
ulfben   06-04-2008, 18:04
#28

I begin full time work on my final exam-thingy tomorrow so I'll be putting this hack down for a while again.

[b]Still left to do:[/b]

[list]
[]make the ajax description-field aware of what image we're working on. (zebaron has already solved this)
[
]smaller (than default) images are centered in IE6 but not in Firefox.
[]IE6 displays the image two steps back before showing the right one, every time you step forward.
[
]get rid of /imagename.JPG from the URLs of image pages, so we can have /#imagename.JPG and handle it with JS from there.
[/list]

Member
Member
jssmadtown   06-04-2008, 18:36
#29

Thanks, uflben. Gave it a whirl, and all seems swell.

I may try a hand at putting back exif. Besides uncomments, looks like one needs to add the exif data to the image array. Anything else? I'll give this a try for my own education.

RE you're updated 0.2.3 with customfunctions.php. I didn't see this in the file set (still the original two functions). Also looked to see if it was embedded somewhere else, didn't see it, so thought I'd ask.

Member
Member
ulfben   06-04-2008, 18:45
#30

Try clearing your browser cache; you probably got the old copy.

(and yes: echo $exifstring into an 'exif'-field of the array, and then uncomment every function that has with exif to do.)

Member
Member
jssmadtown   06-04-2008, 19:13
#31

Ok, thanks. Thought I had cleared cache, but in any case now have the latest.

Member
Member
sbillard   07-04-2008, 02:43
#32

ulfben's changes are released to tonight's build.

Member
Member
ulfben   29-04-2008, 11:22
#33

I found that the javascript would break over newlines in comments. You can get the fixed version at the same place.

Note that I've removed the functions-controller.php since my changes got accepted into core. A lot of fixes has been made to that file since, so I'd strongly advice you update yours too.

Member
Member
justinho   19-04-2009, 02:46
#34

Has this been updated for Zenphoto 1.2? I'm getting errors:

  • On the Galleries front page, I get the following on the bottom of the page:
    "Strict Standards: Only variables should be passed by reference in /var/www/zenphoto/themes/default_tricasa/index.php on line 43
    680 "

  • On an image page, I get the following error on the bottom of the page (btw, Comments are disabled):
    "Notice: Use of undefined constant php - assumed 'php' in /var/www/zenphoto/themes/default_tricasa/image.php on line 309"

and, most significantly, "Next" and "Prev" are not working. The Firefox error is that "nextImage is not defined".

Maybe I'm doing something wrong, can anyone help out?

Member
Member
sbillard   19-04-2009, 03:00
#35

Tricasa is not one of the supported themes. You can prevent the error message (but not the error) by setting error_reporting(E_ALL);

Member
Member
justinho   19-04-2009, 13:21
#36

Is anyone aware of a functioning theme that utilizes AJAX or JS for navigating between photos?

Administrator
Administrator
acrylian   19-04-2009, 15:55
#37

No, all known themes that are working are listed on our themes page.

But on this page you can download a rough sketch of jQuery Galleria script implementation a user did quite some time ago. The script part seems to work with the current version (not for multimedia file though). It's not a complete theme though so you will have some work to do.

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