Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 4,701 through 4,725 (of 32,481 total)
  • Author
    Search Results
  • #188640
    Robin W
    Moderator

    ok, I’ve just loaded the code below (same as in the post above) to my test site and it enables the tinymce editor on my test site

    //editor bbpress
    function bbp_enable_visual_editor( $args = array() ) {
        $args['tinymce'] = true;
        $args['teeny'] = false;
        return $args;
    }
    add_filter( 'bbp_after_get_the_content_parse_args', 'bbp_enable_visual_editor' );
    
    //clean html when copy and paste into forum
    function bbp_tinymce_paste_plain_text( $plugins = array() ) {
        $plugins[] = 'paste';
        return $plugins;

    }
    add_filter( ‘bbp_get_tiny_mce_plugins’, ‘bbp_tinymce_paste_plain_text’ );

    So I suggest you start by doing some further testing

    Themes

    As a test switch to a default theme such as twentyfifteen, and see if this fixes.

    plugins

    If themes don’t pinpoint the problem, deactivate all but bbpress and see if this fixes. if it does, re-enable one at a time to see which is causing the error.

    Then come back

    #188638
    richard.miller
    Participant

    Thanks to both of you! I truly appreciate any and all help I can get, especially when i’m just trying to make the software work as designed.

    So. The code supplied by @heathcliff2013 had no effect either, and I’m stumped.

    Any other suggestions, dear forum?

    #188633
    anhduy304
    Participant

    @robkk Hi,I am following your instruction but this code

    .bbpress a {
      color: red;
    }

    turns red.Could you tell me which classes should I add to have a full width forum ?

    #188612
    Robin W
    Moderator

    @heathcliff2013

    1. I am just a user of bbpress – ie I am one of the ‘We need to help each other I guess.’ I am only a moderator because I do a lot of support on here, and someone needs to clear out the spam.

    2. I was not ‘waiting 4 days’ I do have a life outside of providing FREE support I give here – giving my time without any payback to help others, and I respond as I get time to those that I can contribute to.

    3. writing sarcastic comments ‘Yeah forget about the fantastic support’ – shows you really don’t understand how open source software works – people write code for FREE which other then use for free. If you have paid for something, then you can start whinging about support, but if someone gives you a car, you don’t complain that they then don’t come round and service it for you, open source software is offered as is, additional help is totally voluntary.

    #188604
    Anonymous User 12966443
    Inactive

    Yeah forget about the fantastic support. We need to help each other I guess.

    //editor bbpress
    function bbp_enable_visual_editor( $args = array() ) {
        $args['tinymce'] = true;
        $args['teeny'] = false;
        return $args;
    }
    add_filter( 'bbp_after_get_the_content_parse_args', 'bbp_enable_visual_editor' );
    
    //clean html when copy and paste into forum
    function bbp_tinymce_paste_plain_text( $plugins = array() ) {
        $plugins[] = 'paste';
        return $plugins;
    }
    add_filter( 'bbp_get_tiny_mce_plugins', 'bbp_tinymce_paste_plain_text' );

    Works for me but it does not show up when using mobile?

    #188595
    Josh Campbell
    Participant

    Just tested this out on a newer theme and the css should look like this:

    .bbpress div#primary.content-area {
        margin: 0 auto;
        max-width: 980px;
        width: 100%;
    }

    Also, you can now just add this to Appearance > Edit CSS > Additional CSS.

    #188575

    In reply to: bbPress Post Via Mail

    rjpivonka
    Participant

    Did you say your name is Sisyphus ? It would seem so..

    You might want to read this article, (I don’t know how old it is or how current the advice..)
    https://codex.wordpress.org/Post_to_your_blog_using_email

    #188571

    Hi all,

    I have made a community using wordpress version 4.8 where I’ve created multiple forums, subforums. I want one particular user should have full control on one specific forum, basically one admin for each forum. Is it possible, is there any specific plugin for it.. or any code changes ?? I searched a lot but didn’t get any. Can anyone please help me on the issue ?

    Thanks.

    #188535

    Topic: shortcode

    in forum Troubleshooting
    grodanBoll
    Participant

    when I used the short code with custom lost password page the users stop getting any emails.

    the link,
    http://mysite.com/wp-login.php?action=lostpassword
    gives me:
    Request URL:https://mysite.com/wp-login.php?action=lostpassword
    Request Method:POST
    Status Code:302 Found
    Remote Address: xxxxxx
    Referrer Policy:no-referrer-when-downgrade

    #188526
    Gewitty
    Participant

    I’m running WP 4.9.1 with the Sport theme and BBPress 2.5.14

    Everything works OK, but I have one user who has persistent problems posting. Every time he attempts to post a message, he gets an error saying, ‘ERROR your topic cannot be created at this time”.

    This does not happen with any other users and the problem persists even after I deleted his account and created a new one with a different ID and password.

    This would seem to point to some external cause, originating on his PC, but I can’t figure out what. I did suspect that he was possibly drafting his posts in MS Word and then copy/pasting them into his posts, which could have included MS control codes, a problem I’ve encountered before. However, after getting him to enter text directly in a new post, the same error message appeared.

    This one has me stumped. If anyone has seen anything like it before, or has any ideas about what the cause is, I would be very grateful to hear.

    #188502
    u_Oi
    Participant

    Hi @louisgeorges

    In fact you can do it 😎

    1.- Copy the follow code and paste it in functions.php file (If you dont know about functions please read about it before do this):

    //Restrict Topic and Replies Content For No-Registered Users
    function pj_hla_logged_in_topics($have_posts){
    if (!is_user_logged_in()){
    $have_posts = null;
    }
    return $have_posts;
    }
    add_filter('bbp_has_replies', 'pj_hla_logged_in_topics');

    With the above code your visitors (no registered users) will see only the topic title. The code locks topic content and all replies.

    2.- After pasted the code, try open a topic so you will see a bbpress notice about “you dont have access to… etc something like that”. You need to find the file where is that notice, to edit it with anything you want, for example a link to the sign up page (Sorry, I dont remember the file name).

    To show topics titles in your post or other pages you have 4 options:

    1.- Add each URL in your blog post with the same topic title and link it to the topic (hard work but good if you like linkbuilding)

    2.- Default bbpress shortcode: [bbp-single-topic id=$topic_id] – Display a single topic. eg. [bbp-single-topic id=4096] ( https://codex.bbpress.org/features/shortcodes/#topics )

    3.- @robin-w plugin: http://www.rewweb.co.uk/bbpress-additional-shortcodes/

    4.- Hire a developer to create a shortcode to show last topics or whatever about topics.

    Hope this can help you!

    #188489
    thinkinginxyz
    Participant

    Hello @robin-w,

    Again, I am sorry if I offended you. It was totally no my intention. I am sorry for that. I am actually a pro open-source. I have my open open-source projects and I collaborated in a lot of variety of them. I didnt post initially this thread, and I found it because I try to come often to look around in the forum to get knowledge and to see if I can help (with my current little knowledge that I have). The question that I post is not related with this topic. I posted here in bbpress, on other expert platforms, (even now I posted it in codementor to speed up the process) and I am always on the official irc chat of bbpress. But, so far no luck at all. That is why I started,few weeks ago, learning WP plugins and hooks. I was just expecting that bbpress has a more active (from my experience) support.

    Once again, I am sorry to offend you or anyother one. No my intention.

    #188487
    Robin W
    Moderator

    Thank you for apologising. Bbpress like all free open source software is written for free by people who like coding. People who like coding don’t always tend to be those who like doing support, so like much free software, they rely on community people to help in supporting. I hope that you will also feel that if you are helped in a support forum, you look to help someone else, as that is the only way that a ‘community’ can exist. If you simply just ask a question, get a response and then go away, it is hardly surprising that there is no-one helping.

    Your question would require lots of time to understand and code, so I suspect that it will not get answered. You quickest may well be to duplicate using that code and then delete those not wanted.

    Themezly
    Participant

    Let me start by saying that I did extensive searching for past 2 hours and are surprised to see all questions about the same issue getting brushed off. Some even instruct to remove the home link from breadcrumb just to hide an actual bug.

    https://bbpress.org/forums/topic/breadcrumb-and-forum-index-issues/

    bbPress breadcrumb forum root link issue


    there are many more but I am allowed only 3 links. Google breadcrumb [bbp-forum-index]

    Please take the issue as it is which is a bug confirmed by many.

    1. Breadcrumbs forum home page link and the page that user has created are not in sync
    2. When user creates the page with shortcode as instructed in Step 2 https://codex.bbpress.org/step-by-step-guide-to-setting-up-a-bbpress-forum/ or even Step 1

    the default Forum Root archive is overriding that page instead other way around. The process should be same as selecting page for posts in WP but in BB is just complicated and not effective.

    Use default theme, follow instructions in step 2 , when you done , go to your custom created forum page and change template. No changes. Now change the root in forum settings, redo permalinks go back to custom page and you will see the change.

    Note that I have no custom overrides so it is not theme related.

    #188455
    yemlihakorkmaz
    Participant

    Old smf page url address

    www.website.com/forum/saglik/kanatli-hastaliklari/

    New wordpress bbpres url adress

    www.website.com/topic/kanatli-hastaliklari/

    This is important

    Old smf page first forum later saglık later page name

    New bbpress page direct go page name

    How do i fix the problem ?

    ancawonka
    Participant

    Hmm. So I’ve figured out the issue w/ the no-replies link – I can now see the auto-generated view for forums with no replies at

    {domain}/sitename/forums/view/no-replies/

    But the page with the shortcode still doesn’t work.

    ancawonka
    Participant

    Hi there,

    I’m trying to show users a list of the topics with no replies. However, I’m getting a “Oh bother! No topics were found here!” message on that page. Here’s what I did:

    1. I created two forums, each one with topics. Each forum has topics with no replies in it.
    2. The topics display the following information (Voices: 1, Posts: 1). (Instead of “Voices 1, Replies: 0);
    3. I created a page, and added this shortcode: [bbp-single-view id=’no-replies’]

    The site is a multisite, configured as a subdirectory install.

    Also, when I try to hit the no-replies view directory by going to {domain}/sitename/forums/view/no-replies I get a 404 page.

    I wonder if I’ve configured something incorrectly?

    (edited so I could subscribe to follow-up replies)

    ahau
    Participant

    Hi,

    Could someone help me with the syntax for the following join

    SELECT
    maoriorg_exportoldforums.pp_threads.thread_subject,
    maoriorg_exportoldforums.pp_posts.post_message,
    maoriorg_exportoldforums.pp_threads.thread_id
    FROM
    maoriorg_exportoldforums.pp_posts
    INNER JOIN maoriorg_exportoldforums.pp_threads
    ON maoriorg_exportoldforums.pp_posts.post_id = maoriorg_exportoldforums.pp_threads.thread_id
    GROUP BY
    maoriorg_exportoldforums.pp_threads.thread_id

    This is what I have come up with so far, (compied from bbPress1.php to follow) but not sure how to put the GROUP BY clause

    
    		// Topic content.
    		// Note: We join the 'posts' table because 'topics' table does not include content.
    		$this->field_map[] = array(
    			'from_tablename'  => 'posts',
    			'from_fieldname'  => 'post_text',
    			'join_tablename'  => 'topics',
    			'join_type'       => 'INNER',
    			'join_expression' => 'USING (thread_id) WHERE posts.post_position IN (0,1)',
    			'to_type'         => 'topic',
    			'to_fieldname'    => 'post_content',
    			'callback_method' => 'callback_html'
    		);
    

    Mind you, I could also have the wrong fields in the wrong place so any corrections and help most appreciated.

    Thank you for your time 🙂

    #188442
    xfallseane
    Participant

    Problem almost fix ! I recode the author zone, actually it’s good.

    How to remove the red zone (screen) =>

    I have search in different template but i don’t find !

    #188441
    xfallseane
    Participant

    I have update my css with your code but don’t work, the profil picture is almost good !

    I have test different code the margin-left for reply-content is the problem maybe no ?

    #188440
    ytwebdesigns
    Participant

    Hi

    I am using bbpress on hebrew website.
    Using Poedit to translate
    I have managed to translate most strings but I have the string “on” in english on which appears on line 1186 in widgets.php
    i also tried editing the php code on this row and replacing “on” with a hebrew string and uploading to wp-content/child/bbpress/includes/common/widgets.php but this didnt work
    also in po file tried translating string and replacing “on” with “test” this didnt work either.

    I cant seem to apply any css on this either
    https://forumbaaleytshuva.co.il/category/%D7%9E%D7%90%D7%9E%D7%A8%D7%99%D7%9D/%D7%93%D7%99%D7%95%D7%9F-%D7%A0%D7%95%D7%A7%D7%91/

    screenshot below

    View post on imgur.com

    thanks

    #188436
    Robin W
    Moderator

    hmm, not suer why your bbpress.css file is in wp-content/plugins/templates rather than wp-content/plugins/bbpress/templates – have you altered this?

    In essence you want to set

    .bbp-reply-author width :100% ;
    .bbp-reply-content margin : 0px;

    This will force the content to the next line, and move it to the start of that line.

    I’d also add

    #bbpress-forums div.bbp-reply-author img.avatar {
    position: relative;
    }

    so you’d end up with (untested)

    @media only screen and (max-width: 480px) {
    
    .bbp-reply-author  {
    width :100% ;
    }
    .bbp-reply-content {
    margin : 0px;
    }
    
    #bbpress-forums div.bbp-reply-author img.avatar {
    	position: relative;
    	}
    
    }
    #188424

    In reply to: No bbp-themes folder

    Robin W
    Moderator

    the instructions are quite dated.

    the recent version is here

    Step by step guide to setting up a bbPress forum – Part 1

    bbpress no longer has theme’s – it uses your wordpress theme

    #188415

    Topic: No bbp-themes folder

    in forum Themes
    lisa044
    Participant

    Hi,
    I am following these instructions (https://codex.bbpress.org/themes/theme-compatibility/step-by-step-guide-to-creating-a-custom-bbpress-theme/) and have got Cyberduck connected but in the wwwroot > wp-content > plugins > bbpress folder there is no ‘bbp-themes’ folder as the directions state.

    No idea what to do next, whether I should be using a different folder as the instructions are out of date for my version or what??

    Think Im on wordpress 4.8 and bbpress 2.5.14

    Thanks
    Lisa

    #188414
    peter-hamilton
    Participant

    You could use CSS to make the width of articles 100%

    .article {width: 100%;}

    You can use google Chrome to test/alter CSS to see what you need to do to fix things.
    Use right mouse button on an element on the screen and press “inspect”, then a window opens where you can play with CSS.

    You do have a child-theme I hope?

Viewing 25 results - 4,701 through 4,725 (of 32,481 total)
Skip to toolbar