I'm trying to remove (or, preferably, just HIDE) some of the options available to users of my site, and I can't figure out how.
Basically, I want to take the "Edit" and "Add New Chapter" options away from users under "Manage Story" - I don't want someone to be able to change their story around after it's been validated.
I'd also love to take away the chapter options - my site is restricted to single-chapter works, not multi-part, and having "add chapter" around just makes things confusing.
Is there any way I can do this? I've been poking around the Panels area, but I don't seem to see anything I can easily turn off. Do I need to go play around in the code for this?
Thanks from a newbie!
I think you'd have to edit the code in both cases.
I think you'd have to edit the code in both cases.
I managed to figure out how to make "Manage Stories" go away - hid the panel from everyone but admins - but I still can't strip out the unnecessary entry panes under "Add a Story."
Does anyone know what I have to remove from the code to get rid of "Add a Chapter" and things like that? I'd also really like to have it so that a story doesn't come up as "Chapter One" by Catchn, for example - just the name of the story and then the author, since there are no chaptered works...
In Settings > Display Settings make sure "use story index" is set to no. That should ensure clicking on a story title in like Browse goes right to the story text. I believe there's also a similar option in the user preferences so that each individual user can override this. To get rid of the add new chapter you'd have to edit the code. It's probably one of the files in the user folder.
Lastly, a word of caution. I was thinking about what would happen if I made it so that no one could edit their stories, and I think it would result in massive drama. Authors would probably feel as though I were taking control of their stories away from them. I understand why you are doing it, and maybe your community won't stress over it. I just know that the only way it would work for mine is if upon editing the stories were bumped back into the queue, which obviously would take some modding of the script. (Funny story though: as of right now due to hosting issues, no one actually can edit story text, though they can edit anything else saved in the database. But that's a non-permanent technical issue, so no one seems really upset about it.)
That worked for hiding the chapter index! Thank you!
I'm not too worried about upsetting people with not being able to edit their stories after they're posted - it's going to be a heavily moderated site. I guess I'll burn that bridge when I get there...!
I can't seem to find a TPL file that lets me strip out the fields for story notes, chapter title and chapter notes, etc. I tried the Printstory TPL, but that's not doing it, and nothing else seems to fit the bill. Am I going to have to take it out straight in the PHP? That's a little beyond my ability...!
Dang, I just want to have forms for "title," "summary," "categories," "rating," and the story text. That's all. I can't make the other fields go away!
Dangit. Removing the "manage stories" panel only removed that from the user profile. Users can still edit their story by clicking on it in their own profile. And of course, I think that capacity has to be removed in the PHP. Right, time to head over to the mod forum...
As far as I know the only way to get rid of the other fields is to edit the code. It would probably be easiest just to comment them out wherever the HTML for the form is created in the PHP. Probably in stories.php somewhere.
The various notes are in viewstory.tpl and storyindex.tpl. It may be that your skins don't have these .tpls. If they don't, copy them out of the default_tpls folder (leaving the ones in default_tpls intact) and into your skin folder and then edit them. There may be other .tpl files, too. So a good place to start to find out is here: https://efiction.org/wiki/index.php5?title=Creating_Skins_for_3.0
