Welcome to Geeklog, Anonymous Thursday, February 29 2024 @ 02:07 pm EST

Geeklog Forums

"Show only in topic" default


Status: offline

smith

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

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
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
 Quote

Status: offline

smith

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
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
Wrong variable. It's 'frontpagecode', not 'statuscode'.

bye, Dirk
 Quote

Status: offline

smith

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
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
My bad. 'frontpage' is correct ('frontpagecodes' is the name of the database table holding the text for the dropdown menu). Sorry. Oops!

bye, Dirk
 Quote

grizel

Anonymous
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"?
 Quote

Jon Lawrence

Anonymous
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.
 Quote

Status: offline

jlawrence

Forum User
Chatty
Registered: 12/30/04
Posts: 49
Location:Plymouth, Devon, UK
Ok, I've managed to get this to work at last Smile
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

www.plymouthcricketclub.com - providing cricket for all ages in the Plymouth area.
 Quote

All times are EST. The time is now 02:07 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