• Hello Fabrik Community

    Fabrik is now in the hands of the development team that brought you Fabrik for Joomla 4. We have recently transitioned the Fabrik site over to a new server and are busy trying to clean it up. We have upgraded the site to Joomla 4 and are running the latest version of Fabrik 4. We have also upgraded the Xenforo forum software to the latest version. Many of the widgets you might have been used to on the forum are no longer operational, many abandoned by the developers. We hope to bring back some of the important ones as we have time.

    Exciting times to be sure.

    The Fabrik 4.0 Official release is now available. In addition, the Fabrik codebase is now available in a public repository. See the notices about these in the announcements section

    We wish to shout out a very big Thank You to all of you who have made donations. They have really helped. But we can always use more...wink..wink..

    Also a big Thank You to those of you who have been assisting others in the forum. This takes a very big burden off of us as we work on bugs, the website and the future of Fabrik.

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

Back
Top