Forum Replies Created
-
In reply to: reply list does not show
maybe a theme or plugin issue
Plugins
Deactivate all but bbpress and see if this fixes. if it does, re-enable one at a time to see which is causing the error.
Themes
If plugins don’t pinpoint the problem, as a test switch to a default theme such as twentytwelve, and see if this fixes.
In reply to: Menu link to Profile@netweb thanks for posting that, thought there would be but couldn’t find it offhand.
@mathijs-lemmers ok so try<meta http-equiv="refresh" content="0;URL=http://mysite.com/forums/users/<?php global $current_user; get_currentuserinfo(); echo sanitize_file_name($current_user->user_login). ""; ?>/edit/">
the plugin
https://wordpress.org/plugins/bbp-private-groups/
should do that, just set private forum visibility to on, and non registered users will see the forums, but only registered users with that group set will see the topics
In reply to: Menu link to Profileok try this, which should tidy most usernames
<meta http-equiv="refresh" content="0;URL=http://mysite.com/forums/users/ <?php global $current_user; get_currentuserinfo(); $string = $current_user->user_login ; //Lower case everything $string = strtolower($string); //Make alphanumeric (removes all other characters) $string = preg_replace("/[^a-z0-9_\s-]/", "", $string); //Clean up multiple dashes or whitespaces $string = preg_replace("/[\s-]+/", " ", $string); //Convert whitespaces and underscore to dash $string = preg_replace("/[\s_]/", "-", $string); return $string; echo $string . ""; ?>/edit/">
No problem.
One I’ve been playing with
In reply to: User settings missinggreat – glad you’re fixed !
In reply to: Full Width Forum Helpok, I’m close to giving up on this – not that I’m not interested in fixing it, but it is just taking too much of my time.
can you post your full current bbpress.php
Great – glad you’re fixed !
In reply to: Splitting forum into two pages.Hey great – I just took a look and now see what you were trying to do, glad you’re fixed đ
yes that’ll do it, put the ‘or’ in and it should be fine eg
<?php $displayed_user = bbp_get_reply_author_id() ; $role = bbp_get_user_role( $displayed_user); if ( bbp_is_user_keymaster($displayed_user) || $role == 'bbp_moderator' ) { echo " <div class=\"reply-author-role\">"; echo bbp_reply_author_link( array( 'show_role' => true, 'type' => 'role' ) ); echo "</div>"; } else { } ?>
The || is an ‘or’ argument, so the if line says ‘if user is keymaster or (||) moderator’ then…
The else is not really needed, as I presume you’ll do nothing, as you only want it to display if…
Come back and let us known that it worked.
In reply to: Splitting forum into two pages.I would love to help, but simply cannot fathom what you are trying to do.
I’m not sure if ‘user review category and subforums” is the same as âuser review forum + categories’or if these are different, and where they are in nay case
I can’t see a forum called ‘user reviews’ and no subforums for that
The link astronomertalk.com/reviews. takes me to a login page
the link astronomertalk.com/review goes to a 404 page
and I’m not sure quite what you’re talking about when you say you want to get rid of the forum/main page – do you mean astronomertalk.comCan you come back with a more detailed question, with not only a link nut what is either there (and where on the page eg ‘under headingxx’) or not there that you would like
The answer is probably yes we can, when I know what the can is đ
wasn’t setting who the user was ! Try
function role_show () { $displayed_user = bbp_get_reply_author_id() ; $role = bbp_get_user_role( $displayed_user); if ( bbp_is_user_keymaster($displayed_user) ||$role == 'bbp_moderator') $args['show_role'] = true ; else $args['show_role'] = false ; return $args ; } add_filter ('bbp_before_get_reply_author_link_parse_args', 'role_show' ) ;
ok, i’ll load it on my test site
untested but the following bar typos should work – add to your functions file
function role_show () { $role = bbp_get_user_role( $user_id ); if ( bbp_is_user_keymaster() ||$role == 'bbp_moderator') $args['show_role'] = true ; else $args['show_role'] = false ; return $args ; } add_filter ('bbp_before_get_reply_author_link_parse_args', 'role_show' ) ;
In reply to: Full Width Forum Helpok, after the line
<?php do_atomic( âafter_mainâ ); // oxygen_after_main ?>
add
<?php get_sidebar( âsubsidiaryâ ); // Loads the sidebar-subsidiary.php template. ?>
The addition of the new User Management screen for adding users to groups (instead of having to go to each profile) is handy, though.
Great, glad you like that !
In reply to: BBP Results Showing in WordPress searchgreat, glad you are fixed !
In reply to: BBP Results Showing in WordPress searchbbpress sets the post_type =
array( bbp_get_forum_post_type(), bbp_get_topic_post_type(), bbp_get_reply_post_type() );so if post type = that, then you know you are in a forum search, so you could add a line in your filter to check if $query->post_type equals array( bbp_get_forum_post_type(), bbp_get_topic_post_type(), bbp_get_reply_post_type() ) then just return query?
Thanks for that, very useful – if 2.6 doesn’t fix, I’ll revisit – I originally wrote the plugin just for bpress, but given a significant number who use buddypress with it, that would be useful if it isn’t going to be made redundant by 2.6.
In reply to: Password protecting forums?On individual topics and replies, this is not possible without additional coding, and I’m not aware of any.
The ‘normal’ way would be
For participants (we are talking bbpress roles here eg participant, moderator, keymaster etc. rather than wordpress roles editor, author etc., as bbpress restricts to bbpress roles )
then create a forum, set it’s status to private, and put all topics in there
For author, editor set these people to be moderators under bbpress, and again set a forum up, but this time set it to hidden, and put topics (and replies) in there
(for some reason you assign a group to a user instead of a user to a group, which means a user can not belong to more than one group â so, not ideal unless you have mutually exclusive groups).
That was just the way I happened to write it – but since you can assign forums to multiple groups, I’m not sure what you cannot achieve? Do give feedback, as if I’m missing a trick I ought to think about it ! đ
In reply to: Full Width Forum Helpok, so what happens at the moment is that the bbpress.php calls the footer.php at the bottom of it.
The footer in turn calls the sidebar (this is an annoying habit that theme developers have started doing, sidebars should be called in theme pages not in footers aggghhh!).
so what we’ll do in bbpress.php is simply take out the call to the footer, and put the footer code minus the sidebar into the bbpress.php
so in bbpress.php remove the line which says
<?php get_footer(); // Loads the footer.php template. ?>
Then put this code in it’s place
</div><!â .content-wrap â> <?php do_atomic( âclose_mainâ ); // oxygen_close_main ?> </div><!â #main â> <?php do_atomic( âafter_mainâ ); // oxygen_after_main ?> <?php do_atomic( âbefore_footerâ ); // oxygen_before_footer ?> <div id=âfooterâ> <?php do_atomic( âopen_footerâ ); // oxygen_open_footer ?> <div id=âfooter-contentâ class=âfooter-contentâ> <?php echo apply_atomic_shortcode( âfooter_contentâ, hybrid_get_setting( âfooter_insertâ ) ); ?> </div> <?php get_template_part( âmenuâ, âsubsidiaryâ ); // Loads the menu-subsidiary.php template. ?> <?php do_atomic( âfooterâ ); // oxygen_footer ?> <?php do_atomic( âclose_footerâ ); // oxygen_close_footer ?> </div><!â #footer â> <?php do_atomic( âafter_footerâ ); // oxygen_after_footer ?> </div><!â .wrap â> </div><!â #container â> <?php do_atomic( âclose_bodyâ ); // oxygen_close_body ?> <?php wp_footer(); // wp_footer ?> </body> </html>
Come back with what that does !
In reply to: Random Topic LinkAbsolutely you can, once in the edit screen of the page, switch to ‘text’ from ‘visual’ (top right of the content box), and paste
echo '<a href="/?random=1">Random Post</a>' ;
in there
In reply to: Trouble getting startedok, could be a number of issues
start with theme and plugin as it could be a theme or plugin issue
Plugins
Deactivate all but bbpress and see if this fixes. if it does, re-enable one at a time to see which is causing the error.
Themes
If plugins don’t pinpoint the problem, as a test switch to a default theme such as twentytwelve, and see if this fixes.
Then look at the documentation to see what else you might need to do