Member
Member
wibbi   2018-03-15, 17:08
#1

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.

Administrator
Administrator
acrylian   2018-03-15, 18:09
#2

The comment_form plugin has those general options. If you don't want comments disable the plugin.

Member
Member
wibbi   2018-03-15, 18:48
#3

The comment_form plugin is always disable. It was disabled before i run the first detection scan. But, all have a "1" in the database.

Administrator
Administrator
acrylian   2018-03-15, 18:51
#4

If it is disabled you don't have to care about comments. The value in the database does not matter then naturally. Again the plugin has the general option which of course can be overridden by individual settings that then must be changed individiually.

Member
Member
wibbi   2018-03-15, 19:39
#5

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.

Member
Member
wibbi   2018-03-15, 20:55
#6

Aha! That's a database table row Standard setting. Set by the setup.php database table create.

Can you put an option in the setup for "comments" in general on/off? that was nice.

Question: For what is the column "closecomments"?

Administrator
Administrator
acrylian   2018-03-15, 21:05
#7

Why, no plugin, no comments… That's for, well, closed comments…

Member
Member
wibbi   2018-03-15, 21:19
#8

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".

Administrator
Administrator
acrylian   2018-03-15, 22:02
#9

If no further comments are allowed?

Keep existing but don't allow more.

Setup also includes lots of db code for updates from older versions.Can't answer such questions without digging into code which I lack a bit the time right now.

Member
Member
vincent3569   2018-03-16, 10:33
#10

hi
to manage comments you can:

  • disable comment_form plugin: you never have comments everywhere (neither enabled nor shown).
  • enable comment_form plugin and enable/disable comments for each kind of items (albums, images, news, pages) in admin>options>plugins>comment_form
    if a kind of items is disabled: you never have comments on that kind of item (neither enabled nor shown).
  • enable comments on each items (an album, an image, a news or a page)
    of course if the relevant kind of item is disabled, enable comments for an item has no effect.
    on official themes, if you disable comments on an item and there is no comments, comment form is shown as closed (on my themes, comment form is not shown, but it is my own design choice).
    if you disable comments on a item after a while and there is some comments, comment form is shown as closed, but comments are shown and nobody can add new comments.
  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.