Home › Forums › Front End PM PRO › Instance of message box in popup
- This topic has 15 replies, 2 voices, and was last updated 6 years, 6 months ago by Shamim Hasan.
- AuthorPosts
- May 14, 2019 at 3:30 pm #24538AlexandraParticipant
Hi, Can you please tell me if its possible to add multiple message boxes in a popup in one page. I tried that, but when i submit the message then it redirects me to an error page. Please see my attached design which I want to integrate.
Best Regards
Attachments:You must be logged in to view attached files.May 14, 2019 at 9:43 pm #24559Shamim HasanKeymasterWhich shortcode/code you are using to show those “Message” buttons.
May 15, 2019 at 1:12 am #24566AlexandraParticipantI tried to use this one fep_shortcode_new_message_form
May 15, 2019 at 1:16 am #24569AlexandraParticipantWhat i am doing is, i add user ids on each message button, and on click of it, i load the shortcode based on that user id in popup, the form shows but with no styling and also it doesn’t work.
May 15, 2019 at 6:10 am #24596Shamim HasanKeymasterIs it possible for you to give me a link of that page?
If yes, use https://sp-test1.arogga.co/sensitive-information/ (give me a test user credentials also so that i can login)May 20, 2019 at 6:20 pm #24786Shamim HasanKeymasterThank you for url and credentials.
How did you added those message buttons? What code you added there?May 20, 2019 at 11:58 pm #24807AlexandraParticipantI am adding following code using ajax
[fep_shortcode_message_to to=”[i add user’s nicename here]” subject=””]
May 21, 2019 at 9:57 am #24819Shamim HasanKeymasterIt does not seems you have added it in right way. Nothing is outputted from this shortcode there. If you add
Test Contentinstead of this shortcode, does that output there?
Do your theme/plugin have any documentation how to add content there?Can you give me full code of that area (including ajax and table code)?
May 22, 2019 at 3:35 pm #24899AlexandraParticipantOkey now check please the form is being showed in popup but after submitting it, it redirects to a blank page with success message.
May 22, 2019 at 4:53 pm #24902Shamim HasanKeymasterYou are adding form via ajax. so no script is added. Show form model without ajax. or add
wp_enqueue_script( 'fep-shortcode-newmessage' );in that page somewhere.May 29, 2019 at 3:24 pm #25188AlexandraParticipantThat didn’t worked for me. But i managed a solution.
Now my main and very important requirement is i want to also add admin as a recipient in this shortcode fep_shortcode_new_message_form how can i do that?
May 30, 2019 at 12:20 am #25199Shamim HasanKeymasterPlease see https://sp-test1.arogga.co/docs/front-end-pm/shortcode/fep_shortcode_new_message_form/
suppose your admin user_nicename isadminthen add like following
[fep_shortcode_new_message_form to="admin"]May 30, 2019 at 1:49 am #25201AlexandraParticipantNo, that’s not what i am asking, I want to add multiple recipients, so I want something like this [fep_shortcode_new_message_form to="admin,user1,user2"]
May 30, 2019 at 5:31 pm #25223Shamim HasanKeymasterThat shortcode does not support multiple recipients.
If you want to add a user (eg admin) to all messages from that shortcode That is possible.But if you want to add different user to different messages then that need to be custom coded.
May 31, 2019 at 1:00 am #25236AlexandraParticipantYes please tell me that how i can add admin to all messages from this shortcode.
- AuthorPosts
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.