How to create dynamic links to send message to a group?


Home Forums Front End PM PRO How to create dynamic links to send message to a group?

This topic is: Not Resolved
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #44863
    daryl.brown
    Participant

    I have created a registration plugin with meta-key/value categories. How would I format a direct hyperlink for users to send messages to a group? I plan to mirror these categories to groups and then display a dynamic hyperlink to send a message to everyone in that category.

    Kind Regards
    Daryl

    #44897
    Shamim Hasan
    Keymaster

    Can you please try following code to show link

    <a href="<?php echo fep_query_url('newmessage', array('fep_send_to_check' => 'group', 'fep_gm_to' => GROUP_ID ) ); ?>">Send Message</a>
    

    Change GROUP_ID with your actual group id.

    Let me know.

    #44960
    daryl.brown
    Participant

    Thanks I will have to experiment it when I can get myself some time to try it.

    Kind Regards

    #45180
    daryl.brown
    Participant

    I still haven’t got round to trying this method yet. Is there a shortcode for sending messages to groups? I most definately know how to create those easily with the do_shortcode if that is possible?

    Thank you
    Kind Regards
    Daryl

    #45185
    Shamim Hasan
    Keymaster

    Yes, you can use my above provided code to create a shortcode using do_shortcode

    #45211
    daryl.brown
    Participant

    Thanks I worked out how to do this from your suggestion above by URL, I did not try the shortcode version yet but that probably doesnt make a difference to my dillemna? This works but only if the user has already manually joined the group prior.

    Is there a way with the dynamic links for the user to add themselves to the group within this same link? It would be convenient in my case if the users could click on one dynamic link that adds them to the chat group and allows them to send the message in one go.

    Thank you
    Kind Regards
    Daryl

Viewing 6 posts - 1 through 6 (of 6 total)

You need to purchase ‘Front End PM PRO’ to create topic in this support forum.

If you already purchased ‘Front End PM PRO’ please LOGIN.