-
Henry Wright replied to the topic Inserting activity content via plugin in the forum How-to & Troubleshooting 11 years ago
Hi again @valuser
Just read through the Pastebin text, and yeah the bookmark tool looks great. Worked perfectly! I’m still puzzled by why the activity item isn’t created when you create a post by clicking Home Place. My hunch is that
valuser_add_new_post_activity()isn’t executing due to thenewsbaby_after_insert_posthook not firing. -
Henry Wright replied to the topic Link to members /members/member-name in the forum How-to & Troubleshooting 11 years ago
Hi @mvaneijgen
Which theme are you using? Which plugins do you have installed?
-
Henry Wright replied to the topic BuddyPress and Fundraising Functionality in the forum Ideas 11 years ago
a) Not ‘out-of-the-box’ but through either plugins or custom code snippets then this can be done.
b) Try the BP Jobs Board. We request that you post your requirements and leave your contact details so that developers can contact you.
-
Henry Wright replied to the topic Inserting activity content via plugin in the forum How-to & Troubleshooting 11 years ago
Going back to this, the following hook can’t be firing.
do_action( 'newsbaby_after_insert_post', $post_id );If this fired, then the
valuser_add_new_post_activity()function would execute and that would result in an activity item being created. -
Henry Wright replied to the topic Inserting activity content via plugin in the forum How-to & Troubleshooting 11 years ago
Going back to this, the following hook can’t be firing.
do_action( 'newsbaby_after_insert_post', $post_id );If this fired, then the
valuser_add_new_post_activity()function would execute and hence an activity item would be created. -
Henry Wright replied to the topic Inserting activity content via plugin in the forum How-to & Troubleshooting 11 years ago
However a “normal” post via wp-admin came in just once onto activity.
Yeah, that’s expected because you’ve enabled site tracking.
did two new post transfers – they arrived but not in activity.
This bit isn’t expected because with my code in place, an activity entry should be created each time the
wp_insert_post()function in your plugin execu…[Read more] -
Henry Wright replied to the topic Inserting activity content via plugin in the forum How-to & Troubleshooting 11 years ago
Right, I’m with you.
After this line in the plugin
echo 'Shared successfully to your Home Place with tags: '.$tags;Can you add this?
do_action( 'newsbaby_after_insert_post', $post_id );Then change my code you added to functions.php to:
function valuser_add_new_post_activity( $post_id ) {[Read more]
$post = get_post( $post_id );
$user =… -
Henry Wright replied to the topic Inserting activity content via plugin in the forum How-to & Troubleshooting 11 years ago
Right, I’m with you.
Right after this line in the plugin
echo 'Shared successfully to your Home Place with tags: '.$tags;Can you add this?
do_action( 'newsbaby_after_insert_post', $post_id );Then change my code you added to functions.php to:
function valuser_add_new_post_activity( $post_id ) {[Read more]
$post = get_post( $post_id );
$user =… -
Henry Wright replied to the topic Inserting activity content via plugin in the forum How-to & Troubleshooting 11 years ago
Humm, that’s strange. Can you try posting a new post from the WP admin area so see if it works from there?
From http://pastebin.com/fMnJh5T0
Clicking on the ruby brings up http://imgur.com/jE3hUzD and clicking on “Home Place” effects the transfer and so far so good the transfer is inserted as a post in the users pblog
Can you paste the code…[Read more]
-
Henry Wright replied to the topic BuddyPress font sizes defaults too small in the forum How-to & Troubleshooting 11 years ago
Can you check if the font size is larger when using the Twenty Fifteen theme? If so, then I’d advise that you contact the Avada theme author letting them know there’s an issue with the font size on that page.
-
Henry Wright replied to the topic Inserting activity content via plugin in the forum How-to & Troubleshooting 11 years ago
Try adding this to your theme’s functions.php file:
function valuser_add_new_post_activity( $ID, $post ) {$user = get_userdata( $post->post_author );
$args = array(
'user_id' => $post->post_author,
'action' => $user->user_login . ' published ' . $post->post_title,
'component' => buddypress()->blogs->id,…[Read more] -
Henry Wright replied to the topic Inserting activity content via plugin in the forum How-to & Troubleshooting 11 years ago
Try adding this to your theme’s functions.php file:
function valuser_add_new_post_activity( $ID, $post ) {$user = get_userdata( $post->post_author );
$args = array(
'user_id' => $post->post_author,
'action' => $user->user_login . ' published ' . $post->post_title,
'component' => buddypress()->blogs->id,…[Read more] -
Henry Wright replied to the topic BuddyPress font sizes defaults too small in the forum How-to & Troubleshooting 11 years ago
Hi @ivalde
The font size is determined by your theme. Which theme are you using?
-
Henry Wright replied to the topic Display all registered user in the forum Installing BuddyPress 11 years ago
Hi @hemant-ahir
echo bp_core_get_total_member_count();This will display the total number of members for your installation. Note that this particular figure will account for all non-spam activated users even if they have done nothing on your site after activating their account.
echo bp_core_get_active_member_count();This figure is the total…[Read more]
-
Henry Wright replied to the topic Display all registered user in the forum Installing BuddyPress 11 years ago
Hi @hemant-ahir
echo bp_core_get_total_member_count();This will display the total number of members for your installation. Note that this particular figure will account for all non-spam activated users even if they have done nothing on your site after activating their account.
echo bp_core_get_active_member_count();This figure is the total…[Read more]
-
Henry Wright replied to the topic Display all registered user in the forum Installing BuddyPress 11 years ago
Hi @hemant-ahir
echo bp_core_get_total_member_count();This will display the total number of members for your installation. Note that this particular figure will account for all non-spam activated users.
echo bp_core_get_active_member_count();This figure is the total number of members that have performed some kind of site activity (i.e.…[Read more]
-
Henry Wright replied to the topic Users login via front end in the forum How-to & Troubleshooting 11 years ago
Hi @dallass
Take a look at the Theme My Login plugin. That helps you do all of that.
-
Henry Wright replied to the topic Inserting activity content via plugin in the forum How-to & Troubleshooting 11 years ago
What are you hooking your
bp_activity_add()function to?Also it’s weird that the inserted post has a guid ending in /post-name, which is a different format to the rest of your posts. The guid is something you shouldn’t really need to override, it’s best to let WP handle it.
-
Henry Wright replied to the topic please review my new website onlijn.com in the forum Showcase 11 years ago
Very cool theme! I like the colour scheme you’ve used along with the flat design. Navigating around using my laptop, everything seems to work fine. My only criticism is when I use my tablet (Google Nexus 7) to view at portrait orientation, the 3-column layout seems a little squished. Aside from that minor issue, all looks good
-
Henry Wright replied to the topic How to hide section of profile to all but that user and admin? in the forum How-to & Troubleshooting 11 years ago
I’m not sure your code will work. For example, on a very quick first look, I can see you’ve done
current_user_can('administrator'). I’m assuming you’re trying to check if the current user is an admin? If so, then this won’t work. Thecurrent_user_can()function takes a capability, not a role. So if you want to check if the current user is an…[Read more] - Load More
@henrywright
Active 1 year, 10 months ago