-
Henry Wright replied to the topic Custom classes for profile pages, possible? in the forum How-to & Troubleshooting 12 years ago
Can you paste your code? The original classes shouldn’t be lost. The filter just adds new ones whilst retaining what classes are already in place.
-
Henry Wright replied to the topic How would I get the thread link, or parent activity id, given the comment ID? in the forum How-to & Troubleshooting 12 years ago
bp_activity_get_specific()should be used like this:// get activity
$activity_get = bp_activity_get_specific( array( 'activity_ids' => YOURACTIVITYID ) );// single out the activity
$activity = $activity_get[0];// grab specific activity item
$activity_body = $activity->content;Ref:…[Read more]
-
Henry Wright replied to the topic Custom classes for profile pages, possible? in the forum How-to & Troubleshooting 12 years ago
<body jerryclass="" class=" customize-support"seems weird. You shouldn’t be getting that. You should be getting something like<body class="classname">In your CSS file, you’d use:
body.classname {
// whatever
} -
Henry Wright replied to the topic Custom classes for profile pages, possible? in the forum How-to & Troubleshooting 12 years ago
If you want something unique you just have to modify the filter function.
For example, this is very generic:
if ( bp_is_member() )
$classes[] = 'this-is-a-member-profile';This is unique:
if ( bp_is_member() )
$classes[] = 'member-profile-of-' . bp_displayed_user_username(); -
Henry Wright replied to the topic Is it possible to get the item ID from notification objects? in the forum How-to & Troubleshooting 12 years ago
Oops, didn’t see your second post. Glad you solved the problem!
-
Henry Wright replied to the topic Is it possible to get the item ID from notification objects? in the forum How-to & Troubleshooting 12 years ago
Hi @godavid33
I’m 99% sure you can. I do believe it’s store in
secondary_item_id.I think you can access it by doing something like this:
$notifications = BP_Notifications_Notification::get( array(
'id' => $notification_id,
'user_id' => $user_id
) );// I assume there will only be one result but i'll do a loop anyway
if (…[Read more] -
Henry Wright replied to the topic Custom classes for profile pages, possible? in the forum How-to & Troubleshooting 12 years ago
@jerryskate the body tag in your theme’s header.php file should be
<body <?php body_class( $class ); ?>>– if it is just something like<body>then the filter I suggested above won’t work. Perhaps that was why it wasn’t working? -
Henry Wright replied to the topic Custom classes for profile pages, possible? in the forum How-to & Troubleshooting 12 years ago
And you’re sure you have
<body <?php body_class( $class ); ?>>in your template? -
Henry Wright replied to the topic Custom classes for profile pages, possible? in the forum How-to & Troubleshooting 12 years ago
Have you tried viewing the page source?
<body class"..."> -
Henry Wright replied to the topic Custom classes for profile pages, possible? in the forum How-to & Troubleshooting 12 years ago
Regarding your answer to @modemlooper‘s suggestion:
I’m using a theme that have buddypess integrated, so that won’t work for me
You should really try to give the bp-custom.php approach a try – I think it’s the solution here.
-
Henry Wright replied to the topic How to create LinkedIn with Buddypress? in the forum How-to & Troubleshooting 12 years ago
*features
-
Henry Wright replied to the topic How to create LinkedIn with Buddypress? in the forum How-to & Troubleshooting 12 years ago
Perhaps list all of the featured LinkedIn has that you want to have in your BuddyPress site then recommending plugins will be a little easier
-
Henry Wright commented on the post, BuddyPress 2.0 "Juliana", on the site BuddyPress.org 12 years ago
I’m not entirely sure what to get excited about most: The administration tools, the performance improvements or the ‘load newest’ in the activity stream! “Juliana” looks awesome all round. Couldn’t have asked for […]
-
Henry Wright replied to the topic No text allowed, members are only allow to upload videos and images? in the forum How-to & Troubleshooting 12 years ago
The best approach is to list all of the places a member can enter text then try to lock each one down.
Off the top of my head I can think of:
The WP admin area – creating posts and pages etc
Comments (if you have comments enabled)
The BP profile area (xProfile fields)
The activity stream (commenting, replies, new updates etc)
Private messaging?
-
Henry Wright replied to the topic Custom classes for profile pages, possible? in the forum How-to & Troubleshooting 12 years ago
You could filter the body class? Something like this:
function add_body_classes( $classes ) {
if ( bp_is_member() )
$classes[] = 'this-is-a-member-profile';if ( bp_is_my_profile() )
$classes[] = 'this-is-my-profile';
}
add_filter( 'body_class', 'add_body_classes', 12 ); -
Henry Wright replied to the topic How do action and hooks work in buddypress ? in the forum Creating & Extending 12 years ago
I just want to know that where is the actual add_action(…) and the function for this action is written, i have searched lot of files in buddypress but could not get it? can any one help ?
Which
tagare you referring to? You mentiondo_action(“…”)in your question but this doesn’t tell us the tag. Perhaps see here for info on…[Read more] -
Henry Wright replied to the topic page title, really need some help! in the forum How-to & Troubleshooting 12 years ago
Which theme are you using?
-
Henry Wright replied to the topic xprofile_data_after_save in the forum How-to & Troubleshooting 12 years ago
Might be worth mentioning it isn’t a function. It’s an action hook
-
Henry Wright replied to the topic xprofile_data_after_save in the forum How-to & Troubleshooting 12 years ago
bp-xprofile/bp-xprofile-classes.php and bp-xprofile/bp-xprofile-cache.php
-
Henry Wright replied to the topic How to sync BuddyPress profile with FB, Twitter etc.? in the forum How-to & Troubleshooting 12 years ago
There are lots of social login and registration plugins in the WP plugin repo:
- Load More
@henrywright
Active 2 years, 1 month ago