Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'bbpress'

Viewing 25 results - 19,826 through 19,850 (of 64,729 total)
  • Author
    Search Results
  • #148821
    Robin W
    Moderator

    In essence if I understand it you want to change the

    reply/edit/merge/trash/close/trash/reply links that come up with a topic or reply so that only some show, and others are in a dropdown list.

    is that correct?

    if so then

    my goal with this is to call each admin link individually and make only 2 or 3 to be visible
    (reply,edit,maybe quote link from gd bbpress tools)

    simply requires you to filter for those you want to display

    open up

    bbpress/includes/replies/template.php

    and you’ll see the admin links function line starting at line 1811

    On lines 1840 to 1848 you’ll see the default links are added.

    So lets create a function to just have the first two

    you’ll see a filter in line 1841 (‘apply_filters’) and we can hook to that

    so

    //change admin links displayed
    function change_admin_links ($r) {
    $r['links'] = apply_filters( 'rw_reply_admin_links', array(
    				'edit'  => bbp_get_reply_edit_link ( $r ),
    				'move'  => bbp_get_reply_move_link ( $r )
    			), $r['id'] );
    return $r['links'] ;
    }
    add_filter ('bbp_reply_admin_links', 'change_admin_links' ) ;
    
    

    just leaves us with edit and move.

    This also gives you the ability to add a new link, with say your dropdown list.

    You’ll also see that this function checks if it is a topic on line 1825, and you’ll need to similarly create a function for that – I’ll leave you to work that one out.

    Come back if you need more help, and when you crack this, can you post the finished code to this site so we can see what it looks like.

    #148818
    Robin W
    Moderator

    no the file is one that belongs to your theme called just functions.php

    you’ll find it at

    wp-content/themes/%yourthemename%/functions.php

    where %yourthemename% is the name of your theme.

    If you don’t have a child theme, then you should create one, see

    Functions files and child themes – explained !

    Miatsu
    Participant

    Hello,

    I’m actually using WordPress 3.9.1, BuddyPress 2.0.1 et bbPress 2.5.4 .

    For my website I have created differents forums for each user group. This forums will directly be displayed in the main menu as submenus.

    Is there a way to choose to display each forum submenu ONLY if the user is log in and a members of the group ?

    I have found some solution to filter menu by role, but in my case it will be the group that should be used to filter the menus elements.

    Thanks in advance !

    #148816
    mattmatt88
    Participant

    Hello,

    I have a WP multisite with different blogs but i want a single forum that is used by every blog. So every forum and post should be visible for every site.

    There was a topic 3 years ago: http://bbpress.org/forums/topic/wordpress-multisite-single-forum/

    Look like that is still no feature?

    Thank you.

    #148815
    Schpil
    Participant

    Hi!

    Is this the file? : bbpress-functions.php
    Is this its location? : /public/www/wp-content/plugins/bbpress/templates/default

    Where exactly do I drop the lines into the file?

    thanks for your help!

    #148814
    feb992
    Participant

    Don´t work… the forum index load in full width but the subforum, topics… load whith the default themeplate.

    I´m create a page themeplate in full widht and rename it bbpress.php and I configure the permalinks, the forum works, but don’t load how I need

    Thanks 🙂

    #148813
    Robkk
    Moderator

    ok i just need help with creating a function

    if i could use <?php echo bbp_get_topic_reply_link(); ?> to call the topic reply link

    how could i make a function thats

    if post type is topic echo bbp_topic_reply_link else echo bbp-reply-to-link

    and another function that is if keymaster or mod echo trash topic , trash reply etc.

    my goal with this is to call each admin link individually and make only 2 or 3 to be visible
    (reply,edit,maybe quote link from gd bbpress tools)

    while the others are inside of a dropdown menu with an icon to show the menu
    kind of like twitter where it shows other options in the more button on tweets

    if you guys could help me find another way to call the bbpress admin links instead of
    <?php echo bbp_get_name_of_link(); ?>

    #148812
    Robin W
    Moderator

    yes, drop this into your functions file.

    Functions files and child themes – explained !

    This will send users to the /forums/ page whenever they log out -whether private or public forum or on a topic or reply, or anywhere within bbpress. If you logout, you’re saying your done, so taking you back to the index seems a logical place to end up !

    You can change the $url to say ‘/home/’ if you want the home page,

    //sends the user to $url - in this case '/forums/'  
    function rw_logout ($redirect_to) {
    	$url='/forums/' ;
    	$redirect_to = '<a href="' . wp_logout_url( $url ) . '" class="button logout-link">' . esc_html__( 'Log Out', 'bbpress' ) . '</a>' ;
    	return $redirect_to ;
    	}
    	
    	add_filter ('bbp_get_logout_link', 'rw_logout') ;
    	
    #148805
    Rami Yushuvaev
    Participant

    I think this is a WordPress question, not bbPress.

    #148798
    Stephen Edgar
    Keymaster

    No, from memory the widget does not support adding a category to then show all the topics from all the sub forums in the widget.

    We have a ticket tracking some enhancements for the widgets in a future bbPress version, I’ll add this request to that.

    #148797
    Robin W
    Moderator

    bbpress has its own roles

    so user not registered would see all public forums but not able to post, but would not see private forums
    registered users with wordpress roles would be able to do all wordpress things but with ‘no role’ in the user profile under forum would not be able to post in the forum.
    registered users with forum roles (eg participant, moderator) would be able to see public and private forums, and if wordpress roles set would be able to carry out wordpress roles
    registered users with spectator role would be able to view both public & private forums but not participate.

    you should be able to achieve whatever you want with a role based solution.

    come back with further details if this is not what you are trying to achieve

    #148779
    Sam Rohn
    Participant

    the separate bbpress dynamic caps have been very frustrating for me, i had actually been able to rig something up as the OP described a few years ago with user role editor plugin, but it was broken by the caps change in 2.2 🙁

    Roles and Capabilities in bbPress 2.2

    an interface to set granular permissions per forum by user or user role for bbpress would be a HUGE boon, this is a core feature of all other forum software i am aware of

    otherwise, here is an article on customizing bbpress dynamic caps, haven’t tried this one yet

    http://gawainlynch.com/customising-dynamic-roles-in-bbpress-2-2/

    i have seen robin’s new plugin too, might do almost what i need but i haven’t had a chance to test it yet, but ultimately my goal would be the ability to create different forums for different customized (custom code or URE etc) member roles which are auto-assigned by s2 member

    sam

    #148777

    In reply to: Content Not Showing

    Michael Bryner
    Participant

    What the heck? Azure has nothing to do with it either. I said over twice now it worked fine on it before, so don’t twist my words for your pleasure. Thanks for that. Now, that your being unreasonable. I won’t ever use your stuff. That is not support that is pissing someone off more. That is terrible support. Don’t ever twist someones words. I never said Azure caused it to not work. So basically get rid of an already built blog to do one thing instead of two that you can normally do. Sorry, that is not better. Geez, the support here is bad. I don’t want two separate websites, that is why I did this in the first place. How hard is that to figure out. Why pay more for something you can do once?

    Just I want to be smart, does not mean I want to do something that makes it worse or harder and pay more. Done with this, and I tried to stop, but you guys keep posting that something will never solve this. Already tried that, and you guys trying to say things that bbPress is one of the best solutions out there is your opinion. I don’t think it is, and I am done talking about this. Give it a rest. Your not a sales man, and you won’t persuade me to do what I don’t want.

    #148776
    davidslessmaccom
    Participant

    Hi,

    Looking at our error log, we get a recurrent error generated by bbpress which has led to 502 errors. We are using WordPress 3.9 and bbpress Version 2.5.4. would you please advise us on this:

    Thank you. http://communication.org.au

    The error log looks like this:
    [Sun Jul 06 00:49:32 2014] [error] [client 124.191.29.124] LONG QUERY (1540 characters long generated in /nas/wp/www/cluster-1417/davidsless/wp-content/plugins/bbpress/includes/users/functions.php:1531):

    
    SELECT 
    COUNT(NULLIF(meta_value LIKE '%"administrator"%', false)), 
    COUNT(NULLIF(meta_value LIKE '%"editor"%', false)), 
    COUNT(NULLIF(meta_value LIKE '%"author"%', false)), 
    COUNT(NULLIF(meta_value LIKE '%"contributor"%', false)), 
    COUNT(NULLIF(meta_value LIKE '%"subscriber"%', false)), 
    COUNT(NULLIF(meta_value LIKE '%"bbp\\_keymaster"%', false)), 
    COUNT(NULLIF(meta_value LIKE '%"bbp\\_spectator"%', false)), 
    COUNT(NULLIF(meta_value LIKE '%"bbp\\_blocked"%', false)), 
    COUNT(NULLIF(meta_value LIKE '%"bbp\\_moderator"%', false)), 
    COUNT(NULLIF(meta_value LIKE '%"bbp\\_participant"%', false)), 
    COUNT(NULLIF(meta_value LIKE '%"shop\\_accountant"%', false)), 
    COUNT(NULLIF(meta_value LIKE '%"shop\\_worker"%', false)), 
    COUNT(NULLIF(meta_value LIKE '%"shop\\_vendor"%', false)), 
    COUNT(NULLIF(meta_value LIKE '%"customer"%', false)), 
    COUNT(NULLIF(meta_value LIKE '%"shop\\_manager"%', false)), 
    COUNT(NULLIF(meta_value LIKE '%"s2member\\_level1″%', false)), 
    COUNT(NULLIF(meta_value LIKE '%"s2member\\_level2″%', false)), 
    COUNT(NULLIF(meta_value LIKE '%"s2member\\_level3″%', false)), 
    COUNT(NULLIF(meta_value LIKE '%"s2member\\_level4″%', false)), 
    COUNT(NULLIF(meta_value LIKE '%"s2member\\_level5″%', false)), 
    COUNT(NULLIF(meta_value LIKE '%"s2member\\_level6″%', false)), 
    COUNT(NULLIF(meta_value LIKE '%"s2member\\_level7″%', false)), 
    COUNT(NULLIF(meta_value LIKE '%"s2member\\_level8″%', false)), 
    COUNT(NULLIF(meta_value LIKE '%"s2member\\_level9″%', false)), 
    COUNT(*) 
    FROM wp_usermeta 
    WHERE meta_key = "wp_capabilities", referer:
    

    Communication Research Institute

    #148775
    Stephen Edgar
    Keymaster

    Uncheck the bbPress setting “Forum Prefix – Prefix all forum content with the Forum Root slug” will be as close as you get giving you mydomain.com/blog/forum/

    The thing here is bbPress is a WordPress plugin so it ‘runs under’ WordPress.

    I am quite sure with a few tweaks of how your WordPress install is configured (you might also need some .htaccess rewrite rules) I think you could achieve what you are looking for though.

    See the following link on where I would start, will take a bit of planning and backups or course

    https://codex.wordpress.org/Giving_WordPress_Its_Own_Directory

    #148772

    In reply to: Content Not Showing

    Stephen Edgar
    Keymaster

    I understand your frustrations throughout your posts above, but this is not bbPress, WordPress nor even Windows Azure fault, this all stems from somewhere along the line you were given bad advice that stated you have to use MSSQL and that is simply not true and is not supported by any of these parties.

    So based on your previous post to mine above, I suggest you delete WordPress from your Windows Azure site, create a Windows Azure MySQL database and install phpBB or whatever, I wish you luck.

    #148771

    In reply to: Content Not Showing

    Stephen Edgar
    Keymaster

    bbPress’ system requirements are the same as WordPress’ system requirements:

    Requirements


    https://wordpress.org/about/requirements/

    PHP version 5.2.4 or greater – MySQL version 5.0 or greater

    Using ‘Project Nami’ or whoever suggested it to you to use it I do not know, I would not recommend it and nor do the Microsoft Azure team recommend it.

    You should use a MySQL database and that is also what Microsoft Azure recommend and have ‘one click install’ for Windows Azure, Microsoft work with the WordPress Core team to include compatibility with each release of WordPress for both Windows IIS installs and Azure installs.

    The majority of bbPress ‘in theory’ should work with ‘Project Nami’ but there are specific parts of bbPress that never will, if WordPress Core supports MSSQL one day then we will update bbPress to also work with MSSQL, until that day though bbPress will only work 100% using MySQL.

    Here is my Windows Azure bbPress test site and it is using MySQL
    http://azure.netweb.com.au/forums/topic/this-is-bbpress-running-on-windows-azure-with-mysql/

    You should look to backing up your site including files and database and then export your WordPress content and start again using MySQL.

    Details on setting up WordPress with MySQL on Windows Azure are here:
    http://azure.microsoft.com/en-us/documentation/articles/web-sites-php-web-site-gallery/

    #148770

    In reply to: Content Not Showing

    Michael Bryner
    Participant

    Not really threatening, its a fact, even if it is volunteers working on it. Its WordPress.org project, but what makes no sense to me is that people say to use less plugins to make WordPress run better with less resources, but then we install a bbPress plugin for a forum to integrate with WordPress, but we are not using an all in one forum software like the others that are all out there for MySQL. So we have to add tons more plugins to get features you would get in a all in one forum software, and reduce the resources by doing it.

    I know what open source is, and really open source is not the best. It just give people that have no money to participate in helping with the project if they want, which to me does not sound promising. Paid using means better support and a more promising working solution. Not saying I am going to go out and buy one.

    Take a look at myBB, and phpBB. They are all in one forum softwares, and I would use them if I had MySQL option, but I don’t and the best out of hours of searching for a forum for my site at this time and I got 3 years free with Bizspark for my website at $150 month for that 3 years, and no separate income to just move over to another host with MySQL. I am stuck with bbPress, and I am just saying this is not much of an option to me, even if I just hoped that some day my topic and post just magically appeared out of the blue.

    I think I will skip waiting until 10 pm, and just take it off. Thanks for some help, but in reality nothing got done. I did what you asked me anyways, because I remembered doing them when you asked me to. So to just sit and hope a solution to hop right by with a forum on my site that no one that visits is trying to use, and can’t to me is pointless. Just a waste of website space.

    Facts here, and sometimes facts are hard to take. To me would make more sense that a WordPress.org project would be integrated into a all in one WordPress forum built in with no extra plugins, and then users have the option still to either use bbPress built in or turn it off and use another forum software, but looking to see a simpler solution through WordPress is not going to happen.

    Sorry, but what I just put is feedback, and I noticed now a days, companies no matter if they are making money or not, they rather not do anything with feedback, and just do it they way they want. I am surprised Microsoft is some what listening to their customers, but today not much is going on with feedback. Look how long bbPress has been available, and still is a separate plugin with more plugins for features.

    #148764

    In reply to: Content Not Showing

    Michael Bryner
    Participant

    I will give until 10 pm, which is around 6 and half hours, and then I am removing bbPress and never putting a forum on my site again until I can somehow get the income to move from getting free azure account from Microsoft with Bizspark to pay for other hosting that has MySQL. For bbPress supposed to work with WordPress out of the box, it sure isn’t doing it. Way too many bugs.

    #148763

    In reply to: Content Not Showing

    Michael Bryner
    Participant

    It should not be taking this long to work unless there is something seriously wrong. I mean only thing I can think it is, is my computer or something serious going on about the TTL of my site. I have refresh and hard refreshed and ipconfig /flushdns, and even rebooted. All everything I listed we already tried. It is beyond stupid to me that it would be this difficult. So the more we keep doing the same thing all over again and again is going to make me pull my hair out before I get old.

    I thought I would try bbPress, since I can’t use a normal MySQL forum software on it, because I am using Azure Website hosting that only uses MSSQL server. Probably is that, but it worked before as I said before in first post. So really this is just dumb as heck that it has to be this hard.

    #148761
    Robin W
    Moderator

    bbpress has a separate set of capabilities, so you can set permissions for the wordpress part of your site totally separately to the capabilities for bbpress.

    see

    https://codex.bbpress.org/bbpress-user-roles-and-capabilities/

    and if needbe

    Custom Capabilities

    Robin W
    Moderator

    long answer I’m afraid and in two parts

    part 1 – setting the user permission to allow delete topic and delete reply

    delete is easy, making it only trash is in part 2 !

    Basically you’ll need to change a couple of capabilities of the participant role

    see

    https://codex.bbpress.org/bbpress-user-roles-and-capabilities/

    you see the abilities delete topics and delete replies (as distinct from delete others topics and delete others replies)

    Whilst you could amend the participant role, I haven’t documented that, so easiest is just for you to create a new role and give it the participant capabilities plus the ‘delete topics’ and ‘delete replies’. This article explains how

    Custom Capabilities

    add this code to your functions file – see

    Functions files and child themes – explained !

    part 2 – changing the function, so that delete is only shown for keymasters

    This code will only allow a keymaster to permanently delete a topic

    add the following to your functions file

    add_filter ('bbp_get_topic_trash_link', 'topic_dont_delete');
    add_filter ('bbp_get_reply_trash_link', 'reply_dont_delete');
    
    function topic_dont_delete( $args = '') {
    
    		// Parse arguments against default values
    		$r = bbp_parse_args( $args, array(
    			'id'           => 0,
    			'link_before'  => '',
    			'link_after'   => '',
    			'sep'          => ' | ',
    			'trash_text'   => esc_html__( 'Trash',   'bbpress' ),
    			'restore_text' => esc_html__( 'Restore', 'bbpress' ),
    			'delete_text'  => esc_html__( 'Delete',  'bbpress' )
    		), 'get_topic_trash_link' );
    
    		$actions = array();
    		$topic   = bbp_get_topic( bbp_get_topic_id( (int) $r['id'] ) );
    
    		if ( empty( $topic ) || !current_user_can( 'delete_topic', $topic->ID ) ) {
    			return;
    		}
    
    		if ( bbp_is_topic_trash( $topic->ID ) ) {
    			$actions['untrash'] = '<a title="' . esc_attr__( 'Restore this item from the Trash', 'bbpress' ) . '" href="' . esc_url( wp_nonce_url( add_query_arg( array( 'action' => 'bbp_toggle_topic_trash', 'sub_action' => 'untrash', 'topic_id' => $topic->ID ) ), 'untrash-' . $topic->post_type . '_' . $topic->ID ) ) . '" class="bbp-topic-restore-link">' . $r['restore_text'] . '</a>';
    		} elseif ( EMPTY_TRASH_DAYS ) {
    			$actions['trash']   = '<a title="' . esc_attr__( 'Move this item to the Trash',      'bbpress' ) . '" href="' . esc_url( wp_nonce_url( add_query_arg( array( 'action' => 'bbp_toggle_topic_trash', 'sub_action' => 'trash',   'topic_id' => $topic->ID ) ), 'trash-'   . $topic->post_type . '_' . $topic->ID ) ) . '" class="bbp-topic-trash-link">'   . $r['trash_text']   . '</a>';
    		}
    		
    		if ( bbp_is_topic_trash( $topic->ID ) || !EMPTY_TRASH_DAYS ) {
    		if ( bbp_is_user_keymaster()) {
    		$actions['delete']  = '<a title="' . esc_attr__( 'Delete this item permanently',     'bbpress' ) . '" href="' . esc_url( wp_nonce_url( add_query_arg( array( 'action' => 'bbp_toggle_topic_trash', 'sub_action' => 'delete',  'topic_id' => $topic->ID ) ), 'delete-'  . $topic->post_type . '_' . $topic->ID ) ) . '" onclick="return confirm(\'' . esc_js( __( 'Are you sure you want to delete that permanently?', 'bbpress' ) ) . '\' );" class="bbp-topic-delete-link">' . $r['delete_text'] . '</a>';
    		}
    		}
    
    				// Process the admin links
    		$retval = $r['link_before'] . implode( $r['sep'], $actions ) . $r['link_after'];
    
    		return $retval ;
    	}
    	
    	function reply_dont_delete( $args = '' ) {
    
    		// Parse arguments against default values
    		$r = bbp_parse_args( $args, array(
    			'id'           => 0,
    			'link_before'  => '',
    			'link_after'   => '',
    			'sep'          => ' | ',
    			'trash_text'   => esc_html__( 'Trash',   'bbpress' ),
    			'restore_text' => esc_html__( 'Restore', 'bbpress' ),
    			'delete_text'  => esc_html__( 'Delete',  'bbpress' )
    		), 'get_reply_trash_link' );
    
    		$actions = array();
    		$reply   = bbp_get_reply( bbp_get_reply_id( (int) $r['id'] ) );
    
    		if ( empty( $reply ) || !current_user_can( 'delete_reply', $reply->ID ) ) {
    			return;
    		}
    
    		if ( bbp_is_reply_trash( $reply->ID ) ) {
    			$actions['untrash'] = '<a title="' . esc_attr__( 'Restore this item from the Trash', 'bbpress' ) . '" href="' . esc_url( wp_nonce_url( add_query_arg( array( 'action' => 'bbp_toggle_reply_trash', 'sub_action' => 'untrash', 'reply_id' => $reply->ID ) ), 'untrash-' . $reply->post_type . '_' . $reply->ID ) ) . '" class="bbp-reply-restore-link">' . $r['restore_text'] . '</a>';
    		} elseif ( EMPTY_TRASH_DAYS ) {
    			$actions['trash']   = '<a title="' . esc_attr__( 'Move this item to the Trash',      'bbpress' ) . '" href="' . esc_url( wp_nonce_url( add_query_arg( array( 'action' => 'bbp_toggle_reply_trash', 'sub_action' => 'trash',   'reply_id' => $reply->ID ) ), 'trash-'   . $reply->post_type . '_' . $reply->ID ) ) . '" class="bbp-reply-trash-link">'   . $r['trash_text']   . '</a>';
    		}
    
    		if ( bbp_is_reply_trash( $reply->ID ) || !EMPTY_TRASH_DAYS ) {
    		if ( bbp_is_user_keymaster()) {
    		$actions['delete']  = '<a title="' . esc_attr__( 'Delete this item permanently',     'bbpress' ) . '" href="' . esc_url( wp_nonce_url( add_query_arg( array( 'action' => 'bbp_toggle_reply_trash', 'sub_action' => 'delete',  'reply_id' => $reply->ID ) ), 'delete-'  . $reply->post_type . '_' . $reply->ID ) ) . '" onclick="return confirm(\'' . esc_js( __( 'Are you sure you want to delete that permanently?', 'bbpress' ) ) . '\' );" class="bbp-reply-delete-link">' . $r['delete_text'] . '</a>';
    		}
    		}
    
    		// Process the admin links
    		$retval = $r['link_before'] . implode( $r['sep'], $actions ) . $r['link_after'];
    
    		return $retval ;
    	}
    

    I haven’t fully tested this code as my test site is in some disarray whilst I test something else, so you’ll need to check that it works

    #148754

    In reply to: Content Not Showing

    Michael Bryner
    Participant

    Just one topic is added now, and I had two before that, but I been trouble shooting after removing everything from refresh to cleaning the forums and topics, and recreating them after, and I just added one topic only. I even tried a reply to the topic to see if it showed too, and no go, and removed it after that.

    Here is list of plugins I have:

    all in one seo pack pro

    all in one wp security

    bbpress

    disqus comment system

    easy smtp mail

    fusion core

    infolinks

    private messages add on for userpro

    user role editor

    VK.com Social Connect for UserPro

    WordPress User Bookmarks plugin for UserPro

    WP-Optimize

    WP Smush.it

    #148751

    In reply to: Content Not Showing

    Michael Bryner
    Participant

    nevermind it is just plugin settings page, and I can get to it with out it at (Dashboard -> Settings -> bbPress).

    #148749

    In reply to: Content Not Showing

    Michael Bryner
    Participant

    I noticed that I don’t have this in my WordPress dashboard (Dashboard -> Settings -> bbPress).

    Would that have anything to do with this? I read a post in these trouble shooting threads about someone asking the guy about checking that, and I don’t even have that at all.

Viewing 25 results - 19,826 through 19,850 (of 64,729 total)
Skip to toolbar