We did manage to use PHP to send sms using WAMP Joomla Server. For those who are interested, we use a facileform to create the joomla interface, I define phpSerial class in the facileform.process.php which can be called by the created form. You can create your own extension if you feel like it :). and you can get the phpSerial class that I use here => phpSerial
On form submission we run this chunk of code :
//Define String to send, use chr(13) for line feed
sms = "title".chr(13)."description";
//Require php Serial Class
$serial = new phpSerial;
//Open up connection to the GSM Modem
$serial->deviceSet("COM5");
$serial->deviceOpen();
//send command to GSM Modem, chr(26) is carriage return where the message ends.
$serial->sendMessage("at+cmgs=\"+6598776625\"\r\n",1);
$serial->sendMessage($sms.chr(26));
//release and close the device
$serial->deviceClose();
That's all for sending sms in Windows, you can retrieve data from database and put it into the string to send as sms too.
As for receiving sms, we fail to execute it in Windows using phpSerial. Instead we use Java to retrieve the sms and store to the joomla content database. Take a look here => http://smslib.org
Free Joomla templates and How to
This site is meant to provide free html website templates and conversion to free Joomla templates and Basic How to.
Tuesday, December 9, 2008
SMS Functionality
Posted by BP at 8:16 AM 3 comments
Labels: sms php
Saturday, September 6, 2008
Free Joomla Template 3 - Joomlabasic Charity
Finally an update!! Recently, my schedule is packed with schools and work stuffs. Enough with the unnecessary issues :)... At last, I can find some time to make a quick conversion from the previous charity HTML template.
Joomlabasic Charity modules consist of:
user1 module
top module
right module
Remember to place the mainmenu at "top" position with "flat list" styling.
As usual free free to post suggestions. Thanks and enjoy.
You can get the template --> here
Posted by BP at 11:59 PM 4 comments
Labels: Charity, free, Free Joomla Template
Saturday, August 9, 2008
HTML Charity Template
This month we are building a site for charity and here is the html web template. This template will be converted to Joomla 1.0 template, check back for updates.
You can get the html template here
Posted by BP at 8:10 PM 0 comments
Labels: Charity, free, Free HTML Templates
Thursday, August 7, 2008
Joomla useful Extension
After playing around with a number of freely available Joomla extensions, I find some pretty useful ones when developing joomla sites.
1. JCE ~ pretty much an upgrade from tinymce wysiswyg editor, recommended.
2. Simple image Gallery ~ display pictures in thumbnail formats (viewable in original size slideshow) from a folder, as the name says it's simple and it works well :). I suggest using this for a gallery page.
3. mosModule ~ show a module in a content, useful.
4. denVideo ~ play flashs, videos, musics in your content or modules, another useful one.
5. Fireboard ~ install this component if you want to have a forum in your site.
6. Virtuemart ~ Good shopping cart systems, but pretty complex if code modification is required. Use it as it is.
7. Community Builder ~ let the user members feel to be part of your web community! Uploading profiles and stuffs are nice features.
8. Facile Form ~ I love this addon, it is able to create simple to advanced web forms. Sometimes virtuemart order flow will be much of a hassle for a simple customer order and hacking the code will be too much of a work. This form builder will be able to sort it out :).
this is not install and go addon, but learning how to use it will be very useful.
All these extensions are great, one problem I find is that there is rarely any support in their forums anymore.
If there's anymore Joomla extensions that you find useful and simple, do add on :).
Posted by BP at 8:20 AM 2 comments
Labels: extensions
Thursday, June 12, 2008
Sending command to GSM Modem using php Settings
the php_serial class sets the com port line by line. Windows seems to not be able to get the correct settings this way. Whenever I set the data bit to 8 the parity bits goes back to even. All these have to be done in one command line. So we have to modify the php_serial class to run the command in a single line and it solves the problem, for now.. :)
Posted by BP at 1:26 PM 0 comments
Labels: sms php
Monday, June 2, 2008
Sending command to GSM Modem using php
I have a project on integrating sms module into Joomla interface. I found a php_serial class that enables sending command through serial port by using php. I have tested it through hyperterminal and it works perfectly well, but when I tested it with GSM Modem, the AT command seems to be not working. Anyone has an idea of how to use the php_serial to send AT command to GSM Modem? If you have any clue on how to send AT command using php_serial, please inform me :) Thanks
Here's my code
include "php_serial.class.php";
// Let's start the class
$serial = new phpSerial;
$serial->deviceSet("COM1");
$serial->confBaudRate(115200);
$serial->confCharacterLength(8);
$serial->confParity("none");
$serial->confStopBits(1);
$serial->confFlowControl("xonxoff");
$serial->deviceOpen();
$serial->sendMessage("at+cmgs=\"+6583569765\"\r");
$serial->sendMessage("hello".chr(26));
$serial->deviceClose();
?>
Posted by BP at 6:54 PM 1 comments
Labels: sms php
Saturday, May 31, 2008
Free Template 2 - Joomlabasic Biz
I have finally completed 2nd template. I think there's still a lot to be tweaked to get this template look more professional. Any suggestions would be appreciated.
You can get the template --> here
Posted by BP at 7:42 PM 0 comments
Labels: free, Free Joomla Template
Friday, May 30, 2008
Free Template 2 Layout
I am working on the 2nd template, expected to be finished by this weekends. This template will have 4 modules, here's the outline.
Got to get started :_)
Posted by BP at 9:36 PM 3 comments
Labels: layout
Thursday, May 29, 2008
Template conversion from html to Joomla
Life in school has been pretty busy this week, loaded with class test and lab test, putting my best effort and struggling to pass every single test... But nightmare is just over (for a while), 3 weeks holiday is around the corner, hehe.
I am interested in converting an existing html template to Joomla template, hoping to complete it during holiday. I will pick a suitable html template and put it up here. As usual, I will share with everyone once it's completed :)
will update on the progress as soon as possible.
Posted by BP at 5:41 AM 2 comments
Tuesday, May 27, 2008
Free Joomla Template - 1module Template
I just completed my first 1module Joomla 1.0x template
There seems to be a lot of improvements that can be made, need some comments on it :)
Here's the template pic
You can get the template file here --> 1module
This is a free template, you can modify it in any way including the footer link, author and stuffs
If you like the template let me know, I will create and upload Joomla template regularly
Posted by BP at 6:59 AM 3 comments
Labels: free, Free Joomla Template
Sunday, May 25, 2008
Joomlabasic One Module Cloud Template
I have decided to design this simple and neat template. It has only one module, and that is the top module for menu. Simple enough for a site. This will be my first original template coding from scratch :), getting really excited haha..
I will attach a download link here once it's completed, any comment on how to improve on it is always welcome.
Posted by BP at 8:55 AM 0 comments
Labels: layout
Saturday, May 24, 2008
How to upload image from Joomla frontend
I was trying to upload a image to show in the content as a publisher but couldn't. I did not realize that front-end users are not able to upload picture to the media manager by default. So here's the simple solution that I found out.
Files you need:
- JCE Admin Component - grab it here
- JCE Editor Mambot - grab it here
- Install JCE Admin Component
- Install JCE Editor Mambot
- Choose JCE WYSIWYG as default editor
Posted by BP at 10:16 AM 5 comments
Labels: upload image
How to install Joomla on your computer
Joomla is a free, open source content management system. This powerful tool allows web developer to install a professional look and feature rich website in a fraction of the time needed if you have to code the web from scratch.
Things you need
- Joomla 1.0.15 - grab it here
- Wamp server - grab it here
Steps
- Install Wamp server (just accept the default configuration)
- Unzip Joomla to C:\wamp\www\joomla
- Start Wamp server (there will be an icon at the system tray)
- Open up your browser and type in http://localhost/joomla and this will start the installation process
Use the following values when prompted
- Host Name = localhost
- MySQL User Name = root
- MySQL Password = leave it blank (if you never put any password during wamp installation)
- MySQL Database Name = anything you like (eg Joomla)
- Tick install sample data
- Site name = whatever you want to call your site (eg my first Joomla).
- Important!! --> Change the password for administrator, you need this!!
- Delete the installation folder when prompted
- Click view site and there you go!! your first Joomla site is up and running locally
Posted by BP at 7:07 AM 0 comments
Labels: install joomla