Search Results for 'test'
-
AuthorSearch Results
-
March 3, 2017 at 5:37 am #182411
In 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\hostswith admin permissions using notepad) and add a new entry127.0.0.1 bbpress.devnowbbpress.devwill act like a normal domain and you wouldn’t run into issues while testing or migrating (all you can do is replace.devwith.tldin 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-postI 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
tpsr51
ParticipantHi @casiepa.
Can you update the github repo with your latest updated version of the plugin?I would love to offer my changes and additions to it.
February 17, 2017 at 3:57 am #181797In reply to: Is there an API for bbPress
mapofemergence
ParticipantHi everybody,
I was actually starting a topic about this, a few days ago, but my post contains a bunch of links (more than 3) to help contextualize the discussion and it’s still pending approval.
If moderators can help with that, the link to the topic is:
https://bbpress.org/?post_type=topic&p=181440
(I hope it’s not a problem to link it here; in case, feel free to delete or edit this reply)I was trying to start writing a first version of a REST API too, as I missed the latest posts by Pascal. Also, I looked for existing code here:
https://github.com/ePascalC/bbp-API
but found only empty files. Am I missing something?Anyway, I downladed the plugin and checked the code there.
Mine differs a bit as I was using BP-REST as a starter: I saw they had an extensive discussion about how to frame the whole work and structure it for the longer term, so I thought it was a good idea to take that into consideration.If you think we might join efforts on this, let me know; I have limited time to invest on this but I’d be pleased to give my contribution whenever I can.
Cheers,
s t eFebruary 16, 2017 at 2:07 pm #181775Robin W
ModeratorIt 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
February 16, 2017 at 7:20 am #181766In reply to: Is there an API for bbPress
jpvanmuijen
ParticipantHi, this topic has been very helpful in getting the latest replies, thanks Barry & Robin!
I’m trying to get the topic of the last five replies and later on construct the URL using the topic URL and reply # (kinda like Robin’s shortcode plugin does), but I can’t figure out how to do this.
I changed $author_id = get_post( $single_item[‘id’] )->post_author to $topic_id = get_post( $single_item[‘id’] )->topic hoping it would return the topic ID, but no luck. Is there a way to retrieve how to target this field?
Thanks again!February 15, 2017 at 5:19 pm #181746In reply to: Users can’t see the own topics
Robin W
ModeratorIt 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
if it looks like a theme issue then try
or
February 15, 2017 at 2:36 pm #181744In reply to: error when updating to wp 4.7.2
Robin W
Moderatoryes it will get your admin back.
Then :
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
February 15, 2017 at 4:28 am #181713phil49
ParticipantHi Robin,
Don’t know where your’re in the progress of your tests, but I noticed that the “What the file” plugin I couldn’t see for more than a day just turned up today but on another profile I’ve created for my friend that will take care of the site once all the issues with the forum part are solved!
Really weird!?
Yet it doesn’t display in my admin profile !!!
Anyway, I could find out thanks to this plugin that this is the “page.php” template which is being used on the page listing all the forums and the “bbpress.php” for each forum !
Yet, when I select it through this plugin, changes I made on the model in the theme child I had created are present :
<div class=”wrap page-full-width“>
<div id=”primary” class=”content-area-wide“>
<main id=”main” class=”site-main” role=”main”><?php
But I guess this has more to do with Twenty seventeen subtleties or the CSS!!??
FYI, here’s the site I followed step by step in order to get this fuc… full width page to work properly and the closest to the theme Twenty seventeen :
– http://www.designbombs.com/master-twenty-seventeen-wordpress-theme/
Regards,
Philippe
February 15, 2017 at 2:21 am #181703In reply to: Last activity link name wrong
Fuskeduske
ParticipantHi RotiSoft,
You can change bbp_get_forum_last_reply_title to bbp_get_forum_last_topic_title, to get rid of the reply-to tag. However this will still make problems, while for example deleting or trashing a topic.
Robin gave me the following code, it should show the latest title without “reply-to” tag: http://pastebin.com/raw/jY5hSPPp
This should be used together with:
<?php do_action( 'bbp_theme_before_forum_freshness_link' ); ?> <?php bbp_forum_freshness_link(); ?> <?php do_action( 'bbp_theme_after_forum_freshness_link' ); ?>However you might need to adjust a little due to the way of your theme setup.
-Fuske
February 14, 2017 at 10:11 am #181668In reply to: disable email Email (required) config ?
Fuskeduske
ParticipantHi Crew,
I have just tried running the code on my own test invironment, and i can see, that the code, does not seems to work.
I do however not have enough knowhow to help you further.
I am glad to see, that you got your functions file to work atleast.
February 14, 2017 at 6:27 am #181619In reply to: Last activity link name wrong
Tamas Rottenbacher
ParticipantHy!
My forum: vizipipafan.com/forum/ (When You don’t understand the titles isn’t problem, you will see: the url is same or total another.)
I test links and not all is wrong.February 13, 2017 at 5:28 pm #181598In reply to: disable email Email (required) config ?
Robin W
Moderatoruntested, but try adding this to your functions file
add_filter ('bbp_filter_anonymous_post_data' , 'rew__filter_anonymous_post_data' 10, 2) ; function rew_filter_anonymous_post_data( $retval, $r ) { // Filter variables and add errors if necessary $r['bbp_anonymous_name'] = apply_filters( 'bbp_pre_anonymous_post_author_name', $r['bbp_anonymous_name'] ); if ( empty( $r['bbp_anonymous_name'] ) ) bbp_add_error( 'bbp_anonymous_name', __( '<strong>ERROR</strong>: Invalid author name submitted!', 'bbpress' ) ); // Website is optional $r['bbp_anonymous_website'] = apply_filters( 'bbp_pre_anonymous_post_author_website', $r['bbp_anonymous_website'] ); // Return false if we have any errors $retval = bbp_has_errors() ? false : $r; // Finally, return sanitized data or false return apply_filters( 'bbp_filter_anonymous_post_data', $retval, $r ); }February 13, 2017 at 3:08 pm #181593In reply to: disable email Email (required) config ?
crewockeez
Participantyes. i bbPress will now use this template instead of the original. but test don’t work
February 13, 2017 at 1:44 pm #181589Robin W
Moderatorok, so I’ve loaded twentyseventeen, and works fine on my test site.
so can you tell me how do you want the forums to display eg full width, left hand with sidebar on right, or right hand with sidebar on left? – you may have already said, but I would prefer not to re-read all the above
February 12, 2017 at 8:03 pm #181559Topic: registered users access to forums only not website
in forum Installationtpurple
ParticipantI am creating a forum for users that is part of a larger website. When I tested registration it appears that registered users have access to the website dashboard, even when set to participant or spectator level. How do I configure the log in so users only have access to the actual forum themselves?
I am using WordPress 4.7.2 and bbpress 2.5.12
Thanks!
February 12, 2017 at 1:15 pm #181536In reply to: My Forum page crashes
Robin W
ModeratorIt 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
February 9, 2017 at 9:08 am #181413Topic: Login doesn’t read as logged in.
in forum Troubleshootingteroromighty
ParticipantWordpress is 4.7.2 BBpress is the most updated version. site is http://teroromighty.com
On the main site you’ll see the bbpress login. I can log in with my account but the page will refresh and not show me the menu items that are listed to be private. (only logged in viewers)
i can log in by using the /login page and then it’ll allow you to view profile as if you’re logged in but it’s not showing the menu items profile and logout.
And account to test with is dragonchild pass Dragon13
I’m at a loss really. I’ve also got a plugin called
February 8, 2017 at 4:34 pm #181393In reply to: Main Forum page has no formatting
ddevries
ParticipantThank you for that style-pack – it looks great. I used the test drive plugin to test twentysixteen, and yes, the main forum page works. So, now that I know it’s a theme problem, where would I start on figuring out the exact issue? Just some high level directional advice would be very much appreciated. Thank you again, Robin. 🙂
Darlene
-
AuthorSearch Results