Skip to:
Content
Pages
Categories
Search
Top
Bottom

Invite friend slug

  • @systemq

    Member

    Hi
    I am facing a problem with the slug of invite a friend i had invite form in member activity page but when i send invitation it show page not found error.but when i use this
    http://psychicscircle.com/members/admin/invite-anyone/sent-invites/send/” method=”post”>
    Its working perfect for admin i need this slug dynamically for all user please sort out my problem what change i will make on it
    “displayed_user->domain . $bp->invite_anyone->slug . ‘/sent-invites/send/’ ?>” method=”post”>

    Thanks
    Regards
    System baseline

Viewing 4 replies - 1 through 4 (of 4 total)
  • @shanebp

    Moderator

    Maybe it’s a typo, but it should be :
    $bp->displayed_user->domain

    If you still have trouble, show us the actual url being created for your form action.

    @systemq

    Member

    The actual url is <form id="invite-anyone-by-email" action="displayed_user->domain . $bp->invite_anyone->slug . ‘/sent-invites/send/’ ?>” method=”post”> in by-email.php but i use this form in member activity page when i use above slug it show me error so in place it i use
    “http://psychicscircle.com/members/admin/invite-anyone/sent-invites/send/” method=”post”>
    but it happen only for admin not for any other login user what i will do to make it dynamically for all user.

    @shanebp

    Moderator

    You need to use php, so something like:

    `
    <?php
    $global $bp; // this should already be set on an activity page, but just in case
    $action_url = $bp->displayed_user->domain . $bp->invite_anyone->slug . ‘/sent-invites/send/’;
    ?>

    <form id="invite-anyone-by-email" action="” method=”post”>
    `

    @systemq

    Member

    I had try this
    <form id="invite-anyone-by-email" action="displayed_user->domain . $bp->invite_anyone->slug . ‘/sent-invites/send/’; ?>” method=”post”>
    it show me page not found and below slug
    http://psychicscircle.com/sent-invites/send/?invite_anyone_email_addresses=admin%40gmail.com&invite_anyone_custom_subject=An+invitation+to+join+the+psychicscircle+community.&invite-anyone-submit=Send+Invites+

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Invite friend slug’ is closed to new replies.
Skip to toolbar