Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for '"wordpress"'

Viewing 25 results - 3,226 through 3,250 (of 26,835 total)
  • Author
    Search Results
  • #199041
    rngeer
    Participant

    Hello,

    BBPress is running great on this site but if a visitor is a guest and clicks a topic to view the content, they are redirected to the home page. We are using WordPress pages with shortcodes to manage the forum.

    If you view the sample forum and click the I’m In topic it goes to the home page as guests. We need guests to be able to see the topic info to decide if they want to join.

    Any info would be great, here is the page:

    <a href=”http://www.raptureintheairnow.com/forums/main-forum/&#8221;

    Thank you.

    #199002
    Robin W
    Moderator

    You can achieve what you want if I have understood by the following

    Install the private groups plugin

    Private groups

    then

    a. Public discussion – just set up a public forum, and all users will be able to access this – no private groups settings needed

    b. Then for the keymaster only forum – do as follows

    1. Go into dashboard>settings>bbp private groups>topic permissions and activate this feature
    2. Create a group in dashboard>settings>bbp private groups>Group 1 (or whichever group you want)
    3. Create a new forum, set it as private (so only logged in users see it) and in the forum groups set group 1 with access

    4. Then click save and when then page refreshes, you will see topic permissions have appeared below the forum groups

    5. Now select Create/Edit OWN topics
    This then means that within that forum, users will only see topics they have created, and be able to reply. The keymaster can then see/reply to these topics. Any topic created by the keymaster will be visible to all users in this forum

    So from the user point of view they get a forum where they can post threads which only you and they see.

    I think this should achieve what you want – and given they can create multiple threads on what looks like to them as their own private forum, maybe is even better as they can create a new thread for a new topic !!

    #198995
    Robin W
    Moderator

    for anyone finding this topic

    I kicked this code around to improve it and also stop the 404 error when a participant trashes a topic, so latest version is

    /*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() ) {
    			//only change delete topics 
    			$caps ['delete_topics']= true ;
    	}
    	return $caps;
    }
    /*then only allow participants to trash their own topics*/
    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_topic
    	if ( $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 );
    			
    			// 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();
    				
    			// Unknown so do not allow
    			} else {
    				$caps[] = 'do_not_allow';
    			}
    		}
    	}	
    	// return the capabilities
    	return $caps;
    	}
    
    //then redirect to the forum after trashing topic
    add_action('bbp_template_redirect', 'ST_trash_topic_check', 8);
    
    //check if topic has been trashed by author and show forum if it has
    function ST_trash_topic_check() {
    	$topic_slug = get_option( '_bbp_topic_slug') ;
    	//quick check if we need to do this function, so bail if not a topic
    	if (strpos($_SERVER['REQUEST_URI'], $topic_slug) == FALSE) return ;
    	$forum_slug = bbp_get_root_slug() ;
    	//if check is set (ie we prefix forums with the forum slug) then part 1 will be forum slug and part 2 will be topic slug, if not part 1 will be topic slug
    	$check = bbp_include_root_slug() ;
    	$link = explode('/',$_SERVER['REQUEST_URI']);
    	//next we need the topic id (post id) of the topic so we need to check if it is a topic and if so, find the topic id
    	if (is_user_logged_in() && $check && $link[1] == $forum_slug && $link[2] == $topic_slug ) {
    		$post = bsp_get_page_by_slug( $link[3], OBJECT, 'topic' );
    		$login_check=1 ;
    		} 
    	elseif (is_user_logged_in() && empty($check) && $link[1] === $topic_slug) {
    		$post = bsp_get_page_by_slug( $link[2], OBJECT, 'topic' );
    		$login_check=1 ;
    	}
    	//now we need to check if the topic has been trashed by author
    	if (!empty ($login_check) && $post->post_status == 'trash' && $post->post_author == get_current_user_id() ) {
    		$topic_id =  $post->ID;
    		//then redirect to the forum we came from
    		$forum = bbp_get_forum_permalink (bbp_get_topic_forum_id (  $topic_id )) ;
    		wp_redirect ($forum) ;
    		exit ;
    	}
    	else return ;
    					
    }

    I’ll add this function into my style pack plugin shortly

    bbp style pack

    #198994
    Robin W
    Moderator

    I kicked this code around to improve it and also stop the 404 error when a participant trashes a topic, so latest version is

    /*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() ) {
    			//only change delete topics 
    			$caps ['delete_topics']= true ;
    	}
    	return $caps;
    }
    /*then only allow participants to trash their own topics*/
    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_topic
    	if ( $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 );
    			
    			// 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();
    				
    			// Unknown so do not allow
    			} else {
    				$caps[] = 'do_not_allow';
    			}
    		}
    	}	
    	// return the capabilities
    	return $caps;
    	}
    
    //then redirect to the forum after trashing topic
    add_action('bbp_template_redirect', 'ST_trash_topic_check', 8);
    
    //check if topic has been trashed by author and show forum if it has
    function ST_trash_topic_check() {
    	$topic_slug = get_option( '_bbp_topic_slug') ;
    	//quick check if we need to do this function, so bail if not a topic
    	if (strpos($_SERVER['REQUEST_URI'], $topic_slug) == FALSE) return ;
    	$forum_slug = bbp_get_root_slug() ;
    	//if check is set (ie we prefix forums with the forum slug) then part 1 will be forum slug and part 2 will be topic slug, if not part 1 will be topic slug
    	$check = bbp_include_root_slug() ;
    	$link = explode('/',$_SERVER['REQUEST_URI']);
    	//next we need the topic id (post id) of the topic so we need to check if it is a topic and if so, find the topic id
    	if (is_user_logged_in() && $check && $link[1] == $forum_slug && $link[2] == $topic_slug ) {
    		$post = bsp_get_page_by_slug( $link[3], OBJECT, 'topic' );
    		$login_check=1 ;
    		} 
    	elseif (is_user_logged_in() && empty($check) && $link[1] === $topic_slug) {
    		$post = bsp_get_page_by_slug( $link[2], OBJECT, 'topic' );
    		$login_check=1 ;
    	}
    	//now we need to check if the topic has been trashed by author
    	if (!empty ($login_check) && $post->post_status == 'trash' && $post->post_author == get_current_user_id() ) {
    		$topic_id =  $post->ID;
    		//then redirect to the forum we came from
    		$forum = bbp_get_forum_permalink (bbp_get_topic_forum_id (  $topic_id )) ;
    		wp_redirect ($forum) ;
    		exit ;
    	}
    	else return ;
    					
    }

    I’ll add this function into my style pack plugin shortly

    bbp style pack

    #198993
    Robin W
    Moderator

    this site only does this for the wordpress and bbpress sites.

    I’ll take a look at the plugin above soon, but tied up with other stuff at the moment

    #198989
    cacarlyle
    Participant

    Hello again, right well here’s a plugin that purports to do EXACTLY what I want… Except its for posts in WordPress, NOT for bbpress.

    URL-Preview-Box

    I feel like somebody here might know how to make this work in bbpress as well. I also feel like somebody must have already implemented this on their own forums and knows how to do it. Can anyone assist at all please? Thanks!

    #198983

    In reply to: Comments Blacklist

    writersabroad
    Participant

    I’ve purged all caches and purged again and it still won’t accept this word. I made sure the word was removed on My Sites panel in WordPress too…

    #198975
    cacarlyle
    Participant

    Hi there, first of all, sorry if this is something everybody knows, i did try to google it but came up with only things that aren’t the same as what i’m looking for.

    What i would like is for an image preview of some sort to come up within the post or reply, in bbpress, whenever somebody pastes a URL. Ideally it should only happen for the first URL in each post or reply, and ignore any subsequent URLs, but if that’s fiddly then just something that will generate previews for any URLs posted would be very helpful.

    Here is an example of it not happening: https://yesbook.scot/forums/topic/the-greatest-argument-of-all/

    That’s me posting an OP in my bbpress forum, and as you can see i pasted some text from a web page, and then a URL link to the page. Now what would be ideal is if the post also automatically showed a picture, drawn from the URL, inline within the bbprss post, in the same way that facebook pulls a picture in when you post a URL on their site.

    Is there a plugin that does this, or some simple tweak i can make to the config files of the site to make this happen? I’m not totally ignorant of how to use php and CSS but for the sake of argument, please assume that i am, because it isn’t far from the truth!

    Thanks in advance for any assistance you can provide.

    It is currently WordPress version 5.1 and bbPress version 2.5.14-6684
    I am using DI Business Responsive theme, though i don’t think that makes much difference for this particular question.

    #198968
    jemar707
    Participant

    Managing replies and topics in a large open forum has become a nightmare. I have searched high and low for a way to manage posts by IP/user, name, and of course the marking bulk spam as you mentioned. Mass edit/delete is not teaching anything to Akismet. I am using CleanTalk to manage spam registrations which seems to help with spam. But managing posts that get through filters requires tools like the Comment Dashboard for WordPress. I am going to look for someone to write a plugin. Perhaps the Comment Moderation plugin Developer could help us.

    #198967
    writersabroad
    Participant

    I’m using WordPress 5.1 and Buddypress 2.5.14
    My site is a writing community and we upload work for comments. Having trouble with some comments which wordpress block as part of the Comments Blacklist function in ‘Discussion’ settings. Have removed words I want to allow for posting without being blocked but still not able to post. For instance the word double breasted is not allowed because it contained one of the blacklist words. I have removed this from the list but it is still being blocked when I try and include it in a topic…

    #198935
    byzane
    Participant

    Sorry I misspoke. I was unable to run the code through my functions.php file, but it seems to be functioning through a snippet plugin:

    Code Snippets

    My bad.

    #198932
    Robin W
    Moderator

    put this in your child theme’s functions file

    function rew_breadcrumbs ($args) {
    	
    	$args['home_text'] = 'your new words here';
    	return $args ;
    	
    }
    
    add_filter('bbp_before_get_breadcrumb_parse_args', 'rew_breadcrumbs');

    or use

    bbp style pack

    once activated go to

    dashboard>settings>bbp style pack>Breadcrumbs

    #198920
    Robin W
    Moderator
    #198859
    mechi
    Participant

    Hi,

    we’re running bbpress and our users should be able to delete their own posts.
    We’ve blocked the wordpress menu bar on top of the page after a user is logged in.
    How is it possible to delete posts in the frontend without switching to the backend of wordpress?

    Thanks,
    Daniel

    #198812
    Jing
    Participant

    Hi,

    We have a site in soft launch. The forum is its key function.

    We are seeing each post takes a very long time to submit. A reply will take like 5 seconds. A new topic, about 3-5 seconds. There are no more than 3 people intermittently posting on the forum now since we are still in a beta mode.

    We have not done any customization regarding the function. The only other bbPress related plugin we have installed is bbPress Toolkit. (https://wordpress.org/plugins/bbp-toolkit/) No other types of post are posting as slowly as the forum topics and replies now. bbPress is now by far the slowest component on our site.

    What shall we try to make the forum post faster, like maybe this one?

    Shall we change the caching level? We are using WP Rocket Cache.

    At the same time, we noticed that the bbPress is sending notifications out before completing a submission. Can we change it so that it takes submission then send out notification later?

    Thank you so much! We have been struggling with this for days now. Desperately need your help.

    Jing

    #198811

    In reply to: Newby Question

    Robin W
    Moderator

    bbp style pack

    once activated go to

    dashboard>settings>bbp style pack>Topic/Rely Display item 13

    #198806
    Robin W
    Moderator

    the link all looks good

    couple of other suggestions

    1. This could be an issue with your rewrite rules. To fix this try resetting your permalinks. In your WordPress Administration Screens navigate to Settings->Permalinks, select a different permalink structure and save. Then select your preferred permalink structure and save again.

    2. A reinstall of bbpress. You won’t lose any data if you decactivate and then delete the plugin.

    #198804
    Robin W
    Moderator

    bbp_has_forumms is just a forum version of wordpress has_posts.

    The code you first posted – where is it, in your functions, in a plugin or where?

    Robin W
    Moderator

    ok, given that I probably amswered your original Q too literally let’s re-phrase that –

    bbpress requires you to have an account on your website that is hooked to the wordpress software running on your website – which is what my original answer was. The username, password and all other details are only held only on your website. Nothing is passed to any other site (unless you add code to do so).

    You are not required to have a wordpress.org username to use bbpress

    w3215
    Participant

    And just as an fyi, bc we seemed to be talking past each other a little:

    The goal is to have users sign in without the users having any wordpress involvement at all. For example, nytimes.com (the new york times’ website) is, I believe, run by wordpress. But if you sign up for nytimes.com, users don’t have any connection to wordpress–when you sign up for nytimes.com you don’t become a member of wordpress, and most users don’t even know what wordpress is.

    I am looking for something similar here. So the solution in this case is not just to hide the wordpress user sign-up admin screen, it is to not have the users have wordpress accounts at all. (creating an account at nytimes.com does not create a wordpress acount–if you use your log-in at nytimes.com for wordpress.org, it won’t work.)

    There are plugins that enable you to do this, or at least mimic this behavior. Ultimate Member is one of the most prominent. But it has its own configuration. My hope was I could skip that configuring, in the case I could use the bbpress registration as a pure front-end registration, without any user-wordpress interaction at all. Looks like that is not the case.

    This might have all been clear already, but just thought I’d throw it in there. Thanks for your help.

    w3215
    Participant

    Thanks. Ok–sounds like I will need something like Ultimate Member so people can register without any wordpress account.

    Robin W
    Moderator

    Yes they have wordpress accounts – that is how it works. but you do not need to see a wordpress page

    you would use something like theme my login to hide that

    w3215
    Participant

    Hi. On the issue of whether bbpress registration goes through WordPress registration–it appears that it does.

    I put the bbpress registration page on my test site, and tried to create a new user. It took me to a WordPress page that said email not recognized. I believe what was happening was that in order to register for bbpress, I had to be a wordpress user, and I was taken to the wordpress page when wordpress could not find the email address.

    So, based on this, indeed it does seem like in order to use bbpress users have to have WordPress accounts. This is what I do not want. Users should never be taken to a wordpress page to check if they are wordpress users.

    Rather, users should be able to register directly on the site without having to have wordpress accounts.

    Does anyone have a good way around this?

    I am assuming the only way is through a front end registration plugin like Ultimate Member, but I would be happy if there was another way.

    Robin W
    Moderator

    1. I’m just a user who helps out on the forums, you’ll need to judge for yourself if this will work capacity wise, but bbpress supports the wordpress forums which are huge.

    2. you have to enable nothing – I can only suggest that you set up a wordpress site with just forums, and you’ll soon realise that your iste doens;t neeed to look wordpressy and that users can just register on that site fro the forums using the forum registration (which is just a front end for WordPress site registration. You don’t need to use any other plugins to get bbpress working.

    3. Many people have a ‘just forum’ site, it is more common to have a forum as part of a site, but by no means necessary.

    w3215
    Participant

    Thanks, but I think my situation is still slightly different than you have in mind, and maybe the difference is instructive. (or maybe I am not understanding what you mean.)

    Let’s say I want to build a question and answer site, like stackoverflow or these discourse sites: https://discuss.atom.io/ or https://meta.discourse.org/. The question/answer piece (the forum piece) is THE site. It is not an add-on to a blog. It is an online tool like those sites are.

    I understand that the common use case for bbpress is to be a modest forum that supplements an existing wordpress blog or wordpress advertising site. This is not what I have in mind. I am interested in seeing if bbpress can be used to build a web tool that would have its own (potentially large and active) user base.

    I have considered other options out there–coding from scratch, discourse itself, NodeBB–but I have not seen anything as developed and creator friendly out of the box as bbpress. So I thought I’d give it a spin. For this to work, a few things have to be true:

    1) Can BBPress handle many thousands of users and many many thousands of topics (or more)? It seems like the answer is yes, given there are forums out there with a lot of users/topics that seem ok. But a common reply here is “wait for version 2.6”–and version 2.6 has been 4 years+ in the making(!) So this brings up the question of whether BBPress is being maintained. (I asked that here: https://bbpress.org/forums/topic/is-bbpress-being-maintained/). And whether bbpress can be performant at scale.

    2) What do I have to do to enable anyone in the world to register for the bbpress-focused site? To use stackoverflow, you don’t need to be a wordpress user; same with those discourse sites. To run bbpress at all, I understand I have to have an underlying wordpress site. But I was hoping to use bbpress’ registration so people could sign up for the forum–and they would not even know wordpress was being used under the hood.

    From what you are saying, sounds like this is not possible out of the box? Do I have to use a wordpress front end registration plugin like Ultimate Member and have that coordinate with bbpress, so that a user’s registration page–generated by ultimate member or some other like plugin–shows their posts and replies (just like your registration page at stackoverflow)?

    3) I understand what I have in mind is not the common use case for bbpress–but based on what I am seeing, bbpress should be up to the job. Is there something I am missing–some reason you would not want to use bbpress to power a question and answer web app?

    Thank you very much for your info.

Viewing 25 results - 3,226 through 3,250 (of 26,835 total)
Skip to toolbar