Search Results for 'buddypress'
-
AuthorSearch Results
-
August 26, 2015 at 7:17 pm #243673
In reply to: Change “title” attribute in Who’s Online Widget
danbp
ParticipantThe 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 ! π
August 26, 2015 at 6:09 pm #243670In reply to: Create Function When Favorite Button Clicked
danbp
Participant…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 !
August 26, 2015 at 5:59 pm #243668In reply to: Removing the Member Navigation Menu
Ben Riga
ParticipantI poked around and re-read the codex and watched the BuddyCamp Brighton video with Hugo Ashmore (the video was really good btw).
Unfortunately I am still stuck. I suspect I’m missing some little but fundamental thing but can’t figure out what that is.
My child theme folder only includes three files:
twentyfourteen-child\buddypress\members\single\home.php
twentyfourteen-child\functions.php
twentyfourteen-child\style.csshome.php is an exact duplicate of the file at plugins\bp-themes\bp-default\members\single\home.php
styles.css is empty (except for comments) and functions.php only contains:
add_action( ‘wp_enqueue_scripts’, ‘theme_enqueue_styles’ );
function theme_enqueue_styles() {
wp_enqueue_style( ‘parent-style’, get_template_directory_uri() . ‘/style.css’ );
}I’m baffled. Anyone have an idea for me to try or some additional how-to docs on how to properly setup a child them for both wp and bp?
Thanks,
BenAugust 26, 2015 at 5:43 pm #243666shadow_boi
Participantbbpress sitewide forum.
oh right, forget to mention it, when i mention a member in a forum topic, i do not get mention suggestions when typing a letter or two.
same thing here when i are typing in the buddypress.org reply editor, when i do @danbp, i dont get @ suggestions.
@danbp, i have mentioned you in this reply, do you get notification saying i mentioned you?August 26, 2015 at 5:05 pm #243662shadow_boi
ParticipantHi @danbp,
i have tried on other default wordpress theme, the mentioned users notification does not work on any of them.
i actually checked the notifications page, there has no notification for the mentioned action. so i dont think it might be a theme related issue. it seems like the notification event is not recorded in DB.so to recap of what works and what does work:
the notification does not work if I mention someone in forum reply or in a forum topic.
Notification works for when i mention someone in buddypress activity streams.August 26, 2015 at 4:30 pm #243660danbp
Participantcheck 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.
August 26, 2015 at 4:26 pm #243659In reply to: Account Activated
danbp
ParticipantAugust 26, 2015 at 4:22 pm #243658In reply to: How to change the “Members” color in members page
danbp
Participantbuddypress.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.
August 26, 2015 at 3:31 pm #243653In reply to: Create Function When Favorite Button Clicked
danbp
Participant@bfchris2, sorry, the file is here /bp-legacy/buddypress-functions.php
August 26, 2015 at 3:12 pm #243648In reply to: Terms & Conditions Checkbox
danbp
Participantconsider 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.
August 26, 2015 at 2:38 pm #243644In reply to: Create Function When Favorite Button Clicked
bfchris2
Participant@danbp..
Thanks. I don’t have buddypress-functions.php in my legacy/buddypress folder? Any thoughts?
bp-activity-actions.php I do have however.-c-
August 26, 2015 at 2:32 pm #243643In reply to: Create Function When Favorite Button Clicked
danbp
ParticipantAugust 26, 2015 at 2:10 pm #243642cplouffe
ParticipantSorry for the late reply – I was on vacation. Thank you for referring me to that URL, Hugo. I will admit that I should have visited the ‘Getting Started’ page before installing BuddyPress and looked for big picture issues in the WordPress installation as opposed to zoning in on my specific problem.
I don’t know if an error message could be added letting the user know when the GD module is not installed on the server (perhaps this could be difficult…), but having some sort of indication of why the error was encountered would be helpful in debugging.
Thanks again,
CamAugust 26, 2015 at 12:41 pm #243640In reply to: Creating marketplace using buddypress
Paul Bursnall
Participant@olliecard I would suggest after reading your requirements you could save yourself a good few headaches by considering using Ultimate Member over Buddypress. If I understand what you need correctly, it has a stronger base than BP in this scenario.
August 26, 2015 at 11:11 am #243635In reply to: How to change the “Members” color in members page
CreationP
ParticipantI am using xplicit for a theme. I also use a cache plugin that is not caching for logged in users.
I am taking local backups and restoring if something does not feel good. Through all my testing and experimentation with buddypress nothing have been changed as I revert all changes that do not work.
Now that you mentioned templates, is it possible to find somewhere already created templates with different color profiles and change them from there?
I found yesterday the buddypress.css maybe the answer lies there? I don’t mind redoing all the work every update as I only need to change 2 titles. Everything else fits to us.
August 26, 2015 at 10:53 am #243634jessy
ParticipantFor all private social network, but login and register page is available to access.
add_action( 'template_redirect', 'redirect_to_login_page_for_premium_members' ); function redirect_to_login_page_for_premium_members() { if( (!is_page_template("loginpage.php")) && (!is_user_logged_in()) && (!is_page("Register") )) { $page = get_page_by_title( 'Login' ); wp_redirect(get_permalink($page->ID)); exit(); } }Restrict buddypress components just for logged-in users:
*UNTESTEDadd_action( 'template_redirect', 'redirect_to_login_page_for_premium_members' ); function redirect_to_login_page_for_premium_members() { if( (is_buddypress()) && (!is_user_logged_in()) ) { $page = get_page_by_title( 'Login' ); wp_redirect(get_permalink($page->ID)); exit(); } }August 26, 2015 at 2:36 am #243631In reply to: Removing the Member Navigation Menu
Ben Riga
ParticipantThanks for the quick response, shane.
I think I may need some more remedial help though as in trying to do that I broke the page.
I am using the twentyfourteen theme as a base so have created a child of that called twentyfourteen-child.
To override the home.php page like you suggested. I created a new file at:
twentyfourteen-child\buddypress\members\single\home.phpEven just copying the exact same file over from the buddypress members\single folder broke the page (lost most of the styling and item body and left sidebar etc) so clearly I’m doing this wrong.
I think I need to have a better idea of how template overriding works. I’ve searched through the codex but have not been able to find anything that helps. What’s the best place to learn more about that? A how-to tutorial or something like that would be great.
Thanks again for the help and support,
BenAugust 26, 2015 at 12:55 am #243624In reply to: How to change the “Members” color in members page
danbp
ParticipantWhich 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.
August 26, 2015 at 12:12 am #243621In reply to: thumb and full avatars are the same size -_-
Henry Wright
ModeratorYour theme might be Customizing BuddyPress Avatars?
August 25, 2015 at 11:59 pm #243617shadow_boi
Participantokay, i tried the following:
tag user in BuddyPress Activity, user could receive notification
tag user in bbpress forum post/comment, user could not receive notificationit seems like tagging user in forum does trigger notification, can anyone here confirm if this is expected behaviour?
if i want to trigger notification when user is tagged in forum post/comment, what should i do? thanks
August 25, 2015 at 11:51 pm #243615In reply to: How to change the “Members” color in members page
CreationP
ParticipantI’m trying and trying and can’t find any lead on that.
The codex is complex and I cannot understand the child theme concept. Is it a child theme of the bp or a child theme of the theme I use (explicit)? If it is of the theme I use how can i make it to incorporate buddypress?
To add to the problems, alt-tab is a website that receives 1000+ visits/day and I cannot put it in maintenance mode in order to work on my leisure.
I hate to ask you that, and I know you have better things to do rather than answering questions, but can you please take me by the hand and lead me to solving this problem as I am unable to solve it on my own. Especially in a live environment.
When I firebug the “Members” title in the alt-tab.gr/members page I get the following:


I am at a loss here…
August 25, 2015 at 10:46 pm #243612In reply to: How to add user profile link to specific menu?
danbp
ParticipantHi @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… πAugust 25, 2015 at 10:20 pm #243611shadow_boi
Participantthanks for you reply.
i thought that is buddypress feature so i asked here.
i have also posted the same thing in bbpress now. hopefull will get an response.August 25, 2015 at 8:40 pm #243605In reply to: How to add user profile link to specific menu?
djsteveb
Participant@dayan89 – with one of my bp installs I can go to appearance -> menus.. select main-menu (or topmenu, or whatever you called the one you want on top) – click select.. then on the left side I had a tab for buddypress.. with cool links for dynamic links like “my profile” – login.. etc..
click to add to your menu, save..
easy now these days..for some reason I don’t have that tab under menus on my other bp install – so your setup may vary.
August 25, 2015 at 8:02 pm #243603In reply to: WP profile fields with BP XProfile Sync
shaunik
ParticipantThanks for advice, I’ll look into script available on forum.
Any reviews on this plugin -
AuthorSearch Results