Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 9,176 through 9,200 (of 32,505 total)
  • Author
    Search Results
  • #159928
    Robkk
    Moderator

    i 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;
    }
    #159923
    Doug Smith
    Participant

    Sometimes 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.

    #159921
    Doug Smith
    Participant

    I 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' );
    #159904

    In reply to: View Topic By

    sharlene_c
    Participant

    Thank 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.

    #159902

    In reply to: couple of questions

    afurneaux
    Participant

    I’m still confused as to where to put the short code

    I went to the customize link

    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!

    #159897
    Robkk
    Moderator

    why 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;
    
    }
    #159894
    Robkk
    Moderator

    add 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;
    }
    #159893
    mvaneijgen
    Participant

    Hey,

    I have edit the feedback-no-search.php inside my child theme stored in child-theme > bbpress
    This is what the file looks like:
    https://gist.github.com/mvaneijgen/83b2bdf325172ae1536b

    No 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.

    #159891
    Robkk
    Moderator

    @mvaneijgen

    i 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.

    Create New Topic

    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??

    #159890

    In reply to: couple of questions

    Robkk
    Moderator

    you 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

    #159888
    Robkk
    Moderator

    here 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/

    #159887
    Robkk
    Moderator

    Redirecting 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';
    }
    #159880

    In reply to: View Topic By

    Robkk
    Moderator

    you 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' );
    #159879
    Robkk
    Moderator

    there 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

    How to make similar bbpress forum to QuicSprout one?

    Robkk
    Moderator

    if its in a forum you should use <?php bbp_forum_reply_count() ?> for topics the other code works.

    #159875

    In reply to: First topic text color

    Robkk
    Moderator

    @navinn

    alight , 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.

    #159870
    BillOsuch
    Participant

    I 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?

    #159866

    In reply to: couple of questions

    Robin W
    Moderator
    #159861
    Robin W
    Moderator

    sorry, 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.

    #159860

    In reply to: First topic text color

    Navinn
    Participant

    Hi, 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

    #159858
    Touda
    Participant

    Solved!

    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_forums

    That seemed to do the trick. Hope this helps other people with the same problem while bbPress developers don’t fix the bug.

    #159856
    Touda
    Participant

    I’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_topics

    And 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_posts

    And, still no effect!

    🙁

    #159855
    Touda
    Participant

    I’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.

    #159839
    sharlene_c
    Participant

    Like 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

    #159834
    Pierre Ledoux
    Participant

    Hello,

    this is how it looks today:

    1
    2

    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

Viewing 25 results - 9,176 through 9,200 (of 32,505 total)
Skip to toolbar