Posted on: 12/17/03 02:10pm
By: smith
I would like to change the default mode in "story editor" from "comments enabled" to "comments disabled" and "shown on frontpage" to "show in topics only". thanks for the help.
Re:"Show only in topic" default
Posted on: 12/17/03 02:27pm
By: Dirk
// Allow / disallow comments to stories by default (can be changed individually for every story)
$_CONF['comment_code'] = 0; // 0 = comments enabled, -1 = disabled
There's no such setting for "show in topic only", though. You would have to change that in admin/story.php directly.
bye, Dirk
Re:"Show only in topic" default
Posted on: 12/17/03 02:53pm
By: smith
Thanks for the info Dirk. I changed the default comment mode to disabled OK, but I still can't change the Show on frontpage mode. I have tried changing $A['statuscode'] variable from 1 to 0. but it didn't work. Any other ideas.
-Joe
Re:"Show only in topic" default
Posted on: 12/17/03 03:16pm
By: Dirk
Wrong variable. It's 'frontpagecode', not 'statuscode'.
bye, Dirk
Re:"Show only in topic" default
Posted on: 12/17/03 03:22pm
By: smith
I figured it out. I just added the following code to admin/story.php. there was no entry for 'frontpagecode'
$A['frontpage'] = 0
-Joe
Re:"Show only in topic" default
Posted on: 12/17/03 03:33pm
By: Dirk
My bad. 'frontpage' is correct ('frontpagecodes' is the name of the database table holding the text for the dropdown menu). Sorry.
bye, Dirk
"Show only in topic" default
Posted on: 12/09/04 11:03am
By: Anonymous (grizel)
I couldn't get this fix to work, a year later on current version is there anyway to set the deafult to "Show in Topic only" instead of "Show on Frontpage"?
"Show only in topic" default
Posted on: 12/30/04 10:03am
By: Anonymous (Jon Lawrence)
Hi,
I'm also unable to get this to work.
I've tried adding $A['frontpage'] = 0; to various areas of story.php but nothing changes.
There must be a way of doing this, but at the moment I can't find it.
"Show only in topic" default
Posted on: 12/30/04 11:49am
By: jlawrence
Ok, I've managed to get this to work at last
I added the following:
$A['frontpage'] = 0;
at lines 190 & 164 of admin/story.php ie after the $A['featured']
This seems to work well. Both stories that need moderating and those that don't appear to be set to 'show in topic only' as default.
Regards,
Jon