ZenphotoCMS Forum
printCommentForm() - Printable Version

+- ZenphotoCMS Forum (https://forum.zenphoto.org)
+-- Forum: Support (https://forum.zenphoto.org/forum-1.html)
+--- Forum: Plugins (https://forum.zenphoto.org/forum-6.html)
+--- Thread: printCommentForm() (/thread-13917.html)

Pages: 1 2 3 4


printCommentForm() - Mazurki - 18-02-2024

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




printCommentForm() - fretzl - 18-02-2024

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




printCommentForm() - Mazurki - 18-02-2024

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




printCommentForm() - fretzl - 19-02-2024

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




printCommentForm() - Roland - 19-02-2024

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.




printCommentForm() - Mazurki - 19-02-2024

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




printCommentForm() - fretzl - 20-02-2024

What theme are you using?




printCommentForm() - Mazurki - 20-02-2024

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




printCommentForm() - fretzl - 20-02-2024

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




printCommentForm() - Mazurki - 21-02-2024

{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]