Forum Replies Created
-
In reply to: How does buddypress rewrite urls?
They’re currently slated for BP version 2.1. See here:
https://buddypress.trac.wordpress.org/ticket/4954In reply to: Edit Google's description of my siteYou can use the meta tag to do that. It goes inside your document’s
<head></head>tags. So:<meta name="description" content="My description">Note, Google doesn’t always use this. They actually use a number of different sources. Read this for more info:
@djpaul thanks, appreciate the clarification!
That indicates the key isn’t in the database. That there is the problem. Now we’ve narrowed the problem down to the key not being in the database you’ll need to investigate why.
In reply to: activation email for the second timeHi @rita84
Can you try deleting the user via the front-end to see if the problem occurs? For example, sign up as a new user, then go to
members/username/settings/delete-account– ensure you have the delete-account feature enabled in BuddyPress settings under the WordPress admin area.1. Add the code right after the
h1heading
2. You can get this from your WP dashboard. Go to Users then hover over a user and look towards the very bottom left of your browser.
3. The key will appear on the page right after theh1heading@simple-man the next step is to check that an activation key is being set. considering you don’t have access to your database, are you comfortable with PHP? Can you add this to page.php
echo get_user_meta( $user_id, 'activation_key', true );and replace
$user_idwith the user ID of the member you want activated.Then make sure what appears on screen is the exact same key as the key in the email link.
@simple-man if the activation key is in the database and the link in the email is right then the problem must be elsewhere.
1. instead of clicking on the link in the email, are you able to copy the link and paste it directly into the browser address bar? It could be the click-through that is causing the problem. Just a thought.
2. can you ensure all plugins are deactivated (aside from BuddyPress).
The activation key is stored in the user meta table. Do you have access to your database to check?
You’ll need to grant the
edit_userscapability to your custom role.See here
https://codex.wordpress.org/Function_Reference/add_cap
And here
In reply to: How I hide my un-wanted profile tabs@shanebp so does the language folder get overwritten on WP upgrade? If it does then get text is the way to go every time in my opinion. If it doesn’t then I can see no wrong in the use of a language file.
In reply to: How I hide my un-wanted profile tabs@shanebp just wondering, is there an advantage of filtering gettext over a introducing a language file and using Poedit? I was told recently using a language file isn’t a good idea. See here
In reply to: how to deny login from wordpress login pageThe question is how can you differentiate between your users before they have logged in? i.e. what makes user A different from user B before they have logged in?
After login is a different story, you can differentiate between users easily via several different methods.
In reply to: How I hide my un-wanted profile tabsHi @sundev
Have you tried using
bp_core_remove_nav_item( 'slug' )? There is also a function available in BP to remove sub-nav itemsbp_core_remove_subnav_item( 'slug', 'subnav-slug' )In reply to: how to deny login from wordpress login pageTry this:
function redirect_wp_login(){ global $pagenow; if( 'wp-login.php' == $pagenow ) { wp_redirect( home_url() . '/login/', 301 ); exit(); } } add_action( 'init', 'redirect_wp_login' );Note: Change
/login/to your login page’s slug.For some reason hooking to
template_redirectdoesn’t work so I’ve hooked in toinitinstead.In reply to: how to deny login from wordpress login pagebp_core_redirectis for redirecting anytime you like. It uses the WordPress functionwp_safe_redirect. See here for more info on it:https://codex.wordpress.org/Function_Reference/wp_safe_redirect
In reply to: Downloading Profile as a pdf?The problem is how many people will have a PDF generating toolkit installed?
In reply to: combine theme profile and bp profileYou’d need to redirect the theme profile to your BP profile, or vice versa. Do that with
bp_core_redirectand hook totemplate_redirectIn reply to: how to deny login from wordpress login pageYou could use
bp_core_redirectand hook totemplate_redirect@simple-man what’s the link in the email? Can you copy and paste an example here?
In reply to: Rearranging & Styling Member Profile TemplateYou have to create it yourself. Take a look at this article which tells you about the new template hierarchy:
In reply to: Recommended Posts@joshwinkles you could try clearing your cookies. That might have something to do with it. I haven’t had the problem for a while and can remember I cleared my cookies a while ago. Just a thought
In reply to: Recommended PostsDoes this sound like the same problem?
https://buddypress.trac.wordpress.org/ticket/5375
If so then perhaps add what you’re experiencing to that ticket.
The plugin authors are possibly busy, I’m sure they’ll get back to you if they can.
In the mean time you could try using a filter to do what you need.
https://codex.wordpress.org/Function_Reference/add_filter
Regarding when posts are published, I think
publish_postis the one you need to use.https://codex.wordpress.org/Plugin_API/Action_Reference/publish_post
So as an example, you’d add something like this to your theme’s functions.php file
function my_custom_filter_function( $post_id ) { // the post has been published so let us update the value of ass_digest_items // your value can be a string, an array, an integer etc... bp_update_user_meta( get_current_user_id(), 'ass_digest_items', 'Your value goes here' ); } add_action( 'publish_post', 'my_custom_filter_function' );In reply to: Buddypress 2.0 Template PackIt isn’t quite ready yet. You can follow the development progress on the GitHub repo: