-
Henry Wright replied to the topic creating custom link in the forum How-to & Troubleshooting 11 years ago
To get the info separately (first name and then last name) you’d have to a) query the database using MySQL or b) see if BuddyPress has functions to do this for you.
Regarding b, I’m not sure if there is anything like that available. Perhaps someone else here will know?
-
Henry Wright replied to the topic creating custom link in the forum How-to & Troubleshooting 11 years ago
To get the info separately (first name and then last name) you’d have to a) query the database using MySQL or b) see if BuddyPress has functions to do this for you.
Regarding b, I’m not sure if they anything like that is available. Perhaps someone else here will know?
-
Henry Wright replied to the topic Notifications Behaviour in the forum How-to & Troubleshooting 11 years ago
Ticket 6057 looks as though it’s being actively investigated. My advice is to give the core team time to develop a patch and then perhaps help test once something becomes available.
-
Henry Wright replied to the topic Notifications Behaviour in the forum How-to & Troubleshooting 11 years ago
-
Henry Wright replied to the topic creating custom link in the forum How-to & Troubleshooting 11 years ago
How exactly you get the first and last name variables depends on the context in which you’re using the link. It’s important to state, the variables aren’t always available.
Some examples, when the user clicks submit, you could access the first name and last name server side via
$_POSTvariables.$_POST['field_1']for first name and$_POST['field_…[Read more] -
Henry Wright replied to the topic creating custom link in the forum How-to & Troubleshooting 11 years ago
How exactly you get the first and last name variables depends on the context in which you’re using the link. The variables aren’t always available. For example, when the user clicks submit, you could access the first name and last name server side via
$_POSTvariables.$_POST['field_1']for first name and$_POST['field_15']for last name…[Read more] -
Henry Wright replied to the topic creating custom link in the forum How-to & Troubleshooting 11 years ago
How exactly you get the first and last name variables depends on the context in which you’re using the link. The variables aren’t always available. For example, when the user clicks submit, you could access the first name and last name server side via
$_POSTvariables.$_POST['field_1']for first name and$_POST['field_15']for last name.…[Read more] -
Henry Wright replied to the topic creating custom link in the forum How-to & Troubleshooting 11 years ago
I just wanted to see the code you linked to. I try to avoid visiting bit.ly links when posted in forums as who knows what lives there 🙂
Where abouts are you using the link you’re trying to create?
-
Henry Wright replied to the topic creating custom link in the forum How-to & Troubleshooting 11 years ago
Just looked over the code you’ve posted. That doesn’t really help. That’s just the code to display the registration form for the user to complete when signing up.
-
Henry Wright replied to the topic creating custom link in the forum How-to & Troubleshooting 11 years ago
Your registration page code which you linked to.
-
Henry Wright replied to the topic creating custom link in the forum How-to & Troubleshooting 11 years ago
Can you post your code here?
-
Henry Wright replied to the topic creating custom link in the forum How-to & Troubleshooting 11 years ago
Hi @tsabar
You’ll need to insert the variables using PHP. So for example, if your variable is
$emailand you want to insert it into the link, you’d do it like this:a href=”http://gowoa.me/i/XXX?email=<?php echo $email; ?>&firstName=[FIRST_NAME_HERE]&lastName=[LAST_NAME_HERE]”>Register Now /a>
(i removed opening tags so the code would show as… -
Henry Wright replied to the topic creating custom link in the forum How-to & Troubleshooting 11 years ago
Hi @tsabar
You’ll need to insert the variables using PHP. So for example, if your variable is
$emailand you want to insert it into the link, you’d do it like this:a href=”http://gowoa.me/i/XXX?email=<?php echo $email; ?>&firstName=[FIRST_NAME_HERE]&lastName=[LAST_NAME_HERE]”>Register Now /a>
(i removed opening tags so the code would show as… -
Henry Wright replied to the topic creating custom link in the forum How-to & Troubleshooting 11 years ago
Hi @tsabar
You’ll need to insert the variables using PHP. So for example, if your variable is
$emailand you want to insert it into the link, you’d do it like this:a href=”http://gowoa.me/i/XXX?email=<?php echo $email; ?>&firstName=[FIRST_NAME_HERE]&lastName=[LAST_NAME_HERE]”>Register Now /a>
(i removed opening tags so the code would show as… -
Henry Wright replied to the topic WHERE DO I EDIT IT TO ALLOW PROFILE IMAGES? in the forum How-to & Troubleshooting 11 years ago
Try typing the link into your browser. You should be able to see an ‘upload image’ button. So for example, type the following:
http://your-website.com/members/your-username/profile/change-avatar
-
Henry Wright replied to the topic WHERE DO I EDIT IT TO ALLOW PROFILE IMAGES? in the forum How-to & Troubleshooting 11 years ago
That’s odd. You should be given the option to upload so there’s certainly a problem that needs looking at. Usually you can just go to http://example.com/members/username/profile/change-avatar/ and upload your avatar. Your theme should provide a link to this page.
1. If that link is not accessible then there could be a problem with BuddyPress…[Read more]
-
Henry Wright replied to the topic Hook for when a user first logs in in the forum How-to & Troubleshooting 11 years ago
@ndh01 what does
new_memberhave to do withbp_get_user_last_activity()? -
Henry Wright replied to the topic WHERE DO I EDIT IT TO ALLOW PROFILE IMAGES? in the forum How-to & Troubleshooting 11 years ago
Profile images should be allowed by default although where you go to upload your image will depend on the theme you’re using. What theme are you using?
-
Henry Wright replied to the topic Hook for when a user first logs in in the forum How-to & Troubleshooting 11 years ago
@shanebp‘s approach is probably the simplist. Did anyone manage to test?
-
Henry Wright replied to the topic Hook for when a user first logs in in the forum How-to & Troubleshooting 11 years ago
Here’s my stab at it, in actual code (demonstrating what I mean by my rambling above):
function my_add_meta( $user_id, $key, $user ) {
add_user_meta( $user_id, 'first_login', 'not_yet' );
}
add_action( 'bp_core_activated_user', 'my_add_meta', 10, 3 );function my_check_meta( $redirect_to, $redirect_to_raw, $user ) {
$meta =…[Read more] - Load More
@henrywright
Active 1 year, 10 months ago