Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 14,026 through 14,050 (of 32,585 total)
  • Author
    Search Results
  • #135882

    In reply to: SMF Import to bbPress

    NeilJ
    Participant

    Hmmm something odd going on and I beginning to think it is to do with the number rows being processed for the replies. Running a test where I have set processing of 100 rows at a time it is showing in the status box as the following:

    Converting replies (1500 - 1599)

    Looking at the number of wp_posts where the post_type is equal to reply it shows 1652:

    mysql> select count(*) from wp_posts where post_type = "reply";
    +----------+
    | count(*) |
    +----------+
    |     1652 |
    +----------+
    1 row in set (0.00 sec)
    

    I was checking the processlist whilst the import was running and the inserts just completely stopped with no errors.

    #135881

    In reply to: SMF Import to bbPress

    NeilJ
    Participant

    Been giving this a try today and yeah there seems to be a problem with importing replies (which we know is not working yet). So to help out the OP I give an example of replies not importing. For instance, this is the total number of SMF messages on SMF database I wish to convert to BBPress:

    mysql> select count(*) from smf_messages;
    +----------+
    | count(*) |
    +----------+
    |     2663 |
    +----------+
    1 row in set (0.00 sec)

    Running the importer it seems to get stuck and stops importing:

    mysql> select count(*) from wp_posts where post_type = "reply";
    +----------+
    | count(*) |
    +----------+
    |     2252 |
    +----------+
    1 row in set (0.00 sec)

    I am doing this on my own machine and looking at the apache logs I don’t see any errors related to the import. I also checked if there was a query stuck so I checked the process list and it was empty.

    Going to debug the relevant scripts and see what I can find.

    #135880

    Probably best directed at @johnjamesjacoby, any suggestions welcome!

    Already read your post here (love the concept, makes sense) and have a question : http://bbpress.org/forums/topic/roles-and-capabilities-in-bbpress-2-2/

    I’m the developer of Events Manager and in this plugin you can assign custom capabilities to existing roles. Unfortunately your recent update regarding caps is preventing our plugin from adding custom caps to your roles.

    I’ve figured out a way around this, but this requires at least 1 extra database query each instance since I can’t load wp_user_roles via get_option due to your hooks.


    function em_bbp_get_caps_for_role( $caps, $role ){
    global $em_capabilities_array, $wpdb;
    //get the non-dynamic role from the wp_options table
    $roles = maybe_unserialize($wpdb->get_var("SELECT option_value FROM {$wpdb->options} WHERE option_name='wp_user_roles'"));
    //loop through the original role if it exists and add our em caps to the bp role
    if( !empty($roles[$role]) ){
    foreach($roles[$role]['capabilities'] as $cap_name => $has_cap ){
    if( array_key_exists($cap_name, $em_capabilities_array) ){
    $caps[$cap_name] = $has_cap;
    }
    }
    }
    return $caps;
    }
    add_filter('bbp_get_caps_for_role', 'em_bbp_get_caps_for_role', 10, 2);

    What it does is load our caps into your caps by referencing the original wp_user_roles array

    So, my questions are:

    • Is there a better way to do this, preferably avoiding extra DB queries?
    • Since you seem to be assigning a second role to the user, would an alternative solution be to prevent EM from assigning caps to bbpress user roles and let the primary/secondary role inherit the relevant caps?

    thanks for reading!

    #135874
    vogelsang
    Participant

    Hi,

    I would like to make the forum name part of the topic dynamic.

    I like to have
    forum/name-of-forum/topic-title

    where the “name-of-forum” should relflect the name of the forum the topic is in

    but I get:
    forum/topic/topic-title

    where the “topic” part is fixed.

    Is there a plugin? Do I have to code?

    Any help is appreciated 🙂

    #135871
    Benjamin
    Participant

    Hi,

    I’m currently trying to adjust the styles of my bbpress install and am running into a bit of difficulty. I’m running bbPress 2.3.2 and WP 3.6, using my own theme which is based on “Twenty Twelve.”

    I noticed some big spaces in the header on each page and went to reduce the space. It turns out there are a bunch of different paragraph tags in the header for each “topic” on my site, but these tags do not appear on example sites listed on bbpress.org.

    This first snippet is the code I’d like to have so I can style it (taken from http://www.dalluva.com/member-area/forums/topics/resources-where-to-get-your-sommelier-certification/):

    <li class=”bbp-header”>
    <div class=”bbp-reply-author”>Author</div><!– .bbp-reply-author –>
    <div class=”bbp-reply-content”>Posts</div><!– .bbp-reply-content –>
    <!– .bbp-header –>

    This is what my site is generating:

    <li class=”bbp-header”>
    <div class=”bbp-reply-author”>Author</div><p><!– .bbp-reply-author –></p>
    <div class=”bbp-reply-content”><p>Posts</p></div><p><!– .bbp-reply-content –></p>

    Why is my site putting paragraph tags around the comments, as well as the word “Posts”? Any help is greatly appreciated.

    Benjamin

    Tux Kapono
    Participant
    #135865
    Stephen Edgar
    Keymaster

    Introduce Forum Importer template for use with importing from AEF (Advanced Electron Forum) v1.0.x (Tested on v1.0.9)

    http://codex.bbpress.org/import-forums/ & ​​http://codex.bbpress.org/import-forums/aef

    Working: Forums, Topics, Replies & Users
    Not Working Yet: User Passwords & Custom BBCode for Topic & Reply Content

    Attached to bbPress Trac Ticket #2384 is the 1st pass patch for AEF importing into bbPress.

    To test the importer download the latest patch from the link above and copy/ftp the file into the /includes/admin/converters/ folder of your bbPress plugin.

    I hope to get the remaining outstanding items done ASAP.
    (User passwords will be a little trickier and will take a bit more time)

    Any feedback and/or testing that you can provide will help me out tremendously.

    Cheers,

    Stephen 🙂

    #135864
    Stephen Edgar
    Keymaster

    Introduce Forum Importer template for use with importing from Phorum v5.2.x (Tested on v5.2.19)

    http://codex.bbpress.org/import-forums/ & ​​http://codex.bbpress.org/import-forums/fluxbb

    Working: Forums, Topics, Replies & Users
    Not Working Yet: User Passwords & Custom BBCode for Topic & Reply Content

    Attached to bbPress Trac Ticket #2383 is the 1st pass patch for FluxBB importing into bbPress.

    To test the importer download the latest patch from the link above and copy/ftp the file into the /includes/admin/converters/ folder of your bbPress plugin.

    I hope to get the remaining outstanding items done ASAP.
    (User passwords will be a little trickier and will take a bit more time)

    Any feedback and/or testing that you can provide will help me out tremendously.

    Cheers,

    Stephen 🙂

    #135857
    jzn123
    Participant

    I am using this version, but it’s not working with bbPress v1.1

    Has someone a clue?

    <?php
    
    /*
    
    Plugin Name: Target Blank
    
    Description:  append target="_blank" to all links
    
    Plugin URI:  http://ckon.wordpress.com/2007/07/12/bbpress-plugin-bb-tweaks/
    
    Author:  _ck_
    
    Version: 0.04
    
    */
    
    //add target=_blank to post links
    
    function bb_target_blank( $text ) {
    
    $text = preg_replace('|<a (.+?)>|i', '<a $1 target="_blank">', $text);
    
    return $text;
    
    }
    
    add_filter('pre_post', 'bb_target_blank');
    
    ?>
    #135855
    KorvinM
    Participant

    I’m having the same problem as kiagua and Andy Smith
    WordPress 3.6
    bbPress 2.3.2

    exactly the same error message, referencing line 1199. Interestingly the warning shows up twice.

    Anyway, here’s the whole function which contains that line:`/**
    * Adds ability to include or exclude specific post_parent ID’s
    *
    * @since bbPress (r2996)
    *
    * @global DB $wpdb
    * @global WP $wp
    * @param string $where
    * @param WP_Query $object
    * @return string
    */
    function bbp_query_post_parent__in( $where, $object = ” ) {
    global $wpdb, $wp;

    // Noop if WP core supports this already
    if ( in_array( ‘post_parent__in’, $wp->private_query_vars ) )
    return $where;

    // Bail if no object passed
    if ( empty( $object ) )
    return $where;

    // Only 1 post_parent so return $where
    if ( is_numeric( $object->query_vars[‘post_parent’] ) )
    return $where;

    // Including specific post_parent’s
    if ( ! empty( $object->query_vars[‘post_parent__in’] ) ) {
    $ids = implode( ‘,’, array_map( ‘absint’, $object->query_vars[‘post_parent__in’] ) );
    $where .= ” AND $wpdb->posts.post_parent IN ($ids)”;

    // Excluding specific post_parent’s
    } elseif ( ! empty( $object->query_vars[‘post_parent__not_in’] ) ) {
    $ids = implode( ‘,’, array_map( ‘absint’, $object->query_vars[‘post_parent__not_in’] ) );
    $where .= ” AND $wpdb->posts.post_parent NOT IN ($ids)”;
    }

    // Return possibly modified $where
    return $where;
    }`

    line 1199:`
    if ( in_array( ‘post_parent__in’, $wp->private_query_vars ) )
    return $where;`

    This might sound like a wild hack in the dark but I thought I’d have a go at simply making the second parameter an array, like so:

    // Noop if WP core supports this already
    	if ( in_array( 'post_parent__in', array($wp->private_query_vars) ) )
    		return $where;

    and much to my surprise this seems to have solved the problem in as much as the error warning is gone and as far as I can tell so far, the two (private) fora I have set up seem to be running as normal.

    #135852
    am71722
    Participant

    I’m still getting a 500 server error… Not sure what is going on. You have done a wonderful job with the code though. What would cause custom imports to fail and not built in imports?

    #135851
    Stephen Edgar
    Keymaster

    Introduce Forum Importer template for use with importing from Phorum v5.2.x (Tested on v5.2.19)

    http://codex.bbpress.org/import-forums/ & ​​http://codex.bbpress.org/import-forums/phorum

    Working: Categories, Forums, Topics, Replies & Users
    Not Working Yet: User Passwords & Custom BBCode for Topic & Reply Content

    Attached to bbPress Trac Ticket #2382 is the 1st pass patch for Phorum importing into bbPress.

    To test the importer download the latest patch from the link above and copy/ftp the file into the /includes/admin/converters/ folder of your bbPress plugin.

    I hope to get the remaining outstanding items done ASAP.
    (User passwords will be a little trickier and will take a bit more time)

    Any feedback and/or testing that you can provide will help me out tremendously.

    Cheers,

    Stephen 🙂

    stevie77n
    Participant

    Hi,

    I was hoping that someone could tell me if there is there a way to display a list of child forums for specific parent using a shortcode?

    For example, I have a number of private member forums that visitors need to login to view. I want to have a page that they visit to logon with the list of private forums below.

    http://www.blueclouditsolutions.com/asap/
    Wordpress version: 3.6
    bbpress version: 2.3.2

    Thanks for your help.

    Steve.

    #135845
    johni33
    Participant

    No, it’s still doing it, no response from bbpress.

    #135842
    nvkodde
    Participant

    Were you able to figure out this problem? I’m having the same issue.

    #135836
    Stephen Edgar
    Keymaster

    I downloaded a trial of Social Engine and I have now set it up to test with…

    I am using Social Engine v4.6.0, what version do you have/using???

    I may have missed it but I was unable to select a table prefix for the MySQL database during install so all the Social Engine v4.6.0 database tables all have a common prefix of ‘engine4_’ and here is a pic of the MySQL DB structure for the forum tables.

    With your importer I noticed that with your ‘from_tablename’ for each section you are using multiple table names in each section. eg. In the ‘forum section’ you have used ‘se_forums’, ‘se_forumtopics’ & ‘forum’ for ‘from_tablename’, you can really only use a single database table for each section unless you have a valid set of ‘join_tablename’, ‘join_type’ & ‘join_expression’.

    In my updated import script that I will link to below I used ‘forum_forums’ for each field in the ‘forum section’ and on the bbPress import screen I used a table prefix of ‘engine4’ thus the query during import will use all the forum info from the ‘engine4_forum_forums’ database table as per my image above.

    I started with the copy of your import script you linked to which was a great help in getting up and running quickly and I have updated it with as many fields as I can find and things ‘appear’ to be working quite well at my end though some more testing is still needed.

    Anyway, you can take a look at the update I did which also brings some code tweaks and formatting inline with the other bbPress Importers.

    As long as you are using Social Engine v4.6.0 I think this should help a great deal, if your using an old v3 version we will have to see if I can get my hands on a copy of that.

    One more thing… What about users? Do you need tom convert/import them???
    (I will end up adding the user import to this for when others need to)

    Without further ado…. Check it out here:
    https://gist.github.com/ntwb/cefe6fe20b1a652a50fc
    (It still needs a few more tweaks and checks, but it is close)

    #135834

    In reply to: problem

    tveryadvancedhelp
    Participant

    I think you need to check that file php code, on line 1198, if there not some mistake. It’s showing 1199 but you always need to look back from that line to discover the problem.
    you always can contact me verd733@gmail.com for help.

    -Tvery.

    #135824
    Stephen Edgar
    Keymaster

    Introduce Forum Importer template for use with importing from SMF v2.0.x(Tested on v2.0.4)

    http://codex.bbpress.org/import-forums/ & ​​http://codex.bbpress.org/import-forums/smf

    Working: Forums, Topics, Replies, Users & User Passwords
    Partial: Custom BBCode for Topic & Reply Content
    Not Working Yet: Categories

    Attached to bbPress Trac Ticket #2380 is the 1st pass patch for SMF importing into bbPress.

    To test the importer download the latest patch from the link above and copy/ftp the file into the /includes/admin/converters/ folder of your bbPress plugin.

    I hope to get the remaining outstanding items done ASAP.
    (User passwords will be a little trickier and will take a bit more time)

    Any feedback and/or testing that you can provide will help me out tremendously.

    Cheers,

    Stephen 🙂

    #135821

    In reply to: PHP-Fusion to bbPress

    Stephen Edgar
    Keymaster

    If ‘PHP-fusion’ uses a MySQL database you should be able to modify the included ‘Example.php’ import script.

    You can take a stab at modifying the included ‘Example.php’ included with bbPress to try importing your forums just as @vogelsang did for importing from Drupal. There are some basic instructions here on creating your own custom imports for bbPress.

    Further information on importing existing forums into be bbPress can be found here:

    https://codex.bbpress.org/import-forums

    #135819
    carmelneta
    Participant

    hey all,
    ive created a custom topic loop that shows 3 recent replies on every topic, but for some reason it dosent effect the loop in paged after the first page.

    
        <li>
    <ul class="cn_bbp_rep_list">
        
          <?php 
             
            bbp_has_replies(array('post_parent'    => bbp_get_topic_id()));
            while ( bbp_replies() ) : bbp_the_reply();
                $current_topic_reply_id = bbp_get_reply_id();
          ?>
                <li class="cn_rep">
                    <?php bbp_reply_author_link( array( 'size' => '20' ) ); ?>
                    	<a>" class="bbp-reply-permalink"> <?php bbp_reply_title(); ?> </a>
                        <?php bbp_reply_post_date(); ?>
                </li>
            
      <?php endwhile; ?>
    

    Any help?

    #135818
    Stephen Edgar
    Keymaster

    If ‘mm_forum/Typo3 as CMS′ uses a MySQL database you should be able to modify the included ‘Example.php’ import script.

    You can take a stab at modifying the included ‘Example.php’ included with bbPress to try importing your forums just as @vogelsang did for importing from Drupal. There are some basic instructions here on creating your own custom imports for bbPress.

    Further information on importing existing forums into be bbPress can be found here:

    https://codex.bbpress.org/import-forums

    #135802
    Stephen Edgar
    Keymaster

    If ‘Social Engine 3’ uses a MySQL database you should be able to modify the included ‘Example.php’ import script.

    You can take a stab at modifying the included ‘Example.php’ included with bbPress to try importing your forums just as @vogelsang did for importing from Drupal. There are some basic instructions here on creating your own custom imports for bbPress.

    Further information on importing existing forums into be bbPress can be found here:

    https://codex.bbpress.org/import-forums

    #135798
    Stephen Edgar
    Keymaster

    Introduce Forum Importer template for use with importing from MyBB v1.6.xx(Tested on v1.6.10)

    http://codex.bbpress.org/import-forums/ & ​​http://codex.bbpress.org/import-forums/mybb

    Working: Categories, Forums, Topics, Replies & Users
    Not Working Yet: User Passwords & Custom BBCode for Topic & Reply Content

    Attached to bbPress Trac Ticket #2378 is the 1st pass patch for MyBB importing into bbPress.

    To test the importer download the latest patch from the link above and copy/ftp the file into the /includes/admin/converters/ folder of your bbPress plugin.

    I hope to get the remaining outstanding items done ASAP.
    (User passwords will be a little trickier and will take a bit more time)

    Any feedback and/or testing that you can provide will help me out tremendously.

    Cheers,

    Stephen 🙂

    #135797
    Stephen Edgar
    Keymaster

    Introduce Forum Importer template for use with importing from PunBB v1.4.x (Tested on v1.4.2)

    http://codex.bbpress.org/import-forums/ & ​​http://codex.bbpress.org/import-forums/punbb

    Working: Forums, Topics & Users
    Not Working Yet: Categories, Replies, User Passwords & Custom BBCode for Topic & Reply Content

    Attached to bbPress Trac Ticket #2379 is the 1st pass patch for PunBB importing into bbPress.

    To test the importer download the latest patch from the link above and copy/ftp the file into the /includes/admin/converters/ folder of your bbPress plugin.

    I hope to get the remaining outstanding items done ASAP.
    (User passwords will be a little trickier and will take a bit more time)

    Any feedback and/or testing that you can provide will help me out tremendously.

    Cheers,

    Stephen 🙂

    #135790
    scooter23
    Participant

    Now I cannot create any new topics and I could not reply to this topic. I had to create this new account just to be able to reply. Can someone look into my account issue? A bit frustrating that there is no other support options besides these forums but I do understand.

    @netweb Thanks! I did try Chrome, FireFox and IE initially and it was the same thing.

    Here is my question.

    WordPress 3.6
    bbPress 2.3.2

    I have bbPress and BuddyPress setup on a multisite network with sitewide and group forums. Is it possible to integrate the group forum with a multisite site?

    ie.-
    XYZ BuddyPress Group = http://mainsite.com/groups/xyz/forum
    XYZ Blog = http://xyz.mainsite.com

    Can the group forums integrate to the site? So if a post is made on the site it will show back on the group page or if on the group page it will go back to the site?

    If that is not possible, is it possible to at least display the group forum data on the subsite with a shortcode or something?

    Thanks for any help!

Viewing 25 results - 14,026 through 14,050 (of 32,585 total)
Skip to toolbar