Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'buddypress'

Viewing 25 results - 29,401 through 29,425 (of 69,106 total)
  • Author
    Search Results
  • Solved…thanks @hotsitez for getting me to see that what i wanted to do was, in fact, possible and allowed me to poke around deeper.

    And thanks to @boonebgorges for this post –> https://buddypress.org/community/groups/how-to-and-troubleshooting/forum/topic/profile-field-adds-award/

    It helped me to get the “non-echo” function for getting profile values.

    PE Scholar
    Member
    Roger Coathup
    Participant

    have a look in the codebase at bp_the_profile_field_name() and you’ll see the ‘get’ function that it uses.

    Trawling the codebase is the best way to find functions for BuddyPress (or the site phpftwr – google a function name and it will come up in the references)

    In this case your function is bp_get_the_profile_field_name()

    #137492
    aces
    Participant

    Ok, thanks @hotsitez

    You pointed me in the right direction. Awesome!

    I discovered that profile-loop.php is the script/template file I need to mod.

    All I need to do now is figure out how to get the value from `bp_the_profile_field_name();` and assign it to a variable. I tried `$theLabel = bp_the_profile_field_name();` but the result of the function call actually displays the label and does not allow me to assign it to the var.

    If you know how to do something like `$theLabel = get_this_bp_the_profile_field_name();` that would be my answer!

    Roger Coathup
    Participant

    It’s straightforward to do in BuddyPress – @hotsitez has already pointed you to the basic function for echoing profile field values (which is also documented in member-header.php), and I’ve told you which files you need to look at.

    As a PHP coder, you should be able to walk through those files to find the appropriate points in the code to hook actions in or modify your templates. You should also be able to search the BuddyPress codebase to find profile field functions you can call — start with the one @hotsitez gave you.

    You can also look on the documentation (codex) area of this site for information about the profile field loop which may help you further – and point you to how base and other profile field groups are handled.

    [Edit: and, if you want to learn about the action, filtering paradigm for development, you can find introductory articles on the wordpress.org codex]

    Well, yes and no @hotsitez….

    Here’s what I have:

    I went into WordPress/BuddyPress via wp-admin — then navigated to Buddy Press > Profile Fields

    On the Extended Profiles Fields page, I added a “Start Date” for our members to populate which is the date they started with our company. Then on the Base (Primary) tab on that page, I got my extended field positioned where I want it to display.

    Perfect (so far).

    Now what I want to do is apply some PHP to calculate how many months and years the person has been with our company and parenthetically display it next to the start date value on the member’s profile page in Buddy Press when people view a person’s profile.

    How To Do That?

    So where/how in member-header.php do I add that bit of PHP code? Note, I am a PHP coder, so I have no problem producing the code to make the calculation — I am not asking for that guidance. I simply need to know (a) what script/document file do I go to to add my code, (b) where in the page production stream in that script/document file do I add my code, and (c) how do I grab the start date value that is stored in the BuddyPress DB?

    This maybe too complicated for Buddypress to do, but I am willing to give it a shot.

    [Note: I toyed around with member-header.php per @hotsitez suggestion. The profile area that this script impacts is the upper “header’ area for a member. I am interested in getting into the flow of the Profile > Base page.]

    #137487
    Roger Coathup
    Participant

    I’m pretty sure this came up recently, and the core team had been unable to replicate — @djpaul was this something you were looking at?

    #137486

    In reply to: Register Problem

    james_zedd
    Participant

    I am also having a problem with registration.

    Every time I go to my registration page (http://www.bodyweightexerciseblog.com/register) I am returned to the homepage of my website.

    Also using s2member plug in with buddypress. In Focus theme with buddy press child theme.

    #137483
    Paul Wong-Gibbs
    Keymaster

    > Fatal error: Call to undefined method stdClass::have_posts() in /home/…/…/wp-content/plugins/bbpress/bbp-includes/bbp-reply-template.php on line 168

    Your error is coming from bbPress, not BuddyPress. Please post on the bbpress.org forums for help.

    Roger Coathup
    Participant

    @natetheaverage

    an outline solution (there are lots of areas where you’d have to work to implement it):

    When a group is created, you could write a hook that creates a corresponding xprofile field group (remember to hook on delete group as well to remove the profile field group)
    In the member’s profile screens, you would hide that xprofile field group if the member is not a member of the group
    In a hook on Join Group, you’d want to display an additional screen that prompts for the user fields, and when that is submitted use the xprofile API to write the data to the user’s profile
    I guess finally, you’d also want to modify the members loop inside the group to show that information

    There’s a lot of code for you to trawl through

    Paul Wong-Gibbs
    Keymaster

    Nope. But when BP 1.6, you can use bbPress 2 for both group and site wide forums, and it comes with backend admin panels.

    sha4crazy
    Member

    Thanks @Paul Gibbs,

    You mean to say that we need to use the respective actions & filters over there and change the functionality (Customize to our wish) ?

    #137468
    modemlooper
    Moderator

    class wpdev_compose sounds like its not part of BuddyPress Core and is from a 3rd party plugin. This site only offers support for 3rd party plugins if another user helps you or the 3rd party plugin developer offers you support.

    This site is mainly to help with the base install of BuddyPress.

    #137466
    raminjan
    Participant

    I understand my friend and I am sorry for being a maniac but I am aggressively passionate about buddypress and just learning it and believe me I understand you guys are doing the best you could but I am just so frustrated with two problems one is that I want to set up portals for my users not site wide level access and two I have this error on my page and was just wondering to know what is this?
    can you please if you got time, can you please help me out? Thanks buddy.

    Warning: call_user_func_array() expects parameter 1 to be a valid callback, class ‘wpdev_compose’ does not have a method ‘wp_footer’ in /home/content/53/9386553/html/wp-includes/plugin.php on line 403

    #137465
    @mercime
    Participant

    @raminjan know that we are all unpaid volunteers helping out here, living in different time zones and have lives outside of BP and WP.

    You have created many number of topics, some of which I answered and other topics were answered by others. And private messaging is turned off because others have abused it already.

    BuddyPress is an opensource software, i.e., free and we try to help out as many people as we can, not just one. And when I was still a student, I recall doing my own research (Google et al) when I didn’t know the answers. So be patient and stay cool.

    @mercime
    Participant

    == The button on the activity stream for “Joe Schmoe joined . . .” is obscured by buttons ==

    @timetraveler As an online visitor, activity stream looks good for Joe joining a group. I will presume you mean the activity meta seen by logged-in users i.e., the Comment, Favorite and Delete buttons. If so, open up your theme’s stylesheet and add the following at the bottom.

    `ul#activity-stream div.activity-meta {
    clear: left;
    margin-bottom: 15px;
    }`

    If that doesn’t work, create a throw-away username and password and post it here. You can delete that account after the issue has been resolved.

    #137463

    In reply to: CPU Overload

    @mercime
    Participant

    Pretty permalinks are required for BuddyPress sites.
    Settings > Permalinks and choose option other than default permalink.

    #137462

    I’m just getting started with BuddyPress, and I was wondering about this myself. I realize that the default WP function to display a user’s articles still works, but I’d like to display them in a BuddyPress tab. I’m on the hunt for a plugin to accomplish this. Any guidance would be welcome!

    #137461

    In reply to: Register Problem

    @mercime
    Participant

    @rehaugew I see you’re using the Mingle theme. I do not know whether that theme’s been updated for the latest and beta versions of BuddyPress. That being the case, you should change to bp-default theme, clear cache and check registration process there for BP 1.5.6. Are you using Mingle also in BP 1.6beta2 install? Then change to bp-default there as well. We have to ascertain what’s the real culprit.

    #137459
    Roger Coathup
    Participant

    Did you complete the BuddyPress setup wizard in wp-admin? Including creating the pages?

    For new users, you need to enable new user registrations in wp-admin settings

    hotsitez
    Member

    Frank – while I am new to BuddyPress (started it on a site today), i think you are working on similar layouts at moment that I am. The file I just finished re-working was “member-header.php” – I had added Profile Fields like Gender, Age, Etc. to display Gender for Example I used:

    ‘[?php bp_profile_field_data( ‘field=Gender’ );?]’

    basically add the name of the Profile Field you wish to display and use the Field Title name you gave it in the format above.

    Other than that its just editing CSS and adding text etc to layout. I am still working on many things – its the one area I really want to pop is the Profiles pages.

    I hope it helps!

    #137456

    Yes.

    Take a copy of ../wp-content/plugins/buddypress/bp-themes/bp-default/activity/post-form.php

    Put it in your themes directory using the same sub-dir structure /activity/post-form.php

    Then simply comment out line 25 in the script

    Quite sure that will do it for you.

    Good luck.

    Thanks @RogerCoathup.

    I ended up downloading all 28 documents from ../members/single/

    I did a search on the custom field I created and only found the edit.php template that had it. And it had it because I hard coded it in there.

    Is there a way to add static text and some php code next to a user-defined custom field that ends up making its way onto a member’s Base Profile template page?

    Here’s why I need to get into the code @RogerCoathup:

    I have a page called Business.

    Off Business, I have about 10 child pages.

    I created a static-text widget. I used every conceivable settings combination within Dynamic Widgets to get the static-text widget to appear in the right-sidebar of Business and all of its Child Pages.

    The widget is positioned in the middle of the right sidebar — not the top and not the bottom.

    I can only get the static-text widget to appear on the Child Pages. Not the parent page.

    So I give up and want to hard code it within the process of the right-sidebar build.

    How does adding my own function get me to where I want to be?

    I simply need to get to the script that produces that right sidebar so I can hard code my content.

    I have no idea what I would even code in my won function to make this happen.

Viewing 25 results - 29,401 through 29,425 (of 69,106 total)
Skip to toolbar