Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 15,676 through 15,700 (of 32,503 total)
  • Author
    Search Results
  • #116187
    Ronileco
    Participant

    Sorry for the long time it took me to respond.
    This is my problem:
    my bbpress uses permalinks and prettylinks which makes all the user links use the user name instead of ID.

    for example:
    http://www.mysite.com/forum/users/Roni%20Cohen
    this leads to 404.
    instead of
    http://www.mysite.com/forum/users/524 (the user id)
    this leads to the user page.

    What should I change in my wordpress / bbpress in order to support those kind of links.
    I already set mod_rewrite but i guess some rules are missing or that i’m using something in the wrong way.

    I found the part in the code that handles this but I don’t want to change that to use id hard coded.

    Am i clear now?

    #116173
    Lynq
    Participant

    It would be quite nice to have some of the most commonly asked forum questions somewhere and then a couple of useful topics users can check out.

    I know that customizing bbp_list_forums is a popular one.

    #116166
    aaclayton
    Participant

    Ok, this is definitely NOT the most elegant solution, but I contrived a crude fix to the problem. Since the false 404 flagging was happening only on user profile pages, I added the following to my single_user.php template just before the header.

    global $wp_query;
    $wp_query -> is_404 = false;
    get_header(); // Loads the header.php template. ?>
    

    Basically I’m just forcing the profile page to not be 404. I may try to work out a better solution, but for the time being, this appears to work.

    EDIT: looks like the code snippet is having trouble displaying a greater than sign, anywhere you see > above, it should be a greater than sign (>).

    • This reply was modified 13 years, 6 months ago by aaclayton.
    • This reply was modified 13 years, 6 months ago by aaclayton.
    #116162
    LabSecrets
    Participant

    Sounds good… would love to put the emphasis on the end-use of the forums in some way too. A lot of our users come to us with their intended solution (goal of using bbPress) already in mind. Might be helpful to focus one section on that as well, so folks could work backwards.

    How do you want to put up the skeleton of these docs?

    #116159
    tkomuro2k
    Member

    Hello guys!

    I am trying to run a replies loop within topics loop… and scratching my head..
    (more specifically, at loop-single-topic.php compat template .. I am trying to do something like..

            bbp_has_replies();
            while ( bbp_replies() ) : bbp_the_reply();
            $current_topic_reply_id = bbp_get_reply_id();
            echo $current_topic_reply_id ;
            endwhile;
    

    and.. i am getting.. same IDs under every topic..
    would you help me to get reply IDs for each topic including the topic ID itself?
    Thank you very much guys..

    #116150

    In reply to: Wow I need help!

    Stephen Edgar
    Keymaster

    If you use the forum base ‘X’ and forum slug ‘y’ and have ‘Forum Prefix’ checked
    – hxxp://www.example.com/x/y/yournotstupid
    – (default bbPress slugs hxxp://www.example.com/forums/forum/yournotstupid/ )

    If you use the forum base ‘X’ and forum slug ‘y’ and have ‘Forum Prefix’ UNchecked
    – hxxp://www.example.com/y/docscouldbebetter
    – (default bbPress slugs hxxp://www.example.com//forum/docscouldbebetter/ )

    There is some basic doc’s here https://codex.bbpress.org/getting-started-with-bbpress/#creating-your-first-forum and https://codex.bbpress.org/forums-settings/#archive-slugs

    • This reply was modified 13 years, 6 months ago by Stephen Edgar.
    • This reply was modified 13 years, 6 months ago by Stephen Edgar. Reason: formatting
    Stephen Edgar
    Keymaster

    Duplicate, please only post your question once.

    bbPress Login Shortcode NOT for use on sidebar?

    #116146
    Stephen Edgar
    Keymaster
    #116145
    Stephen Edgar
    Keymaster

    Duplicate, please only post your question once.

    bbPress Login Shortcode NOT for use on sidebar?

    • This reply was modified 13 years, 6 months ago by Stephen Edgar.
    #116130
    #116127
    Adam
    Participant

    So I think it is a permalink issue but I am not sure. I am developing a theme framework and I want to integrate bbpress with it and thus i was testing bbpres default installation. How ever going to site/forums/forum/test gives me a 404 error. even site/forums gives me a 404 – the theme throws the 404 –

    Can any one give me any ideas as to how to fix this? My permal link structure is

    /%category%/%postname%/
    
    #116126

    HELP!

    I’m having issues with my BBpress WordPress installation as of late (since I did a plugin update to 2.1.1) on all pages I get the error:

    Warning: get_class() called without object from outside a class in /nfs/c05/h01/mnt/77944/domains/charterproject.ca/html/wp-content/themes/charterprojectbb/functions.php on line 529

    I tracked this in the functions file in my theme that controls the WP theme and the BBPress theme.
    the code is:
    if ( 'bbPress' == get_class( $bbp ) ) {
    $bbp->theme_compat->theme = new BBP_Twenty_Ten();
    }
    endif;

    I’m not a wiz at PHP so I’m not sure why this causing this error but it does result in the form being quite non-functioning, please help! you can view the site for reference at : http://charterproject.ca

    Pez

    #116104
    aaclayton
    Participant

    Sorry, I guess I’m not being very clear. The is_bbpress() function already seems to deliver the conditional logic I need. That (I don’t think) isn’t my problem. My problem is getting the proper syntax for removing the actions that add styles and scripts to the head area.

    remove_action ( 'bbp_enqueue_scripts' , 'enqueue_styles' );
    remove_action ( 'bbp_enqueue_scripts' , 'enqueue_scripts' );
    

    This doesn’t work, nor do some variants that I have tried. Could you suggest the proper syntax for removing the relevant actions, regardless of the conditioning logic employed?

    #116087
    DramaticBaby
    Participant

    Now I finally got it to work. You just copy the bbpress.css file to /my-child-theme/css/ and voilá, it works. When I found out that I looked in bbpress-functions.php and stumbled over this line:

    // Check child theme
    if ( file_exists( trailingslashit( get_stylesheet_directory() ) . $file ) )

    Which states the obvious, it looks for bbpress.css in the /css/ folder in your child theme. If found, it will replace it with the default css.

    If any admin reads this, can you please elaborate a bit more on the subject. It is very diffuse how all this works.

    • This reply was modified 13 years, 6 months ago by DramaticBaby.
    #116085
    DramaticBaby
    Participant

    Hi, I’m trying to create a custom theme for the bbPress forum. I already got a child theme based on Twenty Eleven, and I’m trying to style bbPress with my style.css in the child theme folder.

    The problem is that bbpress.css is imported in the html code after my style.css, overwriting the latter’s styling. How do I force bbPress to use style.css instead, even though bbpress.css is imported after?

    I have been struggling with this for hours and hours.

    • This topic was modified 13 years, 6 months ago by DramaticBaby.
    #116082

    Not sure I understand the problem. Spaces aren’t valid in URLs unless they are encoded.

    #116073
    mores
    Member

    Expanding my search to include all of WordPress resulted in this fine code I just plop in to my functions.php that’ll remove it:

    function the_title_trim($title) {
    // Might aswell make use of this function to escape attributes
    $title = attribute_escape($title);
    // What to find in the title
    $findthese = array(
        '#Protected:#', // # is just the delimeter
        '#Private:#',
        '#Privat:#'
    );
    // What to replace it with
    $replacewith = array(
        'a', // What to replace protected with
        'b' // What to replace private with
    );
    // Items replace by array key
    $title = preg_replace($findthese, $replacewith, $title);
    return $title;
    

    }
    add_filter(‘the_title’, ‘the_title_trim’);

    Credit: https://wordpress.org/support/topic/how-to-remove-private-from-private-pages?replies=24

    #116070
    craftcore
    Member

    I figured out how to hook into it. I created bp-custom.php in the plugin directory and modified the action like this:

    add_action( 'bbp_theme_after_reply_author_details', 'display_authorlevel' );
    function display_authorlevel() {

    // code goes here that you want to executed under the avatar. I wanted to display my WP roles instead of the bbPress roles, so I wrote a custom function to pull the WP roles and put it here.

    }

    Thanks so much for looking!

    #116069

    It’s a WordPress core issue, and one I’m not sure we can easily filter out. I’ll take another look at this for 2.2, but I think it’s hard-coded in.

    #116065
    craftcore
    Member

    Yay, I found the file! I downloaded my entire website, then used the program MultiFindPro to search for Hello World within my website files. It found it right away and I was able to remove the echo statement.

    Thanks so much for help, John. 🙂 I really felt like I was losing my mind there, haha.

    (Note to self: don’t code late at night while sleepy.)

    #116064
    Janus12
    Member

    problem 2 was solved by adding

    #bbpress-forums div.reply {
    height: auto;}
    

    however the other problem is still not solved and I believe the style.css is missing files.

    This is litteraly my whole css file


    /*
    

    Theme Name: Custom Community
    Theme URI: http://themekraft.com/custom-community/
    Description: Create your individual website within minutes. Custom Community is a WordPress and BuddyPress theme framework that enables you to build your site with all the features you love. Easy to use jQuery slideshow. List posts under your pages in magazine layouts. Use powerful theme settings to customize every part of the theme. 20 widget areas, 5 special widgets and 2 custom WP 3.0 header menus. 3 predefined colour schemes (white, grey, black) with clean and simple browsersafe css design to start from. Support forum at http://themekraft.com/forums.
    Version: 1.8.9.1
    Author: Themekraft
    Author URI: http://themekraft.com/
    Tags: buddypress, translation-ready, dark, light, white, left-sidebar, right-sidebar, two-columns, three-columns, fixed-width, flexible-width, custom-header, custom-menu, custom-colors, custom-background, theme-options
    License: GNU General Public License v2.0 / License URI: http://www.gnu.org/licenses/gpl-2.0.html
    */

    /* Reset browser defaults */

    @import
    url( _inc/css/reset.css );

    .aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
    }

    .alignleft {
    float: left;
    margin-right: 15px;
    }

    .alignright {
    float: right;
    margin-left: 15px;
    }

    div.post .wp-caption {
    text-align: center;
    background-color: ##f3f3f3
    padding-top: 4px;
    -moz-border-radius: 3px;
    -webkit-border-radius: 3px;
    border-radius: 3px;
    margin-bottom:12px;
    }

    div.post dd.wp-caption p.wp-caption-text, div.post .wp-caption p.wp-caption-text {
    font-size: 0.9em;
    line-height: 17px;
    padding: 0 4px 5px 0;
    margin: 0;
    }

    div.credits{display:none;}

    bbpress-forums div.reply {

    height: auto;
    

    }


    I am fairly new to web design but I have a feeling there must be more somewhere.

    Does anyone know what code I could input to this file in order to fix problem one?

    Also as a bonus could anyone give me a code that could work for changing the background of the forum colour?

    I apologize for my “rookieness”

    Thanks in advance!

    #116052
    Ronileco
    Participant

    Any new info about this one?
    I am suffering from a similar problem where my pretty URL: http://www.mysite/forum/users/User Name/ doesn’t work but http://www.mysite/forum/users/userId/ works great.

    How can i fix my permalink or should i change the code to use userID instead? maybe redirect through .htaccess file is the answer?

    #116038

    The reason there is no shortcode for this, is because it doesn’t usually make sense to display a river of replies out of the context of their parent topics and forums. Hence, there’s no template to support this, because the use-case is most likely custom to the application.

    In the future, we will need to address this so that searching topics and replies has a place to output exactly what makes sense to see, but it sounds like even that isn’t exactly what you’re trying to do.

    I’d recommend you look into writing your own WP_Query or using get_posts() to customize this output yourself. Getting the posts and their data out is easy, then it’s up to you to make it look and work like you need it to.

Viewing 25 results - 15,676 through 15,700 (of 32,503 total)
Skip to toolbar