Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'theme'

Viewing 25 results - 3,576 through 3,600 (of 31,071 total)
  • Author
    Search Results
  • #263781

    In reply to: Hide members

    shanebp
    Moderator

    You need to create the code. Do so in bp-custom.php.

    #263780

    In reply to: Hide members

    beforeplastic
    Participant

    Re: Hiding admins from member list:

    In looking back at all of these threads I realize we didn’t jot down the root path to the file we need to update with this code: $excluded_user=’1, 23, 267′;

    Can someone provide the path to get to this file? I can’t seem to find it again.

    example: wp-content/buddypress/bp-themes/otherfoldername/filename.php

    #263752
    danbp
    Participant

    @mahwash, afaik your layout is absolutely how it should be! To be convinced, try one of the Twenty theme, and you will get exactly the same thing.

    If you want to modify the avatar position, try to play with the div class activity-avatar.

    If you don’t know how, you have to learn.

    #263751
    danbp
    Participant

    Hi,

    check your html and any other work you recently made in your theme.

    To understand, see what you published in your latest post, above. You’re nesting two img tag! That’s wrong…

    #263697
    Slava Abakumov
    Moderator

    Also, don’t forget to check the theme – switch to any default, like 2017, 2016, 2015 etc.

    #263691
    maelga
    Participant

    Thanks @henrywright
    Defining the slug with bp_core_new_nav_item() is not an issue.

    How can i get the slug to be echoed dynamically?
    I’m currently using echo bp_loggedin_user_domain(). '/mynavslug/'; to show the hyperlink in my theme files but i don’ t want the slug to be hardcoded.
    Maybe something like this echo $bp->bp_nav[]['link']?

    #263663
    Slava Abakumov
    Moderator

    Sure, you will need to filter out the $arguments variable in my code for the required by you activity_type.

    You can put the resulting code into a separate custom plugin or in https://codex.buddypress.org/themes/bp-custom-php/

    #263652
    Slava Abakumov
    Moderator

    Super easy solution is to do like this:

    1) find or create a buddypress/activity/post-form.php file in your theme
    2) find in that file a textarea with id="whats-new" and add maxlength="143" to its attributes so it will become something like this:
    <textarea class="bp-suggestions" maxlength="143" name="whats-new" id="whats-new" cols="50" rows="10"....
    3) save and done.

    It will limit globally, though. If only in groups (not modifiying activity directory and profiles) – wrap it in a p_is_group() like this
    <textarea class="bp-suggestions" <?php echo bp_is_group() ? 'maxlength="143"' : '';?> name="whats-new" id="whats-new" cols="50" rows="10"....

    #263650
    Slava Abakumov
    Moderator

    Try this add_filter('show_admin_bar', '__return_false');. Put it in bp-custom.php or in your child theme functions.php.

    The problem might be with styling for Admin Bar. Just a guess.

    Venutius
    Moderator

    This sounds like it could be a conflict with other software loaded, have you tried disabling any other plugins? Also, it may be a theme conflict so you could try it running a default theme such as 2016.

    #263620
    r-a-y
    Keymaster

    Can you follow up on Paul’s suggestion?

    Do you have NOBLOGREDIRECT defined anywhere? Check wp-config.php or check if a plugin or theme is defining it somewhere.

    I’ve added a patch that should fix this issue if NOBLOGREDIRECT is defined, but is running from single site:
    https://buddypress.trac.wordpress.org/attachment/ticket/7441/7441.01.patch

    Can you test this out and let us know if this fixes things for you?

    #263609
    shanebp
    Moderator

    Talk to your theme author.

    #263603
    eg
    Participant

    It’s not a theme issue, it’s a link issue ๐Ÿ˜
    Thanks anyways.

    #263602
    sjacks01
    Participant

    Bingo!

    Switched to 2015 and the comment button works.

    Is there a workaround or do I need to have this fixed by my theme author?

    Thanks for the quick response BTW!

    #263600
    shanebp
    Moderator

    It may be due to a javascript conflict with your theme or some other plugin.

    To check if itโ€™s your theme, try switching momentarily to a WP theme like 2015 and see if the issue persists.

    #263599
    shanebp
    Moderator

    It’s doubtful that anyone here will have a solution.

    It’s probably due to a conflict with your theme or some other plugin.

    To check if it’s your theme, try switching momentarily to a WP theme like 2015 and see if the issue persists.

    #263594
    eg
    Participant

    Hello Henry,

    Thanks for your response. This is a recent issue though, so I’m doubtful if it’s a theme issue. If you go directly to the groups link in your personal profile you can join any group. However, if I click on Join button at the top of the group page, it redirects me to join the website. We really don’t know why this is happening.

    Please take a look here: trinikidscorner.com/parents (facebook sign in required)

    Click on any group in our right bar and try to join. You will be unable to. However, if you go to your profile and then click on groups, you can join from there. Any idea as to why this is happening?

    Kind regards,
    esther

    #263589
    shanebp
    Moderator

    You can remove it by creating a template overload of this file:
    buddypress\bp-templates\bp-legacy\buddypress\members\index.php

    Remove this code:

    	<?php /* Backward compatibility for inline search form. Use template part instead. */ ?>
    	<?php if ( has_filter( 'bp_directory_members_search_form' ) ) : ?>
    
    		<div id="members-dir-search" class="dir-search" role="search">
    			<?php bp_directory_members_search_form(); ?>
    		</div><!-- #members-dir-search -->
    
    	<?php else: ?>
    
    		<?php bp_get_template_part( 'common/search/dir-search-form' ); ?>
    
    	<?php endif; ?>
    porubcansky
    Participant

    New information: the commenting issue seems to be theme related. The custom theme Lettermo exhibits the problem across multiple pages on the site, as does Agama Pro that we’re testing. The TwentySeventeen theme seems to bring the comments back into working order. Is it still worth checking to see if BadgeOS is the problem here?

    #263569
    Paul Wong-Gibbs
    Keymaster

    Nice work! That looks like it ought to work. Assuming you’re logged in. Assuming that user has that capability.

    Have you tried adding text or something just output that PHP block, to double-check your edited template is actually being used? You might be touching the wrong file.

    Failing that, it might be output, but just hidden by your theme’s CSS? Have you checked for this element inside the web browser’s inspector tools, have you found it?

    Alternatively, you could use this code, but I don’t see why it would make any difference:

    
    <?php if ( is_super_admin() ) : ?>
      <div>hello world</div>
    <?php endif; ?>
    

    ^ That slightly different syntax for PHP in these template files (note the {} are gone) makes the file slightly more readable/less prone to be accidentally broken.

    #263564
    Paul Wong-Gibbs
    Keymaster

    You might be running a theme with BuddyPress-specific files. Have a hunt around your theme, look for a similar structure. etc

    #263561

    In reply to: Pending Activation

    kavsc2
    Participant

    Hi, I’m having the activation email issue as well. I’m running exactly the same install as I was on a another site 2 weeks ago (before upgrading to WP 4.72) that worked fine. This one I can’t even send messages manually. I’m a plug and play person; no coding skills. If these things don’t work, I don’t know where to begin. Guidance is appreciated.
    WP 4.72
    WP default 2017 theme
    all plugins disabled except BP

    #263555
    Paul Wong-Gibbs
    Keymaster

    Go to /wp-content/plugins/buddypress/bp-templates/bp-legacy/buddypress/members/. The four files — activate, index, members-loop, and register — are templates used for the Members Directory. Ignore the single subfolder; that’s used for individual member pages.

    You will want the index.php file.

    In your theme, create a buddypress/members subfolder. e.g. /wp-content/themes/my-theme/buddypress/members/. You’ll need to create both directories if they’re missing. Copy that index.php we found earlier into this new directory.

    e.g. you’ll end up with /wp-content/themes/my-theme/buddypress/members/index.php. You’ll want to play around in this file to find where you want to add your custom CSS, which I’ll leave to you to figure out.

    #263553
    djmazi12
    Participant

    Hi Paul

    Sounds great. Yes i know how to some basic HTML and CSS – not very good at PHP. But where would i have to edit this file? Am i right if its in the child theme, so it won’t be overwritten when i update?

    #263552
    Paul Wong-Gibbs
    Keymaster

    No, you’re not. It’s just not used very well. I’d like to get rid of it one day, but we’re trying to get a new theme for the website built first. Sorry for the inconvenience in the meantime.

Viewing 25 results - 3,576 through 3,600 (of 31,071 total)
Skip to toolbar