Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 12,426 through 12,450 (of 32,504 total)
  • Author
    Search Results
  • #143606

    In reply to: Forum Question

    Robin W
    Moderator

    There is no reason that you shouldn’t use the main theme APART from the danger that on an update of the theme you’ll lose the changes. But as you’ve done changes, you have that risk now with your existing changes, and hopefully have a note of them ! As long as you keep a copy of the functions file, you should be able to just add this code to the theme’s functions file at the end.

    If that doesn’t work, come back, and I’ll cut the code into a plugin for you, but would prefer not to do that if I don’t have to (time!)

    #143600

    In reply to: Forum Question

    kdumas123
    Participant

    Hi Robin,

    I got stuck on your step: “Then drop this code into your (child)themes functions file.”

    I haven’t been using a child theme. I looked up directions on how to create a child theme for the theme I’m using but when I activated that child theme, it removed all the customizations I have made to the template using the template’s layout features and built in Custom CSS area.

    http://para.llel.us/support/tutorials/making-an-incentive-child-theme/

    After searching Incentive’s forum some more, I saw this post:

    It’s up to you and will depend on how you intend to use the theme. I don’t usually setup a child theme until it becomes necessary.

    I’ll offer this word of caution. The way Incentive stores its data under a unique identifier based on the theme name, any theme specific settings will not show up in a child theme created after you’ve already started customizing. This means if you start building your site and create 20 custom layouts then later add a child theme you won’t see those layouts in the child theme admin. Each theme has its own set of data so it’s possible to have several installs of Incentive on one site with different settings. It’s not typical for a theme to do this but we find it much safer because it ensures you don’t get data crossover, ever, when there is another install of the theme on the same site.

    What I’m saying, in a very long and complicated way is, if you think there is a chance you’ll need a child theme at some point, create it now and start working that way from the beginning. 🙂

    So, now I’m thinking I can’t do what you want me to do… Any suggestions?

    #143588
    Robin W
    Moderator

    ok, I think you might need to change a parameter.

    Try the following filter in your functions file

    function bbp_increase-forums-per-page( $args = array() ) {
    $args['posts_per_page'] = get_option( '_bbp_forums_per_page', 150 );
        return $args;
    }
    add_filter( 'bbp_before_has_forums_parse_args', 'bbp_increase-forums-per-page' ); 

    Come back and let us know if that worked.

    #143585

    In reply to: max 50 forums ?

    Robin W
    Moderator

    “The problem is, there is no template-tags.php”

    It was renamed to just template.php

    bbpress/includes/forums/template.php

    However you should be able to use the following filter in your functions file, just amend the 100 to whatever you want

    function bbp_increase-forum-per-page( $args = array() ) {
    $args['posts_per_page'] = get_option( '_bbp_forums_per_page', 100 );
        return $args;
    }
    add_filter( 'bbp_before_has_forums_parse_args', 'bbp_increase-forum-per-page' );
    
    #143564

    In reply to: No toolbar available

    Stephen Edgar
    Keymaster

    If you want to enable the Visual Editor you should use the code from the codex:

    Enable Visual Editor

    function bbp_enable_visual_editor( $args = array() ) {
        $args['tinymce'] = true;
        return $args;
    }
    add_filter( 'bbp_after_get_the_content_parse_args', 'bbp_enable_visual_editor' );

    Also make sure you have no other plugins causing a conflict.

    #143559
    Stephen Edgar
    Keymaster

    Someone else here has done the import/conversion when using wp-united, here it is, should be some good tips for you: https://bbpress.org/forums/topic/phpbb3-import-incomplete-and-switches-authors/

    Also https://codex.bbpress.org/import-forums/ & https://codex.bbpress.org/import-forums/phpbb

    Stephen Edgar
    Keymaster

    It is a theme issue… Though I expect you knew that was coming 😉

    You might be able to find some more info for ‘other’ bbPress Atahualpa issues via:
    http://forum.bytesforall.com/search.php?searchid=749383

    With all that said, I was terrified looking at this theme, it seems that it doesn’t use WordPress Template Hierarchy and overrides/creates it’s own templates and far too many options for my liking.

    Create a new file named bbpress.php in your theme folder \wp-content\themes\atahualpa

    Add the following code to the bbpress.php file and you should be good to go:

    
    <?php
    /**
     * bbPress wrapper template.
     */
    
    get_header(); ?>
    
    <?php while( have_posts() ): the_post(); ?>
    
    	<?php the_content(); ?>
    
    <?php endwhile; ?>
    
    <?php get_footer(); ?>
    
    #143557
    Stephen Edgar
    Keymaster

    bbPress uses WordPress’s user profiles code, so any new fields you add to the dashboard profile (with a plugin or otherwise) should be mirrored in the theme. If you need an easy GUI to create profile fields, try BuddyPress.

    There are a bunch of examples on how to do this with WordPress. Follow those instructions and you should be fine.

    #143556

    In reply to: Parent Forum ID #?

    Stephen Edgar
    Keymaster

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

    To get the required numerical ID for $forum_id, $topic_id, $reply_id and $tag_id you will need to visit your /wp-admin/ section and either by editing the post or by hovering your mouse over the applicable forum/topic/reply/tag post type you will see a numeric ID for that post eg. /wp-admin/post.php?post=47

    #143543
    Robin W
    Moderator

    it’s doable, but would need a large re-write of the widget code, so unless you want to dive into deep level code, I suspect that it will just look like that – sorry !

    #143539

    In reply to: What is it?

    Apokh
    Participant

    Solution found

    For Example to add the firstname from the WP User Info add
    <?php $user_info = get_userdata( bbp_get_reply_author_id() ); echo $user_info->first_name . "\n";?>
    in ‘loop-single-reply.php’ somewhere between Line 41 and 59.

    #143537
    Apokh
    Participant

    Okay for anyone, searching this

    For Example to add the firstname from the WP User Info add
    <?php $user_info = get_userdata( bbp_get_reply_author_id() ); echo $user_info->first_name . "\n";?>
    in ‘loop-single-reply.php’ somewhere between Line 41 and 59.

    #143530
    kvr28
    Participant

    Hello, I’m trying to add this shortcode at the bottom of my forum page template and am running into 2 issues, one is in the main forum and the topics it shows fine, if I’m in a sub forum directory it shows the sub forums most recent not the whole sites, second if I go past page 2 on the pagination I get 404 pages, any ideas? Thank you

    #143524
    Thaddeous
    Participant

    Thank you Stephen,
    I got the page to work now with the shortcodes, BUT the shortcodes don’t seem to be displaying what the description says they should be displaying. Backup first…. Here is what we am trying to do with BBPress: We are trying to create forums under specific categories. Sounds easy. We placed all forums under specific categories but this wasn’t quite displaying as we needed them to all on one page. We need them to display like this forum here: http://www.ultimate-guitar.com/forum/

    SO back to the shortcode problem. We cant get any of these forums to display a single forum. The shortcodes are displaying ALL forums no matter if we use single forums shortcodes or not.
    Shouldnt the below shortcodes display these five forum ids only and not ALL forums five times just with a reply form for the associated ID at the bottom?

    [bbp-single-forum id=239]
    [bbp-single-forum id=238]
    [bbp-single-forum id=237]
    [bbp-single-forum id=236]
    [bbp-single-forum id=235]

    Basically we are trying to split up these forums manually with the shortcodes just by displaying what forums we want (and we could separate them with a text box showing the category or something). So the question is, “What is the shortcode for only displaying one forum without a reply form”. This way we can input all forums and organize them how we wish. Make sense? Please help. 🙂

    #143521
    madman_18
    Participant

    Hey!

    Frist sorry for my english 🙂

    Well, i’m starting to use bbPress and have a problems to activate uploads img. I try with the GD bbPress Attachments but don’t works.

    I see the next code, but the button “Add Object” don’t works 🙁
    bbp_the_content( array( 'context' => 'reply','media_buttons',true ) );

    I’m use the last version to bbPress, 2.5.3

    Thanks for the help!

    #143513
    Stephen Edgar
    Keymaster

    Shortcode docs are here https://codex.bbpress.org/shortcodes/

    #143508

    In reply to: Order of Topics

    Stephen Edgar
    Keymaster

    This should work…

    function custom_bbp_has_topics() {
      $args['order'] = 'ASC'; // 'ASC' (Ascending), 'DESC' (Descending, Default)
      
      return $args;
    }
     
    add_filter('bbp_before_has_topics_parse_args', 'custom_bbp_has_topics' );
    
    Thaddeous
    Participant

    Having issue with our site pages and BBPress. We are using WP 3.8.1 and the latest version of BB Press.

    email: theig072@gmail.com
    site: http://www.fretbuzz.com
    site password: test12

    We want to customize our BB Press page (title, maybe input a button or two… who knows) BUT there is no actual BB Press page to customize? The forum seems to be automatically created upon install. Normally we can edit any page by selecting “edit page” at the top of the screen and in this case, there is no edit page button because the page doesn’t exist.
    Following? So the logical next step is to create the page right? Well… when we go to the backend of WP in the admin dashboard -> Settings -> Forums -> we read (about halfway down this page) this text:

    “Forum Root Slug – Customize your Forums root. Partner with a WordPress Page and use Shortcodes for more flexibility.”

    So we created a WP Page named forums. (http://www.fretbuzz.com/forums/) If this page is created then the forums appear until we edit anything. We cant select any option or input any text or the forums do not appear. So we deleted the page and the forums appear again. Then we created a separate WP page and labeled it test (http://www.fretbuzz.com/test/) and then moved the forum root slug to it, the forums again appear but If we again try to put any button shortcode or text or whatever in the page then nothing appears. So this begs the question…. What are the shortcodes BB Press talks about in the settings panel? How do we customize our BB Press Forums page?

    End goal = Create an actual page that hold the forum roots on which we can add a button or two (with maybe some text). With an actual page as the root slug, I have access to turn on or off options as well such as “ratings” and “Author Bio”, which is quite annoying on the forums currently.

    Our theme (DynamiX) has almost 9000 support members and this is what one of the support moderators said:

    “Hi Tad,
    I am not sure if this feature works correctly as I have tested it with DynamiX and the standard WP theme and they both have the same results. It must be a feature of BBPress that does not work properly.
    Tom”

    This cannot be so…. Any suggestions. Any help is highly coveted. 🙂

    #143504
    Robin W
    Moderator

    showing twice is the way bbpress likes doing it !

    You can turn off the forums root slug in settings>forums

    or play with this code

    Layout and functionality – Examples you can use

    Don’t know how the latter would work with your plugin

    #143502
    Robin W
    Moderator
    HorrorUK
    Participant

    Hi all,

    I’m trying to figure out how to get a specific forum to be shown on a page and to keep users on that page.

    I’m using the following shortcode:

    [bbp-single-forum id=9232]

    This does the job of showing the specific forum on the page, but it when a user posts a new topic or clicks on a topic to read it, it takes them to the bbPress page:

    /forums/topic/test-topic

    Is it possible to keep the user on that page throughout the process? I have different forums for separate members (using the Groups plugin), and would like to control who can see what from that single page.

    Thanks 🙂

    #143493
    Robin W
    Moderator

    looks good, have you tried it and does it work,

    If so I’ll add it to the codex

    #143490
    Robin W
    Moderator

    @star100

    Layout and functionality – Examples you can use

    no. 14 & 15


    @bob1nz

    Thanks, I’ve updated the codex, as I say it doesn’t like switching between visual and text, and alters the code if you do. Sop thanks again it should now read correctly

    #143489
    Gilles Vauvarin
    Participant

    Maybe better like this :

    add_action( 'bbp_template_before_single_forum' , 'xxxx_bbp_display_forum_description' );
    
    function xxxx_bbp_display_forum_description() {
    
        $display_forum_description = bbp_get_forum_content();
    
        if ( bbp_is_single_forum() && ! empty( $display_forum_description ) ) {
        
            echo '<div class="bbp-display-forum-description">';
            echo $display_forum_description;
            echo '</div>';
    
        }

    }

    #143488
    Apokh
    Participant

    Okay, one more try now 🙂

    There is one thing I want do do, so I have 2 questions according to that:

    1.) (how) is it possible (I guess it is) to get WP userdata for display in bbpress? Lets say the First Name of the WordPress User Information.
    Must be something get_userdata( <strong>bbpressuser</strong>) ?!

    2.) As I learned, the Userinfos (Avatar, Role etc) of the Reply must be somewhere in loop-single-topic.php – but I really don´t find it.

    Thanks in advance. Hope someone can help with that for the german forums (i´m from germany) are really dead :/

    Best regards
    Apokh

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