Robin W (@robin-w)

Forum Replies Created

Viewing 25 replies - 11,051 through 11,075 (of 14,141 total)
  • @robin-w

    Moderator

    I’ll answer this just to let you know that someone has read it.

    This would require I think a ton of work to make it work, and I have no idea on how it would affect preformance

    @robin-w

    Moderator

    depending on how you have set up your forums

    https://wordpress.org/plugins/bbp-private-groups/

    might help – see settings>help

    @robin-w

    Moderator

    don’t know what else to suggest, bbpress is tested to work with the default themes, suggest you contact your host provider.

    @robin-w

    Moderator

    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.

    Then come back

    @robin-w

    Moderator

    ahh, sorry hadn’t spotted that you were using genesis, which I should have. Yes the extend is a must!

    In reply to: Forum Page ID's

    @robin-w

    Moderator
    In reply to: Forum Page ID's

    @robin-w

    Moderator

    presuming you’ll be using css to do this, just inspect the pages using developer tools and you’ll see the created class.

    for instance your general banter forum has a class of

    ‘forum bbpress single single-forum postid-28’

    Developer tools

    https://developer.chrome.com/devtools

    https://msdn.microsoft.com/en-gb/library/ie/gg589507(v=vs.85)

    @robin-w

    Moderator

    no, just one login !

    @robin-w

    Moderator

    I’m not quite sure what you are asking.

    Can you put a link to your forums, and say what you want where

    thanks

    @robin-w

    Moderator

    I would start with

    https://wordpress.org/plugins/bbp-private-groups/

    this will give you private forums per group, so you can have a user allocated to a group, and a forum allocated to a group. so you would just have a different group for each user, and just one forum allocated to that group.

    Then on registration, you would need to

    create a forum
    create a private group – probably using the $user_id, so that it is unique
    Allocate the private group to the forum
    Allocate the private group to the user

    you’d use an add_action to user_register to do the above, the example below comes from

    https://codex.wordpress.org/Customizing_the_Registration_Form, but you can in effect get wordpress to do anything when the user hits the submit key

     //3. Finally, save our extra registration user meta.
        add_action( 'user_register', 'myplugin_user_register' );
        function myplugin_user_register( $user_id ) {
            if ( ! empty( $_POST['first_name'] ) ) {
                update_user_meta( $user_id, 'first_name', trim( $_POST['first_name'] ) );
            }
        }
    

    so you would need to look at putting code into that function :
    create forum – what’s updated in the database when you create a forum – start with bbpress\includes\forums\functions.php and look at what function bbp_new_forum does, you’ll probably need to write a version for the above function.

    create a private group (for that one see the private groups plugin includes/settings.php and look at the group settings – and for info $rpg_groups = get_option ( ‘rpg_groups’) 😉
    allocate private group to forum – (for that one see the private groups plugin includes/meta-box.php and look at $meta = get_post_meta( $post->ID, ‘_private_group’, false );
    allocate the user to the group – see includes/user-view_post.php it’s looked up using $check=get_user_meta( $user_id, ‘private_group’,true);

    Since I’ve now written so much, I am expecting in the spirit of community software, you to share the solution when you get it going, and post the result back here !

    @robin-w

    Moderator

    I found plugins that are able to do this for posts, pages, and custom post types,

    bbpress uses 3 custom post types of forum, topic and reply so your plugin should work for bbpress

    if you get it working, please come back and share which plugin and what you had to do.

    @robin-w

    Moderator

    a lot of people use

    https://wordpress.org/plugins/bbpress-enable-tinymce-visual-tab/

    I haven’t tried it myself, but come back either way and let us know

    In reply to: Post submission hooks

    @robin-w

    Moderator

    great – thanks for posting back – edited and removed the wrong version code above – some people never read all the way through !

    Thanks again

    @robin-w

    Moderator

    ok install widget logic

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

    this adds a box to each widget in a sidebar

    so work out which sidebar is showing in your bbpress pages and for each widget in that sidebar into that box put

    is_bbpress() if you want it to appear in forum pages
    !is_bbpres() is you don’t want it to appear in forum pages (but do want it on other pages where that sidebar appears
    and leave blank if you want tit to appear on both forum and other pages

    In reply to: Post submission hooks

    @robin-w

    Moderator

    @robin-w

    Moderator

    hmm…. there’s no limit to the number of ways people want to use the forums !!

    Would take a bit of coding, and suspect you’d need to pay to get this developed.

    I don’t have time I’m afraid

    http://jobs.wordpress.net/

    @robin-w

    Moderator
    In reply to: Basic Forums

    @robin-w

    Moderator

    yes this should be the default.

    go to

    dashboard>forums>anonymous posting and make sure it is not ticked !

    In reply to: Post submission hooks

    @robin-w

    Moderator

    yes look in the form templates which you’ll find in the plugin
    bbpress/templates/default/bbpress

    in particular

    bbpress/templates/default/bbpress/form-topic.php
    and
    bbpress/templates/default/bbpress/form-reply.php

    either

    a)( You’ll find several hooks in there which you can add_action to , or

    b) you can copy these templates to your theme and modify happily by

    create a directory on your theme called ‘bbpress’
    ie wp-content/themes/%your-theme-name%/bbpress

    where %your-theme-name% is the name of your theme

    then find
    wp-content/plugins/bbpress/templates/default/bbpress/xx.php

    where xx.php is say form-topic.php

    Make a copy of this file, and put in in the directory called bbpress that you created above, so you end up with
    wp-content/themes/%your-theme-name%/bbpress/xx.php
    where xx.php is say form-topic.php

    bbPress will now use this template instead of the original

    In reply to: Login bar

    @robin-w

    Moderator

    Hey great – just had a look and it look good !

    Thanks for posting the answer back, it will help others

    @robin-w

    Moderator

    great -besy way to learn, I knew nothing of bbpress two years ago !

    Come back if you get stuck, and if I can help with quick pointers I will.

    In the spirit of community, it would also be great if you shard the solution if you get there, this is occasionally asked for, and I’ll add it to the codex.

    key bit is on the topics widget for most recent replies, which you would copy and use

    // Order by most recent replies
    case ‘freshness’ :
    $topics_query = array(
    ‘post_type’ => bbp_get_topic_post_type(),
    ‘post_parent’ => $settings[‘parent_forum’],
    ‘posts_per_page’ => (int) $settings[‘max_shown’],
    ‘post_status’ => array( bbp_get_public_status_id(), bbp_get_closed_status_id() ),
    ‘ignore_sticky_posts’ => true,
    ‘no_found_rows’ => true,
    ‘meta_key’ => ‘_bbp_last_active_time’,
    ‘orderby’ => ‘meta_value’,
    ‘order’ => ‘DESC’,
    );
    break;

    that’s where the meta key bit is, so if your plugin stores as ‘_rating’, then that’s what would go in the meta_key line.

    In reply to: Login bar

    @robin-w

    Moderator

    Don’t be sorry ! If that’s not where you want it.

    I don’t know of any plugin that does this – sorry 🙂

    @robin-w

    Moderator

    once you’ve done that run the repair tool, they’ll have had a different forum number on the old site

    dashboard>tools>forums>repair forums

    In reply to: Login bar

    @robin-w

    Moderator

    Maybe just have it on the menu?

    see

    login tab in

    https://wordpress.org/plugins/bbp-style-pack/

    @robin-w

    Moderator

    Most replied to is already in the topics widget (as most popular), so it would be nicking that query code.

    It would not be tons of code to do a rating, as long as the rating system stores the score in post_meta, then a simple query with that meta would do it.

    Just that I haven’t got time to code it at the moment.

    suggest you

    a) look at bbpress rating plugins
    b) check that they store scores in post_meta
    c) either code yourself (see bbpress/includes/common/widgets) for the widget code,
    d) or pay someone to do it http://jobs.wordpress.net/

Viewing 25 replies - 11,051 through 11,075 (of 14,141 total)