Forum Replies Created
-
In reply to: 500: post_status no array
didn’t know that 2.5.13 had been released, where did you get a copy?
your filter reads
add_filter( 'bbp_get_breadcrumb',mod_bbp_get_breadcrumb, 98, 2);it should read
add_filter( 'bbp_get_breadcrumb','mod_bbp_get_breadcrumb', 98, 2);you need single quotes around the 2nd function
In reply to: Profile URL – how to remove username from URLinteresting question
I think bbpress just uses the wordpress pretty permalinks, so might be worth trying this plugin to see if you can change the default
I’ve only read the page above, not tried it !
Please do report back if it works (or if it doesn’t)
In reply to: New user difficulty and log in problemsFirstly, when a user registers,
bbpress just uses wordpress, so it should work if qordpress is working.
Can you try using http://www.mysite.com/wp-login and see if that works.
Also, when a user logs in, in the login bbpress widget, it still shows the username and password login boxes, but if I go into a sub forum, the widget then shows the users details.
not sure what you mean here. On what page or post do you have this first widget?
In reply to: remove paragraph and breakok, a new page in a default theme has this
<div class="entry-content"> <div id="bbpress-forums">your page has this
<div class="entry-content"> <div style="clear: both"></div> <div class="the_champ_sharing_container the_champ_horizontal_sharing" super-socializer-data-href="https://www.lifeleap.org/community/"> <div class="the_champ_sharing_title" style="font-weight:bold">Share:</div> <ul class="the_champ_sharing_ul"> <li class="theChampSharingRound"> <li class="theChampSharingRound"> <li class="theChampSharingRound"> <li class="theChampSharingRound"> <li class="theChampSharingRound"> </ul> <div style="clear:both"></div> </div> <div style="clear: both"></div> <p> <br> </p> <div id="bbpress-forums">Don’t think it’s bbpress
In reply to: remove paragraph and breakso is this a page with
[bbp-forum-index]
in it?
In reply to: remove paragraph and breakseems to be something in your page layout within entry content.
How is that page constructed?
what puts the social icons in?
In reply to: Customize Text or change languagegreat !!
In reply to: New updategreat – glad you are fixed
In reply to: Customize Text or change languagewithout knowing how you are currently displaying them (what functions) then hard to say. I can probably do something if I know how it is done currently
In reply to: Customize Text or change languageif you need something bespoke, email me
In reply to: Customize Text or change languageok, for bbpress roles, then my style pack plugin will let you change role names (and a whole lot more)
go to settings>bbp style pack>forum roles
In reply to: Customize Text or change languageSubscriber is normally a wordpress role and probably isn’t viewed as ‘text’, it will be taken from a function.
are yours showing on the forum pages?
In reply to: bbpress Compatibility Issuecontact me via my email address in
In reply to: bbpress Compatibility Issuemy whole site is breaking i.e the graphics are breaking
ok, hard to work out what is wrong from the description.
whole site = every page including home opage?
graphics are breaking = what can you state exactly what is breaking?a link to a screen shot would be good
In reply to: Adding profile link to Menugreat – sorry I missed the 10,2 in my original post !!
In reply to: disable bbp email sending for custom role?ok, this is untested for functionality, but doesn’t error
add_filter( 'bbp_get_topic_subscribers', 'rew_filter_subscrbers' ); add_filter( 'bbp_get_forum_subscribers', 'rew_filter_subscrbers' ); function rew_filter_subscribers ($users) { $role = 'my_custom_role' ; $filtered_ids = array(); foreach ( (array) $users as $user_id ) { $user_info = get_userdata($user_id); $user_roles = $user_info->roles ; if (!in_array ($role, $user_roles)) { array_push($filtered_IDs, $user_id); } } return $filtered_ids ; }Do you know how to put this in to your child theme’s functions file?
If so you will need to change my_custom_role in this line
$role = 'my_custom_role' ;to the role name that you are using
If you don’t know how to use functions file, then come back
In reply to: disable bbp email sending for custom role?ok let me look later to see if there is an easy filter we can apply
In reply to: New updateSuspect you are now using php 7.1
so 3 fixes
1. downgrade to a lesser version of php
2. upgrade to bbpress 2.6beta-2
3. in bbpress 2.5.12 change line 1851 from
$meta_query = $posts_query->get( ‘meta_query’ );
to
$meta_query = $posts_query->get( ‘meta_query’, array() );
Since the next upgrade will fix that anyway, no issue in changing the bbpress file
best I can offer I’m afraidIn reply to: disable bbp email sending for custom role?If you know when a user does this then if you install
you can go to users>user>subscriptions and unassign them from all forums and topics with a couple of clicks
In reply to: Adding profile link to Menuprobably this should work
// Filter wp_nav_menu() to add profile link add_filter( 'wp_nav_menu_items', 'my_nav_menu_profile_link' ); function my_nav_menu_profile_link($menu , $args) { if (is_user_logged_in() && $args->theme_location == 'primary') { $current_user = wp_get_current_user(); $user=$current_user->user_nicename ; $profilelink = '<li><a href="/forums/users/' . $user . '/edit">Edit Profile</a></li>'; $menu = $menu . $profilelink; } return $menu; }In reply to: bbpress Compatibility Issuegreat – thanks for posting back what you did to fix – so many don’t !!
In reply to: BBPress and WordPress Social Login 2.3.3bbpress uses the worpress login, so that should all work, Just make sure you set the default role to participant in the settings>forums
and to clarify from the WSL documentation
WSL will take the user in a short journey to the selected social network to ask for his permission to access his profile. If he does, and if everything goes as expected, WSL will create a new account for the user if he doesn’t have one already, authenticate him within WordPress, then redirect him back to where he come from.
so it should work.
The user should be allocated the participant role on first login
Just yelling back at me like I am some dumbass that you don’t want something doesn’t get us any further forward.
Now if this isn’t working and you have checked my original suggestion then do please come back with a polite response and I will be delighted to help further.
In reply to: show only if it applies to reply authornot exactly sure what you are after, but try this code and play with it
put this in your functions file – you don’t need to alter any templates
add_action ('bbp_theme_after_reply_author_details', 'rew_display'); add_action ('bbp_theme_after_topic_author_details', 'rew_display'); //main function to display function rew_display () { global $reply_id ; $author_id=bbp_get_reply_author_id( $reply_id ) ; $user = Am_Lite::getInstance()->getUser(); $some_match = Am_Lite::getInstance()->haveSubscriptions(364)) if ($author == $user && $some_match == "hello" ) { echo '<div class = "rew_display">' ; echo '<ul>' ; echo '<li>' ; echo "I've donated" ; echo '</li>' ; echo '</ul>' ; echo '</div>' ; } }Come back if I can help clarify
In reply to: BBPress and WordPress Social Login 2.3.3bbpress uses the worpress login, so that should all work, Just make sure you set the default role to participant in the settings>forums