Pages (10):    1 6 7 8 9 10
Member
Member
onetr1p   09-03-2007, 23:13

Yes, but it is very tedious to have to insert the rel="lightbox" tag into all the thumbnails inserted by zenpress manually. I was wondering if anyone knows how to make it so that zenpress automatically inserts that tag with the thumbnails, so you don't have to edit the html for each picture after it is inserted.

Member
Member
Simbul   10-03-2007, 00:33

Oh gawd, too many posts to answer to

Ok, first things first: [b]PEOPLE WITH THE TINYMCE PROBLEM, PLEASE READ HERE![/b]
I'm talking about the problem many of you reported on this thread (EdnaGarrett, miriam, digits & others) producing error messages on the file_get_contents function.
After digging a little in the WP code, I think the problem may be related to the PHP realpath function, which is buggy on some systems.
If this is the case, the issue is related to WORDPRESS (not ZenPress) and I'm sorry to say you'll have to wait for a fix from the WP team (hopefully in the upcoming version 2.1.3).

And now, for something completely different: thinkdreams, I fixed the urlencode issue with the function you suggested, and the fix will be in the next ZenPress version. In the meantime, I hope trisweb will be so kind as to give me his permission to use his piece of code in my plugin

That's all folks!

Developer
Developer
trisweb   10-03-2007, 02:57

Thanks Simbul -- you can definitely use my code ;-) It's GPL'd!

We also need to start talking about integrating this into the Zenphoto project, with further wordpress support like random image display, etc, starting to be included into one common plugin. Sound good?

Member
Member
miriam   11-03-2007, 06:01

Simbul wrote: If this is the case, the issue is related to WORDPRESS (not ZenPress) and I'm sorry to say you'll have to wait for a fix from the WP team (hopefully in the upcoming version 2.1.3).

I came to the same conclusion. Let's hope the WP 2.1.3 will fix it.

Groeten, this time from Las Vegas, Miriam

Member
Member
edasque   12-03-2007, 14:14

Do zp and wp need to be hosted on the same database ? Is there a way around this ?

Member
Member
thinkdreams   12-03-2007, 14:32

@esdasque-

Nope. You don't have to have zp and wp on the same database. I've got mine running on two separate mysql DBs and it works fine.

They can be if you want, but then you get into messing with prefixes, and it gets confusing....

Member
Member
edasque   12-03-2007, 14:40

Hmmm, then I don't know where this issue comes from. After selecting an album, blank image thumbnails appear and the following SQL errors:

WordPress database error: [Table 'zenphoto.wp_options' doesn't exist]
SELECT option_value FROM wp_options WHERE option_name = 'zenpress_custom_width' LIMIT 1

WordPress database error: [Table 'zenphoto.wp_options' doesn't exist]
SELECT option_value FROM wp_options WHERE option_name = 'zenpress_custom_height' LIMIT 1

This is a screen grab of the SQL errors and empty thumbnails:

http://www.generalmagic.org/gallery/albums/Others/Linked%20To/zp_error.jpg

(WP 2.1.2 with Zenpress 1.2.2 and ZP 1.0.8.2)

Member
Member
EdnaGarrett   13-03-2007, 09:39

trisweb wrote:

Thanks Simbul -- you can definitely use my code ;-) It's GPL'd!

We also need to start talking about integrating this into the
Zenphoto project, with further wordpress support like random image
display, etc, starting to be included into one common plugin. Sound good?

sounds VERY good!

Member
Member
Simbul   14-03-2007, 23:26

@edasque: il seems like Wordpress is trying to access its database using the Zenphoto database name. A misconfiguration of WP, maybe?

Member
Member
onetr1p   15-03-2007, 04:20

I would like to use lightbox, but it would take forever to edit every thumb I insert to include rel="lightbox". Is there a way to modify the zenpress code so that it automatically inserts the lightbox tag when the thumb is inserted?

Member
Member
onetr1p   15-03-2007, 09:02

Please disregard previous post. The problem is the thumb links to the gallery url instead of the actual image, so light box can't pull up the image.

Member
Member
edasque   15-03-2007, 15:56

@Simbul: if it was so, wouldn't wordpress not work at all ?

Member
Member
edasque   16-03-2007, 15:01

@Simbul: Well, I still can't figure it out. All the other options seem to be found but that custom zenpress_custom_height and weight. It has something to do with the default. My settings were empty in the config for those and somehow because of that it went to get them in the zp database. Something odd is at bay there.

Additionaly, zenpress is not compatible with sub-albums (with mod_rewrite) as it is. I was able to make it work by removing the url_encode for the mod_rewrite style image URLs. It seems to work fine even with album names that have spaces in them but I haven't done extensive testing.

Member
Member
thinkdreams   16-03-2007, 15:37

@edasque

The second part of your question is fairly easy to solve. If you look about six or seven posts above, you'll note that the subalbums thingie was fixed using pathurlencode and will be releasing soon in a new zenpress version. In the meantime, just replace urlencode with pathurlencode in your zenpress files (you already know where it looks like) and it should work fine. pathurlencode is a built-in zenphoto function. You can remove it as well, but I don't know what effect that will have on every possible variation in album names.

Developer
Developer
trisweb   17-03-2007, 00:35

@edasque, my guess is some variable naming conflict, with Zenpress using a var name like $table or something and it overwriting one for WP. Simbul will have to take a look through the code and check for that...

Developer
Developer
trisweb   17-03-2007, 00:36

Also, I'm closing this topic, as it's getting too long. Reopening another one with the same name and "Part 2" after it.

Pages (10):    1 6 7 8 9 10
  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.