Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 17,526 through 17,550 (of 32,499 total)
  • Author
    Search Results
  • #40106
    Jaja..
    Member

    I was searching for an option to set the max topic length to 70 instead of default 80.

    Now I think I’ve found the code inside the (Core files) bbp-core-options.php but I can’t change the core files because it will be overwritten when bbPRess updates.

    So how could I place a filter? inside my functions.php to do this?

    Just like this? (copy-/paste)

    function bbp_title_max_length( $default = '70' ) {

    echo bbp_get_title_max_length( $default );

    }

    #109210
    Kasper Isager
    Participant

    Sounds good :) Kudos to the bbPress team!

    #107340
    lckitchen
    Member

    I am very interested in that ‘bbpress.php’ file, having the same issues as “elmalak”; once I go into the forum pages, or topics, everything gets lost, for example, I used a specific page template for the forum page I created with the short code, but once I go into the topics or so, it reverts back to the regular page template.

    What do I put in the bbpress.php file to make it a “wrapper”?

    Thanks

    lckitchen
    Member

    Hi there, first I want to say thanks for creating this, seems like a great forum plugin once you get it working.

    To start, I have read the entire thread on the forum on theme compatibility; http://bbpress.org/forums/topic/bbpress-20-theme-compatibility and a few other treads and topics relating, unfortunately I am still having some problems.

    I am including screen-shot links to be as clear as possible in hope for great support.

    What I have done so far;

    A.) I decided to go with the child theme option since I am using a custom theme that I am not the author of and prefer not to clutter that folder.

    I copied all the files (except functions.php) that were inside “bbp-twentyten” (/bbpress/bbp-themes/bbp-twentyten) and put them in my “gridlocked-child” folder that I placed inside /wp-content/themes/ (next to my custom “gridlocked” theme folder)

    I added the “theme name” and “template” name to the empty “style.css” in folder “gridlocked-child”. screenshot: http://grab.by/cJ7R

    I put the ” add_theme_support( ‘gridlocked-child’ ); ” code in my “gridlocked” (not child) functions.php file. screenshot: http://grab.by/cJ7S

    B) At this point, after just test creating a few forums and topics, it looks like the plugin is “functioning” like it should. I can tell that it’s using some of the styles from my main theme style.css (colors, fonts etc), the MAIN PROBLEMS that I have now is the fact that it’s not taking to my page template widths in my main theme (gridlocked), it wont use a full-page-width template (or let me pick) and the default that it is probably using, is also supposed to be full width, plus something is wrong with the padding and it snugs too tight to the page edges.

    Here are some screenshots to show you what I mean;

    Forum home page: http://grab.by/cJ7I

    Forum named MINGLE page and test topics: http://grab.by/cJ7J

    I would like the forum to look like this; http://grab.by/cJ7H

    and fill up the entire width of a full page, with nice padding. I achieved that preview by adding shortcode [bbp-forum-index] in the html section of a “page” picking the “full-width-template” option in my theme.

    Ok, here comes the questions:

    1. Did I set everything up correctly in the directories and files?

    2. What files do I need to modify to tell the bbPress forum to use a full page width template? Can I copy code from my main theme “template-full-width.php” into one or more template files inside my new child theme?

    2. Do I need to add code/functions into my main theme “template-full-width.php”? and if so, what kind of code? and on a scale, how easy should these edits be? (I have asked, but I am not getting any support with this from my theme support forum, otherwise great forum but they wont help with plugins, understandable)

    3. How does shortcodes work? Are those simply just for placing certain parts of your forum on different pages as previews/links but not for use throughout the FULL forum?

    Do you have ANY ideas on how I can solve this issue, I feel pretty lost and I am not a developer or programmer, just a stubborn, enthusiastic designer that loosing her hair about this.

    I HIGHLY APPRECIATE ANY HELP WITH THIS!

    Thank you!

    Erlend
    Participant

    So both bbPress and BuddyPress are now entering a new era of WordPress integration. Both plugins have become much more standardized and seamless.

    Now all you need is more eyes and idle hands on the code, documentation and forums. There’s still no word of the renewed bbPress or BuddyPress in the admin panel’s “WordPress Blog” feed. The news that was once in “Other WordPress News” has since been moved far down the list where most people won’t see it.

    A mention on wordpress.org could quite realistically make hundreds of thousands of WordPress users aware of these recent monumental developments. I think these plugins represent a crucial part of WordPress’ future; you ought to let the world know what’s happening on these new fronts.

    #109028
    Anointed
    Participant

    I’d be really careful about changing core files as you loose changes on every update. Depending upon what you did, you may be best off copying the code to your theme functions file, renaming the functions, and storing it there so you don’t loose the changes.

    #109221
    Anointed
    Participant

    Not tested:

    In the file loop-single-reply.php change the following line:

    <?php bbp_reply_author_link( array( 'sep' => '<br />' ) ); ?>

    to:

    <?php bbp_reply_author_link( array( 'sep' => '<br />', 'size' => 100 ) ); ?>

    change 100 to whatever size you prefer.

    #109145
    Anointed
    Participant

    I put the recent topics below my forum lists by modifying the archive-forum.php template file as follows:

    <div class="entry-content">

    <?php bbp_get_template_part( 'bbpress/content', 'archive-forum' ); ?>
    <br><br>
    <h3>Recent Topics:</h3>
    <?php bbp_get_template_part( 'bbpress/content', 'archive-topic' ); ?>

    </div>

    Notice the second function which grabs the topics. Flip the functions around and you’ll get what you are after.

    *I am assuming you added all the bbpress template files to your own theme so that you have full control over editing everything. If not, you will end up loosing your changes every time you update.

    #40064
    highexistence
    Participant

    Every single permalink for forums give me a ‘page not found’ error. I’m using BBpress 2.0 and Buddypress 1.5 on the latest version of WP.

    Any suggestions? Thanks :)

    #109132

    In reply to: Seperate Forums

    danlee
    Participant

    I have just split up the forums for now, no categories or sub forums, I will most likely modify the code when I get a chance. If it’s possible I will try to make it a plugin of some kind but most likely it will involve modifying the core files.

    #109131

    In reply to: Seperate Forums

    Jaja..
    Member

    Nope you can only pull this off if you have PHP skills.

    Lets hope somebody will soon jump into this bbPress plugin code and start writing tutorials and info about different ways to list forums.

    For myself i can say this is the best bbPress forum layout (listing) i’ve ever seen.

    http://www.onemorething.nl/community/forum

    I’m trying to list my layout like that but it’s very difficult.

    #108074
    Niekje
    Member

    I need this translation but the problem is that I am unable to login there with my WordPress account. I can login here no problem but as soon as I go to https://translate.wordpress.org/projects/bbpress/plugin/nl/default I am unable to login :s

    #40090
    Jaja..
    Member

    I’ve insert this to the loop. (showing on the homepage)

    <?php if ( bbp_has_forums( array( 'posts_per_page' => 1, 'max_num_pages' => 1 ) ) ) : ?>

    <?php bbp_get_template_part( 'bbpress/loop', 'forums-1' ); ?>

    <?php else : ?>

    This print only the first forum ID (top forum) and hides all others.

    Next i would like to make this.

    <?php if ( bbp_has_forums( array( 'posts_per_page' => 1, 'max_num_pages' => 1 ) ) ) : ?>

    <?php bbp_get_template_part( 'bbpress/loop', 'forums-1' ); ?>

    <?php else : ?>

    <?php if ( bbp_has_forums( array( ‘posts_per_page’ => 1, ‘max_num_pages’ => 1 ) ) ) : ?>

    <?php bbp_get_template_part( ‘bbpress/loop’, ‘forums-2’ ); ?>

    <?php else : ?>

    <?php if ( bbp_has_forums( array( ‘posts_per_page’ => 1, ‘max_num_pages’ => 1 ) ) ) : ?>

    <?php bbp_get_template_part( ‘bbpress/loop’, ‘forums-3’ ); ?>

    <?php else : ?>

    Only problem it will always call the first (top) forum ID.

    I need to find an $args? for calling a forum ID in each loop, this way i can say get forum ID 4 on the first loop and get forum ID 12 on the second loop.

    #95915
    amirsaam
    Member

    template directory has no code. you must use

    http://"<?php bb_uri(); ?>/my-templates/your theme name/

    #101015
    amirsaam
    Member

    template directory has no code. you must use

    http://"<?php bb_uri(); ?>/my-templates/your theme name/

    #99218

    In reply to: WPMimic V.1

    amirsaam
    Member

    Do you know all of codes of WPMimic?

    How can I show the < closed topic > messege after the last post?

    It shown for me under the first post :-/

    #104318

    In reply to: WPMimic V.1

    amirsaam
    Member

    Do you know all of codes of WPMimic?

    How can I show the < closed topic > messege after the last post?

    It shown for me under the first post :-/

    #108820

    Dreamhost is wellknown webhosting providerer in the world and its aim is to provide maximam webhosting service in the world. If you want to save money in host your website in dreamhost than i have some dreamhost discount coupon code it is known as dreamhost promo code. This code is give diffirent kind of discount to atrect new customers. This coupon code is only for new customers of dreamhost.Dreamhost is also gave 14 days free trile for new customers.

    #109027
    common8308
    Participant

    @anointed Thank you for the suggestions! I searched for the codes and it seems it’s very nicely written about almost all the functions, I just added a couple of lines in the the widget core (since I don’t know much about tweaking the codes without fixing the core..) and it works great! Thanks for making the forum plugin again. It’s really a seamless and powerful integration of forum and WP!

    #109070
    lckitchen
    Member

    Sounds great. Is using shortcodes hard to control if the forum grows or is there a list of how many “main” pages and different shortcodes I would need? I guess this is a much more tedious way of doing it and changing the theme code would be best?

    I will look for that thread…

    You think I shouldn’t download that “bbPress attachments” plugin though?

    Thanks again! You are most helpful :)

    #109069
    Anointed
    Participant

    Yes, changing that will make it full width. It should function just fine.

    Using shortcodes with full width template pages works as well.

    I believe that there is a thread here somewhere with a link to attachments that works with 2.0. Seem to remember reading it somewhere.

    #109068
    lckitchen
    Member

    Thank you for your rapid reply anointed, I contacted Orman’s support, we’ll see what they say.

    Since I am new to bbPress, at your first glance of my above forum link… does it look like I got the installation and functions working, just having a problem with the width template (code)?

    I tested how it would look by adding this short code [bbp-forum-index] into a regular “page” (not forum) and setting it to use full width template and I got that page to look like it should; http://limecitykitchen.com/forum-bbpress (just not functioning) Look better though, hope they can help me fix the code.

    Also, will the “bbPress attachments” plugin work well with the bbPress 2.0 plugin?

    https://bbpress.org/plugins/topic/bb-attachments/

    Thanks again!

    #109067
    Anointed
    Participant

    If it were me, I’d ask Ormon to write a quick function for your theme to switch the body class to

    page-template-template-full-width-php

    for post_type forums/topics/replies/users/.

    *Basically run that last in the chain as to override the default setting only for the forums.

    That would probably be the quickest and best approach to take for this particular theme.

    That will give you full width forums. There are lots of ways to approach this and he may even have better ideas.

    #109160
    Anointed
    Participant

    NO, not bothered at all, was just saying that I didn’t understand what you were asking is all.

    If I understand you basically want to take the code from the topics widget and use it as a standalone loop instead of a widget?

    Keep in mind I’m not a great coder: If it were me, I would simply copy the code from the bbp-core-widget.php file that I needed for the topics widget. I would then strip out the widget portion of the code and hard code in the default arguments.

    This basically would give me the same loop used by the widget.

    // Query defaults
    $topics_query = array(
    'author' => 0,
    'post_parent' => any,
    'posts_per_page' => 10,
    'show_stickies' => false,
    'order' => 'DESC',
    );

    Probably better ways out there, but that’s how I would try it

    #109159
    venividi
    Participant

    //anointed, I must say sorry if I bothered you.

    You might see the ‘bbPress Topics list’ widget, in wordpress widgets. I meant I want to use the widget ‘outside the loop’.

    That must be done the code like below:

    <?php

    if ( bbp_has_topics( array( ‘author’ => 0, ‘show_stickies’ => false, ‘order’ => ‘DESC’, ‘post_parent’ => ‘any’, ‘posts_per_page’ => 5 ) ) )

    bbp_get_template_part( ‘bbpress/loop’, ‘title’ );

    ?>

Viewing 25 results - 17,526 through 17,550 (of 32,499 total)
Skip to toolbar