-
Brandon Allen posted on the forum topic Having trouble with IP in the group How-To and Troubleshooting: 13 years, 7 months ago
You’re getting closer. I would change the get_IP() function to something like this: `function my_update_user_IP() { $user_id = (int) get_current_user_id(); if(!empty($_SERVER)) { $ip_address = $_SERVER; } else if(!empty($_SERVER)) { $ip_address = $_SERVER; } else if(!empty($_SERVER)) { $ip_address = $_SERVER; } else { $ip_address = ”; }…[Read more]
-
Brandon Allen posted on the forum topic Add custom metadata to forum topics for sorting purposes in the group Creating & Extending: 13 years, 7 months ago
Haha! No worries. Post back if you get stuck.
-
Brandon Allen posted on the forum topic How to make Activity Tab as default and remove home link from header. in the group How-To and Troubleshooting: 13 years, 7 months ago
Like agck said, you would go to Dashboard > Settings > Reading, and set the “Front page displays” setting to “A static page (seleect below)”, then choose “Activity Stream” from the “Front Page” drop-down menu.
-
Brandon Allen posted on the forum topic Having trouble with IP in the group How-To and Troubleshooting: 13 years, 7 months ago
My guess, you’re using the WP-Ban plugin. You would have to write your own function to get the IP address, and the store it somewhere, most likely in the usermeta table.
-
Brandon Allen posted on the forum topic Any way to autofill Profile fields when authenticating against Active Directory? in the group How-To and Troubleshooting: 13 years, 7 months ago
It’s still the same answer. There is a way, but it would take code. You would need to use hooks from the AD Intergration plugin and hooks/functions from BP to handle this. The reason I said talk to the plugin author is because you might be able to request the the plugin author adds this […]
-
Brandon Allen posted on the forum topic Add custom metadata to forum topics for sorting purposes in the group Creating & Extending: 13 years, 7 months ago
The ‘bp_after_group_forum_post_new’ hook is used to add data to the template, rather than to process the data. So instead of manually editing the forum.php template, you would do something like:
cg_add_post_metacat_html() { echo ' '; } add_action( 'bp_after_group_forum_post_new', 'cg_add_post_metacat_html' );
To process the post data, you would do…[Read more] -
Brandon Allen posted on the forum topic Any way to autofill Profile fields when authenticating against Active Directory? in the group How-To and Troubleshooting: 13 years, 7 months ago
That would be something to ask the authors of the AD Integration plugin, but I would suspect that you would need to use a plugin provided hook, and the write you’re own custom function to do this.
-
Brandon Allen posted on the forum topic Having trouble with IP in the group How-To and Troubleshooting: 13 years, 7 months ago
The functions are located within the WP code, but there is no get_IP function.
-
Brandon Allen posted on the forum topic Having trouble with IP in the group How-To and Troubleshooting: 13 years, 7 months ago
After a second look you should be using
$members_template->member->id
orget_IP( $bp->displayed_user->id );
. If either of those don’t fix it, then it’s the get_IP function. -
Brandon Allen posted on the forum topic Having trouble with IP in the group How-To and Troubleshooting: 13 years, 7 months ago
@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 […]
-
Brandon Allen posted on the forum topic remove Create New Group in the group How-To and Troubleshooting: 13 years, 7 months ago
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).
-
Brandon Allen posted on the forum topic There are two register pages in the group How-To and Troubleshooting: 13 years, 7 months ago
There should only be one. http://thechillax.com/wp-login.php?action=register should redirect to http://thechillax.com/register/. Is this not the case?
-
Brandon Allen posted on the forum topic excerpt length in the group How-To and Troubleshooting: 13 years, 7 months ago
Depends on where you’re trying to alter the excerpts. If you’re trying to change the exceprt length of a blog post, then this should work. Otherwise, you’ll want to take a look at
bp_create_excerpt()
. As of right now, this doesn’t have a filter, so you’re a bit stuck. If you could post a feature request […] -
Brandon Allen posted on the forum topic save to favorites? in the group Creating & Extending: 13 years, 7 months ago
That site is using a custom plugin. That plugin may piggyback on BP favorites, but it’s hard to tell.
-
Brandon Allen posted on the forum topic displaying xprofile data if is friend or is users profile? in the group Creating & Extending: 13 years, 7 months ago
Everything should work if you’re viewing your own profile.
bp_is_friend()
doesn’t return a bool. It returns on of the following: ‘is_friend’, ‘not_friends’, or ‘pending’. In this case you’ll likely want to dobp_is_friend() == 'is_friend'
in your ‘if’ statement. That should get things running. -
Brandon Allen posted on the forum topic Picture thumbnails not showing in the group How-To and Troubleshooting: 13 years, 7 months ago
Sounds like an issue with one of the plugins. If you’re getting the red ‘x’, I believe that means that the link to the link to the image is wrong. You might want to post this question in the group forums of those two plugins here on BP.org. You’ll probably get a better response there.
-
Brandon Allen posted on the forum topic Date selector bug? in the group Requests & Feedback: 13 years, 8 months ago
This bug has been fixed on trunk (future 1.3). You can visit the above ticket for more information. Thanks to @lucianop for the ticket!
-
Brandon Allen joined the group Requests & Feedback 13 years, 8 months ago
-
Brandon Allen posted on the forum topic Blog activity stream loop in the group How-To and Troubleshooting: 13 years, 10 months ago
in the code you linked, try changing
bp_has_activities()
tobp_has_activities( 'action' => 'new_blog_post', 'primary_id' => (blog id goes here) )
-
Brandon Allen posted on the forum topic 1.2.6 upgrade date offset!! in the group How-To and Troubleshooting: 13 years, 10 months ago
I can confirm the problem. The issue occurs if you have a negative GMT offset. Since xprofile dates are saved for midnight of the chosen day, anyone with a negative GMT offset will have their date shifted backwards, which then displays as the day previous to the one chosen. ie – Date Chosen: January 4th, […]
- Load More
@cnorris23
Active 2 months, 2 weeks ago