Hi there,
I'm running a vB 5.4.3 installation here.
The idea is to catch a new post to a forum by some user and forward it to a Whatsapp group (using something like https://www.phphive.info/category/whatsapi/).
Is that possible?
Currently, I have no idea, where to start using vB.
Admittingly, I'm also no PHP expert, I'm coming from the Java world.
The way I would like to set things up is as follows:
1. the user(s) provide their Whatsapp-registered phone number in their personal settings
2. the admin registers a specific thread as "Whatsappable" (I dont want the entire forum to be exported, but single threads that need immediate response) and creates a new Whatsapp group for it (manual task, outside of vB; vB just needs the reference)
3. a user subscribes to that thread
4. when a new post is created to that forum, the interceptor gets that message and copies it to the Whatsapp library, which identifies the Whatsapp group and forwards the content to it
5. if a user responds using Whatsapp, there is a listener in the Whatsapp library, which takes that message, needs to identify the user, who just created the Whatsapp response and adds it as a new post to the vB instance; the new post may not be forwarded to Whatsapp
I found the hooks.txt, but that does not describe any hook to the create message part of vB. Neither do I know which class to extend (I searched http://vb5support.com/resources/api/, but at lease "post" and "message" did not return anything usable).
Can you give me some hints on this one?
Thanks a lot.
Stefan
I'm running a vB 5.4.3 installation here.
The idea is to catch a new post to a forum by some user and forward it to a Whatsapp group (using something like https://www.phphive.info/category/whatsapi/).
Is that possible?
Currently, I have no idea, where to start using vB.
Admittingly, I'm also no PHP expert, I'm coming from the Java world.
The way I would like to set things up is as follows:
1. the user(s) provide their Whatsapp-registered phone number in their personal settings
2. the admin registers a specific thread as "Whatsappable" (I dont want the entire forum to be exported, but single threads that need immediate response) and creates a new Whatsapp group for it (manual task, outside of vB; vB just needs the reference)
3. a user subscribes to that thread
4. when a new post is created to that forum, the interceptor gets that message and copies it to the Whatsapp library, which identifies the Whatsapp group and forwards the content to it
5. if a user responds using Whatsapp, there is a listener in the Whatsapp library, which takes that message, needs to identify the user, who just created the Whatsapp response and adds it as a new post to the vB instance; the new post may not be forwarded to Whatsapp
I found the hooks.txt, but that does not describe any hook to the create message part of vB. Neither do I know which class to extend (I searched http://vb5support.com/resources/api/, but at lease "post" and "message" did not return anything usable).
Can you give me some hints on this one?
Thanks a lot.
Stefan
Comment