Another plugin... maybe nothing new.
Posted: Thu May 05, 2005 1:08 pm
Alright, I am going to explain the plugins I am building in these days.
I want a custom architecture to manage MMS in my blog. I have searched for almost-ready solutions, (like the possibility of interfacing my blog with the moblog of my mobile-phone company) but nothing I have found satisfies me.
Here the idea to build up a php script family to manage mms. In according to the fact that I have choosen Serendipity as blog backbone, I have thought to build these scripts as plugins. Furthermore, the work in this case is simpler because the presence of the great plugin_api.
Now I will describe the architecture of the plugins as I have concerned it (and sorry for my terrible english).
Everything is e-mail based. You know you can send an MMS to a cell-phone or to an e-mail address. My solution need a dedicated email-address.
There is the first module, the core, whose job is to download emails, parse them, save email data in a special database table and images in a special image folder, and nothing else.
This module is an event plugin called serendipity_event_moblog_core.php, and I have alredy built it. It works.
Once informations are in the DB and images are in the folder, I can do what I want. I am building up now other two sidebar plugins (which are dependant to the core). The first one simply show in the sidebar tla last mms, the other creates a special category called "Moblog", and generate an entry for each MMS stored in the DB, allowing you to see all the MMS received.
These last plugins works in a very simple manner... they only get information from the database and they don't know how these information s are obtained.
Here is the schema:
The modules work asyncronously.
What do you think???
I think this is not a new idea. I have started this to learn, and because I love hard-customized solutions.
Thanks for the attention!!!! Best regards.
Trix
I want a custom architecture to manage MMS in my blog. I have searched for almost-ready solutions, (like the possibility of interfacing my blog with the moblog of my mobile-phone company) but nothing I have found satisfies me.
Here the idea to build up a php script family to manage mms. In according to the fact that I have choosen Serendipity as blog backbone, I have thought to build these scripts as plugins. Furthermore, the work in this case is simpler because the presence of the great plugin_api.
Now I will describe the architecture of the plugins as I have concerned it (and sorry for my terrible english).
Everything is e-mail based. You know you can send an MMS to a cell-phone or to an e-mail address. My solution need a dedicated email-address.
There is the first module, the core, whose job is to download emails, parse them, save email data in a special database table and images in a special image folder, and nothing else.
This module is an event plugin called serendipity_event_moblog_core.php, and I have alredy built it. It works.
Once informations are in the DB and images are in the folder, I can do what I want. I am building up now other two sidebar plugins (which are dependant to the core). The first one simply show in the sidebar tla last mms, the other creates a special category called "Moblog", and generate an entry for each MMS stored in the DB, allowing you to see all the MMS received.
These last plugins works in a very simple manner... they only get information from the database and they don't know how these information s are obtained.
Here is the schema:
The modules work asyncronously.
What do you think???
I think this is not a new idea. I have started this to learn, and because I love hard-customized solutions.
Thanks for the attention!!!! Best regards.
Trix