Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'bbpress'

Viewing 25 results - 19,801 through 19,825 (of 64,729 total)
  • Author
    Search Results
  • #148873

    Topic: BBPress at Root

    in forum Installation
    tatort
    Participant

    Hi,

    i dident find a new version of BBpress Standalone. So i install WordPress an add BBPress via Plugin.
    First my URL look like these:
    Forum-Root = http://forum.domain.de/forums/forum/
    Forum-Forums = http://forum.domain.de/forums/forum/test1/
    Forum-Tropic = http://forum.domain.de/forums/topic/ins-herz-zuerst/
    ;-(
    But after deaktivate (Prefix all forum content with the Forum Root slug (Recommended))
    it lock like
    Forum-Root = http://forum.domain.de/forum/
    Forum-Forums = http://forum.domain.de/forum/test1/
    Forum-Tropic = http://forum.domain.de/topic/ins-herz-zuerst/

    This look better but i dident want to use WP as CMS oder Blog. I only want a root install.
    Look like
    Forum-Root = http://forum.domain.de/
    Forum-Forums = http://forum.domain.de/test1/
    Forum-Tropic = http://forum.domain.de/topic/ins-herz-zuerst/
    is there a way to do that?

    #148869
    Robin W
    Moderator

    where are you putting this code – is it in a bbpress template?

    Robin W
    Moderator

    ok thanks for that, I’ll see what’s needed.

    The original bbpress will group together things, you child theme can then pick and change individuals.

    So for instance if you were describing your family in a style.css you might have

    mother, daughter 1, daughter 2 {
    wearing : dress
    }
    father, son {
    wearing : jeans
    }

    Say you decided that daughter 2 should have tshirt and jeans, so in your child theme you’d put

    daughter 2 {
    Wearing : tshirt&jeans ;
    }

    This will leave mother and daughter 1 as they were and only change daughter 2

    silly example, but hopefully explains !

    Jerry
    Participant

    All css changes are within my child theme. For my child-theme’s style.css, I added this at the very bottom:

    /*Changes made to accommodate plugin recent-bbpress-changes*/
    #content ul {
    padding: 0;
    margin-left: 0;
    margin-right: 0;
    list-style: none;
    }

    For my bbpress.css in my child-theme, I added this around line 158 or so:

    li.bbp-topic-title {
    	float: left;
    	text-align: left;
    	width: 20%;

    One note on bbpress.css. The original bbpress.css had some combined lines that I separated. For example, I think that li.bbp-topic-title was combined with li.bbp-forum-info, as in the following manner:

    li.bbp-forum-info,
    li.bbp-topic-title {
    	float: left;
    	text-align: left;
    	width: 20%;

    But I could be wrong. Doesn’t matter. Separating them appears to be just fine.

    #148864
    Robin W
    Moderator

    the example is based on you having a page template in your theme that doesn’t display bbpress well, but works for other pages.

    In that example you could use a different class for bbpress pages to get them to render how you would like. So you would have the if/else.

    the article explains the other way, which is to rename a template to bbpress.php or forums.php, and then simply alter that for whatever bbpress display you want.

    Finally if it’s only bbpress display that you want to alter, you can simply change the bbpress styles in your theme style folder.

    Lots more in documentation, if you are trying to achieve something specific come back and detail it, and I’ll try and help

    #148861
    Robkk
    Moderator

    you want to change the

    links that come up with a topic or reply so that only some show, and others are in a dropdown list.

    is that correct?

    yes

    This also gives you the ability to add a new link

    yeah i added the topic favorite link to see if it worked and it did with the ajax too
    and also a mark topic as read from the bbpress go to first unread plugin

    You’ll also see that this function checks if it is a topic on line 1825

    i used this as a filter for the topic admin links

    //change admin links displayed
    function change_topic_admin_links ($r) {
    $r['links'] = apply_filters( 'rw_topic_admin_links', array(
    				'edit'  => bbp_get_topic_edit_link ( $r ),
    				'reply'  => bbp_get_topic_reply_link ( $r )
    				
    			), $r['id'] );
    return $r['links'] ;
    }
    add_filter ('bbp_topic_admin_links', 'change_topic_admin_links' ) ;

    i tried using this function to post a single admin link for a topic
    and also just by replacing return with echo
    but i cant seem to get that to work

    if ( bbp_is_topic( $r['id'] ) ) {
    			return bbp_get_name_of_link();
    		}
    
    		if ( !bbp_is_reply( $r['id'] ) ) {
    			return bbp_get_name_of_link() ;
    		}
    #148860
    Robin W
    Moderator
    if (is_bbpress()) :
     div class=”abc”
    else :
     div class=”xyz”
    endif;

    translates to

    if you are on a bbpress screen/page/display [as opposed to a wordpress blog post or page, a home page or anything that isn’t bbpress]

    the use div class abc

    if you are on any other type of page use class xyz.

    Many themes use if statements checking against ‘conditional tags’ to style areas for instance the conditional tag is_home() checks whether this is the home or index page.

    #148858
    ninjaunmatched
    Participant

    Okay I found the code which is on this site actually.

    click here

    But the code mentioned:

    if (is_bbpress()) :
    div class=”abc”
    else :
    div class=”xyz”
    endif;

    Still would not make sense to everyone. So I’m thinking the first part is the main part. After the colon you would change the div class to whatever you want change which would be some of the classes mentioned in this thread to another class that you create which simply just changes the font size.

    I’m thinking this way you would have to create your own classs for each thing you want to change in bbpress whether it was the reply text, the header text, or the content text. If I am off a bit or a lot just chime in. Hope it helps.

    Jerry
    Participant

    Got it solved! First, sorry for all the responses. I got lazy in posting the above instead of searching for the solution in the wordpress codex first. Turns out there is a function to return to the current blog, which I inserted within the “if” statement. Specifically, it is “restore_current_blog();”. Here is the working code:

    <?php
    /* 
    		Plugin Name: Recent bbpress Topics
    		Plugin URI: http://whosgotbooks.com/wp-content/plugins
    		Description: A plugin to display recent bbpress topics across the network
    		Version: 1.0.0
    		Author: Jerry Caldwell
    		Author URI: http://whosgotbooks.com
    		License: Open Source
    */ 
    /*
    Here is the shortcode required [recent-bbpress-topic]
    */
    function recent_bbpress_topics_shortcode() {                  
      recent_bbpress_topics(); }
      add_shortcode( 'recent-bbpress-topics', 'recent_bbpress_topics_shortcode' );
    
    //Add Recent Topics to BBPress
    function recent_bbpress_topics() {
    		switch_to_blog(9);
      if ( bbp_has_topics( array( 'author' => 0, 'show_stickies' => false, 'order' => 'DESC', 'post_parent' => 'any', 'posts_per_page' => 7 ) ) ) { 
          bbp_get_template_part( 'bbpress/loop', 'topics' );
          restore_current_blog();
          }
    // Hook into action
    add_action('bbp_template_after_forums_loop','recent_bbpress_topics');
    } ?>

    For anyone who wants to use this, a few more points. One, don’t forget the formatting for style.css. Two, I changed that formatting within a child theme. Three, I can’t guarantee you will have the same results with your formatting as I have made many other formatting changes the past few months for my site. Lastly, I did not “network activate” my plugin. I only activated it on the main site.
    As I get time I will add comments and try to increase the functionality of this plugin. Right now it is very basic. Maybe I’ll get good enough to publish it?

    #148856
    ninjaunmatched
    Participant

    I know it does cascade but if you are not familiar with writting the code to STYLE over attribiutes you can go looking for lines that alter font sizes. One way you could try is to get Notepad++. This text editer is just the greatest. Never edit code without it or something like it. You can use it to search for code. In this case I would try to search for “font-size:” within the CSS file being referred to in this thread. It will find every line where the font-size is being changed.

    Trying it now it finds 28 hits in the bbpress.css file I have in one of my sites. This I think will get you started. May not be the best way though. Just looking at the hits I can see some of the IDs or Classes also have a SPAN tag in them. Whichs tell me that the default span font settings would also have to be changed.

    I’m not sure where your HTML knowledge is but the SPAN tag when used is like a commenting or caption section (sort of) for text and it tends to be in a smaller font.

    for example:

    While jumping around the hits I see this:

    li.bbp-header div.bbp-topic-content span#subscription-toggle,
    li.bbp-header div.bbp-topic-content span#favorite-toggle,
    li.bbp-header div.bbp-reply-content span#subscription-toggle,
    li.bbp-header div.bbp-reply-content span#favorite-toggle {
    float: right;

    You may be able to get the look you want by just changing any

    font-size:

    entry you find but if things or some things still look too small for you then that span tag may be what you need to change to get it the way you want.

    Now I’m still just maybe a intermediate in my kowledge of things. I know what I was taught by learning myself and having taken Wed Design and Development I and II at a local college. But I am no developer. So I can read through css and understand what is going on. But because of the cascading way of CSS you can make changes that will not stick due to a higher level attribute being set so you have to play detective which wastes alot of time.

    I do agree though as the responses are too vague. Looking for the same answer I find this thread and so I am sharing what I have done so far to figure this one out. I did find something that mentions being able to use an IF statement on the themes main style sheet (CSS file) that will find all bbpress related entries and change whatever attribute you designate which in this case would be the font size. Now someone mentioned this in this thread without stating how which is close to pointless if the intention is to help you solve it. At least when you make the suggestion state it in a simple way so its understood by all. I ran into this code during my research on it but I am currently here. I will copy paste the code if I can find it again. By now I assume you found the answer but for anyone else that runs into this thread. (which by the way showed up on top of a google search in like its own special section).

    Jerry
    Participant

    Update on this. It turns out my code was insufficient. If have fixed it, sort of, which has led to another problem. First, here is the updated code:

    <?php
    /* 
    		Plugin Name: Recent bbpress Topics
    		Plugin URI: http://whosgotbooks.com/wp-content/plugins
    		Description: A plugin to display recent bbpress topics across the network
    		Version: 1.0.0
    		Author: Jerry Caldwell
    		Author URI: http://whosgotbooks.com
    		License: Open Source
    */ 
    function recent_bbpress_topics_shortcode() {                  
      recent_bbpress_topics(); }
      add_shortcode( 'recent-bbpress-topics', 'recent_bbpress_topics_shortcode' );
    
    //Add Recent Topics to BBPress
    function recent_bbpress_topics() {
    	switch_to_blog(9);
      if ( bbp_has_topics( array( 'author' => 0, 'show_stickies' => false, 'order' => 'DESC', 'post_parent' => 'any', 'posts_per_page' => 7 ) ) ) { 
          bbp_get_template_part( 'bbpress/loop', 'topics' );
          }
    // Hook into action
    add_action('bbp_template_after_forums_loop','recent_bbpress_topics');
    } ?>

    Using the line “switch_to_blog(9);” works great to get the topics from site 9 to the main site. But now my problem is; it brings some unwanted behavior. The main content looks great, but the sidebars change to the format of site 9. Perhaps this has become a wordpress issue and not a bbpress issue? Perhaps I need to use code in addition to “switch_to_blog(9);” that prevents the unwanted behavior? If I need to change this to a wordpress thread, please let me know and I will. Otherwise, if you can provide a solution, that would be great.

    #148853

    In reply to: Error on Embing Media

    Leonyipa
    Participant

    ok, thanks 🙂
    can you help me with the topic if you are free? thanks 🙂

    Reduce size of embed Media

    #148849

    In reply to: Remove Private Tag

    Robin W
    Moderator

    yes put this code in your functions file

    add_filter('protected_title_format', 'ntwb_remove_protected_title');
    function ntwb_remove_protected_title($title) {
    	return '%s';
    }
     
    add_filter('private_title_format', 'ntwb_remove_private_title');
    function ntwb_remove_private_title($title) {
    	return '%s';
    }

    for information on functions files see

    Functions files and child themes – explained !

    #148846
    jamesamack
    Participant

    Hi guys,

    I was hoping you could help me out here, first up I’m working with BBPress V2.5.4.

    I’m building a private members only forum and I’ve got everything up and running but every forum has the tag Private: in front of it. So when i end up opening things I end up with the page header as “Home › Forum › Private: Private: FORUM NAME TEST” for example.

    Is there any way you can remove the Private bit? Without making everything public?

    Sorry I can’t share the site but as it’s all hidden behind a membership section there isn’t anything to show.

    Thanks in advance for the help

    #148842
    Stephen Edgar
    Keymaster

    Cool, have a look around the site here also as there a few interesting topics, like this one.

    Let us know if you need anything else, will try to answer any Q’s you have.

    p.s. Our vBulletin importer is pretty awesome, works well, and is included free, the downside is waiting for those MySQL queries to finish 😉

    #148841
    superaven
    Participant

    Thanks again Stephan.

    Not so worried about the import… I’ve sourced an outfit that specializes in complex data migrations and will probably leave it to them to develop a custom tailored solution for it.

    It is great to hear the rest of it though. I’ll bring this up to everybody so we can dig a bit deeper and put BBPress back on the possible contender short list. Hopefully you guys push it out soon, but truth is we’re kinda behind schedule ourselves.

    Looking forward to seeing how BBPress evolves.

    #148840
    Stephen Edgar
    Keymaster

    So to be clear, you feel that if I were to implement a work around for ‘last active time’ or wait to install BBPress version 2.6 that I can confidently run BBPress on a forum that size?

    Indeed, as you stated you need a fairly robust server though it sounds like you already have that. As bbPress 2.6 continues development I’d suggest you set yourself up a test install on your local PC and do some benchmarks and test the vBulletin importer as ~6.5 million posts will take a bit of time to import and familiarising yourself with how this works is worth knowing so you know what has to be done before you switch over your live site.

    Is ‘last active time’ really the bottle neck? As I understood this issue, it had to do with bbPress sharing the DB table with the WordPress posts.

    Yes, ‘last active time’ is the primary bottleneck as by default we sort topics based on the latest reply in a topic, though if a topic has no replies this is slotted in also.

    The full technical details of this are here https://bbpress.trac.wordpress.org/ticket/1925, it is not the easiest read and as there are two potential methods discussed. Primarily because of this ticket is why bbPress 2.6 is running late as there is a boat load of testing to be done to make sure we don’t break backwards compatibility.

    Lastly, do you have a target date for v2.6?

    3 weeks late 😉

    #148839
    superaven
    Participant

    Hi Stephan,

    Thanks for your reply.

    So to be clear, you feel that if I were to implement a work around for ‘last active time’ or wait to install BBPress version 2.6 that I can confidently run BBPress on a forum that size?

    Is ‘last active time’ really the bottle neck? As I understood this issue, it had to do with BBPress sharing the DB table with the WordPress posts.

    Lastly, do you have a target date for v2.6?

    Thanks again,

    Allen

    #148838
    Stephen Edgar
    Keymaster

    Hi,

    The issue discussed in the thread you linked to is being updated/fixed for the next bbPress release, version 2.6, we are currently just working through some other bits as part of 2.6 before finalizing this update.

    I don’t see the size of your vBulletin forum being an issue for bbPress 2.6, the ‘last active time’ is a bit of a pain for large sites though there are also a couple of workarounds already implemented in these large sites.

    What version of vBulletin are you currently using?

    bbPress has built in importers for vBulltin 3.x and 4.x, I also have a ‘development’ version for vBulletin 5.x that will be in a future release of bbPress.

    #148837
    superaven
    Participant

    Doh, just saw this thread despite our forum being quite a bit larger… https://bbpress.org/forums/topic/bbbpress-performance/

    #148836
    superaven
    Participant

    Forgot to mention… Our server hardware is pretty robust ands plenty capable for a stand alone forum like vBulletin or Xenforo. Since BBPress looks so streamlined and minimal, I’d have guessed its resource footprint on our servers would be significantly less than some of those other forum systems that has ever heel and whistle imaginable.

    I know these discussions often turn towards solutions like throwing more system resources at a problem and you can run just about anything, but trying to get an idea of efficiency as best I can so we can make an informed decision.

    #148834
    superaven
    Participant

    Hi,

    We’re contemplating moving our website to WordPress and are looking at integrated forum options to replace an older version of vBulletin we’re running now. I know vBulletin to WordPress bridges exist, but I’m hesitant as its been a nightmare bridging it to our current CMS and hoping to also not have to maintain two separate scripts, never mind theming them both as well.

    Anyhow, I was informed that BBPress shares the same database table as WordPress and that migrating a forum as large as ours would have a massively negative effect on our WordPress install and properly affect our posts pretty bad.

    Our vBulletin forum has approximately 180,000 members, 100,000 threads and roughly 6.5 million comments.

    Any suggestions on how we might best proceed in a forum solution should we go the WordPress route for the rest of our website? I did see Simple:Press and saw it runs off a different table… Hate to be superficial, but looking at the website, it doesn’t really inspire confidence. (no offense)

    Thank you in advance for any input or insight that can help us make a decision.

    shpitzyl
    Participant

    Hello all.
    Does someone here know how to embed buddypress favorite button inside bbpress posts? Is it possible to get the activity id from the post id?

    Jerry
    Participant

    I have been working for about 5 days to get topics from a forum on one site to show on my main page, which is a separate site. I’m running current versions of wordpress multisite, bbpress, and buddypress on my main page.

    I found some code via my searches and created a simple plugin. It works to display topics from a separate site on my main page. That was a victory for sure. The problem I am now having is the formatting! Arrghh! I cannot get it to format correctly.

    I know that others have been wanting to do this, so perhaps someone else can get me to the final step and we can publish a good plugin. Here is the code:

    <?php
    /* 
    		Plugin Name: Recent bbpress Topics
    		Plugin URI: http://whosgotbooks.com/wp-content/plugins
    		Description: A plugin to display recent bbpress topics across the network
    		Version: 1.0.0
    		Author: Jerry Caldwell
    		Author URI: http://whosgotbooks.com
    		License: Open Source 
    */ 
    
    function recent_bbpress_topics_shortcode() {                  
      recent_bbpress_topics(); }
      add_shortcode( 'recent-bbpress-topics', 'recent_bbpress_topics_shortcode' );
    
    // ! // Add Recent Topics to BBPress
    function recent_bbpress_topics() {
      if ( bbp_has_topics( array( 'author' => 0, 'show_stickies' => false, 'order' => 'DESC', 'post_parent' => 'any', 'posts_per_page' => 8 ) ) ) { 
          //bbp_get_template_part( 'bbpress/loop', 'topics' );
          bbp_get_template_part( 'loop', 'topics' );
          }
    // Hook into action
    add_action('bbp_template_after_forums_loop','recent_bbpress_topics');
    
    } ?>

    I have been trying to get this to format with bbpress.css. I managed to changed the css on one of my sites to get things how I want, but I can’t with this function. Here is a link of how I want things to look: http://whosgotbooks.com/book-reviews/
    And here is the link of the main page, where I can’t quite get it the way I want it: http://whosgotbooks.com/

    Here is the bbpress.css that worked on the review page, but doesn’t work for the main page:

    li.bbp-topic-title {
    	float: left;
    	text-align: left;
      overflow: hidden;
    	width: 75%;
    }
    #bbpress-forums li.bbp-body ul.topic {
    /*	border-top: 1px solid #7D573A; */ 
      border-top: transparent;
    	overflow: hidden; 
      display: inline-table;  
    	padding: 8px;
      width: 22%;
    }

    To get the books somewhat organized on the main page, I had to change width to 20% on the bbp-topic-title class above, and the bbp-body ul.topic changes do not help on the main page.
    This is the extent of my abilities. I would love to get rid of those annoying dots as well. Hopefully someone can help me get the rest of the way.
    Thanks…

    #148825

    In reply to: bbbPress performance

    Jonathan Bardo
    Participant

    Hey everyone,

    I know this topic is a little bit old but we have recently created a plugin that would help reducing the post meta queries involving _bbp_last_active_time. The plugin is righthere.

    We basically move the meta to his own table for reading which reduce considerably the query time. The good thing about this plugin is that it is non intrusive meaning once bbpress core find a solution to resolve this issue, one can only deactivate the plugin and everything will be back to normal.

    Any feedback welcomed!

    Cheers!

Viewing 25 results - 19,801 through 19,825 (of 64,729 total)
Skip to toolbar