Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'wordpress'

Viewing 25 results - 8,651 through 8,675 (of 32,678 total)
  • Author
    Search Results
  • #238047
    danbp
    Participant

    Shouldn’t a User promoted to Group Moderator be able to moderate content in that Group, regardless of their WP Role and capabilities?

    Sounds logic, but No. See documentation in bp-core/bp-core-caps.php for the “why”. 😉

    Since BP 1.6, group moderators can only delete, move, spam group forum content.

    External reference.

    #238039
    shanebp
    Moderator

    Are you sure you’ve translated this label: Friends <span class="%s">%s</span>

    Did you include this Sources Keyword when creating the translation .mo in poEdit: _x()

    The Friends label is generated by __() and _x(), depending on the context.

    More info re keywords: http://www.cssigniter.com/ignite/wordpress-poedit-translation-secrets/

    #238027
    Henry Wright
    Moderator

    Sure!

    See here for where your filter will be applied. Here is documentation on apply_filters_ref_array() (it’s almost identical to apply_filters()). And you’ll need to use add_filter() to hook your filter function to the hook.

    If you’re new to filter hooks, try searching for some tutorials, there’s so much info available already. Hope this info helps!

    #238024
    Henry Wright
    Moderator

    Was my suggestion any use?

    Basically, I would like to call the activity stream of an author of a page.

    I understood that to mean “Output an activity loop on a WordPress page limited to activity items belonging to the page author”.

    If my understanding is wrong, then please let me know.

    #238021
    alexterchum
    Participant

    Hi, I would like to ask how to add a tab naming ‘blog’ in each user’s profile page,
    and it would show posts written by that author(looks like archives/author/username)
    I’ve followed the instructions in
    while I think I’m struggling in get_template_part( 'directory-to-content-file' );part
    what should it be?! Please help. Thanks a lot.

    WordPress version 4.1.1, BP 2.2.2.1

    #238008

    In reply to: Where are loops put?

    @mcuk
    Participant

    Hi @danbp,

    Thanks for reply. Yeah i know about those. I meant where would I put custom loops with my own filters etc. The wordpress codex says to put them in index.php. I assume that for Buddypress that would be:

    bp-legacy>buddypress>activity>index.php

    Then call it within bp-custom.php?

    #238003
    @mcuk
    Participant

    Hi everyone,

    Where are loops such as the Standard Loop in the link below put?

    Activity Loop


    https://codex.wordpress.org/The_Loop_in_Action

    Do they go in the bp-custom.php file? How are they called into use on a new page?

    Any help/guidance of where to look would be appreciated.

    #237998
    jayd94
    Participant

    Hello!(wp/bp/bbp newest versions)
    Thing is it would be important to give my members the opportunity to be anonymus.
    The page that buddypress gives me as register page includes a *name on the left side (and email and pw)that i learned to be given by wordpress, and on the right side there is the buddypress side- that i can customize.

    Is there a way to
    1. use the buddypress side only-so that i can fully customize what username’ is-and so that username is the one that is displayed in the profile.-as default.

    So i don’t want to display person’s name, i do want to display username in the Profile(Without the @ before the name or like so: Name (@name).
    Thanks for your time,
    Daniel

    #237997
    @mcuk
    Participant

    haha, I’ll take your 2 days and raise you another 3!

    If i get anywhere I will defo post it here. Haven’t found anything on the forums that’s helped so far (at least anything that I recognise as being a solution). I’m fairly new to php. Been through the plugin files and found a number of functions which are likely being used (not 100%), but just not able to call them to the new tab I’ve created.

    Currently working through reading Henry’s links above on the WordPress Codex and will have a fiddle around.

    #237987
    Henry Wright
    Moderator

    Hi @urbanfix

    Here’s the standard loop taken from here.

    <?php if ( bp_has_activities( bp_ajax_querystring( 'activity' ) ) ) : ?>
        <?php while ( bp_activities() ) : bp_the_activity(); ?>
     
            <?php locate_template( array( 'activity/entry.php' ), true, false ); ?>
     
        <?php endwhile; ?>
    <?php endif; ?>

    If you scroll down the page and take a look at filtering options, you’ll see user_id. So your loop will look something like this:

    $post = get_post( get_the_ID() );
    $filter = '&user_id=' . $post->post_author;
    
    if ( bp_has_activities( bp_ajax_querystring( 'activity' ) . $filter ) ) :
        while ( bp_activities() ) : bp_the_activity();
            locate_template( array( 'activity/entry.php' ), true, false );
        endwhile;
    endif;

    Note: I haven’t tested.

    Caveat: This must be used within The Loop.

    #237980
    Ben Hansen
    Participant

    sorry i don’t know any plugins or how to hack it but i think that would make a great feature suggestion for core if you can please add it to trac here:

    https://buddypress.trac.wordpress.org

    if not let me know and i’ll add it.

    🙂

    #237969
    mantismamita
    Participant

    First of all I am using WordPress 4.1.1 and BuddyPress 2.2.2.1 and I am creating custom templates (via a custom plugin) that show Members based on roles. For example I want to have one page of only subscribers and another of only contributors. I have found a few different ways to doing this the simplest being to add a conditional statement like so

    $user = new WP_User( bp_get_member_user_id() );
    
                if ( $user->roles[0] =='subscriber'){ ?>

    within the bp members loop.

    The problem with this is that the pagination is skewed and is based on all the members instead of just those with the correct role. For example if I have 2000 members and only 5 of them are subscribers I will have pagination based on the 2000 where most pages are blank.

    I’ve read suggestions to modify the bp_members_pagination_count() but it seems that changing the parameters of bp_has_members() would be more efficient. Therefore I would need to modify bp_ajax_querystring( 'members' ) in ( bp_has_members( bp_ajax_querystring( 'members' ) ) ) :

    I saw this thread by @zintax and modified it to suit my needs like so:

    function modify_members_loop( $qs=false, $object=false ) {
    
        if ( $object != 'members' ) // hide for members only
            return $qs;
    
        // create an array with my subscribed users
        $subscribers = get_users( 'role=subscriber' );
        $sub_list= array();
    
        foreach ( $subscribers as $sub ){
            $sub_list[]= $sub->ID;
        }
    
        $sub_list = implode(', ', $sub_list);
    
        if ( !empty( $args['include'] ) )
            $args['include'] = $args['include'] . ',' . $sub_list;
        else
            $args['include'] = $sub_list;
    
        $qs = build_query($args);
        return $qs;
    }
    
    add_action( 'bp_ajax_querystring' , 'modify_members_loop', 25, 2 );

    (I will later add conditionals so that this only occurs on the subscriber page)

    I was wondering if this is indeed the best and most query efficient way to go about this or if there are other considerations I should be mindful of.

    #237963
    danbp
    Participant

    Hi @spanda,

    it’s a bbpress bug who remains since BP 2.0.
    A patch was provided 7 mounth ago but not applied in latest bbP (2.5.6).

    Note that the patch contains a bracket error: ( component ) ) { ). Remove { !

    Open wp-content/plugins/bbpress/includes/extend/buddypress/activity.php

    Remove or comment line 279 & 280 and replace by

    $existing = new BP_Activity_Activity( $activity_id ); 
     		if ( empty( $existing->component ) )

    save and you’re done.

    #237961

    Topic: Profile Page

    in forum Showcase
    polkadotheart
    Participant

    Any idea why my profile page is looking like this? I would like the website name and website to be in line with the other profile fields. WordPress is latest version. BuddyPress is latest version.

    Thanks!

    http://her-network.com/members/christina/profile/

    #237949
    Svend Rugaard
    Participant

    Was installing https://wordpress.org/plugins/buddypress-wall/ and it actually make the error go away .. :S

    #237945
    hektech – spencer
    Participant

    I am trying to setup buddypress on swtulsachamber.org and I can not see the Register page when the plugin is active. When I deactivate the buddypress plugin I can see the Register page which is a sub-page of “Join” called “Chamber Member Area Join”.

    1. WordPress 4.1.1

    2. Directory

    3. It is in the Document root for the server html_public

    4. This is a very fresh install, and was not from a major upgrade.

    5. Everything seems to be working fine except for the problem I am having that I can not see or find the join/registration page for buddypress.

    6. 2.2.2.1 is the version of buddypress I am running

    7. This is not an upgrade of buddypress it is a fresh install

    8. I have several other plugins installed and activated right now, however I have tried disabling them all and running buddypress as the only plugin. but here is the list incase it helps:

    BadgeOS
    BadgeOS Community Add-on
    bbPress
    BP Registration Options
    BuddyPress
    CloudFlare
    Contact Form 7
    Contact Form 7 Multi-Step Forms
    Contact Form DB
    Custom Post Type UI
    Members
    Paid Memberships Pro
    Posts 2 Posts
    Revolution Slider
    ShortPixel Image Optimiser
    Theme My Login
    WP-PageNavi
    WP Super Cache

    9. I am using a theme called AccessPress Pro from AccessPressThemes.com however I have tried deactivating and using the tweentyfourteen theme

    10. Never touched the core

    11. I have not added custom functions to the bp-custom.php but plan to do so. I do not know if one of the installed plugins may have done so.

    12. My bbPress is 2.5.6 and did not come with BuddyPress

    13.

    14. LiquidWeb

    15. Linux (centos) With Apache

    #237944
    Henry Wright
    Moderator

    Hey @djsteveb,

    Would like to try this out one of my sites.. wondering though, how this comparing to buddy block or whatever it is called? Feature compare?

    Check out the first two paragraphs of the README.md for how muting differs from blocking or unfriending.

    Also, this would be excellent if it also could “mute” / hide / selected groups from the sidebar widgets and sitewide activity..

    In v1.0.0 of the plugin, only muting users is supported. So at the moment, it works just like Twitter.

    At some point in the future I might expand functionality to mute group updates, and perhaps even activity types.

    also wondering if possible to hide posts from ‘muted users’ from appearing in the sidebar of sidewide posts when an annoying user has a blog with MU setup and stupid posts show up on the sitewide posts widget

    Right now just activity items get muted. Muting posts is a great idea; something I’ll have to think about for a future release.

    For answers to more of the plugin’s FAQs, see here:

    https://wordpress.org/plugins/buddypress-mute/faq/

    Hope this info helps 😀

    #237940
    goakes
    Participant

    Hello

    Not sure where this question fits. If I go to login through the Buddypress login dashboard and only enter my user name then login, I’m taken to the WordPress login page. Is there a way to take me to keep me on the buddypress login page with an error message?

    Equally is there a function for ‘forgotten password’ without going through the WordPress login page?

    Gary

    modemlooper
    Moderator

    I would google wordpress appointment plugin

    There seems to be some options, you don’t necessarily need BuddyPress

    #237927
    wilsos6
    Participant

    Hi Shane,

    Thanks for your reply. Would $post_comment_id be passed into the wp_insert_comment actioner function?

    As an example, when I add a comment to a BP activity, I get a comment object like the one below passed into the wp_insert_comment handler.

        [comment_ID] => 108
        [comment_post_ID] => 1385
        [comment_author] => SW
        [comment_author_email] => 
        [comment_author_url] => 
        [comment_author_IP] => 
        [comment_date] => 2015-04-15 06:23:01
        [comment_date_gmt] => 2015-04-15 13:23:01
        [comment_content] => test comment
        [comment_karma] => 0
        [comment_approved] => 1
        [comment_agent] => 
        [comment_type] => 
        [comment_parent] => 0
        [user_id] => 34

    if I get_comment_link(108) or get_permalink($comment->comment_post_ID), I get URLs returned, but both give 404 errors. If I go into the WordPress admin panel and go into ‘Comments’ I can see the comment and the URL given is the same as the one given by get_comment_link, but when I try to access it I get the 404. If I go into the admin panel and select Activities, I can see the same comment, but “View Activity” takes me to the activity panel, were I can see the parent activity and the post successfully.

    So I’m struggle to tie in the comment object I’m getting above and its URL, with the BP activity/comment URL.

    Any assistance would be greatly appreciated,

    Thanks,
    Stuart

    #237903
    djsteveb
    Participant

    copy your database through mysql or whatever (check that box to “add drop table” or whatever it’s called!) – wordpress.org has info about that in the codex
    https://codex.wordpress.org/Backing_Up_Your_Database

    copy all your files.

    download, upload, import database.. pray.

    https://codex.wordpress.org/Moving_WordPress

    Check folder permissions… check that your wp-config has new database name and pass..

    #237897
    bp-help
    Participant
    #237893

    In reply to: Business Portal

    bp-help
    Participant
    #237887
    nblxhd
    Participant

    Advise, who can make a plugin for BP.

    PS Was this plugin – https://wordpress.org/plugins/pet-manager/

    But he was already outdated and the developer does not keep its support.

    Thank You.

    #237878
    danbp
    Participant

    hi @dani-girl,

    intersting question, but thought you’re wrong about Directive 95/46/CE. You have a too strict opinion ! If it would be real, nobody in Europe couldn’t use WordPress and probably also many other CMS’s.
    Which is the EU country you are off ?

    An e-mail is a personnal data and the directive applies. But…

    WordPress need it (username, email and password) to work on registering. That is a legitimate and technical reason, which is allowed.

    You don’t collect it illegaly, or by roundabout and the user has access to it any time. Emails never appear publicly on WP and are used for internal purpose only.

    Opt-in is mandatory since 2002 in Europe. This means you have to prevent/ask the user before he sign in.
    If you clearly write and expose publicly (and easy to access) your policy, explain why you ask the mail, that you freely remove any user data on demand for example, you can ask for an email. This is also valuable for cookies. You should inform the user that you use them… Resaling and forwarding emails for commercial purpose is of course forbidden, but only IF your site has no direct reason to do that. (e-commerce is not a direct reason 😉 )

    On the other side, as site owner, you can’t use your members email for advertisement or any other mailing action without their agreement. Or you will be considered as spammer. Which is also illegal in EU.

    http://www.cnil.fr/english/data-protection/official-texts/

Viewing 25 results - 8,651 through 8,675 (of 32,678 total)
Skip to toolbar