Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

Viewing 25 replies - 51 through 75 (of 271 total)
  • @valuser

    Participant

    These MIGHT help.

    Group Home Page

    or

    Link a Page to Groups

    Both actually do what they say they’ll do and MAY be a part solution for your project.

    @valuser

    Participant

    Forgot to mention that I created front.php files and placed them in /wp-content/themes/my-theme/buddypress/groups/single/ folder (copies at http://pastebin.com/DD3GrQp8)

    These are reproduced faithfully on the Home tab of each group and the Activity tab appears to the right.

    All good – just was wondering (if i haven’t already messed up) whether front end editing is a current option or is even contemplated.

    @valuser

    Participant

    done : #6779

    @valuser

    Participant

    Suggestions in this post MAY be of some help.

    I only say MAY because the user base is shared – once a user visits another network that user is added to the Members of that network.

    However each network can have absolutely completely separate Activity Streams, Groups, Forums, and sites/blogs as well as separate plugin and theme structures.

    I fully understand that this may not not be exactly what you are looking for but it certainly is a very good start.

    @valuser

    Participant

    Many Thanks. Patch good.

    @valuser

    Participant

    Have tested this issue with Twenty Fifteen, Twenty Twelve and Kleo

    There appears (to me) to be two seperate issues.

    1) irrespective of theme

    Previously when Enforce Field Visibility was checked then the Option to change field visibility did not arise on the registration form.

    Now it does appear, and can be acted upon, even when Enforce Field Visibility is checked.

    And the new potential member is allowed to change visibility nothwithstanding that it had been marked (say) Admins Only.

    (Haven’t yet gone into tho database to check what has happened in bpxprofile data – but i do think something is amiss)

    2) With Kleo

    In addition to the above (will notify SeventhQueen)

    When the Registration page is opened the div containing the options to change visibility is open (default) on the form. – not good

    On the other themes the div containing the options to change visibility is closed (default) on the form.- all good

    @valuser

    Participant

    also the following link MAY be of some help

    Please follow the discussion into the chat – just at the time i was very slow on the uptake!

    http://wordpress.stackexchange.com/questions/75261/how-to-when-a-bp-group-created-automatically-create-a-wp-category

    c

    @valuser

    Participant

    Suggestions in this post MAY be of some help.
    https://buddypress.org/support/topic/multi-communities-in-one-website/

    @valuser

    Participant

    sorry – misread your post

    how about this (found on this forum)

    function sh_walled_garden() {
       if( bp_is_register_page() || bp_is_activation_page())
          return;
       if( ! bp_is_blog_page() && ! is_user_logged_in() )
          bp_core_redirect( bp_get_signup_page() );
    }
    add_action( 'wp_loaded', 'sh_walled_garden' );

    Edit as required
    if i haven’t misunderstood again !!!!!!

    @valuser

    Participant

    Perhaps have a look at http://buddydev.com/plugins/bpdev-logout-redirect/

    it MAY be of some help !

    @valuser

    Participant

    also – This MAY help?

    There is an action where you can hook in. It is called: ‘groups_created_group’.

    see

    http://wordpress.stackexchange.com/questions/75261/how-to-when-a-bp-group-created-automatically-create-a-wp-category

    @valuser

    Participant

    a useful link May be

    https://github.com/modemlooper/Buddy-Default

    It is a version of BP-Default theme converted to use theme compatibility – by @modemlooper

    @valuser

    Participant

    @henrywright

    Have considered this further at http://pastebin.com/tKkAjhhR

    If and when you have the time perhaps you may take a look.

    No worries- & thanks

    Haven’t got it to appear in activity yet.

    @valuser

    Participant

    the post “Why Animals Eat Psychoactive Plants” from Digg came in but its not recorded in activity !!

    @valuser

    Participant

    Have done that but fraid no change re “inserted” post appearing in activity.

    did two new post transfers – they arrived but not in activity.

    However a “normal” post via wp-admin came in just once onto activity.

    You really are more than kind o devote time to this

    @valuser

    Participant

    Just to first reaffirm.

    normal posts via wp-admin were posted on front-end, homepage etc and appeared in activity

    “Inserted” posts were posted on front-end, homepage etc but did NOT appear in activity.

    With your function -just now- normal posts via wp-admin are posted once on front-end, homepage etc and appeared three times in activity. but inserted posts both before and after adding your function do not appear in activity

    Can you paste the code which actually creates the post?

    its via that code (in your last reply) at the end of the plugin.

    the plugin is at http://pastebin.com/s2cNJtrj

    that actually appears to “post the post”. but the post appears everywhere except in activity

    @valuser

    Participant

    Thank you

    but

    no

    posts (Title & link) are still being transferred to the blog but not recorded in activity.

    Unusual because these are posts inserted on the bp root blog and posts (& comments) from every other blog turn up in activity here

    @valuser

    Participant

    as per http://pastebin.com/Y0AE9KuS

    I’m in a (huge) way over my head here.

    i just changed the plugin as per your code and tried variations.

    All variations, so far, disabled the site.

    Can take instructions, copy and paste, research, etc and do some simple stuff.

    Also Tried this variation

    $inputs = array(
    	   'id' 			=> false,
    	   'action' 			=> 'Jon Doe posted an update',
    	   'content'			=> $apost_content,
    	   'component'                  => false, 
               'type'			=> 'activity_update',
    	   'primary_link'	        => false,
               'user_id'		        => $user_id,
    	   'item_id' 			=> false,
               'secondary_item_id'          => false,
               'recorded_time' 	        => gmdate( "Y-m-d H:i:s" ),
               'hide_sitewide' 	        => false,
    	   'is_spam'        	        => false 
        );
     
        $r = wp_parse_args( $args, $inputs );
        extract( $r );
     
        return bp_activity_add( array( 'id' => $id, 'user_id' => $user_id, 'action' => $action, 'content' => $content, 'component' => $component, 'type' => $type,'primary_link' => $primary_link, 'item_id' => $item_id, 'secondary_item_id' => $secondary_item_id, 'recorded_time' => $recorded_time, 'hide_sitewide' => $hide_sitewide, is_spam' => $is_spam) );

    Same result.

    But I imagine there just must be a “proper” way to programatically insert an activity item.

    @valuser

    Participant

    Thanks.

    Thanks.

    Have tried :
    ‘type’ => new_blog_post,
    ‘type’ => ‘new_blog_post’,
    ‘type’ => ‘activity_update’,
    ‘type’ => activity_update,

    white page for all.

    No worries.

    @valuser

    Participant

    @valuser

    Participant

    Thanks.

    Yes.

    All options in:
    Settings-BuddyPress-Components
    and
    Settings-BuddyPress- Settings

    have been ticked.

    testing this on a local install wp 4.1 bp 2.1.1

    Theme – TwoThousand and Fifteen (so so for bp!) – plugins bp and the post submitter plugin (http://pastebin.com/s2cNJtrj)

    Permalinks have been set to (‘Day and name’)

    Posts (which atm are just clickable links) are coming into the site with correct tags and category and do show up on wp back-end posts and on front-end home/posts page exactly like normal posts

    Looking at how the posts are recorded in the database.

    All posts have an ID

    But i note that a “normal” post has a guid ending in /?p=10 or some other number (their ID)
    but
    the inserted post’s guid ends /post-name.

    there’s some little thing………

    Ideally would prefer to use bp_activity_add.

    @valuser

    Participant

    no. nothing to do with buddypress wall. sorry.

    Solely to do with your comments not working.

    arising from op

    ……then the standard comment button in BuddyPress doesn’t seem to work.

    hope you are sorted.

    @valuser

    Participant

    Could be server related.

    I had the same issue with one theme on one server (same theme worked perfectly on local installs and on other servers) though comments and activity posting were disabled. javacripts were not loading on one particular server for this particular theme.

    The solution, provided by the theme developer, that worked for me (for that problem, which may not be yours, so may not be your solution) was to put the function below in functions.php

    add_action( 'wp_enqueue_scripts', 'load_buddypress_js'  );
    function load_buddypress_js () {
    	if (bp_is_group() || is_page( 'activity' )) {
    		wp_enqueue_script('buddypress_query',plugins_url() . '/buddypress/bp-core/js/jquery-query.min.js',array("jquery"));
    		wp_enqueue_script('buddypress_members',plugins_url() . '/buddypress/bp-core/js/widget-members.min.js',array("jquery"));
    		wp_enqueue_script('buddypress_cookie',plugins_url() . '/buddypress/bp-core/js/jquery-cookie.min.js',array("jquery"));
    		wp_enqueue_script('buddypress_scroll',plugins_url() . '/buddypress/bp-core/deprecated/js/jquery-scroll-to.min.js',array("jquery"));
    		wp_enqueue_script('buddypress_js',get_template_directory_uri() . '/buddypress/js/buddypress.min.js',array("jquery"));
    		wp_enqueue_script( 'heartbeat_js', get_template_directory_uri() . '/wp-includes/js/heartbeat.min.js', array(), '4.1', true );
    	}
    }

    The last item, heartbeat.min.js, is a core wp file from the /wp-includes/js/ folder which this server, specialising in WordPress, was apparently, unilaterally and undeclared, refusing to load!!!!

    @valuser

    Participant

    Bril.

    Thats great cos i’d imagine this topic will be of interest to many bp users and will be searched for.

    Having this shown/done properly on the forum is particularly useful and this is, if i may so, the way forums should work !!!

    Pidgin code and get out jail solutions (that may work) put up by rank amateurs (like me) should ideally always be corrected.

    In fairness, most are.

    Thanks!

    (Sermon over)

    @valuser

    Participant

    Just to clarify.

    I have now tested @shanebp code. (as per sample below)

    It appears to me to work perfectly and would appear, as per @henrywright, to be the simplest solution.

    last_activity gets created on login – not before – not on activation.

    function sbp_first_login_check( $redirect_to, $not_used, $user ) {
      if( bp_get_user_last_activity( $user->ID ) !== '' ) {
      $redirect_to = bp_core_get_user_domain($user->ID) .'/groups/';
     }else{
      $redirect_to = bp_core_get_user_domain($user->ID) .'/profile/change-avatar/';
    }
        wp_redirect( $redirect_to );
        exit();
    }
    add_filter( 'login_redirect', 'sbp_first_login_check', 20, 3 );
Viewing 25 replies - 51 through 75 (of 271 total)
Skip to toolbar