Welcome to Geeklog, Anonymous Saturday, June 21 2025 @ 07:57 pm EDT
Geeklog Forums
"Show only in topic" default
Status: offline
Forum User
Newbie
Registered: 12/08/03
Posts: 5
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.
16
17
Quote
Status: offline
Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Text Formatted Code
// 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
15
18
Quote
Status: offline
Forum User
Newbie
Registered: 12/08/03
Posts: 5
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
-Joe
28
17
Quote
Status: offline
Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Wrong variable. It's 'frontpagecode', not 'statuscode'.
bye, Dirk
bye, Dirk
17
17
Quote
Status: offline
Forum User
Newbie
Registered: 12/08/03
Posts: 5
I figured it out. I just added the following code to admin/story.php. there was no entry for 'frontpagecode'
$A['frontpage'] = 0
-Joe
$A['frontpage'] = 0
-Joe
14
14
Quote
Status: offline
Site Admin
Admin
Registered: 01/12/02
Posts: 13073
My bad. 'frontpage' is correct ('frontpagecodes' is the name of the database table holding the text for the dropdown menu). Sorry.
bye, Dirk

bye, Dirk
19
13
Quote
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"?
20
15
Quote
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.
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.
14
18
Quote
Status: offline
Forum User
Chatty
Registered: 12/30/04
Posts: 49
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

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
14
22
Quote
All times are EDT. The time is now 07:57 pm.
- Normal Topic
- Sticky Topic
- Locked Topic
- New Post
- Sticky Topic W/ New Post
- Locked Topic W/ New Post
- View Anonymous Posts
- Able to post
- Filtered HTML Allowed
- Censored Content