I can not find a setting with which I can disable "Allow Comments". Each new album and photo is always created with "Allow Comments" (checked). There does not seem to be an option. Therefore, I ask where the database is written during the detection for it, so I can set it from current "1" to "0". That would be nice.
So I have to activate the plugin comments and disable the comments, so that a "0" is entered in the database? Well, not very logical.
Yes, if the plugin is disabled anyway, then no comments can be written anyway, but why then the "1" in the database? OK, maybe because "comments on" is standard.
Back to my question: I do not want to enable the plugin comments, so I disable the comments, so get a "0" in the database. Okay, you can say that I'm crazy, but I do not care. I would like to know at which point in the code the "1" is written in the database, so that I can make it a "0" to the standard.
If no further comments are allowed?
I found that and wonder why the column is created twice?
/zp-core/setup/index.php
[code] if (isset($create[$_zp_conf_vars['mysql_prefix'] . 'albums'])) {
$db_schema[] = "CREATE TABLE IF NOT EXISTS $tbl_albums (
...
commentson int(1) UNSIGNED NOT NULL default '1',
...
...
$sql_statements[] = "ALTER TABLE $tbl_albums ADD COLUMN commentson int(1) UNSIGNED NOT NULL default '1';";[/code]
Same for columns "pages" and "news".
hi
to manage comments you can: