Pages (2): 1 2   
Member
Member
Mazurki   18-02-2024, 00:26
#1

Hi, I'm a photograher building up a galery with ZenPhoto and I want users to be able to put comments under images, can you help me with this "Place a call on the function printCommentForm() in your script where you wish the comment items to appear. " So I have tried a few things in this string in the image.php . Can you tell me what and where to place the call.

     ?>

Many Thanks
Michel

Administrator
Administrator
fretzl   18-02-2024, 09:26
#2

That should work. You're sure the [i]comment_form[/i] plugin is enabled?

Member
Member
Mazurki   18-02-2024, 22:34
#3

Thanks for the answer, no it is not enable, how can I do so?
Thanks Again Michel

Administrator
Administrator
fretzl   19-02-2024, 08:00
#4

Go to: Admin —> Plugins —> check the box next to comment_form

Member
Member
Roland   19-02-2024, 09:59
#5

Shame on me, I forgot somes gettext on Collections,
if you are not a french user Mazurki,
you can change the line ;

echo 'Commentaires';

to

echo ''.gettext('Comments').'';

so you will get a localized string.

Member
Member
Mazurki   19-02-2024, 21:57
#6

Thanks fretzl & Roland for your delicacy,

I am french and it was already changded for
echo Commentaires/Comments,
my gallery is or will be 'Français/English' when published.

The plugin was alredy enabled and in Plugins/Active. I tought that enable meant activate the plugin like for Rating or other plugins

Administrator
Administrator
fretzl   20-02-2024, 08:10
#7

What theme are you using?

Member
Member
Mazurki   20-02-2024, 17:35
#8

I'm using Collections with these plugins; comment_form, contact_form, hitcounter, ipBloocker, mobileTheme, print_album_menu, rating, reCaptcha, rss, security_logger, seo_zenphoto, sitemap_extended and uploader_jQuery. May be some are not really necessary or useful?

Thanks
mazurki

Administrator
Administrator
fretzl   20-02-2024, 18:30
#9

Weird, it works for me.
Any errors in the logs?
BTW: the plugin mobileTeme is not needed.

Member
Member
Mazurki   21-02-2024, 01:49
#10

{2716853:Wed, 21 Feb 2024 00:38:56 GMT}

WARNING: mysqli::__construct(): (42000/1203): User photo698_zen82 already has more than 'max_user_connections' active connections in /home/photo698/galerie.photosmichel.com/dossier/zp-core/classes/class-dbmysqli.php on line 26

mysqli->construct called from dbMySQLi->construct (class-dbmysqli.php [26])

from require_once (functions-basic.php [219])

from i.php [35]

{2716853:Wed, 21 Feb 2024 00:38:56 GMT}

WARNING: mysqli::query(): Couldn't fetch mysqli in /home/photo698/galerie.photosmichel.com/dossier/zp-core/classes/class-dbmysqli.php on line 72

mysqli->query called from dbMySQLi->query (class-dbmysqli.php [72])

from dbMySQLi->querySingleRow (class-dbmysqli.php [98])

from dbBase->getVersionComplete (class-dbbase.php [633])

from dbBase->getVersion (class-dbbase.php [611])

from dbBase->hasUtf8mb4Support (class-dbbase.php [694])

from dbMySQLi->__construct (class-dbmysqli.php [38])

from require_once (functions-basic.php [219])

from i.php [35]

{2716853:Wed, 21 Feb 2024 00:38:56 GMT}

WARNING: mysqli_error(): Couldn't fetch mysqli in /home/photo698/galerie.photosmichel.com/dossier/zp-core/classes/class-dbmysqli.php on line 178

mysqli_error called from dbMySQLi->getError (class-dbmysqli.php [178])

from dbMySQLi->query (class-dbmysqli.php [83])

from dbMySQLi->querySingleRow (class-dbmysqli.php [98])

from dbBase->getVersionComplete (class-dbbase.php [633])

from dbBase->getVersion (class-dbbase.php [611])

from dbBase->hasUtf8mb4Support (class-dbbase.php [694])

from dbMySQLi->__construct (class-dbmysqli.php [38])

from require_once (functions-basic.php [219])

from i.php [35]

{2716853:Wed, 21 Feb 2024 00:38:56 GMT}

USER ERROR: mysqli Error: ( SELECT version() ) failed. mysqli returned the error in /home/photo698/galerie.photosmichel.com/dossier/zp-core/classes/class-dbmysqli.php on line 83

trigger_error called from dbMySQLi->query (class-dbmysqli.php [83])

from dbMySQLi->querySingleRow (class-dbmysqli.php [98])

from dbBase->getVersionComplete (class-dbbase.php [633])

from dbBase->getVersion (class-dbbase.php [611])

from dbBase->hasUtf8mb4Support (class-dbbase.php [694])

from dbMySQLi->__construct (class-dbmysqli.php [38])

from require_once (functions-basic.php [219])

from i.php [35]

Administrator
Administrator
acrylian   21-02-2024, 10:07
#11

That error means you mysql database server cannot handle the connections made. That can only be solve by rasing that limit on the server. All the others are follow ups errors of the first.t

This normally only happens on sites with really lots of traffic when the server cannot handle that.

Member
Member
Mazurki   21-02-2024, 18:59
#12

Thanks acrylian,

I have open a ticket with my Host awaiting a response.

I am wndering if this have a real impact on the fact that the comment_form plugin does not load or print on thje page?

Have a nice day
mazurki

Administrator
Administrator
acrylian   21-02-2024, 19:07
#13

Yes and no I would say. the site itself uses database requests even without the comment_form. But that of course uses an additional one at least to ge the existing comments. Could be that this is the one that exceeds your db server. But likely it is a general server things.

Do you have other sites on thesame account that perhaps "eat" server limits here? Do you have shared hosting? There is a huge differences in these hosts and plans. You don't need your own server or something if you have a "normal" site. The larger a site regarding albums and images the more power it certainly needs in general. Especially the more traffic you might get. Our own site is on shared hosting as well.

Administrator
Administrator
acrylian   21-02-2024, 19:12
#14

If your server is really reaching db limits too fast, also try the static_html_cache plugin. If you don't update that often use a long time frame until it updates itself.

Member
Member
Mazurki   21-02-2024, 19:23
#15

Yes in deed, this new gallery is on a subdomain...
I will wait to see their answer and decide what I will do according and might decide to go live even if gallery is not complete. Very anxious to be live!

I will keep in touch

Many thanks for your support
mazurki

Member
Member
Mazurki   25-02-2024, 02:46
#16

I am no longer on a subdomaine I am live on a clean fresh installation, I have also isntalled static_html_cache plugin and unfortunatly the comment_form is still not printing...
Thanks
mazurki
https://photosmichel.com/

Administrator
Administrator
fretzl   25-02-2024, 09:50
#17

Are comments activated for individual images?

https://www.zenphoto.org/screenshots/zenphoto-admin/album.jpg.html

Member
Member
Mazurki   25-02-2024, 20:30
#18

Thank you so much, it wors...
So simple finally.

Have a nice day
mazurki

Member
Member
Mazurki   27-02-2024, 02:28
#19

My comment_form has the Name field, the Email field and the comment block, when I hit submit the information is saved and the comment block empties but the other two don't. What to do so that they disappear at the same time. I tried several things but couldn't do it.
Many thanks
mazurki

Administrator
Administrator
fretzl   27-02-2024, 08:15
#20

That only happens when you are logged-in.
Nobody else will see it.

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