Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'wordpress'

Viewing 25 results - 5,101 through 5,125 (of 32,678 total)
  • Author
    Search Results
  • #263217
    danbp
    Participant

    Hi,

    you have many errors in your code.

    – in the css you declare a class (a dot ) while you use an ID (#) in the html
    – in the code, you omit to close a p tag, and you need also a user_id and a way to get the displayed user (WordPress) role. Both are missing.

    Here, the whole thing corrected.
    – we don’t need a extra div, as we only add a p tag in an existing div.
    – the code to get the role holds in 2 small lines.

    The CSS (goes into child theme’s style.css)

    #item-header-avatar p {
    margin: auto;
    border:1px solid green;
    background: yellow;
    width: 110px;
    text-transform: capitalize;
    }

    The html and php for the template (starts aroud line 24 of cover-image-header.php)

    <div id="item-header-avatar">
    	<a href="<?php bp_displayed_user_link(); ?>">
    
    	<?php bp_displayed_user_avatar( 'type=full' ); ?>
    	</a>
    
    	<?php
    	$user = new WP_User( bp_displayed_user_id() );
    	echo '<p>'. $user->roles[0] .'</p>';
    	?>			
    	
    </div><!-- #item-header-avatar -->

    Do it simple ! 😉

    #263216
    Masoud
    Participant

    hi,
    i am using latest version of wordpress and buddypress.
    in site, i want the users to know who is admin of website.
    so i decided to create a small box under profile picture, which should say the current user role.
    (just like the one, here on buddypress)(you can see my user role as Member)(Participant)(Moderator)…

    1 – i created a css property :
    .buddypress-under-avatar-img-txt {height:auto;width:90px;background:green;border:1px;color:black;padding-bottom:3px;text-align:center;}

    2 – copy/paste ” cover-image-header.php ” file
    From:
    wp-content/plugins/buddypress/bp-templates/bp-legacy/buddypress/members/single
    To:
    wp-content/themes/my-theme/buddypress/members/single

    3 – and added my code on line 27:

    <?php bp_displayed_user_avatar( 'type=full' ); ?>
       <div id="buddypress-under-avatar-img-txt">
         <?php if (current_user_can('administrator')) ?>
           <br /><p <?php printf ('Admin of site'); ?> </p>
        </div>

    but the box is not showing.
    can anyone please help me on this? which part of my code is wrong? how can i correct it?

    any help would be appreciated.

    #263214
    netixel
    Participant

    Hi everybody,

    I use the last version of WordPress and Buddypress and this is the issue reported :

    When I connect to my website via Facebook sometimes I’m connected and sometimes I’m not and I am forced to refresh the page so that to be connected…

    This the answer of my author theme : This usually happens because of caching, unfortunately there is not much we can do about it as we’re using BuddyPress member system for everything.

    Thanks for your help.
    Chris

    #263207
    kairei
    Participant

    I have a Japanese site that uses an IDN (International Domain Name) with Unicode characters. BuddyPress works fine, except when emails go out that contain links back to the site, such as {{{activate.url}}} the URL that shows up in the email is the Punycode version of the domain, not the Unicode characters (all Unicode IDNs have an ASCII encoding called “Punycode”). This isn’t recognizable to the end user and even worse, some email clients (Outlook in my case) display a security warning about the IDN link suggesting it might be a suspicious link – not exactly the experience I want for people just signing up for my site.

    I want to try making activate.url use the Unicode characters to see if that makes the warning go away. If that doesn’t work I’d like to replace the Punycode url with an ascii domain that redirects to the Unicode one so at least the warning goes away. Is there any way to (1) modify how activate.url behaves, (2) create custom tokens, or (3) post process the whole email text after it is built so I can just find/replace the Punycode domain text?

    In my research I don’t see any way to do any of the above. I saw there are some hooks before/after the header and footer are created but not sure if I have access to the HTML or text email content. I’d think 3 should be possible but I don’t know that much about WordPress/BuddyPress or PHP to even know where to start.

    sugury
    Participant

    Hello,

    As far as I understand on the learndash edit group section in wordpress I can select which member types I add automatically to that group.

    Is it correct?

    A group I created says that has 7 members but only 2 have access to it.
    Am I missing something?

    #263178
    urglik1
    Participant

    rather a bummer…
    i’m running wordpress 4.7, buddypress 2.7.4.
    my theme is klean, though the same issue exists with
    twenty seventeen theme.

    any cover photo plugin i’ve tried does not help

    does this say anything to anyone?

    thank you

    #263176
    ecodemy
    Participant

    I have a problem concerning Wishlist Member and Buddpress.
    The custom post types forums, topics and replies are protected by wishlistmember and the respective WLM levels are applied to them. Regarding general forums (bbPress) the pagination and protection works very well as expected but not in Buddypress group forums.

    Unfortunately members can not access the second or any other than the first page of a group forum topic (Buddypress). If a member (who has no admin rights) clicks on [2] or [->] of the pagination, they always get the first page displayed although the permalink is correct and the URL states that they are apperantly on page 2.

    Group forum pagination

    As soon as I deactivate wishlistmember, the pagination in the group forums works as expected and all pages of a topic can be accessed.

    As group forum is a key feature in my closed community, I kindly request help to get this fixed.

    I tested it on a subdomain with Twenty sixteen and all plugins disabled except:
    WordPress 4.7.1
    bbPress 2.5.12
    BuddyPress 2.7.4
    WishList Member 2.91.3153

    I appriciate your afforts and any information I can pass to the WLM developers why this isn’t working as it should be.

    Thank you very much

    Philipp

    #263175
    shanebp
    Moderator

    Please use the support forum for that plugin –
    https://wordpress.org/support/plugin/bp-registration-options

    suris
    Participant

    Buddypress version: 2.3.2.1
    Wordpress version: 4.2.10
    Theme: Kleo

    I’m using the activity loop for show the groups activity_update with this parameters:


    $params = array(
    'scope' => 'groups',
    'object' => 'groups',
    'action' => 'activity_update'
    );

    if ( bp_has_activities( bp_ajax_querystring( 'activity' ). '&' .http_build_query($params) ) ) :

    All works ok, but now i want to show only one group per comment.
    In other words, show the last activity update of every group and no repeat groups in a loop.

    ¿How can i do that?

    Thank’s

    #263163

    In reply to: Update user Role?

    danbp
    Participant

    Hi,

    guess you confuse member types and user roles. MT where introduced to allow site owners to “categorize” their users. WP user role is slightly different, as it defines what user can do on a site, a kind of access management. So in brief, roles are independent from BP member types.

    MT and roles are also stored in different tables: MT in wp_terms and roles in wp_usermeta – with the denomination of wp_capabilities…

    By default, roles are automatically attibuted at registration level or manually by a site admin. Member types follow the same logic, under condition the xprofile component is activate.

    Now the question is: what do you want to do exactly after registration ? Change the role or change the type ?

    Roles can be affected from the admin user list page. I would recommand to not modify this behave at registration level, to avoid abuse by promoting fake user for example.

    MT can be changed from the xprofile admin interface. There is also this plugin for a more in depth management.

    Using a custom function is of course possible. But just to clarify, the one you give as example let’s suppose you have a need for bulk action over user status. Automated task is well and good, but in this case, why not attribute a higher role or type to all by default ?
    And if it is not intended for “all” (what i suppose is the case), do you have so many exception that you need such a function ? Can’t you do that manually ? Just my 2 cents. 😉

    #263151
    #263145
    shanebp
    Moderator

    Did you try using the meta function?
    https://codex.wordpress.org/Function_Reference/get_user_meta

    And you don’t need user_can.
    Just request the meta and show if it exists.

    #263143
    tanxim
    Participant

    This function of a plugin

    function wpjj_run_script() {
    $post_id = get_the_id();
    $file_url = get_post_meta($post_id, ‘custom_file’, true );
    $site_parameters = array(
    ‘file_url’ => $file_url,
    ‘plugin_url’ => plugins_url(),
    ‘theme_directory’ => get_template_directory_uri(),
    ‘post_id’ => $post_id,
    );
    wp_localize_script( ‘customjs’, ‘wpjj_var’, $site_parameters );
    }
    add_action( ‘wp_footer’ , ‘wpvr_run_script’ );

    add_action( ‘comment_form_logged_in_after’, ‘additional_fields’ );
    add_action( ‘comment_form_after_fields’, ‘additional_fields’ );

    Customize the wordpress default comment system
    what can i do to run the same function so it can replace buddypress default comment system

    I am a newbie in php
    Thanks in advance

    #263142
    danbp
    Participant

    I have looked everywhere and tried everything!

    If so, what could we do more for you ? You’re asking for help for a page question. Pages are part of WordPress and fortunately, WordPress has a codex, where “page” is a well documented department.

    https://codex.wordpress.org/Pages

    Page Templates

    Concerning BP pages, that documentation is much shorter, because BP doesn’t use page like WP and when it use a page it is internally only, and only for one of his component, not to allow users to write a page.

    #263141

    In reply to: Bug after install

    danbp
    Participant

    Deactivate all plugins before activating BP.
    Activate a Twenty theme.
    Then activate BP. If your admin remains blank again, remove BP from the server – there may be corrupted files – and upload a fresh copy by FTP.

    If still trouble, contact your host and see if you have minimum requirements to install BP (including enough php memory (at least 64 mo)

    As apparently you never have to debug your install, read here for more recommendation (to follow if possible).

    #263137
    danbp
    Participant

    [Topic moved and closed by MOD]
    Please don’t jump into topics who aren’t related to your question and don’t double post.

    BuddyPress use WordPress tinymce editor. See WP codex:
    https://codex.wordpress.org/Function_Reference/wp_editor
    https://codex.wordpress.org/TinyMCE

    #263130
    sholis
    Participant

    I could not login to my wordpress admin, i find out its buddypress plugin causing it.
    I need the buddypress plugin for forum feature.
    How can get this fixed?

    I also receive below message when i try to visit a page “community” Kindly assist to fix it.

    Index of /community

    Parent Directory
    Apache Server at lovepikin.com Port 80

    L.A. Randle
    Participant

    I’ve been troubleshooting this for a while. And I noticed that many web owners are screaming the same thing. Whenever a user posts on their activity stream, the timestamp is always “2 hours ago.” I’ve changed my time settings in the dashboard to UTC+2, I’ve changed themes, and it still posts “2 hours ago.”

    This seems to have been an issue for years. I know there has to be a fix to this. Because it is taking away from Buddypress and it’s overall functionality. And I can’t launch my site with it working like this.

    Troubleshooting I’ve done:

    *Theme change
    *time settings change
    *deactivated all plugins

    Home

    Buddyapp child theme

    Wordpress
    4.7.1

    Buddypress
    2.7.4

    #263118
    manishn
    Participant

    Hello there..

    I am newbie in buddypress, can anyone help me in this:

    I am using this plugin for hashtagin https://rup.wordpress.org/plugins-wp/buddypress-activity-stream-hashtags/

    Its working fine, but I want to show #hashtag filter on site. So when anyone can search particular #hashtag it will display the result for that #hashtag only. I know there must be a way which I can’t find.

    Thanks you in advance.

    #263099
    suris
    Participant

    Buddypress version: 2.3.2.1
    Wordpress version: 4.2.10
    Theme: Kleo

    ¿ Is there any way to add a category group word to groups permalink like ‘products’ or ‘companies’ ?

    Example:

    https://www.mywebsite.com/groups/<strong>products</strong>/mi-group-slug
    https://www.mywebsite.com/groups/<strong>companies</strong>/mi-group-slug
    https://www.mywebsite.com/groups/<strong>communities</strong>/mi-group-slug

    Thank’s

    #263097
    bcanr2d2
    Participant

    I am trying to use the following code to turn user avatars to greyscale.

    It has never worked, but I am not sure why. I can do it temporarily via CSS, just to show how it will look (that’s not an issue) but would prefer the actual avatars to be greyscale
    Please help

    //Convert to greyscale
    add_filter('xprofile_avatar_uploaded','rb_bw_filter', 10, 2);
    
    function rb_bw_filter($meta) {
    
    //    $path = wp_upload_dir(); // get upload directory
    //    $file = $path['basedir'].'/'.$meta['file']; // Get full size image
    $file =  bp_core_fetch_avatar(array('item_id' => $other_user, 'type' => 'full','html'=>false));
       $files[] = explode(',' ,$file); // Set up an array of image size urls
    //    foreach ($meta['sizes'] as $size) {
    //       $files[] = $path['path'].'/'.$size['file'];
    //    }
    
        foreach ($files as $file) { // iterate through each image size
    
            // Convert image to grayscale credit to http://ottopress.com/2011/customizing-wordpress-images/
    
            list($orig_w, $orig_h, $orig_type) = @getimagesize($file);
            $image = wp_load_image($file);
            imagefilter($image, IMG_FILTER_GRAYSCALE);
            switch ($orig_type) {
                case IMAGETYPE_GIF:
                    imagegif( $image, $file );
                    break;
                case IMAGETYPE_PNG:
                    imagepng( $image, $file );
                    break;
                case IMAGETYPE_JPEG:
                    imagejpeg( $image, $file );
                    break;
            }
        }
        return $meta;
    }
    #263083
    franckb5940
    Participant

    Hi there,

    Sorry about my bad english, it isn’t my native language…
    I’d like to build a professional network. As you can Imadgine, it is not really serious to see username with things like Alligator33….

    I use the last version of wordpress and and BuddyPress. Since 2 days, I tried many solutions founded on the net but without result, and that’s become to make me crazy !

    Do you have a definitive solution to fix it.

    If not, wich way, other wordpress, could be the best way for creating professional a network

    Thanks a lot
    Frank

    mrafiee
    Participant

    Hi,
    I installed BuddyPress Default Data plugin to add a few dummy data and users to my website to check. After I cleared all dummy data, it also deleted my admin account and I can’t log in to my account anymore !!
    would you please someone help me know how to resolve this issue ?
    Thanks

    #263079
    danbp
    Participant

    Hi,

    sidebar is part of your theme. The edit.php (members/single/profile/edit.php) template file doesn’t contain a sidebar, but a form. And this form goes into any theme who has a place for “content” (usually it is the main content).

    If you don’t want a sidebar on the member page or on the profile, you can add a conditionnal on your (child)theme sidebar.php or around the call to sidebar you can find in almost all your theme files.

    The thing to search is get_sidebar which calls the sidebar template.

    Note that BP use mostly to “page.php”, so if your theme has such a file, it is where to start. You already know the way to BP’s template doc. More about this on WP codex:

    get_sidebar()


    https://codex.wordpress.org/Function_Reference/dynamic_sidebar

    #263072
    danbp
    Participant

    Hi,

    seems you’re in wp-admin media library when you get that error. The message comes from WordPress. BuddyPress doesn’t use backend editing and doesn’t use edit tools on front-end like “mirror” or “rotate” when he handles pictures.

    With BP, a user can handle his avatar picture and the cover header for profile and groups, and all that from front-end.

    Where is the image in BuddyPress that you try to edit ?
    Please give details, so your issue could evtl. be reproduced.

Viewing 25 results - 5,101 through 5,125 (of 32,678 total)
Skip to toolbar