Php List Plugin - Open Form in Modal Window

tiagovareta

Member
Hi,

In the application I'm developing, I intend to have a button to send sms's to my contacts.
The gateway I use for sending sms is: https://smsgateway.me/

The idea is to have a button (php list plugin), which opens a form, in this form "based on a list" that would have:
- Combo to Choose the Sending Cell;
- Recipients (depending on the checkbox's selected);
- SMS to Send.

How can I open this form in a modal / popup window via the "php list plugin" button?
 
You won't be able to do that with the PHP button. In order to pop up an interactive window, you'd have to write a congtroller / model / view for it. The PHP plugin simply submits the ids of the selected rows to the server, and runs your code there.

Have you looked at the list email plugin? I extended that a year or so ago to be able to send SMS.

You'd need to add a gateway for it, by copying one of the existing ones in components/com_fabrik/helpers/sms_gateways and adapting it to your needs.

-- hugh
 
You won't be able to do that with the PHP button. In order to pop up an interactive window, you'd have to write a congtroller / model / view for it. The PHP plugin simply submits the ids of the selected rows to the server, and runs your code there.

Have you looked at the list email plugin? I extended that a year or so ago to be able to send SMS.

You'd need to add a gateway for it, by copying one of the existing ones in components/com_fabrik/helpers/sms_gateways and adapting it to your needs.

-- hugh

Hi Cheesegrits,

Thanks for your response!

The situation is that I am developing a system that can be used by several users, and I have a personal definitions table, where each user registers the email, password and id of the telephone to use. When you are sending messages you will read this data to send the sms. Each user will have a different ...

When using the PHP Plugin or Email Plugin, can I pass fields from the table / list? Ie pass fields through the "defining variables with placeholders" list to php files?
 
Have you looked at the list email plugin?

You can use placeholders for the From in SMS mode for API key / password / from #, but those placeholders would have to come from per-row data in the list itself.

The list email plugin is highly configurable, if a little confusing. It can work in two modes - either using the list as the source of the data to send, and getting the recipients either from statuc config or from an "address book" (you can tell us another table to use for that, and we give a selectable list of recipients in the popup) ... or you can use the list as the address book, to select the recipients from, and send configurable content.

Sounds like you need to do something kind of half way.

Anyway - my suggestion is play around with the list plugin. See how close you can come with that.

-- hugh
 
We are in need of some funding.
More details.

Thank you.

Members online

No members online now.
Back
Top