Friday, May 14, 2004

Hand coded Module

After a carefull study of the mambo CMS, I found that it's a kick-ass CMS system. Unfortunately it does not have most of the modules that i wanted.
e.g: New members module shown on the front page.

So I started today, to hand code the 'missing' module myself.
- the 1st module is to show who's online and link them to the PMS_II messaging system. It took me about 3 hours to understand PHP coding which relates to linking to the pms system. DONE !
- the 2nd module is to add a new members who had registered into the front page.
based of the new members module and partystaff, I had re-coded the tabling system and link it to members pictures using the ever popular SQL statements. DONE !
- the 3rd module is actually adding a code to prevent caching of pictures which will make pictures auto update itself. A nifty hack was using the time() statement added to the end of each picture request. DONE !
- the 4th module is the de-registration module. When a user wants remove himself from mychub org.. it will also delete their picture and any posting they sent in partystaff.

Then I started to tinker with the mambo components.
Partystaff
- the 1st component was Partystaff it self which was really a beta version. Redesigned the sub_edit function to enable auto send date function .
- 2ndly revamped the upload section due to problems with extension e.g: JPG and .jpg.
- 3rd added a form validation code to sub_edit function to force users to add more info in their profile.
RSGallery
- 1st change the validation sequence in the gallery, hence only those who uploaded their picture will be able to view the gallery.
- a 2nd validation feature were added where only ppl who updates their profile can view the gallery.

In total = it took me abt 2 weeks to code in php all the modules needed for mychub.org! HOLA !!

Future projects:-
1. A msg system like of Yahoo.com. So those who are online can send msg in real-time to other online ppl.
2. A notification feature where those who receives msg are also notified via e-mail.

No comments: