it’s always the same for each link ? YES
OK , I didn’t know ! thanks
Groupes is french. If you use your mentionned code, you have to enter the slug used on your site, in your language. If it’s english, try ‘groups‘ instead.
Of course, I would have correct it myself.
with your code I managed to insert the slug article
$href = get_home_url().'/groupes/'.get_the_slug($id).'/join?_wpnonce=6b826ee77d';
But I will be stuck with the nonce cause it’s proper for each group :-/
Also this will never work like you expect.
bp_loggedin_user_domain() output gives your-site.com/members/username/groups/
OK thanks for the precision
And i suppose there is no utility to invite from within a post, a user to join a group of which he’s already member of ?!!!
Can you better explain the relation between post, author and join group ?
Do you mean, an author can invite readers to join (selectively) a group he’s member of ?
You’re right, I m going to clarify my needs by the begining ! 😉
In fact, I want to post some articles to talk about some contests / tests.
Only identified buddypress members will be able to see this articles (I make a restriction on them)
At the end of the articles, I wanted to add a button , that give them the possibility to participate to the test.
In fact, I don’t car using groups… I just need to register people who wants to participate (and then be able to do an export with export user data plugin that I m using actually)
I thought using groups to qualify this people, cause I thought it was the easier way… (When I write an article about a new test, I create a new group… So people when they click on participate button, update automatically their profile by joining the group related to the article – that’s why I wanted to put the same slug for group and article)
My final aim is just to export these infos… (complete profile informations and groups particpations)
So you’re right if someone is already member of a group (so has already clicked on this button), he shouldn’t be able to see the button (or ideally, a different message “you have always sent your participation”)
I hope it’s a little more comprehensible !
If you think group is not the good solution, I m listening 😉
My final purpose is just that user can be tagged as participant and that I can export this information)
Thanks a lot to have read this cause it was a bit long 😉