Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

Viewing 25 replies - 1 through 25 (of 68 total)

  • clickallco
    Participant

    @clickallco

    Whoever initially published the blog post will have their name on the automatically generated activity which links to said blog post.

    If you initially published the blog post as the admin – and then changed the post to user 2 – it won’t change the automatically generated activity post.

    User 2 needs to be an author and be assigned to any new blog post you make.

    You can change your existing automatically generated activity posts by reverting the blog posts you need to change to drafts – switching the post author – followed by publishing it once again.


    clickallco
    Participant

    @clickallco

    If your theme hasn’t changed buddypress too much then its most likely something like this:

    body.bp-user.buddypress{
    	background: #000!important; /*change #000 to your color*/
    }

    Otherwise its usually a good idea to check with the theme’s customer service instead.


    clickallco
    Participant

    @clickallco

    Sounds like a memory issue (server hosting problem). What errors do you get?

    You can see the errors by enabling WordPress debug. Locate your wp-config.php in your wordpress installation files and set WP_DEBUG to true, i.e.: define( ‘WP_DEBUG’, true );


    clickallco
    Participant

    @clickallco

    I haven’t tried it personally, but https://wordpress.org/plugins/likebtn-like-button/ seems to add a like / dislike button to activity comments and posts.


    clickallco
    Participant

    @clickallco


    clickallco
    Participant

    @clickallco

    You’d probably have better luck and less headaches just making searchable hashtags. You can dig through https://wordpress.org/plugins/hashbuddy/ and take the few lines of code it requires.


    clickallco
    Participant

    @clickallco

    Sure. You could bundle them together by using an example shown here: https://buddypress.org/support/topic/get-member-type-broken/

    Here’s the code

    function using_mt_register_member_types() {
    	bp_register_member_type('Teacher', array(
    		'labels' => array(
    			'name' 		=> __('Teachers', 'using-mt'),
    			'singular_name' => __('Teacher', 'using-mt')
    		),
    		'has_directory' => 'teachers', //url slug
    	));
    }
    
    add_action('bp_register_member_types', 'using_mt_register_member_types');

    You’d then find that particular type in your-website.com/members/type/teachers/. You can add as many types as you’d like with the above example.


    clickallco
    Participant

    @clickallco

    Great, you’ve narrowed it down – now continue chasing the bug while looking into whether or not something else is the problem.

    Here’s a list of things to do to keep you going: https://kinsta.com/blog/err_too_many_redirects/


    clickallco
    Participant

    @clickallco

    You’re experiencing a redirect loop due to misconfigurations. If you enter the network tab in chrome’s developer tools (right click on the website page and click inspect element) on https://starcarding.com/members/ and click on a member hereafter, you’ll notice whats going on when the page is loading.

    As a start, try going into the permalink settings in settings > permalinks in the wordpress dashboard, followed by pressing the button “save changes” in the bottom.

    If this doesnt fix it, you could try restoring default .htaccess file.

    Otherwise you might try deactivating your plugins one by one to see if it changes anything.


    clickallco
    Participant

    @clickallco

    Perhaps this could help

    Activity Plus Reloaded for BuddyPress


    clickallco
    Participant

    @clickallco

    You’d have to style it through CSS. Here’s a very short example of how you could code it.

    #buddypress #signup-form input[type=submit]{
        width: 100%;
        background: #055a92;
        color: #fff;
        padding: 12px;
        margin-bottom: 20px;
    }

    clickallco
    Participant

    @clickallco

    This should work

    add_action( 'bp_core_activated_user', 'join_group_on_signup');
    function join_group_on_signup( $user_id ){
        $group_id = 13; //change it to the group ID of your choice
        groups_join_group( $group_id, $user_id );
    }

    clickallco
    Participant

    @clickallco

    – or just in an iframe like this

    <?php 
    global $bp;
    $user_id = get_the_author_id();
    //Fill out the PROFILE FIELD NAME with your own field name
    $Twitch_Data = xprofile_get_field_data( 'PROFILE FIELD NAME', $user_id );
    
    if ( ! empty( $Twitch_Data) ) { ?>
    
    <iframe src="https://player.twitch.tv/?channel=<?php echo $Twitch_Data ?>&parent=www.yourwebsite.com" frameborder="0" allowfullscreen="true" scrolling="no" height="378" width="620"></iframe>
    
    <?php } ?>

    clickallco
    Participant

    @clickallco

    Your iframe needs a parent to be shown, twitch doesn’t allow live streams to be shown in embeds without it. Here’s an example:

    <iframe src="https://player.twitch.tv/?channel=NAMEOFCHANNEL&parent=www.yourwebsite.com" frameborder="0" allowfullscreen="true" scrolling="no" height="378" width="620"></iframe>

    Otherwise you could always do something like this and alter the buddypress member templates to fit it whereever you want.

    <?php 
    global $bp;
    $user_id = get_the_author_id();
    //Fill out the PROFILE FIELD NAME with your own field name
    $Twitch_Data = xprofile_get_field_data( 'PROFILE FIELD NAME', $user_id );
    
    if ( ! empty( $Twitch_Data) ) {
    ?>
    
    <div id="twitch-embed"></div>
    
    <script src="https://player.twitch.tv/js/embed/v1.js"></script>
    <script type="text/javascript">
      new Twitch.Player("twitch-embed", {
         channel: "<?php echo $Twitch_Data ?>"
      });
    </script>
    
    <?php } ?>

    The user would then go ahead and fill in their own channel name in the Buddypress profile field you’ve provided for them.


    clickallco
    Participant

    @clickallco

    I see now. From looking at the plugin code it could use some cleaning up, although its still fine to use.

    If you’d like to have more control, and you know how to code, you could override the buddypress/members/single/profile/profile-loop.php (in BP Nouveau) and create a loop with tabs instead.

    It should be easily doable with js modifications or using pure CSS using radio inputs.

    Here’s an example – use the js from something like https://codepen.io/liav80/pen/KzpWzy and alter the loop in profile-loop.php (as an example) to be

    <?php if ( bp_has_profile() ) : ?>
    <div id="wrapper">
    	<?php
    	while ( bp_profile_groups() ) :
    		bp_the_profile_group();
    	?>
    		<?php if ( bp_profile_group_has_fields() ) : ?>
    			<?php bp_nouveau_xprofile_hook( 'before', 'field_content' ); ?>
    					<?php
    					while ( bp_profile_fields() ) :
    						bp_the_profile_field();
    					?>
    						<?php if ( bp_field_has_data() ) : ?>
    							<div data-tabname="<?php bp_the_profile_field_name(); ?>">
                            			<div class="tabs-inner"><?php bp_the_profile_field_value(); ?></div>
    							</div>
    						<?php endif; ?>
    						<?php bp_nouveau_xprofile_hook( '', 'field_item' ); ?>
    					<?php endwhile; ?>
    			<?php bp_nouveau_xprofile_hook( 'after', 'field_content' ); ?>
    		<?php endif; ?>
    	<?php endwhile; ?>
    	<?php bp_nouveau_xprofile_hook( '', 'field_buttons' ); ?>
    </div>
    <?php endif; ?>

    It should give you a start to change things from there.


    clickallco
    Participant

    @clickallco

    Could you elaborate? Currently this is an already built in function in Buddypress.

    Go to your wordpress dashboard followed by clicking on Users > Profile fields > click on the button called “Add new field group” and you got a new tab you can fill out with profile fields.


    clickallco
    Participant

    @clickallco

    You’re asking about two separate things.

    The Buddypress notifications doesn’t need modified templates to send new notifications – it needs custom coding for it to be expanded.

    Here’s an example in how to create a new type of buddypress notification:

    https://gist.github.com/modemlooper/9693b591d8c36288496d

    Here’s where its described in the buddypress codex:

    bp_notifications_add_notification

    There is no limitation to the amount of notifications your website or plugin has if thats how you want it, it just needs to be coded in.


    clickallco
    Participant

    @clickallco

    You could insert the conditional code for all member pages, for instance, in a template like so

    <?php if ( bp_is_user() ) { ?>
        <!-- your code -->
    <?php } ?>

    If you’d rather only display it for logged in users and on their own profile, you’d do something like

    <?php if ( bp_is_my_profile() && is_user_logged_in() ) { ?>
        <!-- your code -->
    <?php } ?>

    etc..


    clickallco
    Participant

    @clickallco

    You could always customize your own templates and change it to your behest.

    You can get an idea about how to start it out here https://codex.buddypress.org/themes/theme-compatibility-1-7/a-quick-look-at-1-7-theme-compatibility/

    From then on its just about coding it to your own set standards.


    clickallco
    Participant

    @clickallco

    Something like this should work

    function remove_group_member_nav_item() {  
    
    	if ( ! bp_is_group() || is_super_admin() ) {
    		return;
    	}
    
    	$slug = bp_get_current_group_slug();
    	bp_core_remove_subnav_item( $slug, 'members' );
    }
    add_action( 'bp_actions', 'remove_group_member_nav_item' );

    clickallco
    Participant

    @clickallco

    You could override the template to showcase your own unique one. Here’s some more info on it.

    Theme Compatibility & Template Files


    clickallco
    Participant

    @clickallco

    Try this for an easier overview.

    function bp_remove_group_join_button( $button, $group ) {
    	$user = wp_get_current_user();
    	$banned_roles = array(
    		'y_member',
    		'e_member',
                    // add as many member types as you want
    	);
    	if (array_intersect($banned_roles, $user->roles)) {
            return '';
        }
        return $button;
    }
    add_filter( 'bp_get_group_join_button', 'bp_remove_group_join_button', 10, 2);

    clickallco
    Participant

    @clickallco

    Maybe this plugin could help you with the notifications https://wordpress.org/plugins/bp-live-notification/


    clickallco
    Participant

    @clickallco

    You can change it yourself through CSS, if you right click on the picture and choose inspect element you can see the name and specifications of the element to change.

    Here’s some good links from another forum helper on it.

    ~ https://developers.google.com/web/tools/chrome-devtools/css/reference#view
    ~ https://developer.mozilla.org/en-US/docs/Tools/Page_Inspector/How_to/Examine_and_edit_CSS

    Otherwise you could probably get help from the Aardvark theme developers or RTmedia.


    clickallco
    Participant

    @clickallco

    Sure its possible if the coding is right… 🙂

    An easier way would probably be to do searchable/clickable hashtags instead, this way you wouldn’t need extra fields to fill in on the single activities.

Viewing 25 replies - 1 through 25 (of 68 total)
Skip to toolbar