Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'bbpress'

Viewing 25 results - 19,776 through 19,800 (of 64,729 total)
  • Author
    Search Results
  • #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

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

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