Search Results for 'code'
-
Search Results
-
I’ve been fighting with how to enable the Topics CPT for all users in the dashboard and not having a great time. I thought I could, perhaps, filter the CPT registration to change the CPT caps and
show_uisettings, but no luck.Even when I am able to get the Topics CPT to display for all users by commenting out the lines noted below as a test:
// Register Topic content type register_post_type( bbp_get_topic_post_type(), apply_filters( 'bbp_register_topic_post_type', array( 'labels' => bbp_get_topic_post_type_labels(), 'rewrite' => bbp_get_topic_post_type_rewrite(), 'supports' => bbp_get_topic_post_type_supports(), 'description' => __( 'bbPress Topics', 'bbpress' ), // 'capabilities' => bbp_get_topic_caps(), // 'capability_type' => array( 'topic', 'topics' ), 'menu_position' => 999999999999, 'has_archive' => ( 'forums' === bbp_show_on_root() ) ? bbp_get_topic_archive_slug() : false, 'exclude_from_search' => true, 'show_in_nav_menus' => false, 'public' => true, // 'show_ui' => current_user_can( 'bbp_topics_admin' ), 'can_export' => true, 'hierarchical' => false, 'query_var' => true, 'menu_icon' => '' ) ) );Things still don’t completely work. Users can technically create a post, but can’t save the Forum in which the post is created.
The short of it is: I want users with the Participant Forum Role to be able to see the Topics CPT in the dashboard so they can create their posts here, mainly because it would be helpful for them to be able to Preview a topic before posting it. Out of the box, the front-end bbPress form does not allow for post previews.
Has anyone achieved this?
Using:
WP 4.8.3
bbPress 2.5.14Hello, please how do I retrieve the user id of the last active user in a forum? To get the last active name requires the following code:
bbp_author_link( array( 'post_id' => bbp_get_forum_last_active_id(), 'type' => 'name' ) );
But how do I get the ID instead of the name?Hi
I happened to check a mail account we are not using yet, when we moved servers. It turns out there are quite a few emails in that account. They are all forum activity alerts coming from BBPress on the site. These are the kind of mails being received:
UserX wrote: Hello to all in the group! Post Link: https://www.juicy.io/groups/venezuela/forum/topic/presentacion/#post-33662 ----------- You are receiving this email because you subscribed to a forum topic. Login and visit the topic to unsubscribe from these emails.It seems to be sending these alerts to a user. But there is no ‘to’ username on the emails. I have done several searches on our user database and there are no users with that email address.
I have done a full database search for that email address and come up with nothing.
I have looked absolutely everywhere I can think of within WP admin, for any instance of that address, and can find none. Unless it’s buried away in some obscure corner of a plugin, I am pretty sure I have looked everywhere relevant that I could think of.
I am downloading the entire site, to do a search on that string within the site files, as a last resort. I’m not optimistic.
Can anyone point me in the right direction about this?
Many thanks for your time.
I am using WordPress Version 4.7 And have installed bbpress version 2.5.12.Every thing is working fine but in
edit profilepage no edits are updating.I have checked it for bothadminandparticipantrole.After edit profile button submit it redirects to following url
http://mysite.com/forums/user/pro2/edit/?updated=true but nothing is changed actually.How can i solve this problem?pls helpI use bbPress 2.5.14 on latest WP.
I have enabled TinyMCE with this code:add_filter( 'bbp_after_get_the_content_parse_args', 'bbp_enable_visual_editor' ); function bbp_enable_visual_editor( $args = array() ) { $args['tinymce'] = true; $args['quicktags'] = false; return $args; }It works well when a user posts a new topic.
But when a user wants to reply to a topic, the tinyMCE editor is displayed but is not editable.
I can’t see any error in the browser console.
Please advise.So, I can style an .odd and .even forum differently, in this case to give forums on the the forums front page alternating colors, This also works for topics in the same way. And it carries over into replies, were the lead reply will have background-color: #fff;, and the next reply will have background-color: #000;, for example. What I am trying to do now is change the color of the blockqoute within the forum reply, to be the opposite of what the reply background is.
so if….
#bbpress-forums div.odd, #bbpress-forums ul.odd {
background-color: #000 !important;}
then I would want something like…
#bbpress-forums div.odd, #bbpress-forums ul.odd, blockquote {
background-color: #fff !important;}
For some reason I can not get the blockqoute background to change, at least the way I want it too. For some reason it changes the blockquote background globally. I feel like I am missing a CSS class here somewhere. Can anyone give me a hint at what I’m missing?
I use the theme of Spider Mag,and I want to be the same view of the front page on the mobile phone as the pc Now after I edit cistom code css lokk in mobile dont same like on PC..On the right side of the PC are widgets and commercials and on the front page there are two tutorials next to each other, while on the mobile page at the bottom of the page I show up and advertise. Now I need to edit. Here you see the pictures.
View on PC https://imgur.com/a/qeb6g
View after edit custom code css. First go tutorials and on the bottom ads and vidgets , what now must edit ? https://imgur.com/a/9qkLV
This functions I hve for edit what I want https://imgur.com/a/67GYN
How make now like on PC view?
Thanks.
Hi Guys,
I am wondering if is there any existing feature on the BBPress to have a login, register, forgot password, email confirmation only in front-end? I know that there are [bbp-login], [bbp-register], and [bbp-lost-pass] short-codes that you can place in the page so that it will display on the front-end but the issue is when user enters an incorrect password or account, it will redirect to admin login. What I wanted is to stay always in the front-end. Or do you have any suggestion what plugin I can use that and compatible?
Thanks,
jackI am working on a site and create two different forum named #1.Mental Health & #2.Staff. Also, create pages for both forums and show tropics from them using the shortcode. But the problem is it shows tropic from the different forum. Like in mental health page shows tropic from the staff forum. Here are those links and a screenshot too.
#1. Mental Health
#2. StaffHello
I am using the latest version of WP and bbPress with iThemese Builder theme.
Through the theme functions I am able to show all parts of the forum on a particular theme layout, apart from the forum index page when the breadcrumb ‘forums’ link is clicked. This takes me back to the main template layout which does not have the forum wigdets as required on all forum pages.
I also have the same issue with the search results.I have tried the following code but as I am not overly familiar with bbPress conditionals it does not solve the problem. I believe what I am look for is the correct information to go into this line:
if ( is_bbpress() && in_category( ‘page’ ) )// create view for forums function custom_filter_category_layouts( $layout_id ) { if ( is_bbpress() && in_category( 'page' ) ) return '599b46ad5fa63'; return $layout_id; } add_filter( 'builder_filter_current_layout', 'custom_filter_category_layouts' );Any advice appreciated.
Mike