Welcome to Geeklog, Anonymous Friday, June 14 2024 @ 09:23 am EDT

Geeklog Forums

How to remove something from story.php?


One more by me Smile How can I remove the following from story.php?mode=edit : 1. hour minute and am/pm , or at least switch to 24 h time 2. topic (there is only one topic on site) 3. type 4. comments 5. featured 6. show on front page 7. post mode (how to make plain text default?) 8. all access rights text and boxes If I remove it from theme I get errors. So how to remove it and make GL take default values like it won't show you time to choose but it would record time when message is sent, or access rights would be one you get anyway (I just don't want to confuse users with that since it's kind a portal for elders). Thanks

Status: offline


Site Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
You can't just remove those from the template - you need to at least replace them with a hidden field that sets a default value. The post mode should be picked up from the setting in config.php: $_CONF['postmode'] = 'plaintext'; 24 hour mode is not possible at the moment. Yes, it annoys me, too. Someone sent me a hacked-up version of Geeklog 1.3.6 that supports 24 hour times, but it requires a lot of changes all over the place. I'll see if I can incorporate that into future versions of Geeklog (I'd like to have it, too), but I don't want to make any promises on this issue ... bye, Dirk


Thanks Dirk Smile Since I'm not into php and stuff, can anyone give me example how to replace some option in template with hidden field that sets a default value? And for post mode, even if plaintext is set in config.php when submiting a story from admin/story.php?mode=edit it always preselects "html formatted". Thanks

All times are EDT. The time is now 09:23 am.

  • 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