Search Results for 'test'
-
AuthorSearch Results
-
March 20, 2017 at 1:20 am #182875
ljmac
ParticipantHi,
Before I begin, please don’t lecture me on why I should always use the latest WordPress version – let’s just say that I’m very well aware of all the usual arguments, but I’ve got a mountain of much better reasons why I don’t want to ‘upgrade’. And 3.7+ get all security updates anyway.
Anyway, I am currently successfully running 2.5.10 on WordPress 3.7.19. In the release notes for 2.5.11 you updated the minimum requirements from 3.6 to 4.2, and on the plug-in page specifies 4.7! Why does such a minor point release require such a huge jump in requirements? The only issue I have with 2.5.10 is the 3.8+-style icons (which would only require a minimum of 3.8 anyway).
March 17, 2017 at 1:40 pm #182836dayan89
ParticipantLatest reply link in sidebar widget leading to topic’s first page instead of latest reply. This is happeining only in one specific topic – http://prntscr.com/el6sac http://dailyfantasysports.ru/forum/topic/ponesli-sandali-mityu/#post-20932 Others are working fine. What’s the problem? Any idea?
March 16, 2017 at 1:28 pm #182818In reply to: error when updating to wp 4.7.2
whitecedar
ParticipantI created whole new copy of the site, I activated and updated one plugin at a time. Checkign each time to make sure things were still working properly.
The problem is only between bbpress and the latest version of wordress.
this is the error I get: Warning: ksort() expects parameter 1 to be array, object given in /home/blendics/staging/2/wp-content/plugins/bbpress/includes/core/template-functions.php on line 316
March 16, 2017 at 10:14 am #182813repyourhood619
ParticipantHey Robin and Kajzh, did you ever get this to work? I am having the exact same problem. the custom made role is showing up under the forum role dropdown on the user profile but when the profile is saved after selecting the new role it does the default message when no role is assigned “No Role For These Forums”. Robin I did what you suggested by deactivating plugins and changing the theme but to no avail. Please see the function below.
function np_add_custom_role( $bbp_roles ) { $bbp_roles['beta_tester'] = array( 'name' => 'Beta Tester', 'bbpress', 'capabilities' => bbp_get_caps_for_role( bbp_get_participant_role() ) ); return $bbp_roles; } add_filter( 'bbp_get_dynamic_roles', 'np_add_custom_role', 10 , 2 );
Thanks in advanced!
March 13, 2017 at 8:23 am #182752In reply to: Gravity Forms User Registration add “Participant”
dmayer5
ParticipantAwesome, just tested it, thank you!
March 13, 2017 at 8:05 am #182748In reply to: Stop all emails from bbpress
Pascal Casier
ModeratorIt must be a plugin somewhere that does this!
Have you tried installing a plugin like ‘Postman SMTP’ and check the logs ? In that plugin, in the advanced options there is also a way to change to TEST which (I suppose) will delete all emails before sending them out.
Keep us informed!
March 13, 2017 at 5:42 am #182745In reply to: Stop Email Notification
brettdarnesh
ParticipantI tried your suggested untested code
`function casiepa_fltr_get_forum_subscribers( $user_ids ) {
return array();
};
// add the filter
add_filter( ‘bbp_forum_subscription_user_ids’, ‘casiepa_fltr_get_forum_subscribers’, 10, 1 );`it’s not working for me π
I have an urgent matter where bbpress is sending our multiple emails not just from the recent activities of the day but from all notifications from the beginning of the whole forum. I’m not sure on how to stop the thing. People are being driven nuts
March 12, 2017 at 9:31 am #182732In reply to: Search form by forum ID
Robin W
Moderatoruntested, and may need you to debug it a bit but something like changing step 3 to read
/* * Search only a specific forum */ function my_bbp_filter_search_results( $args ){ //Get the submitted forum ID (from the hidden field added in step 2) $forum_id = sanitize_title_for_query( $_GET['bbp_search_forum_id'] ); $sub_forums = bbp_forum_get_subforums( $forum_id ); $args['post__in'] = $sub-forums ; return $args; } add_filter( 'bbp_before_has_search_results_parse_args' , 'my_bbp_filter_search_results' );
you may need to add the main forum into the sub-forum list/
March 11, 2017 at 5:07 pm #182719In reply to: Help with dynamic button positioning
Robin W
Moderatoruntested but try
add_action('bbp_template_before_pagination_loop','pmh_new_topic_button');
March 10, 2017 at 4:54 am #182691In reply to: Sidebar moved to bottom of the page
Robin W
Moderatorwithout seeing the site, this is like me saying to you ‘my car won’t start – what is wrong, but no you can’t see it”!
suggest you try as a test removing any functions in your child theme functions file to see if one is upsetting it, and if so put back one at a time.
If that doesn’t work, do the same for style.css – ie take out all styling and re-introduce.
If neither of those work, then suggest you look to your theme supplier or docs for anything you need to do in a child theme to make it compatible with the parent.
March 7, 2017 at 5:27 pm #182603In reply to: Stop Email Notification
Pascal Casier
ModeratorThis is bbPress, for BuddyPress you could check the BuddyPress forums π
Below just a quick idea to stop ALL email to subscribers, but UNTESTED:
function casiepa_fltr_get_forum_subscribers( $user_ids ) { return array(); }; // add the filter add_filter( 'bbp_forum_subscription_user_ids', 'casiepa_fltr_get_forum_subscribers', 10, 1 );
March 7, 2017 at 4:56 pm #182600In reply to: bbpress is not compatible with any SEO plugin
Pascal Casier
ModeratorI have just installed bbPress 2.5.12 and Yoast SEO 4.4 on a completely new WP 4.7.3. I have found the noindex the very first time on the standard /forums page, but after the following steps it seems I do get SEO info and I can fill keywords at forum level in /wp-admin.
- Install bbPress and activate
- Install Yoast SEO and activate
- In /wp-admin/options-reading.php make sure NOT to have the ‘Search Engine Visibility’ ticked
- Run the Yoast SEO configuration wizard from /wp-admin/admin.php?page=wpseo_dashboard#top#general and make sure to mark forums as ‘Visible’.
So at least Yoast SEO works.
If somebody else can do further testing, that would be great.
March 5, 2017 at 7:55 pm #182566In reply to: bbp_get_topic_last_reply_author Functions
dominikb
ParticipantWhat i am trying to do is, to add “Last reply from:” like its here in the Topic Info, i just want to include the avatar of the latest reply to it.
March 4, 2017 at 2:15 pm #182475In reply to: Forum topic issue
Robin W
Moderatorit may be a conflict ot 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 twentyfifteen, and see if this fixes.
Then come back
March 4, 2017 at 4:28 am #182431In reply to: Allow Participants to Trash / own Topics and Posts
sally
ParticipantHi Robin,
yes, when participant roles delete replies it works. I was thinking, when a participant delete a topic what he creates, and a lot of users reply to this, after he deletes, all the replies are as well deleted, made no sense.
Is it possible, to take out the possibility for participants to delete the topics? They should be only able to delete the replies of them
Regarding the Admin Role:
When i activate the Code in the Dashboard the following happens
1.) yes, thats correct. With activated code as Admin i cannot manage / access the Forums page and cannot create topics and replies, when logged in.
To test then, i opened in the same browser a second Tab and pasted the http://domain.com/forums link and refreshed the browser to see if it works there, but i still get redirected to the Homepage (Landing page)…
Also what is strange, under Dashboard – Admin Menu the Links Forums, Topics and Replies are complete missing …, when deactivating the code they appear again..
Regards
SallyMarch 3, 2017 at 12:19 pm #182420In reply to: bbp_get_topic_last_reply_author Functions
dominikb
ParticipantHello John,
thank you for your kind reply.My goal is to show the name (including link to user page) and the avatar of the user, who wrote the last reply in an infobox on top of the topic.
If you want to have a look at it: https://bewusstewelt.de/topic/test-2/.
Its still in progress at the moment. In the right box i want to include the information about the last reply.Looking at it, i just remember, that i still ned to find out, how to get the view count for the 2nd box done.
If you have some wisdom to share on this one also i would be very thankful.March 3, 2017 at 5:37 am #182411In reply to: bbp-messages
Ismail
ParticipantHello everyone,
Sorry but I just came to discover this thread, I am the author of bbp-messages and there’s now a major update made and it now supports Multisite, the problem that Stewart was reporting.
Also Stewart, the link
wordpress/members1/http:/localhost/wordpress/members1/
pretty much seems messed up, so it’s hard to tell whether it is bbP issue or configuration. I think you did not configure your testing environment quite well and also the bbPress link looks filtered by BuddyPress. Next time I’d suggest you edit your hosts file (c:\System32\drivers\etc\hosts
with admin permissions using notepad) and add a new entry127.0.0.1 bbpress.dev
nowbbpress.dev
will act like a normal domain and you wouldn’t run into issues while testing or migrating (all you can do is replace.dev
with.tld
in the db SQL file). Also add the virtual host for Apache http://stackoverflow.com/a/25203499/3910932Thank you Arutam and Robin you’re very helpful. I just wanted to point that this thread continues in wp-org plugin support forums https://wordpress.org/support/topic/messages-upgrade/
Best,
SamuelMarch 2, 2017 at 6:40 pm #182391In reply to: Allow Participants to Trash / own Topics and Posts
Robin W
Moderatorok, I’ve taken pity and kicked this round for an hour – I expect to be on your Christmas list !!!
This seems to work, although please do some testing for all roles, and check it out.
/*Customize the BBPress roles to allow Participants to trash topics*/ add_filter( 'bbp_get_caps_for_role', 'ST_add_role_caps_filter', 10, 2 ); function ST_add_role_caps_filter( $caps, $role ){ // Only filter for roles we are interested in! if( $role == bbp_get_participant_role() ) { $caps = array( // Primary caps 'spectate' => true, 'participate' => true, // Forum caps 'read_private_forums' => true, // Topic caps 'publish_topics' => true, 'edit_topics' => true, 'delete_topics' => true, // Reply caps 'publish_replies' => true, 'edit_replies' => true, 'delete_replies' => true, // Topic tag caps 'assign_topic_tags' => true, ); } return $caps; } /*then only allow participants to trash their own topics*/ add_filter( 'bbp_map_reply_meta_caps', 'ST_tweak_trash_meta_caps', 11, 4 ); add_filter( 'bbp_map_topic_meta_caps', 'ST_tweak_trash_meta_caps', 11, 4 ); function ST_tweak_trash_meta_caps( $caps, $cap, $user_id, $args ){ // apply only to delete_reply and delete_topic if ( $cap == "delete_reply" || $cap == "delete_topic" ){ // Get the post $_post = get_post( $args[0] ); if ( !empty( $_post ) ) { // Get caps for post type object $post_type = get_post_type_object( $_post->post_type ); //$caps = array(); // Add 'do_not_allow' cap if user is spam or deleted if ( bbp_is_user_inactive( $user_id ) ) { $caps[] = 'do_not_allow'; // Moderators can always edit forum content } elseif ( user_can( $user_id, 'moderate' ) ) { $caps[] = 'moderate'; // User is author so allow edit if not in admin } elseif ( user_can( $user_id, 'participate' ) && ( (int) $user_id === (int) $_post->post_author ) ) { $caps = array(); //$caps[] = $post_type->cap->delete_posts; // Unknown so do not allow } else { $caps[] = 'do_not_allow'; } } } // return the capabilities return $caps; }
Robin W
Moderatortry this – it should work but is untested
Please come back and let us know if it does or doesn’t
add_filter ('kal_get_user_role_map()' , 'bbp_get_user_role_map()' ) ; function kal_get_user_role_map() { // Get the default role once here $default_role = bbp_get_default_role(); return (array) apply_filters( 'kal_get_user_role_map', array ( 'administrator' => bbp_get_keymaster_role(), 'editor' => $default_role, 'author' => bbp_get_spectator_role(), 'contributor' => $default_role, 'subscriber' => $default_role ) ); }
This goes in your function file
February 26, 2017 at 2:49 pm #182242In reply to: /Forum and forum link in wp backend not working
Robin W
Moderatoras a test switch to a default theme such as twentyfifteen, and see if this fixes.
February 23, 2017 at 2:05 pm #182082In reply to: Block users from posting links
Robin W
Moderatoruntested, but this should make the filter only removed if they are not a keymaster
if ( !bbp_is_user_keymaster()) { remove_filter( 'bbp_get_reply_content', 'bbp_make_clickable', 4 ); remove_filter( 'bbp_get_topic_content', 'bbp_make_clickable', 4 ); }
February 23, 2017 at 3:12 am #182036In reply to: Last activity link name wrong
Fuskeduske
ParticipantHi Rtomo,
Is it possible for you to provide a administrator of a clone of the website? For testing purposes.
-Fuske
February 22, 2017 at 12:23 pm #182024Topic: reply link of lead-topic works very strangely
in forum Troubleshootingparmaker
ParticipantWhat I ve done:
1. installed bbpress plugin
2. added a filter bbp_show_lead_topic to do lead topic
3. added a filter bbp_has_replies_query to do DESC order
4. created a forum
5. created a topic under the forum
6. created a reply to the lead topic
7. repeatd 6. a couple of times by clicking Reply of topic-admin-links
8. created a reply to one of the replies created from 7., i.e. threaded reply.
9. got out of the forum, and revisited the forum, and clicked the topic to do a reply
a. clicked a link which is not the one of topic-admin-links, but reply-admin-links
b. but changed mind to click the one of topic-admin-links to the lead topic (remember !! having clicked the reply-admin-links, not clicking send button)
c. put some words into editor and Send
d. the reply is under the reply which was clicked at a., not the lead topicThe Reply topic-admin-links has
[reply] => <a href="#new-post" class="bbp-topic-reply-link">Reply</a>
and it is ok before any Reply of reply-admin-links is clicked.
href=”#new-post” is pointing correctly when no bbp_reply_to is, i.e. no reply of reply-admin-links was clicked.
The Reply of reply-admin-links has `[reply] => <a href=”/forums/topic/test-topic1/?bbp_reply_to=18&_wpnonce=1d17517a0b#new-post” class=”bbp-reply-to-link”
onclick=”return addReply.moveForm(‘post-18′,’18’,’new-reply-8′,’8′);”>Reply</a>`where 8 is the lead topic id, 18 is reply id
As far as reply-admin-links was clicked, href=”#new-post” of the Reply of topic-admin-links is meaning
/forums/topic/test-topic1/?bbp_reply_to=18&_wpnonce=1d17517a0b#new-post
I don’t know whether it is the way supposed to be.
Or did I miss anything ?
February 22, 2017 at 12:07 pm #182021Topic: Link problem with topic links
in forum TroubleshootingMikaKoi
ParticipantAny idea where is the problem? If I link some wp post to our forum itΒ΄s works fine, but if I link other topic, so the site header is coming with link and its go over on divs.
Check links so you understand what I mean:
https://www.2cv.fi/keskustelut/aihe/mika-testaa/#post-238260
February 17, 2017 at 5:34 am #181808In reply to: Is there an API for bbPress
-
AuthorSearch Results