Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'wordpress'

Viewing 25 results - 9,676 through 9,700 (of 32,678 total)
  • Author
    Search Results
  • Alphaaffe
    Participant

    Hi there,

    I’m using the following Code to show users unread messages and pending friend requests in the sidebar:
    Friendship Requests
    Freundschaftsanfragen: <?php echo bp_friend_total_requests_count() ?>
    Unread Messages
    Nachrichten: <?php bp_total_unread_messages_count() ?>
    (I’m using “Enhanced Text Widget” to show php-code in my sidebar-widget)

    Additionally, I want to create some kind of notification that displays users if they have new messages or requests and thtat is only shown IF there are any new messages or requests!

    I imagine it should look something like:
    if (unread messages > 0)
    echo “You have unread Messages”;
    else
    echo ” “;

    if (pending friendship requests > 0)
    echo “You have new friendship requests”;
    else
    echo ” “;

    my problem is, that I don’t know the names of the variables to use (I tried it with the functions instead of the variables which didn’t work). Can anyone of your pls help? I’m using the “allow PHP in posts and pages” plugin to use php in posts and pages^^

    My WordPress-Version is 4.0.1, my Buddypress-Version is 2.1.1

    My website is still under construction and has directory protection, which is why I won’t post the domain, username or password. If your realy need this information, I’ll send it to your via pm.

    P.S. English is not my native language, I apologize for any typos or other kind of misstake.

    #230586

    In reply to: Custom Login Redirect

    Hugo Ashmore
    Participant

    @ad4m_wordpress Codex is another word for documentation, ‘codify’, here it’s the link on the main menu labelled ‘Documentation’ The WP documentation is also referred to as ‘The Codex’.

    Your initial requirement would have been served by the simple use of one of the provided BP template tags e.g:
    <?php echo bp_core_get_userlink(bp_loggedin_user_id()); ?>
    which will render a fully formed link and also takes parameters.

    I’m just trying to avoid paying $50 an hour to a programmer who will take 30 seconds to do this for me.

    In that case you will need to learn to code! That is how you will avoid the skilled services of a developer šŸ™‚

    #230579

    In reply to: Custom Login Redirect

    bp-help
    Participant

    @ad4m_wordpress
    On lines 471-474 in that plugins custom-login-redirect.php maybe try switching this:

    
    <option value="">Default</option>
        <?php if (get_option('custom_login_redirect_display6','yes') == 'yes'){ ?>
    	  <option value="<?php home_url ?>wp-admin/">Dashboard</option>
    	<?php } ?>
    

    To to something like this:

    
    <option value="">My Profile Wall</option>
        <?php if (get_option('custom_login_redirect_display6','yes') == 'yes'){ ?>
    	  <option value="<?php home_url . '/members/' . bp_core_get_username( bp_loggedin_user_id() ) . '/profile/' ?>My Profile Wall</option>
    	<?php } ?>
    

    Note that I haven’t tested this at all so test at your own discretion.

    #230548

    In reply to: Custom Login Redirect

    ad4m_wordpress
    Participant

    I would LOVE to be able to edit the code. The plugin url is here –

    https://wordpress.org/plugins/custom-login-redirect/

    I would LOVE to be able to change the ‘default’ value to say ‘My Profile Wall’ and then hard code it so it using the php method you mentioned above so it gives users the option of redirecting themselves to their profile wall.

    You can see a live version of it on my site http://milemarker20.com/wp-login.php

    (I plan to change the location of the login url to help prevent spam.)

    #230547

    In reply to: Custom Login Redirect

    bp-help
    Participant

    @ad4m_wordpress
    Just out of curiosity what plugin are you referring to that creates this dropdown box on the login screen? Most plugins can be modified to suit your needs if you don’t mind editing the code.

    #230545

    In reply to: Custom Login Redirect

    bp-help
    Participant

    @ad4m_wordpress
    Not really sure what your trying to accomplish but you need to understand the dynamic nature when a user logs in and is redirected to their profile is in PHP language and there is no full html equivalent that could pull that info from the database to take that user to their profile.
    I am certain you will have to use PHP to make this happen. If you copy and pasted the snippet in the link I supplied into bp-custom.php it shouldn’t take a few minutes and is very simple.

    #230542

    In reply to: Custom Login Redirect

    bp-help
    Participant
    #230536

    In reply to: Groups and Forums

    Hugo Ashmore
    Participant

    @ad4m_wordpress Please check the BP Codex documentation you’ll find much of the information you seek there.

    Installing Group and Sitewide Forums

    #230521
    danbp
    Participant

    See the WP Codex to get the answer: codex.wordpress.org/Translating_WordPress

    The order of %1$s and %2$s is not important.

    If you code directly your language into the string, you can write as usual RTL and place %2$s first write something, add %1$s and write another thing…

    That said, and if you are using a RTL language like hebrew (as i suppose), you may have some special characters which are (perhaps) not recognized by gettext. And in this case you have to use unicode, in other words, HTML letters.

    The orignal created a new Project is translated to יצר ×¤×Ø×•×™×§×˜ חדש
    But i don’t know much about hebrew (or persian or arabic) characters.
    Search from here how to get rid of this:
    https://codex.wordpress.org/WordPress_in_Your_Language
    or see here:
    http://www.i18nguy.com/unicode/hebrew.html

    And apologize if you use another RTL language.

    #230510
    issues.inc
    Participant

    Hello!

    For the site i’m currently working on, it’s important that the users are allowed to favorite blog posts and that it appears on their “favorite” tab on profile. I’m using WordPress 4.0.1 / BuddyPress 2.1.1.

    The following code does that, but is there a way to make it work like the ajaxed favorite buttons on the activity page instead of reloading the page so the favorite option will be saved?

    Thanks so much!

    Here’s the code i have on functions.php
    function my_bp_activity_is_favorite($activity_id) {
    global $bp, $activities_template;
    return apply_filters( 'bp_get_activity_is_favorite', in_array( $activity_id, (array)$activities_template->my_favs ) );
    }

    function my_bp_activity_favorite_link($activity_id) {
    global $activities_template;
    echo apply_filters( 'bp_get_activity_favorite_link', wp_nonce_url( site_url( BP_ACTIVITY_SLUG . '/favorite/' . $activity_id . '/' ), 'mark_favorite' ) );
    }

    function my_bp_activity_unfavorite_link($activity_id) {
    global $activities_template;
    echo apply_filters( 'bp_get_activity_unfavorite_link', wp_nonce_url( site_url( BP_ACTIVITY_SLUG . '/unfavorite/' . $activity_id . '/' ), 'unmark_favorite' ) );
    }

    Code i have on index.php / single.php:
    <?
    global $bp;
    $activity_id = bp_activity_get_activity_id( array(
    'user_id' => $post->author_id,
    'type' => 'new_blog_post',
    'component' => 'blogs',
    'item_id' => 1,
    'secondary_item_id' => $post->ID
    ) );
    ?>

    <?php if ( is_user_logged_in() ) : ?>
    <?php bp_has_activities();
    if ( !my_bp_activity_is_favorite($activity_id) ) : ?>
    <li class="activity-meta">
    [a href="<?php my_bp_activity_favorite_link($activity_id) ?>" class="button fav bp-secondary-action"]Favorite[/a]
    <?php else : ?>
    [a href="<?php my_bp_activity_unfavorite_link($activity_id) ?>" class="unfav button bp-secondary-action"]Unfavorite[/a]<br>
    [a href="<?php echo bp_loggedin_user_domain() . BP_ACTIVITY_SLUG . '/favorites/' ?>" style="font-size: 12px;"]View Your Favorites[/a]
    <?php endif; ?>
    <?php endif;?>


    a tags were replaced by [a] so the code will appear above.

    #230498
    Laura09
    Participant

    I need to change the colour of the font on my site so the buttons are readable. Is anyone able to explain which piece of code I need to change? url:http://herblogforum.com/activity/ WordPress 4.0.1 BuddyPress Version 2.1.1

    Thank you.

    #230487
    shanebp
    Moderator

    That area is controlled by WordPress, not BuddyPress

    Try this in bp-custom.php or your theme/functions.php
    https://gist.github.com/shanebp/91acc541776cc083e3a5

    #230462
    boldfish
    Participant

    I have a complex site that I want to allow other users to manage pending user activations, Giving them manage options capabilities (using a role editing plugin) exposes the manage signups menu, but far too much of the rest of the WordPress admin as well.

    Where can I edit the plugin to expose the menu to users with role editor without giving them full options management for the whole of WordPress.

    Thanks

    #230398
    danbp
    Participant

    hi @thammavongsam,

    Can you give details about

    Because whenever we are posing anything its Creating a duplicate file

    Which type of posting (blog post, status,….) ?
    Which file is growing ? In a CMS like wordPress, nothing is added to files but only to DB šŸ™„

    jstallard
    Participant

    When I try and activate, email or delete a user on the Manage Signups page I get the error:

    You do not have sufficient permissions to access this page.

    I’m the multisite superadmin.

    I’m running WordPress 4.01 multisite subdomain install in root directory and Buddypress 2.1.1.

    I’m running Catchbox Pro 3.2 and have tried switching to twentytwelve on the main blog but the problem reoccurs.

    I have no custom functions in bp-custom.php. I’ve tried deactivating all plugins on the main blog except buddypress and network deactivating all network activated plugins.

    I’ve found no relevant errors in the system logs. Just this:
    [Thu Dec 11 20:12:21 2014] [error] [client 17.142.151.92] script ‘/var/www/vhosts/webhive.com.au/httpdocs/r.php’ not found or unable to stat

    I have my own dedicated server running Ubuntu 10.04.

    I’ve never used Manage Signups before so don’t know if it used to work.

    Thanks!

    #230371
    danbp
    Participant

    Forgot to mention that this can be made with CPT as soon as BP 2.2 is out.

    About Post Types and BuddyPress Activities

    #230363
    notpoppy
    Participant

    @qasimilyas Apologies if I’m missing the point here, but isn’t this something you need to change in WordPress?

    Uncheck ‘Allow people to post comments on new articles’ here:

    /wp-admin/options-discussion.php

    Of course for any articles you’ve already published you’re going to need to disable commenting individually by going into the posts and unchecking ‘Allow comments.’ under ‘Discussion’.

    #230347
    Scrubtek
    Participant

    I’m running WordPress 4.01, bbpress 2.5.4 and buddypress 2.1.1. I have one forum installed and I have just created a second forum. The problem is when I create the second forum it basically picks up all the topics and menu choices of the original forum. The original forum is private and is password protected. I don’t want the 2nd forum private but public nor have the topics or menu choices of the original forum and not password protected. I basically want it to be it’s own forum separate from the original one. Any help would be greatly appreciated

    notpoppy
    Participant

    I can’t upload an avatar for any of the groups on my site. When I try to I get a ‘404 not found’ error message.

    I only discovered this recently. I suspect the problem arose after I moved my site to a new server several months ago. Groups I created before then still have their original avatars. However I cannot add avatars to any new groups I create. Of course I’m reluctant to try changing an avatar on one of the old groups in case I can’t get the previous one back.

    Can anyone suggest what the problem might be?

    I’m using WordPress 4.0.0 and BuddyPress 2.1.1.

    #230344
    danbp
    Participant

    BP use only Name (aka nickname) and the WP registration process.

    Unique name possible ? Not really
    https://buddypress.trac.wordpress.org/ticket/2036

    https://codex.wordpress.org/Customizing_the_Registration_Form

    #230335
    valuser
    Participant

    First file absent though there is no buddypress folder in twentyfourteen (i think????)

    second file present

    it begins /*! buddypress – v2.1.0 – 2014-10-06 9:39:07 PM UTC – https://wordpress.org/plugins/buddypress/ */

    #230319
    danbp
    Participant

    Hi @theofficialseoguru,

    titling a support topic with Help please – How to…. is gentle, but ouf of need on a help forum. And for sure not a waranty to get help.

    As you have an understanding problem of php, and a supposed theme issue, it would be very helpfull to give its name and some details where to show the avatar.

    Apparently your theme use a custom function Ć  la WordPress to get avatars. And this should work, in theory.

    Have you synced wp users with bp in bp’s settings ?
    Have you tested with one of wp’s default twenty theme ?

    Depending where to show a user avatar, BuddyPress use different code. You can see this on most of the template files stored in /bp-templates/bp-legacy/buddypress/

    On the member header for example; you have bp_displayed_user_avatar( 'type=full' );
    There is also a filter: bp_get_member_avatar;
    So it really depends where and how you want your avatar… In a loop, outside of a loop, etc

    Ah, and when you give a topic example, don’t forget to mention the link.

    TheOfficialSeoGURU
    Participant

    Hello,

    The wordpress version I am using is 4.0.1
    The BuddyPress version I am using is 2.1.1

    I am trying to display the user avatar that is being displayed by the BuddyPress plugin for EVERYTHING else except for what I need to use it for LOL.

    The problem is the theme I’m using does not recognize the the BuddyPress call to the avatar. The code the theme is using is:

    <?php echo get_avatar(CustomUser::$data['user']['ID'], 200); ?>

    I keep trying to add bp_ in front of get_avatar but then it doesn’t display anything. I have also removed the info between the ()

    I do not understand php that well and do not understand calling functions and getting them to display that well, but I have been known to copy and paste my way to glory sometimes.

    I have found the “get avatar” functions in some of the function files of BuddyPress and tried to paste them into my functions file but I always get errors.

    Please keep in mind I am a total php newb and will need a little guidance on where and how to apply the code. for example I found this one post that might have helped a couple days ago that said something like just paste get_function_shmitty_avatar, then the OP was like GREAT AWESOME OMG this worked so wonderful… and I still have no clue where to paste or how to correctly paste the php code, that was also for integrating the BB forum pics too. So anyways…

    Thank you in advance for your time and assistance in helping me with this.

    #230302
    Emineminero
    Participant

    Hi, i’m on wordpress 4.0.1 and buddypress 2.1.1 and i’m having this issue, when i configure the pages “Registration” and “activate” none of them work, they are always empty. Searching in google i found out that i’m not the first one experiencing this issue, but i didn’t find a solution so here i am, any ideas what can i do?
    List of plugins:
    add actions and filters
    ajax event calendar
    akismet
    plugin update
    antispam bee
    ap gravatars
    autoblog
    average head footer code
    bbpress
    bbpress search widget
    bienvenido nuevo partner
    bienvenido nuevo usuario
    buddypress
    buddypress group email subscription
    chimpy lite mailchimp wordpress plugin
    contact form 7
    contact form 7 autoresponder addon plugin
    contact form db
    custom author link
    custom login
    cw image optimizer
    default featured image
    easy modal
    edit author slug
    email before download
    email login
    export user data
    featured image in rss feed
    featured images in rss w size and position
    feedburner email subscription
    fix rss feeds
    global hide toolbar
    global hide toolbar bruteforce
    google analytics by yoast
    hello dolly
    hungryfeed
    invite anyone
    mailchimp
    menu exporter
    multisite bulk user management
    multisite user management
    network username
    nice login widget
    p3 plugin performance profiler
    php code widget
    really simple captcha
    redirection
    revive old post former tweet old post
    share buttons by addtoany
    shortcodes ultimate
    simple login log
    social login
    spider catalog
    swiftype search
    syntaxhighlighter evolved
    unconfirmed
    under cons uction
    user activation keys
    user meta shortcodes
    videojs pro
    widget importer exporter
    widgetize pages light
    wiki
    wordfence security
    wordpress download monitor
    importador de wordpress
    wordpress move comments
    wordpress seo
    wp biographia
    wp custom admin bar
    wp facebook open graph protocol
    wp no category base wpml compatible
    wp nofollow post
    wp smtp
    wptouch mobile plugin

    #230301

    Topic: The big picture

    in forum Showcase
    sweetiowa
    Participant

    I am very confused with what i need in addition to buddypress.

    I have installed wordpress
    I have installed buddypress
    I purchased a theme called salutations from themeforest

    I WANT to implement a paid membership site where members can team up and share ideas, and incorporate mailchimp for email to contact registered members, and then I want to sell my merchandise that would be outside vendor.

    So do I need to go get bbpress and membership forum plugins on top of buddypress? What are the limitations of buddypress? I don’t think I need a wordpress shopping cart if I go through 3rd party website.

    Thank you in advance – new to buddypress!

Viewing 25 results - 9,676 through 9,700 (of 32,678 total)
Skip to toolbar