Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'bbpress'

Viewing 25 results - 19,676 through 19,700 (of 64,516 total)
  • Author
    Search Results
  • #148901
    Robin W
    Moderator
    #148900
    iblifefordummies
    Participant

    Currently, the font color is nearly the same as the background, making it extremely hard to see. I don’t know CSS well enough to be able to change it myself, so I could and would appreciate some help!

    Wordpress version: Latest
    BBPress version: 2.5.4
    Link to where it shows the problem:

    http://www.iblifefordummies.com/forum/ib-life-for-dummies/news-and-announcements/

    and

    http://www.iblifefordummies.com/topic/welcome-to-the-iblfd-forums/

    #148899
    Robkk
    Moderator

    try all of these

    span.bbp-admin-links a {
    color: #404040;
    }

    div.bbp-reply-header span.bbp-admin-links a {
    color: #404040;
    }

    #bbpress-forums div.bbp-reply-header span.bbp-admin-links a {
    color: #404040;
    }

    #148898
    Stephen Edgar
    Keymaster

    The current phpBB importer only imports ‘extra’ user fields from the phpbb_users table.

    The following custom profile fields are what is currently imported, we store these in wp_usermeta

    
    		// Store ICQ (Stored in usermeta)
    			'from_fieldname' => 'user_icq',
    		// Store MSN (Stored in usermeta)
    			'from_fieldname' => 'user_msnm',
    		// Store Jabber
    			'from_fieldname' => 'user_jabber',
    		// Store Occupation (Stored in usermeta)
    			'from_fieldname' => 'user_occ',
    		// Store Interests (Stored in usermeta)
    			'from_fieldname' => 'user_interests',
    		// Store Signature (Stored in usermeta)
    			'from_fieldname' => 'user_sig',
    		// Store Location (Stored in usermeta)
    			'from_fieldname' => 'user_from',
    		// Store Avatar Filename (Stored in usermeta)
    			'from_fieldname' => 'user_avatar',
    

    The current implementation needs to explicitly named fields to import them, so having the import support custom named fields is not available to be used at this time, one day hopefully.

    With that said, with a list of fields names and the tables the fields are stored in these can easily be added to a customized phpBB importer.

    As to where to send these fields, if you are using BuddyPress, XProfile would be the ideal place to have these. Our importer doesn’t handle this though, again, maybe one day we can add something in BuddyPress to import ‘extra’ profile fields from bbPress. Probably the key thing here is we can get all your phpBB profile fields imported into wp_usermeta and then with a bit of MySQL these could be copied over to the BuddyPress XProfile table and everything would be awesome. 🙂

    EDIT: As all I’ve been doing the past ~5 days is working on the importers we do actually store the old phpBB user_id so mapping the old users after an import back to the old phpBB database should also not be an issue once bbPress 2.6 is released 🙂

    Jerry
    Participant

    Hi Robin. I made another improvement and added some comments. I noticed that, no matter where I inserted the shortcode, the topics displayed at the top of the content. After some searching I learned why – functions need to return a string. So I found an easy wordpress solution. I also simplified the shortcode, and removed the add_action line at the bottom as it was not doing anything. 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' => 9 ) ) ) { ?> 
          <?php bbp_get_template_part( 'bbpress/loop', 'topics' );
          //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;
    }
    #148891
    Robkk
    Moderator

    not sure but you probably have to set a max width for oembed embeds

    http://www.wpbeginner.com/wp-themes/how-to-set-oembed-max-width-in-wordpress-3-5-with-content_width/

    add the code to your functions.php in your child theme.

    change 600 to whatever number you want as the width, im sure you could copy the function to width to height and also do the height to.

    if the code doesnt work , look at the comments and try that user posted code. (i havent tried any of these codes so i dont know if they work really, if they dont just delete the function from your child functions.php)

    for images (using img quicktag) i think you can use css

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

    for images (posted by link using oembed , imgur , flickr picture, instagram picture) the oembed code that i linked to should do the same for these.

    #148889
    Leonyipa
    Participant

    thanks,

    no, what I mean is setting a stand size for ALL embed youtube videos in BBPress

    #148888
    slayne76
    Participant

    Hi,
    I run a couple of different bbpress installations, of course they’re both up-to-date (2.5.4)

    I noticed that on both installations, when you trash a topic, and you try to “un-trashit” you receive a nonce error.

    I’m not sure if this issue depends on my personal configuration, but of course i disabled all other plugins and used a fresh wp install.

    Being a PHP developer I digged inside the core files of bbpress and I noticed that in includes/topics.php on line 818 the nonce is generated with

    wp_nonce_url( add_query_arg( array( '_wp_http_referer' => add_query_arg( array( 'post_type' => bbp_get_topic_post_type() ), admin_url( 'edit.php' ) ) ), admin_url( sprintf( $post_type_object->_edit_link . '&action=untrash', $topic->ID ) ) ), 'untrash-' . $topic->post_type . '_' . $topic->ID )

    so the “sent” nonce is basically untrash-topic_<ID>, while the nonce check on wordpress (on post.php line 265 is:

    check_admin_referer('untrash-post_' . $post_id);

    or basically untrash-post_<ID>.

    Can anyone tell me if other people found out a similar issue untrashing topics or is it just me? Thanks in advance for your support 🙂

    #148883
    Robin W
    Moderator

    if it’s not working try

    color: #404040 !important;

    if bbpress loads after your theme, then it’ll overwrite changes made in your css, ie revert them back

    #148882

    In reply to: Topic Index Shortcode

    Robin W
    Moderator

    yes, I’ve started a plugin that does some different shortcodes, and at the moment one that does just that is all that’s in there

    bbp additional shortcodes

    #148880
    mglasser
    Participant

    Does the importer handle the custom profile fields in phpbb3, sepcifically the functionality in version 3.10+? Phpbb3 now allows admins to create new custom profile fields, beyond the ones listed as imported kept in phpbb3_users. There are at least 4 related tables, starting with <phpbb3_profile_fields…>.

    Is it correct to think these custom profile fields should go into BuddyPress xprofile fields, or should they go into wp_meta (?) during bbpress import? If you happen to know, is there a way to import phpbb3 custom profile fields into BuddyPress if that is the appropriate target?

    Thanks, Mike

    #148879
    localmarketingus
    Participant

    Is there a way for me to redirect the submit button on the bbp-topic-form to an email address (like mailto:xys@whatever.com) rather than have it post a thread? I want people to be able to use the functionality of bbpress to add html and insert code if needed but want it to function more like a contact form.

    Any suggestions are appreciated

    #148878
    LeafyGrove
    Participant

    While adjusting the topics/reply color for my site, I seem to run into a bit of a snag with trying to change the admin links coloring. I’m using Catch Evolution for a theme and as such there is a area in options to put custom css code. This is what I have thus far:
    ” #bbpress-forums div.bbp-reply-content, #bbpress-forums div.bbp-reply-author, #bbpress-forums div.bbp-reply-header, #bbpress-forums a.bbp-admin-links { color: #404040; }

    I do plan on having admin links a different color, I just tossed it in there to test to make sure it’s correct/changes.

    #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

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