Forum Replies Created
-
can you post lines 60-65 here please
In reply to: Help! “newbie” bbpress problemsok, for the participants trashing topics, install
once activated go to
dashboard>settings>bbp style pack>Topic/Reply Display items 17,18,& 19
On the widgets, install
the ‘widget logic plugin’, and on pages you want the widget, useis_bbpress()
in the condition
In reply to: Denied ‘Participant’ User Role to DashboardI think this should work
add_action('after_setup_theme', 'remove_admin_bar'); function remove_admin_bar() { $user_id = get_current_user_id() ; $role -= bbp_get_user_display_role($user_id) ; if (role == 'bbp_participant' { show_admin_bar(false); } }
put in your functions file or use the code snippets plugin
so it lists
forum
sub forum(s)
topics from forumyes ?
In reply to: Forums Display Custom Menucontact me via
In reply to: Delete “Header”thanks for your kind comments – much appreciated !!
In reply to: Forums Display Custom Menutry
add_action( 'bbp_template_before_forums_loop', 'rew_add_custom_menu' ); add_action( 'bbp_template_before_topics_loop', 'rew_add_custom_menu' ); function rew_add_custom_menu () { echo '<a href= "https://bbpress.org/forums/">customs menu area</a>' ; }
In reply to: Display topic list of a specific forumwhat is the issue with your code above?
In reply to: Forums Display Custom Menuuntested but add this to your functions file or use code snippets plugin
add_action( 'bbp_template_before_forums_loop', 'rew_add_custom_menu' ); add_action( 'bbp_template_before_topics_loop'', 'rew_add_custom_menu' ); function rew_add_custom_menu () { echo 'your link here' ; }
In reply to: Reply to postsok, so
1. Save the attached code to your pc, as a new file called reply.js
2. Create a directory on your theme called ‘js’, and copy the renamed file reply.js to it, so that you end up with wp-content/themes/%my-theme%/js/reply.jswhere %my-theme% is the name of your theme
Let me know if this works
addReply = { moveForm : function(replyId, parentId, respondId, postId) { var t = this, div, reply = t.I(replyId), respond = t.I(respondId), cancel = t.I('bbp-cancel-reply-to-link'), parent = t.I('bbp_reply_to'), post = t.I('bbp_topic_id'); if ( ! reply || ! respond || ! cancel || ! parent ) return; t.respondId = respondId; postId = postId || false; if ( ! t.I('bbp-temp-form-div') ) { div = document.createElement('div'); div.id = 'bbp-temp-form-div'; div.style.display = 'none'; respond.parentNode.insertBefore(div, respond); } reply.parentNode.insertBefore(respond, reply); if ( post && postId ) post.value = postId; parent.value = parentId; cancel.style.display = ''; cancel.onclick = function() { var t = addReply, temp = t.I('bbp-temp-form-div'), respond = t.I(t.respondId); if ( ! temp || ! respond ) return; t.I('bbp_reply_to').value = '0'; temp.parentNode.insertBefore(respond, temp); temp.parentNode.removeChild(temp); this.style.display = 'none'; this.onclick = null; return false; } try { t.I('bbp_reply_content').focus(); } catch(e) { } return false; }, I : function(e) { tinymce.execCommand('mceFocus',false,'bbp_reply_content'); } }
In reply to: check if on forums directoryso you are fixed?
In reply to: check if on forums directoryis_bbress() tells you if you are in forums/topics
In reply to: Delete “Header”best way would be to edit the templates
loop_forums
loop-single-forum
loop-topics
loop-single-topiccreate a directory on your theme called ‘bbpress’
ie wp-content/themes/%your-theme-name%/bbpresswhere %your-theme-name% is the name of your theme
find
wp-content/plugins/bbpress/templates/default/bbpress/loop-forums.php
Make a copy of this file, and put in in the directory called bbpress that you created above, so you end up with
wp-content/themes/%your-theme-name%/bbpress/loop-forums.php
bbPress will now use this template instead of the original
and you can amend thisthen repeat for the others
and for the reasons stated in the article about using widgets
because that is how the developers chose to write this free software
In reply to: Display correct counter2 things occur
1. this is the code in the template
<li class="bbp-topic-voice-count"><?php bbp_topic_voice_count(); ?></li> <li class="bbp-topic-reply-count"><?php bbp_show_lead_topic() ? bbp_topic_reply_count() : bbp_topic_post_count(); ?></li>
2. these functions are looking for id so maybe
<?php $post_id=get_the_ID() ; ?> <li class="bbp-topic-voice-count"><?php bbp_topic_voice_count($post_id); ?></li> <li class="bbp-topic-reply-count"><?php bbp_show_lead_topic($post_id) ? bbp_topic_reply_count($post_id) : bbp_topic_post_count($post_id); ?></li>
untested, but you get the idea
In reply to: Reply to postsdashboard>settings>forums and allow threaded replies
In reply to: Display topic list of a specific forumsure it’s in
\bbpress 2.5.13\includes\common\shortcodes.php
In reply to: Display topic list of a specific forumBut when I try to use <?php echo do_shortcode( ‘[bbp-single-forum id=123]‘ ); ?> it’s a mess.
without knowing what ‘it’s a mess’ means, not sure I can help – do you have a link to the site?
In reply to: Guest Users Can’t See Original Postlink to your site ?
In reply to: Customizing the welcome emailthis is wordpress, several plugins available
In reply to: “Fatal error: Uncaught Error” only for forumswhat version of bbpress are you running?
In reply to: Make All Forum Pages Full WidthThe problem is that themes do not use the wordpress template standards – in many cases for good reasons, but bbpress cannot understand every theme.
I presume you have been here
In reply to: Internal server errorcontact me via