-
Henry Wright replied to the topic BP Default Cookie Usage in the forum Miscellaneous 11 years, 5 months ago
Hi @packjazz,
One of the main uses of cookies within BuddyPress is in template message display. In this case, cookies are used to store generated error or success messages and display them after the page has been reloaded.
If you try searching the BP code base for
setcookie, you should find how else BP utilises cookies.Note: WordPress probably…[Read more]
-
Henry Wright replied to the topic Change "private message link" in the forum How-to & Troubleshooting 11 years, 5 months ago
There is a plugin available which does something similar. Check out BuddyMessageUX by Philopress. It allows you to stay on a profile page and send messages.
-
Henry Wright replied to the topic How to change Button Color in the forum Creating & Extending 11 years, 5 months ago
Hi @jolinar07
You need to find the theme’s style.css file and add your CSS to that.
-
Henry Wright replied to the topic Buddy Press Notification Bar & Woocommerce in the forum How-to & Troubleshooting 11 years, 5 months ago
I think WooCommerce might disable the admin bar but I’m not entirely sure why. Try adding this to your theme’s functions.php file:
add_filter( 'woocommerce_disable_admin_bar', '__return_false' ); -
Henry Wright replied to the topic Problems with "loggedin_user_id()" in code in the forum How-to & Troubleshooting 11 years, 5 months ago
To explain what I mean’t, see this example:
-
Henry Wright replied to the topic Problems with "loggedin_user_id()" in code in the forum How-to & Troubleshooting 11 years, 5 months ago
get_current_user_id()returns anint. Not sure if the type in this case will make much difference but perhaps your function is expecting a string?Try doing this:
$user_id = get_current_user_id();
$user_id = (string)$user_id;Ref: https://codex.wordpress.org/Function_Reference/get_current_user_id
-
Henry Wright replied to the topic Problems with "loggedin_user_id()" in code in the forum How-to & Troubleshooting 11 years, 5 months ago
Sorry, I didn’t see you’d posted the link to your code. I don’t think the 500 Internal Server Error is being caused by your use of those functions. Perhaps the error you’re getting is a result of code elsewhere?
-
Henry Wright replied to the topic Problems with "loggedin_user_id()" in code in the forum How-to & Troubleshooting 11 years, 5 months ago
I’m not sure what exactly is on line 8 but make sure you use opening and closing PHP tags like this:
<?php bp_loggedin_user_id(); ?><?php get_current_user_id(); ?>
-
Henry Wright replied to the topic Where to put language files when customising labels and messages? in the forum How-to & Troubleshooting 11 years, 5 months ago
The reason I ask the question is due to the following reply I received on a question I asked here
The gist of it was the use of a language file is bad practice and any translations made in a language file are overwritten on WordPress upgrade. However, I’m not sure I quite agree. What are your thoughts?
-
Henry Wright's profile was updated 11 years, 5 months ago
-
Henry Wright started the topic Where to put language files when customising labels and messages? in the forum How-to & Troubleshooting 11 years, 5 months ago
In the Customizing Labels, Messages, and URLs article under step 2 of Labels and Messages it says:
If the /wp-content/languages/ folder does not exist, create it!
I’m wondering, does the
/wp-content/languages/folder get deleted when WordPress is upgraded? -
Henry Wright replied to the topic add friend button in the forum Installing BuddyPress 11 years, 5 months ago
Hi @beda69
You should be able to add
<?php bp_add_friend_button(); ?>to your member template. If you don’t have a member template set-up, check out the Template Hierarchy article which will show you how to create one. -
Henry Wright replied to the topic I want to create a social network on buddypress in the forum Miscellaneous 11 years, 5 months ago
Hi @richonbp
(1) A combination of PHP, JavaScript, jQuery and Ajax is the usual.
(2 – 4) Depends on your requirements
(5) Usually a combination of WordPress and BuddyPress to begin with. Then any plugins you need. You might also want to choose a themeHope this helps!
When you’re ready to go ahead, try posting your requirements and some contact…[Read more]
-
Henry Wright replied to the topic BP throwing jQuery error trying to close sitewide notice on homepage? in the forum How-to & Troubleshooting 11 years, 5 months ago
I’m no expert in jQuery but I think buddypress.js uses
jqto reference jQuery. And it’s perfectly OK to do that if you do something like thisvar jq = jQuery;(which buddypress.js does). I don’t think the problem is with buddypress.js. Instead, check jQuery is enqueued on your homepage. And also check you’re enqueueing it just once. -
Henry Wright replied to the topic BP throwing jQuery error trying to close sitewide notice on homepage? in the forum How-to & Troubleshooting 11 years, 5 months ago
Hi @rossagrant
Try using Pastebin
-
Henry Wright replied to the topic Problem with Registering a new user in the forum How-to & Troubleshooting 11 years, 5 months ago
A good place to check out the BuddyPress code is on the GitHub repo. Signups are managed by the BP_Signup class.
-
Henry Wright replied to the topic Problem with Registering a new user in the forum How-to & Troubleshooting 11 years, 5 months ago
Just a thought, under Settings > General > where it says ‘Membership’ make sure ‘Anyone can register’ is checked.
-
Henry Wright replied to the topic Problem with Registering a new user in the forum How-to & Troubleshooting 11 years, 5 months ago
There seems to be something interfering with the BP registration process so the task is to find out what. This unfortunately can be quite tedious but to my knowledge it’s the only way of locating the problem.
1) Can you try using a theme such as Twenty Thirteen then test the registration process again?
2) If the theme-change didn’t work, can you…[Read more]
-
Henry Wright replied to the topic Problem with Registering a new user in the forum How-to & Troubleshooting 11 years, 5 months ago
Hi @jonty800
Can you list all of the plugins you’re using and also which theme?
-
Henry Wright replied to the topic Buddypress and mqtranslate in the forum Third Party Plugins 11 years, 5 months ago
Hi @heatherkirk
I’ve never used mqtranslate but there may be an alternative way to customise those strings. Check out the Customizing Labels, Messages, and URLs article which shows you how to set up a language file. Hopefully that’ll help?
- Load More
@henrywright
Active 1 year, 10 months ago