Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'bbpress'

Viewing 25 results - 19,651 through 19,675 (of 64,516 total)
  • Author
    Search Results
  • #148984
    Robkk
    Moderator

    change the numbers to whatever you want

    #bbpress-forums div.bbp-reply-content img, #bbpress-forums div.bbp-topic-content img {
    max-width: 500px;
    max-height:250px;
    height: auto;
    }

    you add this into anywhere where you can have custom css

    in bbpress.css in your child theme(you copy the original in your child theme)
    in your child themes css stylesheet
    the jetpack plugin module custom css
    a standalone custom css plugin

    #148978
    hjrhclan
    Participant

    hello , everybody ,ask a question
    how to limit bbpress only search post in 30 days?

    marekkk
    Participant

    Hello,

    My WP version is: 3.9.1 and bbpress version: 2.5.4-5380/

    When im submitting new topic it redirects to previously created one. Topic creation works fine from admin panel, but when i try to create new topic using form placed on topic lists it just doesn’t work. Any ideas?
    http://chwilowkiok.pl/forum/

    #148976
    marekkk
    Participant

    Hello,

    My WP version is: 3.9.1 and bbpress version: 2.5.4-5380/

    When im submitting new topic it redirects to previously created one. Topic creation works fine from admin panel, but when i try to create new topic using form placed on topic lists it just doesn’t work. Any ideas?
    http://chwilowkiok.pl/forum/

    #148966
    LeafyGrove
    Participant

    Test all three and all three work! tyvm. Even adapted the rest by removing the “#bbpress-forums” which is redundant, not like anything other then bbpress using those containers anyway, and it functions just fine it seems.

    #148958
    Paul
    Participant

    Hi Stephen, my upgrade was 2.3.2 to 2.5.4 not 2.5.3 to 2.5.3.

    You were correct, thank you. The problem was caused by a permalink conflict. The page I am using the shortcode had the slug forums. Changing the slug to something else so it was not the same as the slug used by Forum Root (or visa versa) resolved the issue.

    The question remains though, why is this a problem with this version of bbpress over the older version I was using?

    #148954
    drceng
    Participant

    Thanks Robkk…but I definitely don’t want to change the color of all links or breadcrumbs in my theme…just for the bbPress forum.

    Jerry
    Participant

    I have updated the code again, and I have a question to improve it a little. First the update; I had more trouble with formatting when I wanted to bring in topics from different sites. What I finally learned was to create a new id class and use it in my child theme style.css. Here is the updated code:

    add_shortcode( 'recent-bbpress-topics', 'recent_bbpress_topics' );
    
    // Add Recent Topics to BBPress from separate site within WP Multisite
    function recent_bbpress_topics($attr) {
    	//Switch to the blog where the bbpress topics are located
      switch_to_blog($attr['id']);
    
      //this, along with $response variable below, allows for display within content - without these, shortcode will display topics at top of content
      ob_start();
      if ( bbp_has_topics( array( 'author' => 0, 'show_stickies' => false, 'order' => 'DESC', 'post_parent' => 'any', 'posts_per_page' => 8 ) ) ) {
        //id class to be named "#recent-titles li.bbp-topic-title" and placed in style.css in the child theme ?>  
        <ul id="recent-titles">
          <?php while ( bbp_topics() ) : bbp_the_topic(); ?>
    			<?php bbp_get_template_part( 'loop', 'single-topic' ); ?>
    		  <?php endwhile; ?>
          <?php //bbp_get_template_part( 'loop', 'topics' ); ?>
        </ul>
        <?php //restore the current blog to maintain formatting 
        restore_current_blog();
        }
        //this, along with ob_start(); above, allows for display within content, instead of at the top of the content/page
        $response = ob_get_contents();
          ob_end_clean();
          return $response;
      }

    And here is what I added to style.css:

    /*Changes made to accommodate formatting for plugin recent-bbpress-changes*/
    #recent-titles li.bbp-topic-title {
    	float: left;
    	text-align: left;
    	width: 12%;
      overflow: hidden;
    }

    Notice how I declared the class id in the php code. One additional note; I have made several changes to my bbpress topics before I ever implemented this plugin. Perhaps other users will not require the css changes that I had to implement, post plugin activation.

    Now for my question: Is it possible to have two input parameters to a shortcode? For this plugin, I would like to be able to change the input to “post_parent” as well as “switch_to_blog($attr[‘id’]);”. I’ve already tried to do this, but have failed. Here is what I tried:

    function recent_bbpress_topics($attr,$attr2) {
    	//Switch to the blog where the bbpress topics are located
      switch_to_blog($attr['id']);
    
      //this, along with $response variable below, allows for display within content - without these, shortcode will display topics at top of content
      ob_start();
      if ( bbp_has_topics( array( 'author' => 0, 'show_stickies' => false, 'order' => 'DESC', 'post_parent' => $attr2['id2'], 'posts_per_page' => 8 ) ) )

    I end up getting an illegal string swap error. Anyone got any ideas here?

    #148940

    In reply to: Theming Question

    Robin W
    Moderator
    #148939

    Topic: Theming Question

    in forum Themes
    Ganzuelo
    Participant

    I apologize in advance.. I have a theme that I want to style bbpress and buddypress after. The theme that I’m using allows accent colors. How could I import that color into the bbpress styling?

    So lets say the accent color is blue and I want to change it in the customize panel to orange.. is it possible?

    #148938

    In reply to: Forum index

    Robkk
    Moderator

    i also forgot that buddypress uses a nav id of #subnav but thats easy to fix just change subnav to bbnav

    so all the code would be

    to register the menu

    function register_menu() {
    	register_nav_menu('bbmenu', __('bbpress Forum Menu'));
    }
    add_action('init', 'register_menu');

    place this below <?php do_action( 'bbp_template_before_forums_loop' ); ?>

    <nav id="bbnav" role="navigation">
    
    <?php
    if ( has_nav_menu( 'bbmenu' ) ) { /* if menu location 'bbmenu' exists then use custom menu */
          wp_nav_menu( array( 'theme_location' => 'bbmenu') ); 
    }
    ?>
    
    </nav>

    now add custom css

    #bbnav ul {
    	font-size: 13px;
    	list-style: none;
    	margin: 0;
    }
    
    #bbnav li {
    list-style-type: none;
    display: inline-block;
    margin: 6px 4px;
    }
    
    #bbnav a {
    text-decoration: none;
    color: #555;
    background: #ddd;
    padding: 2px 8px;
    border: 1px solid #e4e4e4;
    }
    
    #bbnav li a:hover {
    background: #333;
    color: #fff;
    border-color: transparent;
    text-shadow: none;
    }

    ok i found a css way of showing the menu only on the forum archive page

    create a page called forums that leads to the forum archive

    now make sure to grab the page id

    heres how to get the page id

    now add this css , replace (#) with the page number id for the forum archive page

    .post-# #bbnav {
    	background: none;
    	clear: both;
    	display: block;
    	float: left;
    	margin: 0 auto 6px;
    	width: 100%;
    }
    
    #bbnav {
    	display: none;  
    }
    

    now it should only show on the forum archive page only

    not in subscribed forums anymore

    if you dont see the menu , you probably need a special way to register menus for your theme

    #148937

    Topic: Simple Layout

    in forum Themes
    webman1
    Participant

    Hi,

    I am new to bbPress so excuse this probably simple question.

    I need the bbPress to just show Topics when someone goes to the page.
    I don’t need freshness or anything but topics.

    We are using a custom theme. WP 3.9.1

    Is there any easy way to accomplish this?

    Thanks for your help.

    Tom

    Robin W
    Moderator

    no it’s not difficult, but would take a bit of coding

    You’ll need to either create a copy function and use that or amend the topics widget and risk it being overwritten by updates.

    There’s no simple, filter I can see.

    so go into

    bbpress/includes/common/widgets.php

    and on line 807 you’ll see the author-link being created

    the correct solution would be to create a fresh version of this widget, by say copying it to your functions file and renaming it.

    If you just edit the core file, it will be overwritten by updates, but as long as you note what you’ve changed and accept that risk !…

    so you’d need to look up the last reply for that topic, and then do another author link for that reply.

    Sorry, I really busy at the moment earing a living or I so the coding .. so unless someone else steps in, see how far you can get 🙂

    #148933

    In reply to: phpBB Import Error(s)

    Tom Dyer
    Participant

    No we haven’t gone live yet – I’m still developing the new site and haven’t got around to doing another import test yet. I’ve got plenty of tasks to complete before I carry on with the forum so I’ll be using an updated version of bbpress by that time I’d imagine. When you say you’ve started adding support for this, are you talking about the redirects in particular?
    Cheers

    #148931
    Robkk
    Moderator

    @leonyipa ok great on the youtube video width , at least the code is doing something

    there is probably another function on the web that i can direct you to if i find something that works on both height and width, so wait til i come back with a function that works for both

    if i give you a new function delete the old one

    paste codes into a child themes functions.php and style.css so that the code wont disappear during theme upgrades

    and dont edit the core files inside of bbpress
    copy those files into your child theme so you can be safe on bbpress plugin upgrades

    so copy bbpress.css to your child theme, if you dont have a child theme , make one they are great for customizing your bbpress install

    for more about customizing bbpress with css , plugins, and functions read this

    Step by step guide to setting up a bbPress forum – part 2

    themefurnace
    Participant

    Hello,

    Ive just imported quite a large Vbulletin3 forum to bbPress using the built-in importer and it doesnt seem to have imported any replies,

    The threads and users moved over ok but there are no replies listed in bbPress.
    I ran the repair options after the import one by one.

    Wondered if anyone had any ideas ?

    #148928

    In reply to: phpBB Import Error(s)

    Stephen Edgar
    Keymaster

    Oh…. And you should also be able to map the Anonymous/Deleted phpBB users topics and replies also via those same mappings, I’ve just finished adding support for this with phpBB and bbPress around an hour ago.

    I’ll come back tomorrow and show you the SQL query for that, for now it’s late here and I’m done for the night, anything else I will look at tomorrow 🙂

    #148927

    In reply to: phpBB Import Error(s)

    Stephen Edgar
    Keymaster

    You wrote in your previous post:

    Sure thing, I’ll see what I can dig out. I’m going to be running the import a few more times over the coming weeks anyway because I need to make sure that I have the process down to a t before we decide to go live.

    Does this mean you have now gone live and a ‘few more imports’ has already happened and ‘coming weeks’ is time flies when having fun?

    You should find in your wp_postmeta table primarily two reference meta keys, _bbp_old_forum_id and _bbp_old_topic_id

    In the case below the new forum ID in wp_posts is 8789 for the old phpBB forum ID 53 and the new topic id in in wp_posts is 8803 for the old phpBB topic id 25743

    
    meta_id	post_id	meta_key	        meta_value	
    57514	8789	_bbp_old_forum_id	53
    57626	8803	_bbp_old_topic_id	25743
    

    With the above data in hand you should be able to map all your old phpBB forums and topic ID’s to the new bbPress forum and topic ID’s.

    Leonyipa
    Participant

    hi, sorry for the late reply.

    I tried both ways:

    1) changing the Participant role directly

    // Participant/Default
    case bbp_get_participant_role() :
    default :
    $caps = array(

    // Primary caps
    ‘spectate’ => true,
    ‘participate’ => true,

    // Forum caps
    ‘read_private_forums’ => true,

    // Topic caps
    ‘publish_topics’ => true,
    ‘edit_topics’ => true,
    ‘delete_topics’ => true,

    // Reply caps
    ‘publish_replies’ => true,
    ‘edit_replies’ => true,
    ‘delete_replies’ => true,

    // Topic tag caps
    ‘assign_topic_tags’ => true,
    );

    break;
    }

    after I changed it, nothing happened :/

    and
    2) making custom role, but it says:

    Parse error: syntax error, unexpected ‘roles’ (T_STRING), expecting ‘(‘ in /home/gleam/public_html/wp-content/plugins/bbpress/includes/core/capabilities.php on line 216

    
    216: function add_new roles( $bbp_roles )
    217: {
    #148925

    In reply to: phpBB Import Error(s)

    Tom Dyer
    Participant

    @netweb – I’m happy to give it a try, but the problem(s) I think I’ll face are:

    1) The ID’s for the Forums, Topics and Replies are all different now that I’ve imported them into bbPress. This is because we’ve had to migrate a whole site over too which meant that around 5000 ID’s were already taken by other posts.

    2) The migrated data for bbPress has 68 Forums, 71,006 Topics, and 564,453 Replies so it’s going to be a big job to set up redirects for these individually.

    What I was thinking of doing, was grabbing the migration helper data, and writing a PHP script that would look up these old forum and topic ID’s and redirect to the correct place without me having to input any manual redirects.

    You mention that if there is no ‘wp_bbp_converter_translator’ table, then it uses the built in WordPress tables – do you know which ones I should be looking in? I’d presume it to be wp_postmeta or something for these particular bits?

    #148924
    Leonyipa
    Participant

    I also found the code is in
    /public_html/wp-content/plugins/bbpress/templates/default/css/bbpress.css

    I directly change the number of

    #bbpress-forums div.bbp-topic-content img,
    #bbpress-forums div.bbp-reply-content img {
    max-width: 100%;
    }

    However, no matter what number I change to, it still doesn’t work.
    The width of the image still remain 100%

    #148923
    Leonyipa
    Participant

    Thanks very much @Robkk!!

    The youtube video worked!!! I have been looking for the solution for a long time, thanks!
    The maximum width of youtube video works really well!!

    However, when I change the code to height, it doesn’t work 🙁

    Also for the image, I edited the css
    because I am using BBPress Default Theme, it doesn’t have a .css and tell me to edit function.php instead
    And I paste the code into: /public_html/wp-content/themes/bp-default/functions.php

    #bbpress-forums div.bbp-reply-content img, #bbpress-forums div.bbp-topic-content img {
    max-width: 100%;
    height: auto;
    }

    but no matter what I change the number, it is still set to 100%.
    Did I add the code to the wrong place? or it’s not working?

    januzi
    Participant

    Hi

    The problem is that there is no way to upgrade to the new version of the bbPress, so it has to work as it is. Every file in the bb template have got get_header(); and there is include wp-load.php in the bb-config.php. Title is fine, but there is no output from the wp_head(). I found that I should replace wp-load with the wp-blog-header. I did that, but wp_head() is still empty. Somebody mentioned that get_header() should be in bb-config.php. I put it in there and it works. Kind of. The function wp_head() finally echoes everything, but the title is empty. No wonder, there are no bb_ and is_ functions that would do something. So, is there a way to get wp_head working the right way?

    #148910
    kimberlyywp
    Participant

    Hi! I want to close some of my topics when get to 20 replies. I found this: http://bbpress.org/forums/topic/auto-close-topics/

    But can I specific by topic id which ones to close when they reach that 20 reply limit?
    Thanks!

    #148903
    Robkk
    Moderator

    @iblifefordummies the links you added go to a closed topic

    bbpress adds styling to closed topics

    hardly seeing it is kind of suppose to happen

Viewing 25 results - 19,651 through 19,675 (of 64,516 total)
Skip to toolbar