Welcome to Geeklog, Anonymous Friday, November 08 2024 @ 08:39 pm EST
Geeklog Forums
How to remove something from story.php?
onetouch
Anonymous
One more by me 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
10
8
Quote
Status: offline
Dirk
Site Admin
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
8
6
Quote
onetouch
Anonymous
Thanks Dirk
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
10
5
Quote
All times are EST. The time is now 08:39 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