Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 9,426 through 9,450 (of 32,505 total)
  • Author
    Search Results
  • #158684
    WilRC
    Participant

    When using shortcode bbp-topic-index with other shortcode (bbp-forum-index)pagination returning url is different than using topic-index by freshness.
    => with multiple shortcodes: ../forums/page/2/
    => with topics by freshness: ../forum/forumname/page/2/
    How to solve this?

    #158682
    WilRC
    Participant

    The default is 15, you can changes this in the forumsettings to what ever you like.
    The shortcode doesn’t support a parameter.

    #158673
    Robkk
    Moderator

    shortcodes do not post in bbPress

    use this plugin

    https://wordpress.org/plugins/bbpress-do-short-codes/

    a298e
    Participant

    Hello,

    I would like to add 2 more textarea fields in “Create New Topic” page in addition to an original textarea of bbPress.

    I added following code to function.php, but an original textarea of bbPress was disappeared and couldn’t become submit, error of “ERROR: Your topic cannot be empty. “.

    ——————————-
    add_action ( ‘bbp_theme_before_topic_form_content’, ‘bbp_extra_fields’);
    function bbp_extra_fields() {
    $value = get_post_meta( bbp_get_topic_id(), ‘bbp_extra_field1’, true);
    echo ‘<label for=”bbp_extra_field1”>textarea1</label><br>’;
    echo “<textarea name=’bbp_extra_field1′ rows=’10’ cols=’78’ value='”.$value.”‘></p>”;

    $value = get_post_meta( bbp_get_topic_id(), ‘bbp_extra_field2’, true);
    echo ‘<label for=”bbp_extra_field1″>textarea2</label><br>’;
    echo “<textarea name=’bbp_extra_field2′ rows=’10’ cols=’78’ value='”.$value.”‘></p>”;
    }

    add_action ( ‘bbp_new_topic’, ‘bbp_save_extra_fields’, 10, 1 );
    add_action ( ‘bbp_edit_topic’, ‘bbp_save_extra_fields’, 10, 1 );

    function bbp_save_extra_fields($topic_id=0) {
    if (isset($_POST) && $_POST[‘bbp_extra_field1’]!=”)
    update_post_meta( $topic_id, ‘bbp_extra_field1’, $_POST[‘bbp_extra_field1’] );
    if (isset($_POST) && $_POST[‘bbp_extra_field2’]!=”)
    update_post_meta( $topic_id, ‘bbp_extra_field2’, $_POST[‘bbp_extra_field2’] );
    }

    add_action(‘bbp_template_before_replies_loop’, ‘bbp_show_extra_fields’);
    function bbp_show_extra_fields() {
    $topic_id = bbp_get_topic_id();
    $value1 = get_post_meta( $topic_id, ‘bbp_extra_field1’, true);
    $value2 = get_post_meta( $topic_id, ‘bbp_extra_field2’, true);

    echo “textarea1: “.$value1.”<br>”;
    echo “textarea2: “.$value2.”<br>”;
    }
    ——————————-

    What I want to do is;

    ・There are 3 of textarea fields in “Create New Topic” page.
    ・After submitted, the content being input in 3 textarea are shown in 1 original posted textarea like,

    <p>
    content of textarea1
    </p>
    <p>
    content of textarea2
    </p>
    <p>
    content of textarea3
    </p>

    If anyone know it, please help me.

    Thanks,

    #158669

    In reply to: Landing page issues

    critchy
    Participant

    Did anybody find a way to make this work, I have a theme with exactly the same issue and cannot seem to find the correct page template to hook into. Is there another way to solve this? The forum main index and subsequent bbpress pages all display correct just minus the search box and login links etc. If I use the short code they do display correctly.

    #158667
    mvaneijgen
    Participant

    @3sixty would really like to see the code you made 4 years ago.

    #158666
    bandormen
    Participant

    Hi,

    I started to setup my first forum.
    For me it is necessary to share files.
    I’m using the WordpRess Download Manager PlugIn
    https://wordpress.org/plugins/download-manager/
    to share files and I have the following problem:

    I would like to use the Short-Codes (e.g. [wpdm_package id=’120′])
    of the Download Manager to insert files into a Topic, but ist doesn’t work.
    The Topic displays only the commands and doesn’t display the designed download buttons.

    Is anyone able to help? Or should I use an other PlugIn to share files?

    Thx for your help.

    #158653
    Robin W
    Moderator

    You would add the titles in between

    eg

    title a

    [shortcode]

    title b

    [shortcode]

    and use the page styling to make the titles header, or bold or whatever

    The ‘forum’ is a column header

    #158649
    Stuart Neilson
    Participant

    Is it possible to have more than one create a topic form on the forum page?

    I’d like one at the top and bottom of the forum list, i’ve added a second

    <?php bbp_get_template_part( 'form', 'topic' ); ?>

    to the top of content-single-forum.php

    They are both hidden inside collapsing divs which are toggled by a “new topic” button, the first form at the top works fine but the second at the bottom shows no quicktags-toolbar.

    What do I need to do so that both work?

    I also have an issue where if I press tab from inside the topic title field of the first form it moves me down to the second forms “wp-editor-area”

    #158645
    miglaraujo
    Participant

    Hi there,

    I’ve been working around bbpress for the past 5 hours, and i’m now using the plugin bbpress addition shortcodes to build my forum.

    This is my forum:
    http://invaderz.pt/community/?page_id=29

    As you can see, i have multiple forum indexes, but they all have the same name. But i need them to have different names from each other.
    Is there anyway to do this?

    Thank you for you time,
    Miguel

    #158644

    In reply to: profile page links??

    Robin W
    Moderator

    no, sorry but the site uses a database and php to call the code

    if you know html, then getting into php is not so bad, but maybe do some training first, this is a good intro

    http://www.w3schools.com/php/

    #158636

    In reply to: change forum sidebar

    Robin W
    Moderator

    the try widget logic

    Download “widget logic”

    https://wordpress.org/plugins/widget-logic/

    This plugin lets you specify conditions for when widget items are displayed.

    You would then put all the widgets for both the blog page and the forum page in one sidebar

    Against each of these you then specify whether you want it to appear on the forum page, on any page with a sidebar that is not the forum (eg your blog), or on both forum and other sidebar pages.

    you do this by putting the following code in the widget logic box that you will see appears against each widget

    For a forum sidebar you put : is_bbpress() ie is this page a forum page
    For any other sidebar you put : !is_bbpress() ie is this page NOT a forum page
    For any item to appear on both, simply leave the logic blank.

    Give that a try and come back and let us know how it works

    #158635
    –Q–Shadows
    Participant

    Hey,

    Nice plugin. Reduces allot of the headache when it comes to customizing bbpress looks 🙂

    One thing I cant get to work around thou is the Forum Template Extras that comes with it. I followed the instructions provided, copied the code from loop-forums.php to my bbpress folder but for some reason the I cant see any effect of it on my forums :(.

    #158632

    In reply to: change forum sidebar

    mhairilongmuir
    Participant

    I am having the same problem – I have followed the instructions in the codex, and added WP Tweaks, but my custom sidebar for the forum page is not showing. When I go in and edit bbpress.php manually via the editor, the changes show in the sidebar. But when I try to do it via the widgetized area, the bbpress sidebar doesn’t show.

    I also tried Robin W’s fix – moving the widgets out of the area and switching off the plugin etc, but that also didn’t work.

    I am using a child theme of Canvas, and have also implemented the ‘Fix for BBPress and Canvas (5.2 and higher)’ Fix for BBPress and Canvas (5.2 and higher) –

    #158626

    In reply to: profile page links??

    Robin W
    Moderator

    yes but you’ll need to do some coding

    see

    http://generatewp.com/shortcodes/

    the code would go in your functions file

    Functions files and child themes – explained !

    and the code you’ll be seeking to shortcode is in

    wp-content/plugins/bbpress/templates/default/bbpress/

    in particular

    wp-content/plugins/bbpress/templates/default/bbpress/user-details.php

    #158624
    Seo45
    Participant

    Hello everyone, I’m having a problem. I am using something called uerpro, and I integrated it into bbpress, but it now makes it where the profile links to the userpro profiles. This is what I want, but I was wondering if the things like: New posts, replies, signature and everything that was in the bbpress profile page can be put into the userpro profile page. It uses a single page as the template, so if there are shortcodes or something, that would be perfect. Thank you for any help!

    #158615

    In reply to: Account in Tool Bar

    Robkk
    Moderator

    i think its custom code that bbpress.org has, but basically its a customized WordPress Admin bar

    #158611
    krazen
    Participant

    Hello!

    I’ve stumbled across that problem today. Let’s say I make a forum of ID 65 private in bbPress’ settings.

    Then, somewhere in my template I’m using get_posts to pull some custom post type content which has nothing to do with the forums. When there is no user with sufficient privileges logged in, bbPress adds following SQL to my query:
    ... INNER JOIN wp_postmeta ON ( wp_posts.ID = wp_postmeta.post_id ) ...
    and

    ... AND ( 
      ( wp_postmeta.meta_key = '_bbp_forum_id' AND CAST(wp_postmeta.meta_value AS SIGNED) != '65' )
    ) ... 

    which always ends up breaking my query, since the posts I’m querying for do not have meta_key entries of ‘_bbp_forum_id’.

    I’ve switched the plugin off temporarily, but that doesn’t solve the problem for good.

    #158610
    Robin W
    Moderator

    something like

    function rew_max_shown ($args) {
    $args['max_num_pages'] = 2 ;
    return $args ;
    }
    
    add_filter ('bbp_before_has_topics_parse_args', 'rew_max_shown') ; 

    in your functions file

    Functions files and child themes – explained !

    Robkk
    Moderator

    use the shortcodes

    here is the one for the new topic form

    [bbp-topic-form]

    https://codex.bbpress.org/shortcodes/

    #158606
    Robkk
    Moderator

    give me your theme name

    I have tried using all of the bolded .php page options as well as copying the single.php into the bbpress plug in php page.

    to me this sounds like your not doing it right

    follow this guide

    https://codex.bbpress.org/theme-compatibility/getting-started-in-modifying-the-main-bbpress-template/

    and this too

    https://codex.bbpress.org/theme-compatibility/

    it could also be a theme or plugin issue.

    It could be a theme or plugin issue

    Plugins

    Deactivate all but bbpress and see if this fixes. if it does, re-enable one at a time to see which is causing the error.

    Themes

    If plugins don’t pinpoint the problem, as a test switch to a default theme such as twentytwelve, and see if this fixes.

    #158603
    Robkk
    Moderator

    i think it might be content-single-user.php in the bbPress templates …im not sure how customizing this file will translate into the BuddyPress menus though.

    #158602
    Robkk
    Moderator

    when theme developers say their theme is “bbPress ready”

    it usually means they followed this guide https://codex.bbpress.org/theme-compatibility/

    Are there special features included in bbPress ready themes, if so what are the features called?

    There could showing post count below the author avatar but you can easily do that by installing Robins plugin https://wordpress.org/plugins/bbp-topic-count/.

    I have seen some themes have applied styling to some unread posts plugin , but really nothing too crazy that you cant get with free plugins and doing it manually without causing a hard time developing.

    #158601
    Robkk
    Moderator

    @jmeyer2485

    bbpress.org adds that background color around the forum name using this CSS code.

    #bbpress-forums p.bbp-topic-meta .bbp-topic-started-in a {
    background-color: #328C00;
    }

    of course you can only see it on super-sticky topics and also when your forum root is showing topics by freshness

Viewing 25 results - 9,426 through 9,450 (of 32,505 total)
Skip to toolbar