Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 16,826 through 16,850 (of 32,519 total)
  • Author
    Search Results
  • Ph0eniX2018
    Member

    I am trying to get a twitter button to display inside each post at the bottom.

    I am using the 2.0 plugin with WP 3x. I have been through both the template and plugin. I am using the Elbee Elgee 1.3.5 BBPress ready theme.

    The Twitter plugin I am using has both a shortcode and a JS I can reference to display the “Tweet Me” button. I can get it to display anywhere I want, but I am unable to find where to place the code so it shows up within the actual topic posts.

    Day 3 of trying to figure this out, so thought I would lick my wounds and ask for help.

    WP 3.3.1

    BBPress: 2.0.2 Plugin

    Theme: Elbee Elgee 1.3.5

    PHP: 5

    #111619
    itryit
    Member

    following

    itryit
    Member

    I’m trying to display a list of all topics under a forum, and I’ve tried [bbp-single-forum id=$forum_id] – to show a single forums topics, however it displays the full page view (grid) instead of a simple list of the topics subject lines. Can anyone advise how the topics headlines can be displayed (as links).

    Thanks

    #110882
    danufra
    Participant

    I saw such a button on one of the forums and wrote to admin if he can share the code. Waiting for a reply…

    Satish
    Participant

    :-(

    #42038
    ben_allison
    Member

    When using template tags, I notice a lot of inconsistencies… some things use span tags, others divs, and still other p tags.

    When someone simply wants to return data, (a list of tags or the subscribe link) it would be nice to have the bare minimum returned (text with at most, an <a> tag). Minimal markup will just make for cleaner, easier to assemble themes.

    #42034
    phishor
    Member

    Hello everyone. I have a couple of alignments problems with my website, and would love to know which file I would edit to adjust the width of various tables etc. I am totally new to BBPress and any help is greatly appreciated :)

    Many Thanks

    Paul.

    Paul
    Participant

    Ben, I’ve had more success with the 2.1 development version, available as a zip at the bottom of https://bbpress.trac.wordpress.org/browser/branches/plugin.

    All I have done is create a bbpress directory within my theme folder and in there copied in any files from pluginsbbpressbbp-themesbbp-twentytenbbpress that I wanted to modify. I have not moved any files out of the plugins directory.

    I haven’t had much success with setting the css for bbpress from within my theme. In the end I ended up renaming pluginsbbpressbbp-themesbbp-twentytencssbbpress.css to bbpress_master.css and creating a new bbpress.css in the same folder. Within this new file I have my modifications with the following as the first lines

    /**

    * bbPress specific CSS

    *

    * @package bbPress

    * @subpackage Theme

    */

    /* =bbPress Style


    */

    @import url(“bbpress_master.css”);

    I will need to be careful updating bbpress as I will lose my bbpress.css. Until I work out how to have css working through my theme it will do.

    ben_allison
    Member

    Here’s what I tried:

    1) Copy bbpress theme folder into my theme

    2) add “add_theme_support( ‘bbpress’ );” to my functions file

    Nothing. I think I misunderstand how the bbpress theming system works. I thought it was more or less a “child theme” that bolts on to twentyten.

    Are there files or snippets of code I need to grab from the bbp-twentyten theme?

    FWIW, the site is running Buddypress, along side bbpress. I’m using the stock Buddypress theme, and my own Buddypress child theme.

    Everything is working perfectly (forum is up and running, etc). All I’m trying to do is used a customized bbpress template so I have complete control over the forum markup.

    Thanks!

    #42024
    phishor
    Member

    Hello everyone,

    I must be the biggest newbie as I have only just downloaded wordpress and installed the BBforums etc..

    I am having just one small problem in displaying replies properly. I would love to know if this a CSS related problem. See image below.

    http://www.tiny.bz/6qz2q4

    I am using a custom theme. Any suggestions! Many Thanks! :)

    #42021
    testuserfay
    Member

    Hi. I am using BBpress to add a community component to my mostly informational site. What I want is for my forums to:

    1) be hidden from nonlogged in members;

    2) require members to be able to login and check the 1 forum that I assign to them for updates, WITHOUT having access to someone elses forum.

    Is this at all possible through an existing plugin or through some code modification?

    I am using wp-members for registration/login stuff. That plugin does have the ability to lock access to pages and posts, but currently, I don’t use those features.

    I am also using latest BBpress and WordPress software.

    Thank you.

    #111575
    Raziel_LOK
    Member

    I made it, using the same code above, you can add your own class if you want. And including more loops you can list depeer forums.

    Here is the code:

    Code:

    <?php

    $before = ‘<ul class=”bbp-forums”>’;
    $after = ”;
    $link_before = ‘<li class=”bbp-forum”>’;
    $link_after = ”;

    if ($sublist = bbp_forum_get_subforums($forum_id)) {
    echo $before;
    foreach ( $sublist as $sub_forum ) {
    // Get forum details
    $permalink = bbp_get_forum_permalink( $sub_forum->ID );
    $title = bbp_get_forum_title( $sub_forum->ID );

    echo $link_before . ‘‘ . $title . ‘‘ . $link_after;

    if ($sublist2 = bbp_forum_get_subforums($sub_forum->ID)) {
    echo $before;
    foreach ( $sublist2 as $sub_forum ) {
    // Get forum details
    $permalink2 = bbp_get_forum_permalink( $sub_forum->ID );
    $title2 = bbp_get_forum_title( $sub_forum->ID );

    // Build this sub forums link
    echo $link_before . ‘‘ . $title2 . ‘‘ . $link_after;

    }

    echo $after;

    }

    }
    }

    echo $after;

    ?>

    #42019

    Topic: New Post funcion

    in forum Showcase

    I’m working on a custom WP & bbPress theme for a client and I’d like to highlight what forums have had new posts added since the user last logged in. Is there a function that I can call that allows me to get this info?

    I’m thinking something along the lines of this:

    <?php if(new_forum_posts()) : ?>

    highlight icon

    <?php else : ?>

    don't highlight icon

    <?php endif; ?>

    Any help is appreciated!

    #111567
    ben_allison
    Member

    It’s returning “This user has not created any topics.”

    Is there anything I can do in the mean time to get those functions to work (apart from a manual query)?

    :)

    Thanks!

    #107401
    mohammadg
    Member

    Thanks for this! Really helped me out.

    #42016
    Raziel_LOK
    Member

    After finding a lot I have not found a solution for showing more than 1 depth sub forums. So I made some coding.

    I changed “<?php bbp_list_forums(); ?>” on file loop-single-forum.php to:

    <?php

    $before = ‘<ul class=”bbp-forums”>’;

    $after = ”;

    $link_before = ‘<li class=”bbp-forum”>’;

    $link_after = ”;

    if ($sublist = bbp_forum_get_subforums($forum_id)) {

    echo $before;

    foreach ( $sublist as $sub_forum ) {

    // Get forum details

    $permalink = bbp_get_forum_permalink( $sub_forum->ID );

    $title = bbp_get_forum_title( $sub_forum->ID );

    echo $link_before . ‘‘ . $title . ‘‘ . $link_after;

    if ($sublist2 = bbp_forum_get_subforums($sub_forum->ID)) {

    echo $before;

    foreach ( $sublist2 as $sub_forum ) {

    // Get forum details

    $permalink2 = bbp_get_forum_permalink( $sub_forum->ID );

    $title2 = bbp_get_forum_title( $sub_forum->ID );

    // Build this sub forums link

    echo $link_before . ‘‘ . $title2 . ‘‘ . $link_after;

    }

    }

    echo $after;

    }

    }

    echo $after;

    ?>

    So my question is, Is there any way to do that little easier ? Or someone who is looking in the same issue and want give a hand to clean up this code.

    A example of the struture I’m looking:

    TEST

    -TEST_CHILD_1

    -TEST_CHILD_2

    –TEST_CHILD_CH1

    –TEST_CHILD_CH2

    -TEST_CHILD_3

    Any help will be aprecieted. Thank you.

    #42014
    cosfrog
    Participant

    I am using Buddy Press with bbpress on a rockettheme wp site using gantry frame works (whew)

    No I created a page with short codes, but when the bbpress slug is the same as the page it does not format correctly.

    Also when I change the slug back to ‘forums’ that link does not work either.

    You can see it at ppsdc.com/main-board (this is the page with shortcodes, shows fine now because slug is different)

    meanwhile the slug link ppsdc.com/forums shows the unformatted page.

    If I change the slug to main-board I get the same thing as the above sentence.

    I used the forum list widget so you can actually get to a forum and see those pages are fine.

    Any Ideas??

    #107400
    Nirzol1
    Member

    hello

    shortcode is good.

    But how can I remove breadcrumbs plz ?

    Because I use two shortcode :

    [bbp-forum-index]

    [bbp-topic-index]

    And I have breadcrumbs for forum and an other for topic. Maybe make a shortcode like this is t possible ?

    [bbp-topic-index breadcrumbs=false]

    And are they way to say number topics to display ?

    thx for help ! :)

    #111566

    This will happen automatically in the next release of both. If your code above literally returns “nothing” then it isn’t even being executed, since you should at least see feedback about there being no topics. If you do at least see that feedback, then the problem lies in bbp_get_user_topics_started(). Check out how it works and see if there is anything broken.

    Worst case scenario, you can call your own WP_Query loop and display them yourself.

    #42006

    Topic: BBPress.org Theme

    in forum Themes
    Matthew2D
    Member

    Could someone tell me what theme BBPress.org is using?

    Thanks! :)

    #111548
    LabSecrets
    Participant

    Unfortunately you can’t do that…bbpress doesn’t work with the native wp template, or child, it only works “within” the template structure (think of it like an insert that goes into the content area of the wp template).

    As a result, just make a regular page with your wp theme, and add shortcode to the post editor. If you want you can style the wp template for header and footer and sidebar and width, etc., but not to add the short codes for bbpress :-)

    #111547
    ben_allison
    Member

    This seemed like a brilliant solution, but I’m sure I’m doing something wrong.

    I already had a “forums” page, with the short code in place. The page slug is “forums.”

    So, I figured I would make a template called page-forums.php, thinking that WordPress’s template hierarchy would take over… no such luck.

    I will watch the vid when I get off the train. I’m sure the answer appears within the first 30 seconds…

    #41996
    ben_allison
    Member

    Running bbPress with Buddypress.

    Whilst viewing a user’s profile, I’d like to simply display topics and posts by a given user. I tried lifting this bit of code, but it returns nothing.

    Idears?

    <?php bbp_set_query_name( 'bbp_user_profile_topics_created' ); ?>
    <div id="bbp-author-topics-started" class="bbp-author-topics-started">
    <div class="entry-content">
    <?php if ( bbp_get_user_topics_started() ) :
    bbp_get_template_part( 'bbpress/pagination', 'topics' );
    bbp_get_template_part( 'bbpress/loop', 'topics' );
    bbp_get_template_part( 'bbpress/pagination', 'topics' );
    else : ?>
    <p><?php bbp_is_user_home() ? _e( 'You have not created any topics.', 'bbpress' ) : _e( 'This user has not created any topics.', 'bbpress' ); ?></p>
    <?php endif; ?>
    </div>
    </div><!-- #bbp-author-topics-started -->

    #41698

    Is there a setting or a way to set up bbPress so users can only register for one forum on one installation of bbPress? Is this an option or does it have to be coded in, and if it has to be coded in, is that something that can be done?

    #111546
    LabSecrets
    Participant

    Undoubtedly, your easiest way to go is to use shortcodes for this purpose. You simply create a new page for each view (like forum-view), then add the shortcode you prefer to the page via the post editor. In this case a forum view is easy and uses “bbp-forum-index” (within short code brackets…remove the quotes). Here is a list of shortcodes to start: https://bbpress.org/forums/topic/bbpress-20-shortcodes

    We have a full video that might also help you:

    http://labsecrets.com/2012/01/23/buddypress-and-bbpress-forums-made-easy/

    Cheers!

    Spence

    http://labsecrets.com

Viewing 25 results - 16,826 through 16,850 (of 32,519 total)
Skip to toolbar