Forum Replies Created
-
@aishing – Try putting the code after the register_sidebars code in your theme’s functions.php. Then see if you get an error. Can you please paste the error if you get one?
Btw, you should be creating a child theme to add custom code snippets, otherwise when you upgrade BP, you’ll lose your changes.
@aishing – Check out the following code:
https://buddypress.org/community/groups/how-to-and-troubleshooting/forum/topic/how-to-make-a-private-community/?topic_page=2&num=15#post-44616Add it to your theme’s functions.php file.
In reply to: Game Uploading/Downloading SectionIf your site relies on Groups, you can try out the BP Group Documents plugin:
https://wordpress.org/extend/plugins/buddypress-group-documents/Using this plugin, your users can upload documents to a group. You can set the plugin to upload certain file extensions like .ZIP or whatever.
This should help:
https://buddypress.org/community/groups/requests-feedback/forum/topic/buddypress-org-location-in-the-profiles/#post-51674The code is from Andy himself.
In reply to: Changing colors of menu tabs and admin barFirst, you’ll need to know a little bit about CSS to override the color scheme in the default BP theme.
Secondly, you’ll need to create a child theme to apply your new CSS changes. Read this guide to build a child theme from the default BP theme:
https://codex.buddypress.org/how-to-guides/building-a-buddypress-child-theme/Next version will probably not include drop down menus in the theme, perhaps in BP 1.3 to take advantage of the new WP custom menus. For now, you’ll have to add this yourself by customizing the theme and applying a little jQuery trickery.
There are a ton of tutorials on jQuery drop down menus out there; you should be able to find one that fits your needs.
If you have no experience customizing themes, you might find this a little daunting!
In reply to: Forum ColorsIt depends on your monitor. It looks fine on my calibrated LCD monitor.
Have you tried calibrating your monitor?
In reply to: A Webinar tool for Buddypress?Thanks for mentioning BigBlueButton! Looks like Adobe Acrobat Connect! Going to try out the demo some more!
Use a customized language file.
A guide can be found here:
https://codex.buddypress.org/how-to-guides/customizing-labels-messages-and-urls/In reply to: Members cannot send private message to site adminTry adding the following in wp-config.php:
define( 'BP_ENABLE_USERNAME_COMPATIBILITY_MODE', true );This should fix your problem.
In reply to: Problem with AvatarMake sure you actually do have WP Super Cache uninstalled and removed:
https://wordpress.org/extend/plugins/wp-super-cache/other_notes/In reply to: Irrational Games AchievementsDefinitely customized. They’re using BP 1.1.3.
This just goes to show what you can do with imagination and theme customization!
In reply to: Help Troubleshooting My Broken RegistrationHave you tried using the BP default theme? That’s the easiest way to figure out if your child theme is the problem.
Also, if you’re using WPMU, check the wp-content/mu-plugins folder.
@thegreatdaysho – Login to your FTP and navigate to /wp-content/plugins. Rename the BuddyPress Template Pack plugin directory to something else. Then reload your site.
FYI, I deleted your other topic because of double posting.
@thekmen – This could be fixed in BP 1.3-bleeding version, but for the 1.2 branch, please report it as a bug.
@walid3 – Are you saying that when you apply the define line, that your admin account is still /members/admin?
Or are you saying that activity stream items for “admin” link to “/members/admin”? If this is your problem, then that is expected because activity stream items are cached in the database. New activity items should correctly use the root profile URL.
In reply to: Using custom is_user function to hide pagesYou could probably hook into the get_header action, do your conditional check and if the person is a mentor, then show the page, otherwise show the registration page or whatever.
Modify the function listed in this thread:
https://buddypress.org/community/groups/how-to-and-troubleshooting/forum/topic/how-to-make-a-private-community/?topic_page=2&num=15#post-44616Hopefully it gives you a few pointers.
In reply to: How to Get the Value of a Profile FieldGlad you figured it out.
FYI, the community takes time out of their day to help people and write documentation for free. Contrary to popular belief, we are not robots!
We need more people like you to contribute to the codex, after all this is an open-source project. The more people that contribute, the more rich the documentation will be — open source documentation!Also, sometimes forum posts are missed due to the amount that gets posted. A simple post to bump your thread after 24 hours will help bring attention to your issue.
In reply to: “My Favorites” Plugin@slaffik – Hmm… make sure you’re using the latest code as the older ones I posted on Pastebin did not hook into the right action.
Also double check the wp_bp_activity table and make sure for the “new_blog_post” type that the item_id is the blog ID and the secondary_item_id is the post ID on the blog.
One thing that you pointed out to me is I need to add some type of check to see if the activity ID exists for the blog post in question, if it does, then output the favorite button, if doesn’t, it should output nothing.
In reply to: Plugin for customizing language file?There is no real guideline apart from making sure your plugin is BP-aware.
You can check out how BP’s internal code is structured as well some of the most popular BP plugins.
A BP plugin is basically a WP plugin so you can also read up on WP’s general guidelines.
Also check out:
https://codex.wordpress.org/Developer_Documentation#Plugin_Development@walid3 – Add the following line to wp-config.php:
define ( 'BP_ENABLE_ROOT_PROFILES', true );For more nifty internal config settings, check out this page:
https://codex.buddypress.org/how-to-guides/changing-internal-configuration-settings/In reply to: php code for output username in activity stream@blacktattoo – You could try the BP Usernames Only plugin if you want to replace the display name with the username:
https://wordpress.org/extend/plugins/buddypress-usernames-only/If you want to add it to the activity content, you could apply a filter to “bp_get_activity_content”.
In reply to: BP Installed: Registration Missing?In reply to: “My Favorites” Plugin@slaffik – Can you try creating a new blog post and then check the favorite button on that blog post?
When you mouseover the favorite button, you should see:
hxxp://domain.com/activity/favorite/ACTIVITY_ID/?_wpnonce=xxx.If the activity ID is blank, that means the code couldn’t find an activity id for the blog post.
I’ve noticed that some old blog posts do not work because the activity item_id and secondary_item_id in the database are wrong.
In reply to: “My Favorites” Plugin@slaffik – The code doesn’t do anything by itself. Sorry for not being clear!
You also need to add the favorite / unfavorite code from bp-default/activity/entry.php to each blog theme’s single.php.
I could have hooked the favorite button to “the_content”, but decided to give theme designers some flexibility this way.
In reply to: “My Favorites” PluginHere’s a tweaked version of @dnxpert ‘s code that works on WPMU (don’t use this on single WP):
http://pastebin.com/Qfichf0t (paste in wp-content/plugins/bp-custom.php) (updated 06/12/2010 – 12:27am GMT)The positives with my code is you can use the favorite / unfavorite code from bp-default/activity/entry.php verbatim without duplicating the favorite functions.
For the devs: If anyone knows a way around using the switch_to_blog() function, let me know; I used switch_to_blog() because of the generated nonce code.