-
Henry Wright replied to the topic Possible to upload Avatars for other User as Admin? in the forum How-to & Troubleshooting 11 years, 2 months ago
Hi @janthiel
I might be wrong but I’m not sure you can upload an avatar via wp-admin (by default)? Are you using a plugin to do that? Something like Simple Local Avatars maybe?
-
Henry Wright replied to the topic Possible to upload Avatars for other User as Admin? in the forum How-to & Troubleshooting 11 years, 2 months ago
Hi @janthiel
I might be wrong but I’m not sure you can upload an avatar via wp-admin (by default)? Are you using a plugin to do that?
-
Henry Wright replied to the topic Error when accessing homepage in the forum How-to & Troubleshooting 11 years, 2 months ago
Hi @gatera
The debug notice is saying that a function called
bp_is_front_pageis being used somewhere when it’s been deprecated. You should do a search to find out where in your code it is used (perhaps a plugin or maybe your theme) and ask the theme or plugin author to useis_front_page()instead.The warning is likely the cause of your page…[Read more]
-
Henry Wright replied to the topic Error when accessing homepage in the forum How-to & Troubleshooting 11 years, 2 months ago
Hi @gatera
The debug notice is saying that a function called
bp_is_front_pageis being used somewhere when it’s been deprecated. You should do a search to find out where in your code it is used (perhaps a plugin or maybe your theme) and ask the theme or plugin author to useis_front_page()instead.The warning is likely the cause of your page…[Read more]
-
Henry Wright replied to the topic display member updated date? in the forum How-to & Troubleshooting 11 years, 2 months ago
last_profile_update( $_GET['user_id'] )is only a bad thing if you don’t escape$user_idin the SQL statement provided by @shanebp. That’s because$_GET['user_id']could be tainted as it is received from the browser. In your case, you won’t be doing that. You’ll be providing the user ID yourself so using @shanebp‘s SQL should be absolutely fine.…[Read more] -
Henry Wright replied to the topic display member updated date? in the forum How-to & Troubleshooting 11 years, 2 months ago
last_profile_update( $_GET['user_id'] )is only a bad thing if you don’t escape $user_id in the SQL statement provided by @shanebp. That’s only because$_GET['user_id']could be tainted as it is received from the browser. In your case, you won’t be doing that. You’ll be providing the user ID yourself so using @shanebp‘s SQL should be absolutely…[Read more] -
Henry Wright replied to the topic display member updated date? in the forum How-to & Troubleshooting 11 years, 2 months ago
I was thinking the same (i.e. just used internally). It’s when you start doing things like
last_profile_update( $_GET['user_id'] )you have to worry lol. I suppose it’s worth it for the record…? here goes…$last_update = $wpdb->get_var( $wpdb->prepare([Read more]
"
SELECT date_recorded
FROM {$wpdb->prefix}bp_activity
WHERE user_id = %d… -
Henry Wright replied to the topic display member updated date? in the forum How-to & Troubleshooting 11 years, 2 months ago
@shanebp is it worth escaping
$user_idin the SQL statement? think you can use the prepare() method for that? -
Henry Wright replied to the topic display member updated date? in the forum How-to & Troubleshooting 11 years, 2 months ago
Have you ever thought about a custom solution using user meta? Something like:
// Hook this to a particular action.
update_user_meta( get_current_user_id(), 'active', current_time( 'mysql' ) );Then you’d get that for display using something like this:
// $last_active will be a date-time string.[Read more]
$last_active = get_user_meta(… -
Henry Wright replied to the topic Total number of posts in the forum How-to & Troubleshooting 11 years, 2 months ago
I must admit, the template hierarchy was slightly confusing at first for me too but once you get your head around it, it is a very powerful way of using templates. It works similarly to the WordPress template hierarchy if that helps.
-
Henry Wright replied to the topic Total number of posts in the forum How-to & Troubleshooting 11 years, 2 months ago
No. It goes into your template. So for example, if you wanted to display the count in your member profile header, then you’d put it in member-header.php.
Take a look at this article for more info on the BP template hierarchy for how to set up templates (if you don’t have them already).
-
Henry Wright replied to the topic Total number of posts in the forum How-to & Troubleshooting 11 years, 2 months ago
Hey @fugglet
Pop this into your template:
echo count_user_posts( bp_displayed_user_id() )Note, if
bp_displayed_user_id()doesn’t work in that particular context then you’ll need an alternative way of getting the member’s ID. -
Henry Wright replied to the topic Total number of posts in the forum How-to & Troubleshooting 11 years, 2 months ago
-
Henry Wright replied to the topic Restricting Content + BuddyPress in the forum Creating & Extending 11 years, 2 months ago
Hi @enigmaweb
You have a couple of options regarding your requirements here.
1. You could try searching the Plugin Directory to see if anything is available that meets your needs. If nothing then you could try option 2…
2. Implement a custom solution yourself. Restricting content is fairly easy if you make use of some WordPress functions such…[Read more]
-
Henry Wright replied to the topic Restricting Content + BuddyPress in the forum Creating & Extending 11 years, 2 months ago
Hi @enigmaweb
You have a couple of options regarding your requirements here.
1. You could try searching the Plugin Directory to see if anything is available that meets your needs. If nothing then you could try option 2…
2. Implement a custom solution yourself. Restricting content is fairly easy if you make use of some WordPress functions such…[Read more]
-
Henry Wright replied to the topic Display memberlist in the forum How-to & Troubleshooting 11 years, 2 months ago
Hi @htown
1. Will buddy press allow me to print out a list of members and customize it the way I’d like?
BuddyPress may do. By default, BuddyPress provides a members directory which displays all active members (users that have activated their account). If you need more control over exactly which users are displayed then you’ll need to use the <…[Read more]
-
Henry Wright replied to the topic Share Button in the forum Requests & Feedback 11 years, 2 months ago
Hi @panezio
Check out the Share Buttons by AddThis plugin
-
Henry Wright replied to the topic Share Button in the forum Requests & Feedback 11 years, 2 months ago
Hi @panezio
Check out the Share Buttons AddThis plugin
-
Henry Wright replied to the topic Help: User limit in the forum Creating & Extending 11 years, 2 months ago
Hi @aakashs
Further to @shanebp‘s post, and your question about 3m users, a lot comes down to what those 3m users are doing. If 3,000,000 users register, then logout, and only return once every 6 months then maintaining the site going forward will be quite easy. However, if each of the 3,000,000 return every day, upload some media, comment often…[Read more]
-
Henry Wright replied to the topic Basic PHP HTML Inserting in the forum Installing BuddyPress 11 years, 2 months ago
Hi @irieside
JavaScript can go inside a PHP file (via use of the
<script>tag) or it can go into a .js file. In the case of the latter, you don’t need to use the<script>tag. - Load More
@henrywright
Active 1 year, 10 months ago