Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'forum'

Viewing 25 results - 2,501 through 2,525 (of 20,277 total)
  • Author
    Search Results
  • #235221
    giuseppecuttone
    Participant

    Hi @alexterchum and @sbrajesh
    I think Alex is right.
    The other BuddyPress Notifications disappears when user visit the page.
    Also the others notifications generated with the others plugins that sbrajesh has developped (BP Group Activities Notifier and BuddyPress Activity Comment Notifier) run well.
    For example if the USER A send a message to USER B, USER B receive one notification.
    When USER B visit the page whin the message (http://URLWEBSITE/members/USER-NAME/messages/view/xx/) – clicking in the notification or by other way… – the notification will be dissapear.
    Also in the page http://URLWEBSITE/members/USER-NAME/notifications/, when user visit the page with the message, the message automatically will go to the section UNREAD and it is not necessary that the user must to mark as READ the message in order to dissapear the notification.

    I have the same problem with FORUM notification (using https://wordpress.org/support/plugin/bp-forum-notifier).

    sbrajesh, can you solve the problem in the plugin “BuddyPress Notify Post Author on Blog Comment”?

    Thank’s very much

    #235215
    Faldekan
    Participant

    Ok, thanks, I’ve put a post on the frontend user forum as well, hopefully someone can help me somewhere!

    #235196
    Faldekan
    Participant

    I thought this was the plugin support forum? Do you mean the support forum for Frontend User?

    #235190
    danbp
    Participant

    You have to ask on the plugin support forum, as post pictures are showed on swa with a default BP install.

    #235156
    mazhermon
    Participant

    FYI I’ve now narrowed mine down to be this define line, which I was using to make forum’s my default tab.

    define( ‘BP_GROUPS_DEFAULT_EXTENSION’, ‘forum’ );

    works fine without that line
    hopefully that helps you too, or gives you a clue

    #235090
    Hugo Ashmore
    Participant

    > and it must NOT be compulsory to join the group for the public groups. Why can’t this be done?
    Perhaps it can be, suggest it on a trac enhancement ticket if you feel that strongly, by default groups need members, BP list participants in a group or at least can track things if people are matched with a group.

    bbP forums is a standalone plugin that ties in to BP due to historical use of forums in groups, but you can create forums outside of BP groups and categorize/nest them but bbP support and documentation better explains how to setup bbPress, although we have a decent guide in our codex too just have a look through the docs πŸ˜‰ but do come back with any questions you might have to doing this if things still not clear.

    #235083
    leanneoleary
    Participant

    Thanks for your help with this but I am still not sure what I need to do. The function I posted was just an example that I had found from an earlier forum, I do not need to add videos and pictures to the activity stream.

    I need to add details of a custom post type every time a custom form is submitted from the frontend by a user. The custom post type is “Files”. Below is a class for the form and it is within the CMB (custom meta boxes) plugin folder. Can you advise on how to implement the code to record these forms posts in the activity stream?

    class uploadForm {
    
        // Set prefix
        public $prefix = '_cmb_'; 
    
        /**
         * Construct the class.
         */
        public function __construct() {
            add_filter( 'cmb_meta_boxes', array( $this, 'cmb_metaboxes' ) );
            add_shortcode( 'cmb-form', array( $this, 'do_frontend_form' ) );
            add_action( 'init', array( $this, 'initialize_cmb_meta_boxes' ), 9 );
           /* add_action( 'cmb_save_post_fields', array( $this, 'save_fields' ), 10, 4 );*/
            add_action( 'save_post', array( $this, 'save_fields' ), 10, 4 );
           /*add_filter( 'bp_blogs_record_comment_post_types', 'add_activity' );   IS THIS CORRECT?  */ 
        }
    
        /**
         * Define the metabox and field configurations.
         */
        public function cmb_metaboxes( array $meta_boxes ) {
    
            /**
             * Metabox for the "Memorials" front-end submission form
             */
            $meta_boxes['upload_files_metabox'] = array(
                'id'         => 'files',
                'title'      => __( 'Upload files', 'cmb' ),
                'pages'      => array( 'Files' ), // Post type
                'context'    => 'normal',
                'priority'   => 'high',
                'show_names' => true, // Show field names on the left
                'fields'     => array(
                    array(
                        'name'       => __( 'File description', 'cmb' ),
                        'desc'       => __( 'File title or description', 'cmb' ),
                        'id'         => $this->prefix . 'title',
                        'type'       => 'text',
                    ),
                    array(
                        'name'     => __( 'Project stage', 'cmb' ),
                        'desc'     => __( 'select stage (optional)', 'cmb' ),
                        'id'       => $this->prefix . 'category',
                        'type'     => 'taxonomy_select',
                        'taxonomy' => 'stages', // Taxonomy Slug
                    ),
                    array(
                        'name' => __( 'Link to website', 'cmb' ),
                        'desc' => __( 'Add url to website (optional)', 'cmb' ),
                        'id'   => $this->prefix . 'url',
                        'type' => 'text_url',
                        'protocols' => array('http', 'https', 'ftp', 'ftps', 'mailto', 'news', 'irc', 'gopher', 'nntp', 'feed', 'telnet'), // Array of allowed protocols
                        // 'repeatable' => true,
                    ),
                   array(
                        'name' => __( 'Upload image', 'cmb' ),
                        'desc' => __( 'Upload an image or enter a URL.', 'cmb' ),
                        'id'   => $this->prefix . 'image',
                        'type' => 'file',
                    ),
    
                  array(
                      'name'         => __( 'Upload files', 'cmb' ),
                      'desc'         => __( 'Upload or add multiple images/attachments.', 'cmb' ),
                      'id'           => $this->prefix . 'file_list',
                      'type'         => 'file_list',
                  ),
                  array(
                    'name' => __( 'oEmbed', 'cmb' ),
                    'desc' => __( 'Enter a youtube, twitter, or instagram URL. Supports services listed at <a href="https://codex.wordpress.org/Embeds">https://codex.wordpress.org/Embeds</a>.', 'cmb' ),
                    'id'   => $this->prefix . 'embed',
                    'type' => 'oembed',
                 ), 
                ),
            );
    
            return $meta_boxes;
        }
    
        /**
         * Shortcode to display a CMB form for a post ID.
         */
        public function do_frontend_form() {
    
            // Default metabox ID
            $metabox_id = 'upload_files_metabox';
    
            // Get all metaboxes
            $meta_boxes = apply_filters( 'cmb_meta_boxes', array() );
    
            // If the metabox specified doesn't exist, yell about it.
            if ( ! isset( $meta_boxes[ $metabox_id ] ) ) {
                return __( "A metabox with the specified 'metabox_id' doesn't exist.", 'cmb' );
            }
    
            // This is the WordPress post ID where the data should be stored/displayed.
            $post_id = 0;
    
            if ( $new_id = $this->intercept_post_id() ) {
                $post_id = $new_id;
                echo 'Thank You for your submission.';
            } 
    
            // Shortcodes need to return their data, not echo it.
            $echo = false;
    
            // Get our form
            $form = cmb_metabox_form( $meta_boxes[ $metabox_id ], $post_id, $echo );
    
            return $form;
        }
    
        /**
         * Get data before saving to CMB.
         */
        public function intercept_post_id() {
    
            // Check for $_POST data
            if ( empty( $_POST ) ) {
                return false;
            } 
             
            
    
            // Check nonce
            if ( ! ( isset( $_POST['submit-cmb'], $_POST['wp_meta_box_nonce'] ) && wp_verify_nonce( $_POST['wp_meta_box_nonce'], cmb_Meta_Box::nonce() ) ) ) {
                return;
            }
            
            // Setup and sanitize data
            if ( isset( $_POST[ $this->prefix . 'title' ] ) ) {
                           
              
                //add post data to database    
                $this->new_submission = wp_insert_post( array(
                    'post_title'            => sanitize_text_field( $_POST[ $this->prefix . 'title' ] ),
                    'post_author'           => get_current_user_id(),
                    'post_status'           => 'publish', // Set to draft so we can review first
                    'post_type'             => 'file',
                ), true );
    
                // If no errors, save the data into a new post draft
                if ( ! is_wp_error( $this->new_submission ) ) {
                    
                    return $this->new_submission;
                    
                   
                } 
    
            }
    
            return false;
        }
    
        /**
         * Grant temporary permissions to subscribers.
         */
        public function grant_publish_caps( $caps, $cap, $args ) {
    
            if ( 'edit_post'  == $args[0] ) {
                $caps[$cap[0]] = true;
            }
    
            return $caps;
        }
        
       
        
    
        /**
         * Save custom fields and uploaded files 
         */
        public function save_fields( $post_id, $post  ) {
    
                if($_POST['_cmb_category'] != ''){
                    add_post_meta( $post_id, '_cmb_category', $_POST['_cmb_category'], true );
                }
                if($_POST['_cmb_url'] != ''){
                    add_post_meta( $post_id, '_cmb_url', $_POST['_cmb_url]'], true );
                }
                if($_POST['_cmb_image'] != ''){
                    add_post_meta( $post_id, '_cmb_image', $_POST['_cmb_image'], true );
                }
                if($_POST['_cmb_image_id'] != ''){
                    add_post_meta( $post_id, '_cmb_image_id', $_POST['_cmb_image_id'], true );
                }
                if($_POST['_cmb_file_list'] != ''){
                    add_post_meta( $post_id, '_cmb_file_list', $_POST['_cmb__file_list'], true );
                }
                if($_POST['_cmb_embed'] != ''){
                    add_post_meta( $post_id, '_cmb_embed', $_POST['_cmb_embed'], true );
                }
           
    
        }
    
        /**
         * Initialize CMB.
         */
        public function initialize_cmb_meta_boxes() {
    
            if ( ! class_exists( 'cmb_Meta_Box' ) ) {
                require_once 'init.php';
            }
    
        }
        
        /**
         * Add to buddypress activity timeline. - HOW???
         */
        public function add_activity($post_types) {
    
           /* $activity_id = bp_activity_add( $args );
            
            return $activity_id;*/
    
           /*   $post_types[] = 'file'; 
              return $post_types;*/
        }  
        
    
    } // end class
    
    $uploadForm = new uploadForm();
    
    #235081
    wolfied
    Participant

    I’m not an expert on wordpress and I am afraid, I’m not sure as to how I can create the forum outside of groups. But my question is, if a group is set to public, it should be reffering that it’s visible to anyone and it must NOT be compulsory to join the group for the public groups. Why can’t this be done?

    Any guide for carrying the whole forum outside the groups ? how would it effect me?

    #235066
    Hugo Ashmore
    Participant

    What problem? the initial comment is along the right lines Groups require members you can’t post or partake in them unless you join the group, perhaps take up the suggestion to create a forum outside of groups?


    @peter-hamilton
    Hmm that used always to be the process, updating or posting to a group automatically joined you to the group if it was ‘Public’; The codex may need updating or we may have regressed, I’ll have a delve into that.

    bp-help
    Participant

    @mcpeanut @vitamincee
    Just out of curiosity what role editors are you referring to so the OP can explore that route and can these role editors allow you to assign moderators that wouldn’t have full admin rights? For instance could you as an admin assign a moderator that could edit the activity stream and forum topics without them being able to view the other users PM’s? If so that may be what the OP needs. Thanks!

    #234958
    Henry Wright
    Moderator

    @rosyteddy thanks for the idea. I’ve got my hands full at the moment but try opening a topic on the BuddyPress Ideas forum. There may be a developer looking to take up the challenge

    #234955
    peter-hamilton
    Participant

    I just read the codex on this and it is conflicting….at least for me.
    here is what confuses me:

    When a user posts to the discussion forum of a public group, the user automatically becomes a member of the group.

    But we are not allowed to post, that is the message Buddypress shows when going to a public groups forum, instead we get

    Oh bother! No topics were found here!

    followed by

    You cannot create new topics.

    So how do we automatically join this group by posting?

    My guess is that there was some confusion when Buddypress wrote that part of the codex and now it sounds like all members can post on the forums of a public group and will automatically join that group.

    #234952
    peter-hamilton
    Participant

    I seem to believe that groups are only usable by its members and therefor also any group forum.

    Public only means that the group will be listed and viewed by the public, only mebers of those groups can actually post on their forums.

    Better make a regular forum with that name where all can post, and have a sticky post for people to join the actual group to start topics in their “private but publi” forum.

    At least that is what I think, but I might be wrong.

    #234949
    peter-hamilton
    Participant

    I joint the list of non-faqqers, from now on I will be the mother-faqqer that reeds the faq out of all faq’s

    Installed your plugin again and logged out, logged in with demo account…removed existing Avatar…and voila, my identicon is created and in place.

    Only had to change the 10px padding that made all avatars and identicons tiny.

    I will go and give the 5 stars it deserves, thanks @henrywright

    Identicons on my forum

    See it in action here

    Peter Hamilton

    #234943
    danbp
    Participant

    I don’t use that plugin so i can’t help you about making this. Better try by asking the plugin author, on the plugin support forum.

    #234913
    Henry Wright
    Moderator

    Hey @danbp

    Thanks for the feedback. Before I answer your question, I just want to point you to question 4 in the plugin’s FAQ

    Why is it that some members don’t have an identicon?
    An identicon is used as a member’s avatar only if a profile photo hasn’t been uploaded. After activating the plugin, all new members will be allocated an identicon. Existing members will need to log in to get their identicon.

    The reason existing users have to log in to get their identicon is simple. Imagine if a site had 100,000 existing users. At the point the website owner activated the plugin, there’s no way 100,000 fresh identicons could be created. It’d crash their server immediately. I needed a way of staggering the creation of identicons for existing users. The approach I decided on was to create existing user’s identicons on their next login.

    Now, to answer your questions πŸ˜€

    – first time i activated BI, all users showed the mystery man. And plugin works, as i see the border.

    Great! That’s expected.

    – changed profile photo of admin: custom picture appeared.
    – removed the picture: identicon appeared on the admin account.
    -tried to do same thing with a dummy user. Nothing happened.

    The reason nothing happened for the dummy user is because you’re still logged in as admin. You will need to log in as the dummy user for his/her identicon to be created.

    – create a new user from back office, with gmail address, identicon showed up

    Great, that’s a new user created. Identicons are created for all new users so that’s expected.

    – manually created a identicons folder in /uploads/

    There’s no need to manually create folders. The plugin takes care of that for you automatically πŸ™‚

    – modified all dummy user mail address. Mystery man still showing.
    – applied a custom picture to one, ok, then removed. Mystery man again.

    Again, if you’re doing this logged in as admin, then nothing will happen. The actual dummy user will need to log-in in order for their identicon to be created.

    – tried global settings to β€œempty avatar”. Nada ! Reverted to default MM setting and still no identicon.

    Global settings aren’t taken into account by design. If you want to disable identicons, simply disable the plugin. Want them back? Re-enable it πŸ™‚

    On a dev site, using this plugin would really help to avoid calling an external avatar service.
    Would also be true for a prod site, where specially gravatars are mentionned to be optimized as they slow down page speed.

    That was one of the driving factors behind creating the plugin. The beauty of it (in my opinion) is there’s no need to make requests to an external service. Everything is stored locally which should improve page load speed.

    Hope this info helps to clear up any confusion. If you need any more info then just give me a shout, and feel free to open a support ticket on the plugin’s forum if you find a bug.

    #234908
    danbp
    Participant

    @sunday-a-james,

    moved your topic to the appropriate forum.

    If you exported your local site to prod server without taking some caution, it’s a normal issue.
    Or maybe have you forgot to set permalinks or create BP’s page ?

    Read here please:

    How to Safely Move Your WordPress Site (Without Losing Anything!)

    #234906
    danbp
    Participant

    Bumping after 20mn is a bit abused, no ?

    If you use BP, you can edit, add or remove custom profile fields if you activate the extended profile component.

    To add an external plugin to the user profile edit, try to add it to the profile template.
    Or modify the plugin so he use BP specific templates.

    BuddyPress Plugin Development

    Add Meta Box to Admin Extended User Profile


    and much more to read on codex and forum.

    #234870
    David Bisset
    Participant

    Hi @henrywright. Thanks for responding.

    BTW, I want to apologize a little… for some reason I thought you were the author of the plugin… but Jeff Farthing is. That’s what I was picking on you (thought you said it was your plugin in another thread?).

    So with that being said – plus your response – i’m going to climb inside later and see if i can locate the issue. If anyone sees anything in the meantime, feel free to add to this thread. Either way, i’ll plan on updating the plugin’s support forum in some fashion soon (thanks @rosyteddy).

    #234853
    @mercime
    Participant

    @ishvara No problem. Closing this topic as discussion should be continued at plugin dev’s support forums.

    #234849
    Hugo Ashmore
    Participant

    Guessing this is the same as this ticket you opened?
    https://buddypress.trac.wordpress.org/ticket/6238

    Probably best to keep to one thread initially rather than opening the question in two separate places, and best to begin with the forum until such time as proven to be a bug and confirmed then a ticket can be raised.

    How were you managing the number of viewed comments?

    #234843
    whoaloic
    Participant

    – posts are handled by WordPress. BuddyPress speciality are the members, not publication.
    When group members want to talk together, they can use the notice editor for brief messages or if you install bbpres they can use the forum.

    OK, thank you πŸ™‚

    -It exist a buddypress group blog plugin, who allows group members to use a blog, similar to the main blog.

    In my case, I have Custom Posts Type.
    In my CPT archive, all posts are listed, but I would like to restrict access to certain groups.
    So I don”t think the buddypress group blog plugin would help me.

    – BuddyPress features are developped if there is a general need, rarely for particular usage.

    All right πŸ™‚

    I’ve just posted a new ticket in buddypress trac.

    Thank you Dan

    #234792
    danbp
    Participant

    BuddyPress was made to extend WP standart profile fields. Normally you haven’t to use WP’s profile fields (aim, jabber, bio, etc) I you need a bio you recreate one.

    The only required fields for profiles at the registering level are 4 by WP (username, email, password & pwd confirm) and the Base (field group) Name field which is added by BuddyPress.

    If you use bbpres as standalone forum aside BP, you can syncing with wordpress

    #234771
    danbp
    Participant

    Hi @whoaloic,

    want remind some points
    – posts are handled by WordPress. BuddyPress speciality are the members, not publication.
    When group members want to talk together, they can use the notice editor for brief messages or if you install bbpres they can use the forum.

    -It exist a buddypress group blog plugin, who allows group members to use a blog, similar to the main blog.

    – BuddyPress features are developped if there is a general need, rarely for particular usage.

    Of course, you can suggest an ehancement on Trac. To ogin use same credentials as on this forum. Details are explained here.

    If you feel concerned by BuddyPress development, i suggest to express your opinion by participating on the brand new 2015 BuddyPress survey. πŸ˜‰

    #234747
    vikingpoker
    Participant

    Im on the Theme forum now awaiting some answers. If I have to switch Themes I will I just really liked the layout of this one.

Viewing 25 results - 2,501 through 2,525 (of 20,277 total)
Skip to toolbar