Forum Replies Created
-
In reply to: User capabilities : delete topics
haha, that never fails! And you will only have to modify the topics/capabilities and replies/capabilities, forget all other changes because aren´t necessary.
Have a good time!
In reply to: User capabilities : delete topics@robkk GREAT! your suggestions worked very well!
@martineva, Don´t you forget to modified again (back to original) the theme? themes/YOUR.THEME/bbpress/form-topic.php, where you commented the “stick” option? I think your error could be in this file. Maybe just a , or }? Don´t you have the original to check?In reply to: User capabilities : delete topics@martineva, the buttons delete and edit are shown but when you click it doesn´t work it is not your topic.
Thanks @robkk, I will try what you are suggesting.In reply to: User capabilities : delete topics@martineva, the error was mine, I copied wrong the second part.
The original is:
<p>
<label for=”bbp_stick_topic”> <?php _e( ‘Topic Type:’, ‘bbpress’ ); ?>
</label><br /><?php bbp_form_topic_type_dropdown(); ?>
</p>And you have to comment all that part, so add (without “) “<!–” before <p> and add (without “) “–>” after the </p>.
The correct final has to be:
<!–<p>
<label for=”bbp_stick_topic”> <?php _e( ‘Topic Type:’, ‘bbpress’ ); ?>
</label><br /><?php bbp_form_topic_type_dropdown(); ?>
</p>–>
This way the dropdown list for stickying will not be showed.I hope this help!
In reply to: User capabilities : delete topicsGood @martineva, but think that with an update this changes will disappear!
To delete tha “stick” option I modified two files, the form for a new topic and the template for the topics.1) The form (this depend on your theme, for mine was here): themes/YOUR.THEME/bbpress/form-topic.php, line 130 aprox. I commented the html part where the form show the sticky drop down list <!–<p><label for=”bbp_stick_topic”><?php _e( ‘Topic Type:’, ‘bbpress’ ); ?></label><br />
2) Topic templates: content/plugins/bbpress/includes/topics/template.php, line 2421 aprox. I commented the php for stick and for merge.
//’stick’ => bbp_get_topic_stick_link( $r ),
//’merge’ => bbp_get_topic_merge_link( $r ),When you update your theme, 1) will be stop working and you will have to do it again.
When you update bbpress, 2) will be stop working and you will have to do it again.
But for now, this is the only option I found.In reply to: User capabilities : delete topicsHi martineva! I am in the same situation and have the same problem, and tried the same as you without results.
The only way I could “solve” it, was modifying the capabilities for the default particpant role in the core of the plugin.
In the Primary caps I had to set moderate=true and then blocked all things that I don´t want the user do in the other options. Anyway I had to hardcode some other parts of the plugin because it inherits some moderator capabilities, eg. this user will be able to stick a topic.I know this is not the way to solve it but it is the only way I found. And like you, this is my first forum, and I am not a developer.
I hope we could find other way soon!
ps.) Sorry for my english, isn´t the best.