Search Results for 'code'
-
AuthorSearch Results
-
March 21, 2015 at 4:19 am #159928
In reply to: The problem of sub-sections
Robkk
Moderatori think this is what you are saying you want??
put this CSS anywhere you can put custom css
#bbpress-forums .bbp-forums-list { display: none; }March 20, 2015 at 7:41 pm #159923In reply to: Better WYSIWYG text editor?
Doug Smith
ParticipantSometimes this happens when copying from within the same site. For example, you may copy and paste from a previous part of the conversation to quote it. The HTML from the site will be picked up and copied into the editor.
I just added a function to fix this behavior at the bottom of the Enable Visual Editor bbPress Codex page.
March 20, 2015 at 6:10 pm #159921In reply to: Give bbPress full editor by default?
Doug Smith
ParticipantI ran across this discussion while trying to solve a similar issue so I thought I’d update it with my solution.
After enabling the visual editor I started seeing HTML present in some of the posts. The cause was people copying from a previous part of the discussion and pasting it into the editor to quote it. That was bringing in styles from the website and including it in the editor as HTML. For example:
<span style="color: #666666; font-family: Helvetica, Arial, sans-serif; font-size: 20px; line-height: 32px; orphans: 3; widows: 3; background-color: #fbfbfb;">Some copied and pasted text from earlier in the discussion.</span>My solution was to add the TinyMCE _paste_ plugin to the editor, which defaults to cleaning up pasted text. Here’s the filter:
function bbp_tinymce_paste_plain_text( $plugins = array() ) { $plugins[] = 'paste'; return $plugins; } add_filter( 'bbp_get_tiny_mce_plugins', 'bbp_tinymce_paste_plain_text' );March 19, 2015 at 11:24 pm #159904In reply to: View Topic By
sharlene_c
ParticipantThank you Robkk .. This is a little intimidating for me as I don’t know php nor do I have experience with child themes but I’ll see if my theme allows for that and try to create one.
Thank you for giving me the code.March 19, 2015 at 9:38 pm #159902In reply to: couple of questions
afurneaux
ParticipantI’m still confused as to where to put the short code
I went to the customize link

I don’t understand where to enter the short code.
My blog is andrewstravelworld.com
right now the message board is a widget
Right now i only have north america set up but i want the link to be directed to the general board and not just the north america section, i plan on adding other sections. Most message boards list all their forums and then theirs sub sections thats what i’m planning to do.
I’m sure theirs something small that i’m missing , any help or advice would be great appreciated!
March 19, 2015 at 6:19 pm #159897In reply to: New Topic Form Shortcode Issue
Robkk
Moderatorwhy did you use echo do shortcode on these two lines , they are not shortcodes , its just header text.
<?php if (!is_user_logged_in()) echo do_shortcode ('<h2 class="mve-form-title">Zo te zien is hierover nog niets geschreven...<br><br>Geregistreerde leden kunnen een vraag stellen aan de community.</h2>') ; ?><?php if (is_user_logged_in()) echo do_shortcode ('<h2 class="mve-form-title">Zo te zien is hierover nog niets geschreven. Stel je vraag aan de community.</h2>') ; ?>but the topic you lead to there was a fix , i just edited for your search results page.
i did test everything out , saw the issue , and resolved it with this function.
add_filter( 'bbp_current_user_can_access_create_topic_form', 'custom_bbp_access_topic_form' ); function custom_bbp_access_topic_form( $retval ) { if ( bbp_is_search_results() ) { $retval = bbp_current_user_can_publish_topics(); } return $retval; }March 19, 2015 at 3:41 pm #159894In reply to: broken widget / shortcode
Robkk
Moderatoradd all this CSS to anywhere you can add Custom CSS
.bbp-login-form label[for=rememberme] { width: auto !important; } #sidebar .bbp-login-form label { width: auto!important; } .bbp-login-form .bbp-login-links a { margin-top: 25px; } .bbp-login-form button#user-submit { margin-top: 15px; } .bbp-login-form label[for=user_login] { display: block; width: auto!important; }March 19, 2015 at 3:28 pm #159893In reply to: New Topic Form Shortcode Issue
mvaneijgen
ParticipantHey,
I have edit the
feedback-no-search.phpinside my child theme stored in child-theme > bbpress
This is what the file looks like:
https://gist.github.com/mvaneijgen/83b2bdf325172ae1536bNo permission changes.
Yes they can and if I change the short code to [bbp-topic-form forum_id=221] everything works fine
Don’t know what troubleshooting to try.March 19, 2015 at 3:21 pm #159891In reply to: New Topic Form Shortcode Issue
Robkk
Moderatori just tested out the shortcode an i get no issues , i checked with a participant and keymaster roles.
i usually use the topic form page on this site too when i created topics and it seems to work well here too since im a participant.
have you edited the template files specifically the ones for the topic form??
have you edited role permissions??
can your users see the message on normal topic forms that should display under a forum list.
have you done the usual troubleshooting??March 19, 2015 at 3:05 pm #159890In reply to: couple of questions
Robkk
Moderatoryou have a link to your dissuasion board already in your menu
i mean if you didnt put the shortcode into that page already , the forums should show up every time you hit it.
use this shortcode
[bbp-forum-index]
https://codex.bbpress.org/shortcodes/
other than putting the shortcode
usually when visiting a site the forums archive is usually yoursite.com/forums.
so use the links part in the menus section and add a custom link
March 19, 2015 at 3:00 pm #159888In reply to: Shortcode or link to profile, topics started, etc
Robkk
Moderatorhere is the list of all bbPress shortcodes
codex.bbpress.org/shortcodes/
you could develop/hire a developer to use something like this
<?php wp_get_current_user(); ?>codex.wordpress.org/Function_Reference/wp_get_current_user
an alternative would be to use #3
codex.bbpress.org/layout-and-functionality-examples-you-can-use/
March 19, 2015 at 2:59 pm #159887In reply to: BBpress Forum Login Takes me to WordPress Admin Page
Robkk
ModeratorRedirecting back to the default wordpress login pages is a common complaint , but there are better plugins that handle frontend authentication then the default bbPress ones , id say maybe use another plugin for frontend authentication.
other than that its not a total issue, those default WordPress login pages arent just for admins they are suppose to be used for all your users.
the default from name is wordpress , you can customize it with filters though.
add_filter( 'wp_mail_from', 'your_email' ); function your_email( $original_email_address ) { return 'your@email-address.com'; }add_filter( 'wp_mail_from_name', 'custom_wp_mail_from_name' ); function custom_wp_mail_from_name( $original_email_from ) { return 'Your sites name'; }March 19, 2015 at 2:29 pm #159880In reply to: View Topic By
Robkk
Moderatoryou can use the bbPress views widget.
which would link to optional ways to view the topics.
Recommended im not sure though?? maybe as an alternative you can use most replied too??
to add more custom views
you can plop this code into your child themes functions.php file or add it into a functionality plugin.
/** * Register these bbPress views: * - Popular Topics * - Unpopular Topics * - Random Topic * - Recently Closed * - Tagged Test * - All Topics * - Open (Not Closed) * - Random Single Topic * * @uses bbp_register_view() To register the view */ function ntwb_register_custom_views() { bbp_register_view( 'popular-topics', __( 'Popular Topics' ), array( 'meta_key' => '_bbp_reply_count', 'orderby' => 'meta_value_num' ), false ); bbp_register_view( 'unpopular-topics', __( 'Unpopular Topics' ), array( 'meta_key' => '_bbp_reply_count', 'orderby' => 'meta_value_num', 'order' => 'asc' ), false ); bbp_register_view( 'random-topic', __( 'Random Topic' ), array( 'orderby' => 'rand' ), false ); bbp_register_view( 'closed', __( 'Recently Closed' ), array( 'post_status' => 'closed' ), false ); bbp_register_view( 'taggedtest', __( 'Tagged Test' ), array( 'topic-tag' => 'test' ) ); bbp_register_view( 'all-topics', __( 'All Topics' ), array( 'order' => 'DESC' ), false ); bbp_register_view( 'open', __( 'Open (Not Closed)' ), array( 'post_status' => 'publish' ), false ); bbp_register_view( 'random-single-topic', __( 'Random Single-Topic' ), array( 'orderby' => 'rand', 'posts_per_page' => '1', 'max_num_pages' => '1' ), false ); } add_action( 'bbp_register_views', 'ntwb_register_custom_views' );March 19, 2015 at 2:25 pm #159879In reply to: Post a Question or Idea
Robkk
Moderatorthere is a topic form shortcode which is listed here, it does as you describe.
[bbp-topic-form]
https://codex.bbpress.org/shortcodes/
for the button , search through the forums im sure ive said this before
its somewhere in this topic
March 19, 2015 at 2:14 pm #159876Robkk
Moderatorif its in a forum you should use
<?php bbp_forum_reply_count() ?>for topics the other code works.March 19, 2015 at 2:12 pm #159875In reply to: First topic text color
Robkk
Moderatoralight , i knew it was that CSS code for sure but i didnt know for sure if it was for something cool in your theme.
the original code i posted shouldve worked all i did was add an CSS ID so that it would only show for bbPress , because that is where the issue was.
March 19, 2015 at 1:31 pm #159870Topic: Unable to deactivate bbPress
in forum TroubleshootingBillOsuch
ParticipantI attempted deactivating the plugin, and it took my entire site offline! Trying to load any page just gives a blank screen – no error message, no code. I reactivated the plugin, but the forum menus in admin are no longer there, so I can’t run the “reset forums” that people have mentioned.
This is a production site, with 8000+ hits daily, so I’m not able to start deactivating plugins and changing themes like other posts have suggested.
Help?
March 19, 2015 at 10:10 am #159866In reply to: couple of questions
Robin W
ModeratorMarch 19, 2015 at 9:53 am #159861In reply to: sidbar login avatar size
Robin W
Moderatorsorry, but if the code doesn’t work, the either you are doing something wrong, or something else is interfering.
If you have a link to your site and a page showing the issue, I’ll take one further look.
March 19, 2015 at 8:40 am #159860In reply to: First topic text color
Navinn
ParticipantHi, I’ve found the wrong css code:
#top ul:first-child > li > a { color: #eeeeee; }Thanks for your help, you can consider it as solved
March 19, 2015 at 8:21 am #159858In reply to: Forum Participant role cannot view private forum
Touda
ParticipantSolved!
Deactivated Role Editor plugin.
Installed and activated Members plugin: https://wordpress.org/plugins/members/
(Permissions changed with Role Editor remained.)
Added, for Author role, with Members plugin, the following permission:
read_hidden_forumsThat seemed to do the trick. Hope this helps other people with the same problem while bbPress developers don’t fix the bug.
March 19, 2015 at 7:56 am #159856In reply to: Forum Participant role cannot view private forum
Touda
ParticipantI’ve tried workaround suggested by @mjpg but it’s had no effect at all!
I’ve edit role for one of the users, with general Author and bbPress Participant roles. Then activated:
read_private_forums read_private_replies read_private_topicsAnd it had no effect: topics inside private forums remained invisible for that user!
Than I tried and activated also, in the main roles section, the following:
read_private_pages read_private_postsAnd, still no effect!
🙁
March 19, 2015 at 7:40 am #159855In reply to: Forum Participant role cannot view private forum
Touda
ParticipantI’m having a similar problem. And I must tell Andre that, yes, it seems a bug and is not intended to be that way. As you can read at https://codex.bbpress.org/bbpress-user-roles-and-capabilities/#participant they are supposed to read private forums. My private users (with participant role) can see the private forums and navigate through them and their sub-forums, but all topics (on private forums and also on private sub-forums inside private forums) there is a message that no topic has been found. If I just give them upper permissions (Moderator), then they can see all the topics on these forums and alos reply, etc.
So I think it’s truely a bug. Strange to me that it’s been around for some months without being fixed 🙁
BTW, I’m using bbPress as a plugin within a WP installation.
March 18, 2015 at 7:49 pm #159839Topic: Post a Question or Idea
in forum Troubleshootingsharlene_c
ParticipantLike Dropbox https://www.dropboxforum.com/hc/communities/public/questions
we would like to include a button at top right of forum page to post a question or idea.Topic options would be provided as a dropdown list for the user to select from.
The user would provide title of question or idea and more details if required.
Title and topic would be required fields, more details would be optional.Like this: https://www.dropboxforum.com/hc/communities/public/questions/new
Is this possible with shortcodes or can some tell me how to accomplish this. Our wordpress version 4.1.1 and bbPress version is 2.5.6
Thanking you in advance for any help
March 18, 2015 at 1:33 pm #159834In reply to: broken widget / shortcode
Pierre Ledoux
ParticipantHello,
this is how it looks today:


the words ware not in one row. I would like to improve the appearance. Thatswhy i want to have all words in one row and the button left or maybe centered.
But i don’t know how to realize it.
Regards
-
AuthorSearch Results


