Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

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

  • clickallco
    Participant

    @clickallco

    Try myurl.com/gruppen/type/Inspiration

    Otherwise Buddypress 7 added an admin screen for new group types. You can look at it here https://buddypress.org/2020/12/buddypress-7-0-0-filippi/


    clickallco
    Participant

    @clickallco

    Use the following code in your bp-custom.php file to change it. You can read more on it here

    Utilice lo siguiente en su archivo bp-custom.php para cambiarlo. Puedes leer más aquí:

    bp-custom.php

    define( 'BP_DEFAULT_COMPONENT', 'profile' );


    clickallco
    Participant

    @clickallco

    I haven’t tested it myself, but perhaps you could try this plugin https://wbcomdesigns.com/downloads/buddypress-activity-bump/


    clickallco
    Participant

    @clickallco

    No. Try right clicking the menu with your mouse and click inspect element. You’ll be met with some html and css. The css styles the html. Try putting in both these codes z-index:9999, position:absolute where its needed.

    Here’s a quick walkthrough on how to use the inspect tool to figure out where to put it https://developers.google.com/web/tools/chrome-devtools/css#declarations


    clickallco
    Participant

    @clickallco

    This isn’t really a Buddypress issue, you’ll find more help on the WCFM plugin support site.

    Otherwise you could right click the element with your mouse, find the class name of it and then attribute it display:none!important in your style.css. Here’s an example of what it would look like:

    .classname {
      display:none!important
    }

    clickallco
    Participant

    @clickallco

    Could you clarify? Are you trying to modify the style of it through css or are you attributing more functions through php to it?


    clickallco
    Participant

    @clickallco

    Sure it’s possible – but you’d have to code it yourself… 🙂 But to help you a bit:

    Make the profile fields you want to have checked first, on where your members are located.

    Otherwise, I think Buddypress has the possibility to loop through the xprofile fields – so something like this to gather your names for the mega menu (This is untested, so test it first before putting it on a production site)

    <?php while ( bp_profile_fields() ) : bp_the_profile_field(); ?>
        <?php if ( bp_field_has_data() ) : ?>
            <?php if (bp_the_profile_field_name() == 'YOURFIELDNAME') && bp_the_profile_field_value() == 'checked'){
    	//do something
        	}?>
         <?php endif; ?>
    <?php endwhile; ?>

    Gl


    clickallco
    Participant

    @clickallco

    You’ll be able to fix it through CSS, link your site if you want it to be more specific than that


    clickallco
    Participant

    @clickallco

    You could try something like this – https://buddydev.com/plugins/bp-featured-members/ as a start, then hook it into whatever payment module you’re using.


    clickallco
    Participant

    @clickallco

    I dont know any plugin which does it, but a solution could be to (if you know how to make templates and code basic stuff in wordpress) template it into the member types where the user would choose their layout themselves (control it how you’d like).

    So something like this would be the steps:

    1: Create your member types.

    2: Intersect the member types with your users’ Xprofiles.

    3: Start coding your templates to reflect the different dashboard you’d like them to have. You’d name the template front-member-type-yourmembertypename.php. So, for instance, if your member type was named “knights”, the template would be named front-member-type-knights.php

    4: upload your templates to buddypress/members/single/your-upload.php

    When the profile has chosen his or her member type, their members front page will reflect the template you’ve coded.


    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.

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