Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 13,951 through 13,975 (of 32,503 total)
  • Author
    Search Results
  • #135990
    tinfoiler
    Participant

    Ive had a search through the forums here and cant find an answer to my question, i have just installed bbpress and it integrates perfectly into my current wordpress installation. I notice whenever a post is made in bbpress the authors ip address is logged and is visible to the administrator. I would like to disable this and set it so that no ip addresses are stored at all.

    From what i can tell the ip’s seem to be stored in the following db field:

    wp_postmeta/meta_value

    I have a function i found online for wordpress which prevents the ip from being logged:

    add_filter('pre_comment_user_ip', 'no_ips');
    function no_ips($comment_author_ip){
      return '';
    }

    Can the above be converted for use with bbpress?

    Any advice would be appreciated 🙂

    #135984

    In reply to: Translation problem

    Xevo
    Participant

    Any examples as to where? It’s most likely a problem of it being hardcoded somewhere or the polish file not being 100% completely translated.

    #135980
    Xevo
    Participant

    bbpress != wordpress

    If your a programmer, you should read up on the codex, if not I do not recommend to do this yourself. I would recommend rehiring the designer/programmer (if he has the necessary knowledge).

    #135975
    watracing
    Participant

    I changed things and removed the page with the short code and just linked to a higher catagory called “forum”
    It still shows the sub forums on seperate pages and with the (0,0) on the main page
    I would really like the forum to look similar to a phpbb style forum
    Watracing.com

    #135973
    watracing
    Participant

    Hello,
    I am having issues getting the BBpress forum to display in any sensible manner
    At one point i made a category and used it as a page, this at least looked reasonable but didn’t allow for sections to be created. I am currently using the shortcode “[bbp-forum-index]” and now the catagoriess seems to show the sub forums. but they are all bunched together with a (0,0) next to each of them
    Is there a way to split this up or create a proper forum layout?
    my forum page: http://watracing.com/?page_id=132

    I am new to BBpress

    #135963
    knsheely
    Participant

    I get this issue because the BBP Threaded Replies plugin automatically de-activates the Fancy Editor.

    bbPress Threaded Replies is incompatible with the Fancy Editor; enabling threading will automatically disable the Fancy Editor.

    I’m not sure why they did that, but I was able to get around it by adding remove_filter('bbp_use_wp_editor', '__return_false'); to my theme’s functions.php file.

    #135962
    mjjinvincible
    Participant

    I just put this filter inside bbpress-functions.php, but it seems not to be executing the function… could you please help me? I’m stuck…

    add_filter('bbp_plugin_dir_url', '_bbp_plugin_dir_url');
    function _bbp_plugin_dir_url($plugin_dir_url) {
    	return str_replace("/home/content/12345/html/content/plugins", "", $plugin_dir_url);
    }

    Thank you!

    #135960
    Justinvarnes
    Participant

    I am currently using Simple:press and want to convert to bbPress. I have both installed on my WP, and I downloaded simplepress.php and uploaded it onto my server in the file/directory suggested from this site (wpcontent/etc)

    I followed these instructions: http://codex.bbpress.org/import-forums/

    And when I hit “start’, I get this:

    “Repair any missing information: Continue

    Conversion Complete
    No replies to convert
    No tags to convert
    No topics to convert
    No forum parents to convert
    No forums to convert
    No passwords to clear
    No users to convert
    Starting Conversion”

    (Obviously in reverse order).

    WHat am I doing wrong? I have the updated versions of both forums and of WP (3.6).

    http://www.jazzdrummersresource.com

    #135936
    Bencuri
    Participant

    How can you change the background of posts and the table containing the forum titles? The background of my core wordpress site is okay (I have Responsive theme installed), but the forum area should have a different color, especially the posts. Where can I find the apporpiate code sctions for this in the CSS?

    #135934
    jameswordpress
    Participant

    I solved this after a quick search of the code. I updated the following file:

    /bbpress/includes/forums/template-tags.php

    updating the line:

    ‘posts_per_page’ => get_option( ‘_bbp_forums_per_page’, 50 ),

    to:

    ‘posts_per_page’ => get_option( ‘_bbp_forums_per_page’, 64 ),

    #135929
    jtsjunior
    Participant

    I tried to upgrade my bbPress forum from version 1.0.2 to 1.2, following the method described on this topic: http://bbpress.org/forums/topic/upgrade-bbpress-1-0-2-to-2-1-2/page/2/#post-127780. But when I get in my control panel and try to upgrade my database clicking on the indicated button i get a 500 Internal Sever Error Message, given by the following error on my error log:
    [Mon Aug 12 21:23:48 2013] [warn] [client 127.0.0.1] mod_fcgid: read data timeout in 71 seconds, referer: http://XXXXXX/forum/bb-admin/upgrade.php
    [Mon Aug 12 21:23:48 2013] [error] [client 127.0.0.1] Premature end of script headers: upgrade.php, referer: http://XXXXXX/forum/bb-admin/upgrade.php

    I really need a little help.

    mpesgt01
    Participant

    I have a phpBB (3.0.11) forum since many years. After a good clean up, I am down at these stats
    1 200 members
    18 000 subjects
    52 000 answers

    My urls looks like this
    http://www.mysite.com/forum/viewtopic.php?f=8&t=27944

    In Google i get 280 000 results if I type this
    “mysite.com/forum/viewtopic.php”

    I am feeling this forum software (thanks for all these nice years!) gets behind the actual social life these years so I am looking to change for another forum (hopefully with Facebook login!)

    What will happen if I decide to switch to installing bbPress into my actual WordPress ? I have read the codex, but doest my urls and so my results in google would all be lost (as I can’t see how a rewrite redirect url could work here anyway) ?

    #135895
    Stephen Edgar
    Keymaster

    Latest Attachment PunBB.php

    Fixed:

    • Topics
    • Replies
    • User Nice Name ‘user_nicename’ & Display Name ‘user_displayname’ import fields
    • User PunBB MSN

    Outstanding:

    • Forum/Category? hierarchy (currently parent forums/categories are imported ‘flat’)
    • User Passwords
    • – Custom BBCode for Topic & Reply Content

    NOTE: If you are importing ‘users’ during the import you will see multiple instances of the following error message:-
    – Notice: Undefined variable: user_pass in /home/webhost/public_html/wp-includes/user.php on line 1305
    This can be ignored and only relates to the current non-working state of converting user passwords. If you need to login (or users login) they will just need to reset their WordPress password to be able to login.

    #135893

    In reply to: MyBB Import to bbPress

    Stephen Edgar
    Keymaster

    Latest Attachment MyBB.php

    Fixed:

    • User Nice Name ‘user_nicename’ & Display Name ‘user_displayname’ import fields

    Outstanding:

    • User Passwords
    • – Custom BBCode for Topic & Reply Content

    NOTE: If you are importing ‘users’ during the import you will see multiple instances of the following error message:-
    – Notice: Undefined variable: user_pass in /home/webhost/public_html/wp-includes/user.php on line 1305
    This can be ignored and only relates to the current non-working state of converting user passwords. If you need to login (or users login) they will just need to reset their WordPress password to be able to login.

    #135892

    In reply to: SMF Import to bbPress

    Stephen Edgar
    Keymaster

    @ricov4 Thanks, to help out if you can download the importer and setup a test environment to see how well it works that would be great.


    @koawinter
    I have not tried SMF 1.1.16 and only downloaded the latest version of SMF. Are you able to update your SMF to v2.0.4? You could also try the importer and see if it does or does not work and we can go from there.


    @NeilJ
    Thanks a bunch for testing it out… The previous versions of the counts would have been off as the original reply query was adding the original topic as its own reply, I have now fixed this and from my testing the counts are now correct for topics and replies.

    As far as I can tell it is now only the user passwords and some custom regex strings to fix some converted BBCode and ‘Smilies’ and we will have a perfect SMF importer 🙂

    #135891

    In reply to: SMF Import to bbPress

    Stephen Edgar
    Keymaster

    I have updated the SMF Importer and you can download the latest again via the same links in my original post above.
    Fixed:

    • Forum parent hierarchy
    • Imported Replies now import correctly
    • User Display Name

    Outstanding:

    • User Passwords
    • Custom BBCode for Topic & Reply Content

    NOTE: If you are importing ‘users’ during the import you will see multiple instances of the following two error messages:-

    • Notice: Undefined variable: user_pass in /home/webhost/public_html/wp-includes/user.php on line 1305
    • Notice: Undefined index: salt in /home/webhost/public_html/wp-content/plugins/bbpress/includes/admin/converters/SMF.php on line 566
      These can both be ignored and only relates to the current non-working state of converting user passwords. If you need to login (or users login) they will just need to reset their WordPress password to be able to login.
    #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');
    
    ?>
Viewing 25 results - 13,951 through 13,975 (of 32,503 total)
Skip to toolbar