Search Results for 'buddypress'
-
AuthorSearch Results
-
March 2, 2015 at 11:11 pm #235378
In reply to: [Resolved] Friend button styling
danbp
ParticipantHi @ksmithlondon,
the add friend button on members directory or profile header is styled here
wp-content/plugins/buddypress/bp-templates/bp-legacy/css/buddypress.css
line 761The class=”friendship-button not_friends add” is not used by CSS.
The class name comes up in:
wp-content/plugins/buddypress/bp-friends/bp-friends-template.php between line 352 > 410and is also used in wp-content/plugins/buddypress/bp-templates/bp-legacy/js/buddypress.js:1211
Next time instead of looking and looking and looking, simply search. And use the appropriate tools which will do this for you π
Firebug and Notepad++ in this case, taked me less than 5mn. π
March 2, 2015 at 9:38 pm #235373In reply to: Hiding admins code not working
danbp
ParticipantThe code works with BP 2.2
and will better work when in bp-custom.php.
Also don’t forget to logout as site admin before testing it or you will continue to see you ! πMarch 2, 2015 at 9:27 pm #235371danbp
ParticipantPlease read here, it’s better explained.
The example given on Codex is related to ‘page’, and you want to show something on ‘activity’.
Instead of
'component_id' => buddypress()->activity->id,
use'component_id' => 'activity',
and instead of
add_action( 'bp_init', 'customize_page_tracking_args' );
use init with a very late priority
add_action( 'init', 'customize_page_tracking_args', 999 );Pfuiiiiii, taked me a while to find this.
Here a working example of a CPT called Music and how to get it in the SWA
// allow tracking of our CPT add_post_type_support( 'music', 'buddypress-activity' ); // creating the dropdown filter on activity and members page function customize_page_tracking_args() { // Check if the Activity component is active before using it. if ( ! bp_is_active( 'activity' ) ) { return; } bp_activity_set_post_type_tracking_args( 'music', array( 'component_id' => 'activity', // unique ID 'action_id' => 'new_music', // new_$post_type where new_ is mandatory 'bp_activity_admin_filter' => __( 'Published a new music', 'text-domain' ), 'bp_activity_front_filter' => __( 'Music', 'text-domain' ), 'contexts' => array( 'activity', 'member' ), // swa & member activity page 'activity_comment' => true, 'bp_activity_new_post' => __( '%1$s posted a new <a href="%2$s">Music</a>', 'text-domain' ), 'bp_activity_new_post_ms' => __( '%1$s posted a new <a href="%2$s">Music</a>, on the site %3$s', 'text-domain' ), 'position' => 100, ) ); } add_action( 'init', 'customize_page_tracking_args', 999 ); // creating the CPT function bpfr_create_post_type() { register_post_type( 'music', array( 'labels' => array( 'name' => __( 'Music', 'text-domain' ), 'singular_name' => __( 'Music', 'text-domain' ) ), 'public' => true, 'has_archive' => true, ) ); } add_action( 'init', 'bpfr_create_post_type' );FYI, i added the mentionned topic to the Codex page. Would probably help more than one. π
March 2, 2015 at 9:00 pm #235370In reply to: Including XProfile fields in Notification Mail
bp-help
Participant@car1979
Not sure if that code still works but you could place it in bp-custom.php:
or in your themes functions.phpMarch 2, 2015 at 5:45 pm #235366ch1n3s3b0y
Participant@hnla – Thanks Hugo. Yeah I’m generally ok with the BuddyPress templates, but I keep forgetting to look in bp-templates instead of bp-themes. Bad habits!
March 2, 2015 at 3:32 pm #235358In reply to: Hide the username and display firstname/lastname
MBC-Thierry
ParticipantBuddypress is calling his own files for registration (register.php).
For example if I install the smart wp login, it doesn’t work because it doesn’t apply to the buddypress registration files (I’m not sure, maybe I’m wrong…)March 2, 2015 at 3:10 pm #235356In reply to: Hide the username and display firstname/lastname
rosyteddy
ParticipantIs not Buddypress Registration same as WordPress Registration?
Thanks.March 2, 2015 at 2:58 pm #235355In reply to: Hide the username and display firstname/lastname
MBC-Thierry
ParticipantThank you very much.
I was just wondering if the advices in theses links could be used with the buddypress registration process…I will try
March 2, 2015 at 12:26 am #235339In reply to: Will deactivating BP remove all user data?
danbp
ParticipantActually you have a single install with BuddyPress with N members and activities.
Nothing will be deleted if you activate the site as network.
That said it’s strongly recommended to dump your DB before doing this.
For a better overview of the DB, see here
The BP tables are the same on MS as on a single install, and WP adds only new tables for each blog and only if you create one at least.WP’s user table stays intact in any case, like bp activities and others related to members (profile, message and so on).
This can help you too:
https://codex.wordpress.org/Importing_Content
https://wordpress.org/support/plugin/import-from-ningMarch 2, 2015 at 12:02 am #235337In reply to: Blank Pages on BuddyPress
danbp
ParticipantHi,
first off, check your permalinks and choose one of the option EXCEPT default. Then deactivate the current theme and make a test with one of the Twenty’s.
If it’s ok with standart setup, revert to your theme and see if it works now.
If not, try the patch mentionned on this topic
https://buddypress.org/support/topic/my-conditional-tags-are-not-being-respected-in-genesis/#post-235182March 1, 2015 at 11:53 pm #235336In reply to: Just installed BuddyPress, PHP Errors right away?
danbp
ParticipantWelcome to the buddypress debug club ! Please open a ticket and give details about your install and any step to reproduce the issue. Add also a link to this topic.
Go here and use same login as on this forum.
https://buddypress.trac.wordpress.org/newticketIf you don’t know how to post a ticket on a wiki page, read here first.
March 1, 2015 at 11:09 pm #235331In reply to: Just installed BuddyPress, PHP Errors right away?
danbp
ParticipantSorry but i’m unable to reproduce that. I don’t have notices or warning about this issue.
Can’t you make a test with the trunk version ? (direct link to zip – BuddyPress is in the src folder)
March 1, 2015 at 11:03 pm #235330danbp
Participanthi @daethian,
if you’re using BP 2.2, don’t use the “old” bp-default theme.
If you have FTP access, your wordpress should be at the site root if you want to use BuddyPress. If it’s you who created the /wp/ folder and if you haven’t any other site on the same account you don’t need it. Install wordpress directly at the root ! Mostly in a folder named www or htdocs (ie. htdocs/wp-admin, htdocs/wp-content/, htdocs/wp-include/)
But let’s say it’s correct for now.
Connect to your site and go to admin
On WP dashboard> General ensure you entered WP URL and site URL correctly (hxxp://your-site.xxx) without trailing slash (normally the same URL)
Then dashboard > Appearence>Theme and activate Twenty Fifteen
Then dashboard > Settings > Permalinks > anything but default
Then dashboard > plugins and deactivate/reactivate BuddyPress
Then dashboard > Appearence > Menu > screen option (top right), check buddypress and add the BP menu to Twenty 15See if it works.
If not, you’ll have to setup WP correctly at first.
Return to FTP, move WP to the root, erase htaccess and wp-config and restart the installationyour-site.xxx/install
Re enter your DB name, psw and all other information needed for installing WP.
Your DB and actual content won’t be erased (but you can make a dump before, in case of).5mn install later, you are invited to login. And you have to do what i’ve explained previously.
March 1, 2015 at 10:48 pm #235328In reply to: Just installed BuddyPress, PHP Errors right away?
Travis
ParticipantI just setup a fresh WordPress install and installed BuddyPress only on another operating system. Still getting the same errors.
March 1, 2015 at 10:28 pm #235324In reply to: Just installed BuddyPress, PHP Errors right away?
danbp
ParticipantWow stunning ! Are you on a local server ? MS or single install ?
Could be that something went wrong during upload.
Erase the BP folder and add a new copy.And remove your theme from the theme directory while testing with Twenty.
March 1, 2015 at 10:21 pm #235322danbp
Participantplease give details…
Which plugin are you using ? Where does the msg show ? Front, backend, both ?
This is usually handled with a language file or using CSS
display:none;March 1, 2015 at 10:08 pm #235321In reply to: Just installed BuddyPress, PHP Errors right away?
Travis
ParticipantI just setup a fresh new WordPress install and installed the BuddyPress plugin. The error is appearing here as well.
March 1, 2015 at 6:57 pm #235308In reply to: @mention autosuggest in Buddypress Forum
danbp
ParticipantI don’t know BuddyPress forum (v 2.2).
Installing and using bbPress forum plugin is explained here:
@mention is explained here:
https://codex.buddypress.org/template-updates-2-1/March 1, 2015 at 1:16 pm #235301In reply to: @mention autosuggest in Buddypress Forum
gatelli
ParticipantThanks for your answer.
I don’t use bbpress but Buddypress forum (v2.2)… is there a similar way to get it working ?March 1, 2015 at 10:15 am #235298In reply to: Profile menu visibility
danbp
Participantsnippets published on the forum are generally related to a specific topic/question. And of course, dependant of theme and/or bp version, if not php or mysql or server settings. Over the time, they stop working or can’t be used anymore because the Core changed or because of other evolutions….
Despite having a kind of snippet store accessible by forum menu seems to be a usefull idea, it is not. Each usage case is different and can not be extended to all case. FYI information, i had the same idea a few years back, and was quickly discouraged to do so by our Core dev. I was first disapointed, but i finally had to admit they where right. And today, i’m absolutely persuaded and on the same line.
That’s why you have Codexes. For WP, BP or bbP with general explanation of default usage and more rarely, with usage examples. If you find a snippet example in Codex, in 95% of cases, you have to adapt it to your personnal usage.
To answer your question, as you know, BuddyPress is (only) a WordPress plugin. When installed, the site continue to work with WordPress and WP dashboard. Nothing is modified in WP Core, only that BP was added to the site. As a plugin.
How to handle WordPress is explained and widly documented in his Codex.
Menu management, CPT management or how to modify menu items on Toolbar or Admin bar is also documented. And the’re so many sites giving WP tips (from excellent to awfull), you can read.March 1, 2015 at 10:04 am #235297Hugo Ashmore
ParticipantWhat do your WP settings page ‘general’ show for urls, specifically ‘Site Address (url)’? Did you check the values here after the change over?
WP codex guide on this aspect:
https://codex.wordpress.org/Giving_WordPress_Its_Own_DirectoryDid you also visit the permalinks page under ‘settings’, just to ensure permalinks are re-freshed?
This is really a WP support issue as the problems rest with how WP is configured rather than issues specific to BuddyPress working.
February 28, 2015 at 10:25 pm #235289In reply to: BuddyPress Menu Items Missing?
bp-help
Participant@alice-kaye
Go to dashboard/menus and in the top right corner click screen options and make sure the box beside buddypress is checked. Once checked you will see the options to add buddypress items in the edit menus tab. Good luck!February 27, 2015 at 10:49 pm #235256danbp
ParticipantFebruary 27, 2015 at 8:20 pm #235251In reply to: Profile menu visibility
Klosurdo
ParticipantThanks for the reply danbp,
The Theme I am using is KLEO by Seventh Queen
Buddy Press version Version 2.2.1I am looking to hide menu items for non logged in visitors in members profiles See example here.. I want to have only the βmediaβ menu and possibly the documents icons viewable to non logged in visitors.
I would like all icons viewable to only those members that are logged in.
Thanks
Other Plugins
Akismet
bbPress
BuddyPress Cover Photo
K Elements
MOJO Marketplace
Paid Memberships Pro
PMPro MailChimp Integration
PMPro Register Helper
PMPro Set Expiration Dates
Register Helper Example
Revolution Slider
rtMedia Pro for WordPress, BuddyPress and bbPress
The Events Calendar
WPBakery Visual ComposerFebruary 27, 2015 at 6:52 pm #235248In reply to: Changing labels i nthe Activity Stream
danbp
Participantthe original code is
%s posted an update
To modify this the right way, you have to use the language file and an appropriate compilator such as poEdit to generate the mo file.Don’t know what solution you didn’t found, guess you have to search this forum for translation related topics.
A
verydirty solution would be to use this snippet and add it to your child-theme functions.phpfunction marketraisen_change_bp_update_text( $translated, $original_text, $domain ) { if ( 'buddypress' !== $domain ) return $translated; switch ( $original_text ) { case '%s posted an update': return '%s posted on'; default: return $translated; } } add_filter( 'gettext', 'marketraisen_change_bp_update_text', 10, 3 ); -
AuthorSearch Results