Forum Replies Created
-
In reply to: The usage of BuddyPress logo
You can use it for free, but have to customize it with your own logotype.
See plugin repo how other plugins use it:
https://wordpress.org/plugins/search.php?page=1&q=buddypressOfficial logos and colors for BP are here:
BP is under same GPL license as WordPress.
https://wordpress.org/about/license/In reply to: Change “title” attribute in Who’s Online WidgetThe easiest way would be to create your own widget, as this widget is in a core file (bp-members/bp-members-widgets.php). Then you can ignore the built in widget and use yours.
Line 307 > 309 is a div containing what you have to modify.
<div class="item-avatar"> <a href="<?php bp_member_permalink(); ?>" title="<?php bp_member_name(); ?>"><?php bp_member_avatar(); ?></a> </div>Change
bp_member_name()tobp_member_user_nicename()Code related to who’s online goes from line 247 to 390.
– Copy/paste it to bp-custom.php
– change class name to something unique. ie.class My_Whos_Online_Widget extends WP_Widget
– in __construct function, in $name replace (BuddyPress by Custom)
– modify the div content by replacingbp_member_name()bybp_member_user_nicename()Done !
You have to register the new widget. In bp-customfunction register_my_custom_widget() { register_widget( 'My_Whos_Online_Widget' ); } add_action( 'widgets_init', 'register_my_custom_widget' );Go to Appearance > Widget and select (Custom) Who’s Online Widget.
Finito ! π
In reply to: Create Function When Favorite Button Clicked…euh…read through the code, find some dev comments and try to get further… ?
I tried to answer to your question: only looking to basically take the favorites button and modify the function. Both files contain functions related to “favorite”.
Though it would be more clear to all of us if you explain precisely what you’re trying to achive ? Instead of trying to explain (awkwardly) what you imagine may work, give details about what you try to do and code you used to do that.
You say you create a function you want to add to favorite button. But this button should not favorite something, but either mimic is_span, but without using is_span !!!
Sounds like if you asked for how to make beer, but without water to get a milk flavour.
Please, make explicit questions !
You’re welcome ! π
hum… something is unclear. Which type of forum do you use ? Site wide forum, group forum or even both ? Also, when you mention a member in a topic, do you get mention suggestions when typing @ a letter or two ?
check Activity auto-refresh in dashboard > Settings > BuddyPress > settings tab.
If it is already done, activate Twenty Fifteen theme and see if the issue is still in.
In reply to: Account ActivatedIn reply to: How to change the “Members” color in members pagebuddypress.css contains all styles used by BP.
I also use a cache plugin that is not caching for logged in users.
If i understand this correctly, it means that if i visit your site without being logged in, i get a page from the cache, right ? This means logically that you have to be logged in while testing your change. And finally, it could be possible that non logged users see (it’s an example) a black title (cached) and logged-in user see a red title (the most recent, not cached, version of the new style applied to that page). Hum…
When you use a child-theme, and his mandatory style.css, the child has priority over the parent theme, and buddypress.css.
Child theme is the only safe strategy to get your customization without loosing your work at each update. You add to it only what you want to modify. Even if you need to change only 2 title styles.
In your case, you need only a style.css with a rule or two for your titles. You don’t have to add template files.is it possible to find somewhere already created templates with different color profiles
A template is a structure of different HTML tags and some php code for dynamic content.
A theme is a design applied to this armature.
A content is what is showed inside the structure.
HTML is used to build the structure
CSS is used to build the layout/design
Content is text, images, videos, etc
PHP is a coding language to build dynamic pages between a database and a server.BuddyPress template files are stored in wp-content/plugins/buddypress/bp-templates/bp-legacy/buddypress
Unfortunatly for you, the theme is a premium one for which we can’t provide support, as we have no access to his code and can’t install it to test without using a licence.
See theme doc for information about child theming it and other advice for adding custom CSS.
In reply to: Create Function When Favorite Button Clicked@bfchris2, sorry, the file is here /bp-legacy/buddypress-functions.php
In reply to: Terms & Conditions Checkboxconsider this plugin: https://wordpress.org/plugins/auto-terms-of-service-and-privacy-policy/
and read this plugin support topic:
https://wordpress.org/support/topic/buddypress-integration-11?replies=4Other technique
Create a new page and add your terms of service. Save.
Add a new field to profile Base tab (the one which shows on register page).
Field title: Terms of Service
Field description: by checking this box you agree with our TOS. And a link to the page:
<a href='http://my-site.com/page_name/'>Read our Terms of Services</a>Caution: use single quotes to enclose the url
Field type: checkboxes.
Field option: custom and only one option: TOS ! Leave it unchecked.On the right of the screen:
Field requirement: required.
Field visibility: only me and check Enforce field visibilityGuess we’re done !
While registering, if the checkbox is not checked, the process will stop and user will be adviced that he omited a field. Once he checked it, he can finish his subscription. This doesn’t mean he read your TOS, but you’re covered if you warned him to read TOS first. And ensure that the link is working and the page exist with content !
Depending your country law, TOS can be more or less regulated. It’s your responsability to get informed about that before using it.
In reply to: Create Function When Favorite Button ClickedIn reply to: Disallow editing after!Hallo @ubbegubben,
if you use bbPress, you’ve better chance for answers on their support forum.
Both snippets (yours and mine) are working as expected.
Enable debug in wp-config; perhaps you could get some error message ?Any ideas what Iβm doing wrong? Using over 4 years old tricks ? π
Give this a try (in bp-custom)
function bpfr_guest_redirect() { global $bp; // enter the slug or component conditional here if ( bp_is_activity_component() || bp_is_groups_component() || bp_is_blogs_component() || bp_is_page( BP_MEMBERS_SLUG ) || is_bbpress() ) { // not logged in user - user will be redirect to any link you want if( !is_user_logged_in() ) { //wp_redirect( get_option('siteurl') ); //back to homepage //wp_redirect( get_option('siteurl') . '/register' ); // back to register page wp_redirect( get_option('siteurl') . '/your_page_title' ); // back to whatever page } } } add_filter('get_header','bpfr_guest_redirect',1);And to close the second entry door, which many users seems to ignore…
function bpfr_hide_rss_feed_to_nonreg_visitor() { if ( !is_user_logged_in() ) { remove_action( 'bp_actions', 'bp_activity_action_sitewide_feed' ); remove_action( 'bp_actions', 'bp_activity_action_personal_feed' ); remove_action( 'bp_actions', 'bp_activity_action_friends_feed' ); remove_action( 'bp_actions', 'bp_activity_action_my_groups_feed' ); remove_action( 'bp_actions', 'bp_activity_action_mentions_feed' ); remove_action( 'bp_actions', 'bp_activity_action_favorites_feed' ); remove_action( 'groups_action_group_feed', 'groups_action_group_feed' ); } } add_action('init', 'bpfr_hide_rss_feed_to_nonreg_visitor');is the mentioned user supposed to receive a bubble notification? Yes.
Have you tested with Twenty Twelve or Thirteen while using only WP + BP ?
In reply to: How to change the “Members” color in members pageWhich theme do you use ? Seems you renamed yours to Test, and i was unable to find it somewhere.
Also, do you use a cache plugin ? If it’s the case, disable it or clear it while testing CSS.I cannot put it in maintenance mode
This is not necessary if you had a local copy. I strongly recommend you do that if you want to manage correctly a high traffic site.
You can use a child-theme for your theme, not for BP which has no theme since 1.9. The one called bp-default is no more maintained and is only in for temporary backward compatibility for (very) old BP site.
BP use templates, which are stored in bp-templates/bp-legacy/buddypress/. Those templates are tailored to fit with almost any recent (and decently coded) themes.
Creating a child theme is explained on hundreds of sites and on WP’s codex. Additionnal infos for BP are given here.
In reply to: How to add user profile link to specific menu?could it be that you created your Top menu, by adding a new menu without having two different menu location in your theme ? This can explain why you see always your item, what ever menu you choose. This happen because you try to assign 2 different menus to a same place.
Following snippets where successfully tested with Twenty Twelve.
This fires the profile link on the menu tab.
function profile_button_menu_item ( $items, $args ) { // menu name. Primary is default main menu location in Twenty themes if ( $args->theme_location == 'primary') { $items .= '<li><a href="' . bp_loggedin_user_domain() . 'profile/public/">' . __('My Profile') . '</a></li>'; } return $items; } add_filter( 'wp_nav_menu_items', 'profile_button_menu_item', 10, 2 );The following explains how it works with 2012.
In 2012’s header.php, there is only one menu, located line 45
<?php wp_nav_menu( array( 'theme_location' => 'primary', 'menu_class' => 'nav-menu' ) );?>To use 2 menus, I added below that line another location
<?php wp_nav_menu( array( 'theme_location' => 'top', 'menu_class' => 'nav-menu' ) );?>In child-theme’s functions.php, i added
function register_my_menu() { register_nav_menus( array( 'top' => 'Top' ) ); } add_action( 'init', 'register_my_menu' );Under Menu Settings (wp-admin/nav-menus.php) i have now 2 theme locations.
Primary MenuandTop
Understand here that 2 locations are different of having only 2 menus. Location is a unique place for ONE menu.Of course, I have 2 different menus. One is assigned to Primary Menu location, the other one to Top location.
And i can now move my profile item from one to other menu, by simply changing the location (primary ⇔ top) in
profile_button_menu_itemfunction.Codex reference: https://codex.wordpress.org/Navigation_Menus
In reply to: How to add user profile link to specific menu?Hi @djsteveb,
I donβt have that tab under menus on my other bp install Really ? Have you activated buddypress in screen options ? Just in case of… πIn reply to: How to change the “Members” color in members pageh1.main-title, h1.page-titledoesn’t exist. Why don’t you try the example at first ?Also, don’t apply template models to BP pages. These are only placeholders used internally, not ordinary WP pages.
Follow some guidelines on Codex before getting in more trouble.
In reply to: Good group chat plugin for bp?Answer from atfpodcast is here.
In reply to: Comment HTML tag Appearing in Activity Streamfyi, the read more thing is ajaxified and depending your server, and also many other little details, you may encounter some difficulties with a few miliseconds latency or some read more displaying correctly, and some other hanging. Heavily F5’ing while testing can also give stuning results…
Issue you describe let me think there is a missing closing tag somewhere. May be a wrong js, a typo error, or a small conflict with id or class name… Devil is in details…
In reply to: Best CRM + online marketing sytemIn reply to: How to change the “Members” color in members pageonce you have identified the correct element id or class, you add
!importantto the new rule you want for it.
In a child-theme style.css preferably, something like:h1.entry-title { color: #DDD!important; }Note that this example will we applied to ALL page title.
In reply to: PHP 7.0 compatibility@vinzen, wait a little or accept yes and no ;-). PHP 7.0.0 RC 1 is out since 2015/08/21…. RC version should not be used on production sites.
WordPress and BP are both guaranted to work only on the latest stable release of anything needed to get them to work. But you can test at your own risk, RC’s and trunk version are avaible for that.
php7 has a projected release date of November 2015. Next WP release is scheduled in december 2015. And BP around october…
WP devs are already using php7 for unit test. More from here (WP) and here (BP).
In reply to: Plugin for “Report Abuse or Person”?Hi @xrossgg, see if it helps https://wordpress.org/plugins/bp-moderation/