ZenphotoCMS Forum
Comment fields auto submitting on page load - Printable Version

+- ZenphotoCMS Forum (https://forum.zenphoto.org)
+-- Forum: Support (https://forum.zenphoto.org/forum-1.html)
+--- Forum: General support (https://forum.zenphoto.org/forum-4.html)
+--- Thread: Comment fields auto submitting on page load (/thread-796.html)



Comment fields auto submitting on page load - brantwinter - 2006-09-10

Hi - I have goten ZenPress working with K2 by simply including the K2 headers and footers to a standard ZP template. I noe have the issue whereby whenever you view in image in image.php the comments section fires off and shows an validation error:

http://www.brantwinter.com/gallery/test2/0336520.jpg




Comment fields auto submitting on page load - Ilione - 2006-09-10

I just had a look and could see nothing wrong, did you fix it?

Dryan managed to integrate Zenphoto with K2 but I lost my copy of the files long ago and can't seem to get onto his site to dowload more.

http://www.zenphoto.org/support/topic.php?id=146 is the thread in case you're interested :o)

I just integrated my zp tables with my wp tables in phpmyadmin so that I could use it properly too!

I'm currenty using stop design but I want it to blend to my K2 style so bad lol Could you explain exactly what you did to integrate it? I'd be really grateful...


EDIT: I just see what you mean... the bright red error above the comment form. Maybe Dryan can help you too.

x




Comment fields auto submitting on page load - Ilione - 2006-09-10

Take a look here also:

http://www.zenphoto.org/support/topic.php?id=674

It's the zenphoto theme Stopdesign, but it integrates to your K2. Perhaps picking at it might help see where you're missing something?

x




Comment fields auto submitting on page load - brantwinter - 2006-09-10

yeah i am just mukking round wit the template now. It is still not working.




Comment fields auto submitting on page load - brantwinter - 2006-09-10

I got mine working in K2 without merging the db tables. I can post the method if you are interested.




Comment fields auto submitting on page load - Ilione - 2006-09-10

Yes! That would be excellent if you don't mind :o)

x




Comment fields auto submitting on page load - Ilione - 2006-09-10

I just heard from dryan regarding his ZenPhoto work and he hasn't got a copy any more either. So that's that!

x




Comment fields auto submitting on page load - trisweb - 2006-09-11

It's a problem with the $error variable that both ZP and Wordpress use. The easiest way to fix it would be to rename the variable in the template/comment-posting code. That's template-functions.php, line 100, and wherever the $error variable occurs in the theme's image.php. Just replace it with $zp_error or something.