Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'buddypress'

Viewing 25 results - 58,126 through 58,150 (of 94,540 total)
  • Author
    Search Results
  • #110783
    r-a-y
    Keymaster

    The function you’re looking for is:
    `bp_get_profile_field_data()`

    An example use case:

    `
    $field = bp_get_profile_field_data(
    array(
    ‘field’ => 1, // where 1 is the field_id or it can be the field name
    ‘user_id’ => bp_displayed_user_id()
    )
    );

    echo ‘Schedule link‘;`

    #21516
    nginx
    Member

    Hello,
    I’m using wordpress with buddypress.
    What I want is to get the value of a specified profile field of buddypress for each logged user to replace it in a link i have in one of my pages.

    to explain more what i have done is for a university. each student has one class code. i have made a field to let them write their class code.

    it is like “sc10002” for example.

    what i want is to replace this “sc10002” in a link which send them to their class time schedule which is like:

    hxxp://university.com/shchedule.jsp?[classid]

    how can i do it? i mean how can i order this link to replace class id with what has been set in student profile?

    i’d appropriate your help.
    thanks.

    #110781

    Hey ray, i have a quick question.

    I have wp-ban installed, and it adds a function that fetch’s the IP address of the user logged in i think, it’s the standard function for calling it.

    the full code is here: https://buddypress.org/community/groups/how-to-and-troubleshooting/forum/topic/having-trouble-with-ip/#post-96715

    What i did is I put the function in the topic.php so it would show the poster’s IP address. Now knowing that that function only retrieves the current logged in user IP, I thought I could override this with your function above, (my_topic_poster_id) so it would display the IP address of the forum poster. (like the member stats), so put in topic.php

    `. `

    Will it pass the topic poster ID so it shows the forum poster’s IP and not mine?

    #110780
    r-a-y
    Keymaster

    You want to search sitewide blog posts? That would be taxing!

    An efficient method would be to use the activity loop and filter by blog posts and the “search_terms” paramater (which in this case would be your xprofile field).

    One problem with this approach is blog posts, by default, are truncated when they are saved as an activity stream item, so your xprofile field might not match the blog post if the post content is cut off.

    —

    An alternative method is having a sitewide blog that aggregates all your blog post data and passing your search term directly to that blog’s post loop. However, this is the “taxing” method I was speaking of because you’ll have to use the switch_to_blog() function and that uses a significant amount of DB queries.

    #110775

    In reply to: Add a new Tab

    r-a-y
    Keymaster

    @tubruk – Check out bp-themes/bp-default/forums/index.php.

    In that file is a hook to add more tabs:

    eg. Add this to your theme’s functions.php:

    function my_new_fantabulous_forum_tab() {
    ?>
    <li id="forums-newttab no-ajax"><a href="YOUR LINK">Another Forum Loop</a></li>
    <?php
    }
    add_action( 'bp_forums_directory_group_types', 'my_new_fantabulous_forum_tab' );

    If you want your tab to be AJAX-ifed, you’ll need to remove the “no-ajax” CSS class from the tab and write an AJAX hook as well.

    Check out the “bp_dtheme_ajax_querystring” filter in /bp-default/_inc/ajax.php. It’s a little complicated, but once you get the jist of it, it makes things a little easier.

    There’s a few posts on these forums about it:
    http://www.google.com/search?hl=en&hs=6eV&rls=en&channel=suggest&q=%22bp_dtheme_ajax_querystring%22+filter&aq=f&aqi=&aql=&oq=

    Hopefully that helps somewhat.

    #110773
    r-a-y
    Keymaster

    You can override this by copying /bp-themes/bp-default/sidebar.php into your child theme and making the necessary edits there.

    If you haven’t built a child theme, follow this guide:
    https://codex.buddypress.org/theme-development/building-a-buddypress-child-theme/

    #110766
    Brandon Allen
    Participant
    #110762
    Brandon Allen
    Participant
    #21515
    deadringer
    Member

    Hi. I’m creating a BuddyPress-site where I need all the blogs/sites that the users create to be a part of some blog-groups. For instance Country, Town and Business. This will be for organizing all the blogs and to be able to create search-filters.

    I think that Tagging blogs would be the best thing to do.

    Is there any Plugins that can do this or something similar?

    I have been using this since months with my Buddypress install. It works flawlessly!

    #21513
    #110750
    Menelik Seth
    Member

    And just as I thought I was drowning, Brandon Allen’s hand reaches into the dark waters of PHP/MySQL/BuddyPress and pulls me out. Thanks bro! This is exactly what I was looking for.

    I’m gong to thoroughly review this and compare it against where I was stuck. This has been a great trial by fire for me, as a developer and a budding WordPress modder. I pray for many more of these experiences.

    Thanks again for the assistance :) Back to coding I go!

    chrisjscott
    Participant

    I’m setting up a BP installation and using the AD Integration plugin in order to auto-create WordPress accounts when people log in with existing Active Directory credentials. While the AD Integratration plug-in autofills in the new user’s login name, First Name and Last Name, these fields don’t carry into the user’s Buddypress profile.

    Is there any way to do this? Even better, is there any way to automatically import other info that can be retrieved via AD authentication (title, phone number, etc.)?

    #110737
    Brandon Allen
    Participant

    @VegasParty607 First, there is no one dedicated to answering questions on the forum. It’s all volunteer. Sorry no one has replied, but repeatedly posting isn’t going to make anyone want to help you.

    Sencond, your code for displaying the IP address looks correct, so the problem is likely within the get_IP function. Without seeing the function it’s hard to tell.

    #110736
    Brandon Allen
    Participant

    You might want to try this (https://wordpress.org/extend/plugins/buddypress-restrict-group-creation/)

    There is a ticket on Trac to make this easier (https://trac.buddypress.org/ticket/1150).

    #110728

    In reply to: Webspace or Server

    Alan
    Member

    “i have buddypress and 40 plugins running”

    40!! really?That can slow your site..

    why do you need 40 plugins?

    I have two on my site and one of them is BP.

    WordPress creates pages on the fly. This means the pages don’t actually exist on the server; they’re created when someone requests a page by clicking on a link on a WordPress powered blog or website. The standard version of WordPress queries the database a number of times to create a page. If there are lots of plugins installed that also have to query the database and output results, this adds additional strain on the servers ability to deliver pages quickly, and therefore decreases the speed a page can load.

    read more : http://mydigitalinternet.com/2010/too-many-wordpress-plugins-can-slow-down-your-blog/

    #110723
    celsosoares
    Participant

    Thanks @imjscn , but I get the same result using the Like plugin. It uses the same table so the only value I changed was the meta_value, to “liked_count”. I get ALL the activity items returned, ordered chronologically, like before.

    Anyone out there want to give it a shot and post the code here? Or write a plugin :)

    #110721

    In reply to: Add a new Tab

    tubruk
    Participant

    @r-a-y or@hnla maybe please I couldt find something in the documentations

    #110719
    viaestvita
    Member

    I have a blog corrected all the problems with atahualpa and BuddyPress
    http://en.viaestvita.net/home-link-qtranslate

    #110717
    imjscn
    Participant

    @Naren00000, for applying theme on secondary blogs, you need to go to Network Admin to Enable the theme first, then, go to the secondary blog’s Site Admin/Dashboard/Apearence/Themes to Activate the theme.

    andrews77
    Member

    Due to lack of resources at my webserver I’m using caching nginx with apache frontend. It works fine with my multiuser wordpress and boost performance for anonymous users 10-100 times or more.
    Recently I’ve installed Buddypress – that a plugin I’ve waited for a long time. Except one thing. No one page is cached after Buddypress is turned ON.

    Does Buddypress generate some special content for every visitor, even not logged in ?

    There are some cookies sent to every visitors
    Set-Cookie: bp-message=deleted; expires=Thu, 22-Apr-2010 12:36:48 GMT; path=/,bp-message-type=deleted; expires=Thu, 22-Apr-2010 12:36:48 GMT; path=/
    Are they really neccessary? May they interfere with caching and may I turn them off?

    #110711
    Naren00000
    Member

    I have created secondary site with sub directory by network admin, but not able to apply bp theme for secondary site. It’s working but I am not able to apply theme for secondary site. As i click on dashboard option of second site It will show Only text with no alignment and styling.
    I am missing to add bp-default theme for my secondary site. Don’t Know how to do that.

    Any help will be Appreciated.

    #110708
    nit3watch
    Participant

    I will update the theme during next week, got a lot of work I have to get through before I can focus on the theme.. You can have a look at the theme trac and take note of what tammie has said if you are going to use it now

    #110706
    Xevo
    Participant

    Installed this yesterday, looks good.

    Gonna use this as a base layer for my own theme. :)

    Thanks!

    @mercime
    Participant

    @mojoey I see that you’ve posted the same question at BuddyDev.com. Be patient because @sbrajesh will take the time to help you out with his plugin. Btw, headers already sent error is usually associated with extra spaces or lines before the opening “

Viewing 25 results - 58,126 through 58,150 (of 94,540 total)
Skip to toolbar