Forum Replies Created
-
In reply to: Word Press Roles and Buddypress Capabilities
Ok, thanks @PaulGibbs.
(1) why can member’s with the role of “Editor” edit pages (a link appears for them on the bottom of the page) while members with the role of Subscriber, for example, cannot?
(2) why does the upper “static” menu bar across the page give different options based on role?
(3) are there different BuddyPress role settings that I should know about or be aware of?
The underlying purpose here is to determine what role to give our various members. Thanks for helping and guiding.
Thanks
Thanks @RogerCoathup. Can you share the URL for phpftwr ?
http://phpftwr.com returns page/site not found
Yes @CJKruger — Google is a great friend. Except when you want to get the function to return a Buddypress user’s role. Been looking for that one for a couple hours now.
Thanks for the link.
Oops, Google’d it and found this:
`echo bp_member_profile_data(‘field=Phone Number’);`
Looks like maybe 2 different developers built the functions — 1 version for profile-loop.php and a different variation for members-loop.php
Gave up and hard coded inside the sidebar.php template
In reply to: send mass emailYou do not have sufficient permissions to access this page.
Odd … I am the WP Admin. What’s up with that?
Oh, and I see @RogerCoathup chimed in during my research and troubleshooting.
Thanks “buddies”
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.
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!
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.]
In reply to: Can I turn off the “what’s new” in the profile?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.
Thanks again @RogerCoathup.
I continue to phrase my need very poorly.
I know about functions, calls, etc. I also know where `do_action( ‘bp_after_sidebar_me’ )` is located…that’s how I honed in on needing to track it down.
Here’s what I need to do:
I need to get in the process when `’bp_after_sidebar_me’` is happening as a result of the `do_action()` call.I need to add some hard coding when this process is taking place.
So it’s the location/file/script/doc (whatever it ends up being called) within WP that I am looking for when `do_action( ‘bp_after_sidebar_me’ )` is happening.
Continuing to dig

Thanks @RogerCoathup…poorly phrased question on my part.
I am looking for the code file or source document in WP/BP that contains the function `do_action( ‘bp_after_sidebar_me’ )`
In reply to: [Resolved] What table are pages meta stored in?Perfect. Thanks @mercime. Appreciate your help…
I typically post my questions in both the WP forum and this forum. It seems to increase my chances of getting assistance from “never getting assistance” to “getting some assistance within a few days”. Both forums are not as active as many others out there on the net that I participate in.
Ok, thanks @Asynaptic.
So it ends up being that my workaround is the only way to see what I need to see.
Thanks. Maybe this will get fixed someday to make it easier to get the info.
Thanks @EyeMagicGraphics — I am using the Dynamic Widgets plug-in. It has a very peculiar glitch in it.
I created a static text widget in WP. Then I use Dynamic Widgets to have the static text widget appear only on a certain page and all of its child pages.
The glitch is that (from every WP & DynWidg setting I have tried) I can only get the text widget to appear on the child ages. I cannot get it to appear on the parent page.
So I give up after 4-5 days of effort and just want to go into the production of the sidebar code and hard code my widget.
I’ll have a look at your suggestion on “Conditional Logic” and see where that leads me.
Well, @mercime — it is getting closer but:
(1) it only displays 5 of my 22 posts with no mechanism to get to the other 17
(2) it simply shows me my post topic. It does not show if any replied or what their reply is.So my workaround still is better at this time.
Here’s my workaround:
https://buddypress.org/community/groups/how-to-and-troubleshooting/forum/?p=1&n=1000
Then use your browser search feature (Ctrl + F) to search for your name. Primitive but gets me to the place where I want to be…
I turned it off using the remover_filter(). Much better now

@modemlooper — did what you suggested…still can’t get at my 16 posts
In reply to: How to see your OWN forum topics@modemlooper — can’t see my 16 posts anywhere
Ok @mercime … I went to Edit My Profile and changed my profile name to “test” Now what do I need to do to see all the posts I have made?