Search Results for 'code'
-
Search Results
-
Hi,
I’m using my code in functions.php file to store user’s location in the database and to display it on individual user profiles.
function user_profile_bbp_location_information() { $location=bbp_get_displayed_user_field( 'location' ) ; if ( ! empty($location) ) { $label1 = $rpi_options['item1_label'] ; echo "<p>" ; printf ( __( 'Location : ', 'bbpress' )); echo $location; echo"</p>" ; } } add_action ('bbp_template_after_user_profile', 'user_profile_bbp_location_information') ;However, I would like to display this value under avatar of each user on topic posts/replies as well. I figured out I need to edit themes/childtheme/bbpress/loop-single-reply.php file but I wasn’t able to make the values appear there.
I know there is a plugin for that but I like to use childtheme + functions.php for whatever I can + I already have working code in place.
Any ideas?
Thank you!
Hi Guys
I’d like to hide the visual editor when a user is posting to a particular forum. Could some one point me to the code that helps me determine what forum is being viewed so I can then disable the visual editor at that point.
Thanks
Hey there, so I’ve seen LOADS of posts about this and the code provided to help you create custom roles that do the same as the others.
Only issue is I don’t know HTML I am a total noob at all of this and in NO POST does it state WHERE to put the HTML code?
This was the guide I was trying to follow and it gives me the following code:
unction add_custom_role( $bbp_roles ) {
$bbp_roles[‘my_custom_role1’] = array(
‘name’ => ‘name 1’,
‘capabilities’ => bbp_get_caps_for_role( bbp_get_participant_role() ) // the same capabilities as participants
);
$bbp_roles[‘my_custom_role2’] = array(
‘name’ => ‘name 2’,
‘capabilities’ => bbp_get_caps_for_role( bbp_get_participant_role() ) // the same capabilities as participants
);
$bbp_roles[‘my_custom_role3’] = array(
‘name’ => ‘name 3’,
‘capabilities’ => bbp_get_caps_for_role( bbp_get_keymaster_role() ) // the same capabilities as keymaster
);
return $bbp_roles;
}
add_filter( ‘bbp_get_dynamic_roles’, ‘add_custom_role’, 1 );Which is fine
except it doesn’t tell me where to put it? Do I just go to Plugins>edit>bbpress/bbpress.php and stick it anywhere in that big massive box of HTML?
I researched on the BBpress forum and also on google, I found that by using
[bbp-topic-tags]shortquote, I can show visitors of my site the tags which are used in all the forums.But the tags appear all next to each other. Is there any way to display tag with the number of topics besides them. Also, the tags are just shown in a single line. It would be better to have a show in an unordered list. And then sorted according to the number of times topics they have been tagged to.
Hi,
If I copy/paste html content to topic content, all html tag appears in text, all quotes are converted to french quotes and content can overflow
(link to full image)I try this below but It doens’t change anything !
remove_filter( 'bbp_get_reply_content', 'wptexturize' , 3); remove_filter( 'bbp_get_topic_content', 'wptexturize', 3);I remove ALL plugins and I erase functions.php !
I also try this :
function bbp_tinymce_paste_plain_text( $plugins = array() ) { $plugins[] = 'paste'; return $plugins; } add_filter( 'bbp_get_tiny_mce_plugins', 'bbp_tinymce_paste_plain_text' );even if I want to permit copy/paste of (filtered) html, just to try, but it doesn’t make any change.
Do you have an idea of what happens?
Thanks.I have the latest 4.7 version of WordPress and installed the latest bbPress plugin (updated 4 days ago).
When I click on Forums->All forums, in the WP Dashboard, it shows me a full white blank page. Upon typing website.com/forums, it shows a blank page. The newly created forum link website.com/forums/forum/forum is also completely blank. I’ve tried this on two themes – Twenty Sixteen and Twenty Seventeen. Both showed blank page.
I tried creating a new page and pasting [bbp-forum-index] but that gave me the following code as the result:
{{ partial “head.html” . }}
{{ partial “header.html” . }} {{ partial “sidebar.html” . }} {{ partial “post/header-cover.html” . }}
{{ $paginator := .Paginate (where .Data.Pages “Type” “post”) }} {{ range $paginator.Pages }} {{ .Render “summary” }} {{ end }} {{ partial “pagination.html” . }}
{{ partial “footer.html” . }}
{{ partial “foot.html” . }}bbpress Version 2.5.12
wordpress Version 4.6.1
TwentyThirteen-Child themeYou’ll see I don’t know what I’m doing here. What follows is what I tried.
I put the following into my 2013 child theme:
1. a folder titled “bbpress” which contained the following all copied from the bbpress plugin folder:
2. a folder titled “bbpress”
3. a folder titled “css”
4. a folder titled “extras”
5. a folder titled “js”
6. a file titled “bbpress-functions.phpI replaced the top of the bbpress.css file which was in the “css” folder with this:
/* Theme Name: bbpress bbpress-child Theme URI: http://neighborsconnect/neighborsnation/wp-content/themes/twentythirteen-child/bbpress-child/ Description: bbpress-child theme for bbpress Version: 1.0 Author: Bruce Wilson Author URI: http://neighborsnation.org/ Template: bbpress-default Tags: bbpress, bbpress-child */Then I increased the font-size for the bbpress forums from 12 px to 20px and other such changes to see if it worked.
Surprise! Surprise! It didn’t work.
What do I need to do to make it work?
~ Bruce
Hi everyone,
I started a gaming website and to my surprise it isn’t doing too badly. I’m hoping to grow a community around it, but am really struggling to get everything right.
I’ve managed to get my forum posts to replace comments:
I’ve installed a Plugin to put Register/Login/Forgot at the top of the forum, which works very well, and shows on the main forum pages too: http://www.growngaming.com/forums/forum/grown-gaming-community/?view=all
Now, my problem is I also want to offer the option to login with social media, rather than filling in all details, etc. I’ve successfully found and fully installed/integrated a widget to do this, which fits into the sidebar perfectly. However, I’d also like this to display in the top right hand corner of the forum (on every sub-forum and topic), so that people can see that they can comment on my posts (and, thus post in the forum) very easily.
Is it possible for me to add this to my forum? I have a shortcode for the widget and have put it into pages etc, but I cannot figure out how to have it automatically added to every page/topic in my forum.
Thank you for your help.
