Search Results for 'buddypress'
-
AuthorSearch Results
-
July 18, 2012 at 11:53 am #137496
frank tredici
MemberSolved…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.
July 18, 2012 at 11:49 am #137495PE Scholar
MemberThis has also been raised in the following post: https://buddypress.org/community/groups/how-to-and-troubleshooting/forum/topic/registration-page-has-prepoulated-full-name-field-help/
July 18, 2012 at 11:45 am #137493Roger Coathup
Participanthave 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()
July 18, 2012 at 11:42 am #137492aces
Participant@djpaul – did you see the last (recent) message to you about this?
https://buddypress.org/community/groups/how-to-and-troubleshooting/forum/topic/how-to-clear-the-previous-registration-form-data-1/July 18, 2012 at 11:41 am #137491frank tredici
MemberOk, 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!
July 18, 2012 at 11:39 am #137489Roger Coathup
ParticipantIt’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]
July 18, 2012 at 11:06 am #137488frank tredici
MemberWell, 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.]
July 18, 2012 at 10:49 am #137487Roger Coathup
ParticipantI’m pretty sure this came up recently, and the core team had been unable to replicate — @djpaul was this something you were looking at?
July 18, 2012 at 9:39 am #137486In reply to: Register Problem
james_zedd
ParticipantI 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.
July 18, 2012 at 8:53 am #137483In reply to: Call to undefined method stdClass::have_posts()
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.
July 18, 2012 at 8:07 am #137480Roger Coathup
Participantan 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 informationThere’s a lot of code for you to trawl through
July 18, 2012 at 5:56 am #137476Paul Wong-Gibbs
KeymasterNope. But when BP 1.6, you can use bbPress 2 for both group and site wide forums, and it comes with backend admin panels.
July 18, 2012 at 4:45 am #137473sha4crazy
MemberThanks @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) ?
July 18, 2012 at 2:31 am #137468In reply to: how come no body help me?
modemlooper
Moderatorclass 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.
July 18, 2012 at 1:56 am #137466In reply to: how come no body help me?
raminjan
ParticipantI 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
July 18, 2012 at 1:53 am #137465In reply to: how come no body help me?
@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.
July 17, 2012 at 11:52 pm #137464@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.
July 17, 2012 at 11:30 pm #137463In reply to: CPU Overload
@mercime
ParticipantPretty permalinks are required for BuddyPress sites.
Settings > Permalinks and choose option other than default permalink.July 17, 2012 at 11:12 pm #137462In reply to: [Resolved] Display list of author’s articles
robertjpeterson
MemberI’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!
July 17, 2012 at 11:07 pm #137461In 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.
July 17, 2012 at 11:04 pm #137459In reply to: register new users and missing pages
Roger Coathup
ParticipantDid 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
July 17, 2012 at 9:24 pm #137457hotsitez
MemberFrank – 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!
July 17, 2012 at 8:57 pm #137456In reply to: Can I turn off the “what’s new” in the profile?
frank tredici
MemberYes.
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.
July 17, 2012 at 8:03 pm #137454frank tredici
MemberThanks @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?
July 17, 2012 at 7:33 pm #137452frank tredici
MemberHere’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.
-
AuthorSearch Results