Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for '"wordpress'

Viewing 25 results - 7,951 through 7,975 (of 26,874 total)
  • Author
    Search Results
  • #158803
    Robkk
    Moderator

    you can fiddle with the bbPress views

    https://gist.github.com/ntwb/8167699

    sorting a thread by rating can be achieved exactly like how Robin said .

    plugins that might be able to do it are

    https://wordpress.org/plugins/wp-postratings/

    maybe polldaddy ratings or the rating widget might help by using their widgets

    this might help with finding the metakey for wp-postratings

    wordpress.stackexchange.com/questions/50524/how-to-order-results-by-date-and-meta-key

    #158801
    Robkk
    Moderator

    alright so basically it does what this plugin does

    https://wordpress.org/plugins/page-links-to/

    your forum title will show like any normal forum but if you click it , it will link to whatever you want.

    works pretty good when i tested it out, it wont show in the status drop-down though it will show in another meta-box somewhere below the post content.

    #158797

    In reply to: Post submission hooks

    Robkk
    Moderator

    @s1r0n

    i tested it out on your site and see its working better

    its not really a honeypot field though

    how a honeypot field is supposed to be is invisible to the users on your site and is not required for input for the user.

    its a hidden input field that if it has any type of dummy information from spam-bots injected , it should stop the next action that the spammer is trying to do.

    the way your code is arranged its close to these two plugins

    https://wordpress.org/plugins/growmap-anti-spambot-plugin/ ( probably no bbpress compatibility)
    https://github.com/studiohyperset/bpress-no-captcha-recaptcha ( still in development)

    you might want to go to the bbpress nocatpcha plugin (when its done being developed) if you think it works better for what you need.

    since you/robin found half the code im going to try to make a honeypot using these two plugins for the other half

    wordpress.org/plugins/registration-honeypot/
    wordpress.org/plugins/zero-spam/ (i dont know about bbpress compatibility yet)

    also @s1r0n what do you mean by custom meta tags, like explain exactly how you want it so i can see if a normal seo plugin cant do this already.

    #158794
    Robkk
    Moderator

    @zoker

    so like post formats but for bbPress post types??

    https://codex.wordpress.org/Post_Formats

    there is a function below in the post to implement it , but i think it will only show in the back-end of wordpress and is not implemented in the front-end just yet

    #158792

    In reply to: Post submission hooks

    s1r0n
    Participant

    Ah you’ll have to do that again. the code above has a line commented out that shouldn’t be. sorry for the hassle

    add_action('bbp_theme_after_topic_form_content','lp_add_honeypot');
    add_action('bbp_theme_after_reply_form_content','lp_add_honeypot');
    function lp_add_honeypot() {
    
        if (is_user_logged_in())
            return;
        ?>
    <p>
        <label for="lp_post_honey_pot">I am a robot (yes/no)</label><br />
        <input type="text" value="" tabindex="103" size="40" name="lp_post_honey_pot" id="lp_post_honey_pot"  />
    </p>
    <?php     
    }
    
    //https://core.trac.wordpress.org/browser/tags/4.1.1/src/wp-includes/post.php#L0
    add_filter('wp_insert_post_empty_content', 'lp_check_honeypot', 10, 2);
    function lp_check_honeypot($is_empty, $postarr) {
        
         if (is_user_logged_in())
            return false;
        
    
        if ($postarr['post_type'] == 'topic' || $postarr['post_type'] == 'reply') {//only do this for bbspress
            if ($postarr['bbp_post_as_submitted']['POST_lp_post_honey_pot'] == 'no') {
                return false; //treat this post as good
            }
    
            return true;
        }
        return false;
    }

    I only need this to work for users who are not logged in, guests, so i’ve added a couple of lines to turn this off when users are logged in. if you want to test even registered users just leave those lines in.

    When I have a bit of time I’ll look into bbpress errors and find a way to set an appropriate error message.

    Have fun and let us know if you use it and it works for you or not

    #158790
    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 !

    #158784
    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

    #158778
    webplayer
    Participant

    Hi,

    I was wondering if there is a plugin anyone is using to turn keywords into topics and replies to links to other pages in wordpress.

    For example if had a forum about fish, and someone mentions “gold fish” I want that to automatically be turned into a link and go to a page I have about gold fish, etc…

    I found plugins that are able to do this for posts, pages, and custom post types, but is anyone doing this with bbpress and if so, how?

    #158776
    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

    #158771

    In reply to: Post submission hooks

    s1r0n
    Participant

    oops. had a mistake in code. this one works better

    
    add_action('bbp_theme_after_topic_form_content','lp_add_honeypot');
    add_action('bbp_theme_after_reply_form_content','lp_add_honeypot');
    function lp_add_honeypot() {
    
        if (is_user_logged_in())
            return;
        ?>
    <p>
        <label for="lp_post_honey_pot">I am a robot (yes/no)</label><br />
        <input type="text" value="" tabindex="103" size="40" name="lp_post_honey_pot" id="lp_post_honey_pot"  />
    </p>
    <?php     
    }
    
    //https://core.trac.wordpress.org/browser/tags/4.1.1/src/wp-includes/post.php#L0
    //add_filter('wp_insert_post_empty_content', 'lp_check_honeypot', 10, 2);
    function lp_check_honeypot($is_empty, $postarr) {
        
    //   print_r($postarr);exit;
        if ($postarr['post_type'] == 'topic' || $postarr['post_type'] == 'reply') {//only do this for bbspress
            if ($postarr['bbp_post_as_submitted']['POST_lp_post_honey_pot'] == 'no') {
                return false; //treat this post as good
            }
    
            return true;
        }
        return false;
    }
    #158769

    In reply to: Post submission hooks

    s1r0n
    Participant

    Ya ok i got something figured out. its very basic but you can easily add to this. here’s the code

    This basically ads a field call ‘lp_post_honey_post’ with the question “I am a robot”. if the user answers anything other than ‘no’ the post craps out with an error. currently the error message is that the post parameters are wrong, but maybe if somebody can tell me how to set the bbpress error message I can fix that.

    You can see the filter in action here

    http://www.thelightningpath.com/forums/room/lobby/pre-registration/

    There are a few tweaks you could make to this. if you have a plugin like piklist you can easily have a settings page where you could set both the question and the answer. And of course you can change the question in the hard code.

    I choose the wp_insert_post_empty_content filter because it fires early on in the wp_update_post routine, saving some CPU cycles.

    If somebody wants to help me set this up as a wordpress plugin we could make this a plugin pretty easily. I’m guessing there would be a lot of interest in this.
    incorrect code removed ! - correct version below

    #158767
    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/

    #158766
    Robin W
    Moderator
    #158761
    Robkk
    Moderator

    @tools4toni

    ideas for plugin exploration

    there is a plugin section on this site, it basically pulls information from the wordpress.org plugin section on any plugin tagged “bbpress”

    i’d say search the plugins section

    search the forums on this site so you would find some developed plugins that are not yet on wordpress.org

    check some in the list here https://codex.bbpress.org/feature-plugins-tracking/

    on gist.github.com/ there are a few snippets in plugin format , especially netweb’s gists https://gist.github.com/ntwb

    there are also paid plugins on sites like codecanyon

    and there is always google.com

    #158753

    Topic: Basic Forums

    in forum Troubleshooting
    debatech
    Participant

    I’m having trouble and I’m not sure if this just can’t be done or I’m missing something basic.

    I’m using wordpress 4.1.1 and bbpress 2.5.4. The set up I’m trying to achieve is anyone visiting the site (not registered) can view the forums, but can’t create topics or reply. Registered users can both create and reply to topics. Is there any way to do this?

    #158744

    In reply to: Login bar

    jeroenkosterr
    Participant

    I am not searching for a plugin actually. Need the php code to show these options.
    Maybe its a wordpress thing or maybe its a BBpress thing or maybe both.

    #158738

    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/

    #158736
    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/

    #158734
    chieper
    Participant

    not sure if it would help, but just tried this plugin, https://wordpress.org/plugins/bbpress-notify-nospam/, and works perfectly find with me. =)

    meridian367
    Participant

    Hello there,

    So I have an existing bbpress sitting on another WordPress site. We are redesigning this website and migrating its content to a new install.

    On the old website I exported Forums, Topics, and Replies using the WP Export tool. On the new website I first import Forums which works fine. Next after I import the Topics xml and check the topics page, I see all the topics, but they aren’t associated with the correct forum, the just say “No Forum”.

    Is this a bug? Or is there a better way to pick up and move the entire forum to a new WordPress install?

    Thanks so much!

    #158690
    Robin W
    Moderator

    my shortcode

    [bsp-display-topic-index show=’100′]

    in

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

    will let you change the number displayed, but only one page I’m afraid !

    #158688
    Robin W
    Moderator

    ok, I’ve just finished coding a ‘latest activity’ widget that should do what you want.

    I’ve added it to my bbp-style-pack

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

    which you can load to the site and just use (there’s lots of other stuff in there), or if you’re code savvy, you can fork it form includes/widgets.php into your functions file

    Hope you enjoy it !

    #158680
    Robin W
    Moderator

    I think what you want is the template from my plugin bbp style pack

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

    you can install this plugin if you like, it has lots of stuff in it, but if you just want the styling above then download the plugin to your pc, and do the following

    1. 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

    2. Find bbp-style-pack/extras/loop-forums.php and make a copy

    3. Paste this copy into the directory called bbpress that you created in 1. above, so you end up with

    wp-content/themes/%your-theme-name%/bbpress/loop-forums.php

    4. Reload the site (don’t just refresh)

    To stop using this just delete the file wp-content/%your-theme-name%/bbpress/loop-forums.php

    #158679
    jtstables
    Participant

    I received an email from my host stating that WordPress had been updated to 4.1.1. Now even though people are logged into my site the forum tells them that to reply to this topic you must be logged in. The system even tells me this as adimn. So I tried I logged out then back in to make sure that would not fix the problem. It didn’t, the forum still tells me that I must be logged in to reply to this topic even though I am logged in. Forum worked great before 4.1.1 installed.

    #158675
    Robkk
    Moderator

    i think using a plugin like this will help

    https://wordpress.org/plugins/bbpress-post-topics/

Viewing 25 results - 7,951 through 7,975 (of 26,874 total)
Skip to toolbar