$this->Post->title('how to create basic module in joomla 1.5');
File Structure
There are basic files that are used in the standard pattern of module development:
- mod_randomquotes.php - This file is the main entry point for the module. It will perform any necessary initialization routines, fetch the quotes in database and include the template which will display the module output.
- mod_randomquotes.xml - This file contains information about the module. It defines the files that need to be installed by the Joomla! installer and specifies configuration parameters for the module.
- tmpl/default.php - This is the module template. This file will take the data collected by mod_randomquotes.php and generate the HTML to be displayed on the page.
defined( '_JEXEC' ) or die( 'Restricted access' );
then fetch the quotes from database
$db =& JFactory::getDBO(); $query = "SELECT quote FROM #__quotes ORDER BY RAND() LIMIT 1"; $db->setQuery( $query ); $showQuote = $db->loadResult();
note : do not use ORDER BY RAND() for selecting random records this is for tutorial only, use it at your own risk.
and then render the default template
require( JModuleHelper::getLayoutPath( 'mod_randomquotes' ) );
Creating /tmpl/default.php
The default.php file is the template which displays the module output.
The code for the default.php file is as follows:
<?php // no direct access defined( '_JEXEC' ) or die( 'Restricted access' ); ?> <h5><?php echo $showQuote; ?></h5>
An important point to note is that the template file has the same scope as the mod_randomquotes.php file. What this means is that the variable $showQuote can be defined in the mod_randomquotes.php file and then used in the $showQuote file without any extra declarations or function calls.
Creating mod_randomquotes.xml
The mod_randomquotes.xml is used to specify which files the installer needs to copy and is used by the Module Manager to determine which parameters are used to configure the module. Other information about the module is also specified in this file.
The code for mod_helloworld.xml is as follows:
<?xml version="1.0" encoding="utf-8"?>
<install type="module" version="1.5.0">
<name>Random Quotes</name>
<author>Ramsey Ramos</author>
<creationDate>August 8th, 2008</creationDate>
<copyright>Copyright (C) 2008 Ramsey Ramos. All rights reserved.</copyright>
<license>http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL</license>
<authorEmail>ramsey.ramos@gmail.com</authorEmail>
<authorUrl>http://ramseyramos.net</authorUrl>
<version>0.0.1</version>
<description>Random Quotes modules for Jayson Vega Website.</description>
<files>
<filename module="mod_randomquotes">mod_randomquotes.php</filename>
<filename>index.html</filename>
<filename>tmpl/default.php</filename>
<filename>tmpl/index.html</filename>
</files>
<params>
</params>
</install>
You will notice that there are two additional files that we have not yet mentioned: index.html and tmpl/index.html. These files are included so that these directories cannot be browsed. If a used attempts to point their browser to these folders, the index.html file will be displayed. These files can be left empty or can contain the simple line:
<html><body bgcolor=#FFFFFF"></body></html>
which will display an empty page.
And import this sql to your database :
CREATE TABLE IF NOT EXISTS `jos_quotes` ( `id` int(11) NOT NULL auto_increment, `quote` tinytext collate utf8_unicode_ci NOT NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=9 ; INSERT INTO `jos_quotes` (`id`, `quote`) VALUES (1, '"Di bale ng tamad nde naman pagod... - ramsey"'), (3, '"Quote 2"'), (7, '"Quote 3"'), (8, '"Quote 4"');
You can download the file here ( mod_randomquotes.zip ).
Salamat nga pala kay master Jayson Vega! Siya kase ang may pakana ng lahat ng ito eh.
Cheers!
$this->Post->title('sophia’s first birthday');

Yes indeed this event is her most unforgettable event in our life. Last month ago I started planning for the event. I am definitely not the type to host parties that’s why I consulted friends to see what would be best thing, not really the best but something like she can appreciate it ( hope she like it ). After all, all you really need to have a good party is to have good food, good drinks and good company. I had all three!
I’d never thought that there’s a lot of thing needs to consider like banner (tarp ), cake, balloons, give aways and foods. Although I don’t have a budget I mean a big budget we still managed to get our supplies and thanks to those people who helped us out. What have I learned? I learned that I have great friends, who are understanding that I can’t be with them the whole time they’re here. Second, when the same friends offer help, take it.
Getting prepared for this event was exciting. I mean everyone is excited. One week before the celebration I only got 4 hours of sleep per day. I need to work at night and help my wife at day. Buying the food, party favors for the children and most importantly choosing what kind of cake to get, and the theme of course.
I am saving things from the party as momentos. My wife put all of it into a keepsake box to give her when she is older. It’s important to me that she knows Mama and Papa made a big deal out of her special day.
Overall, our first birthday party went pretty well. We survived and learned enough to make her 7th, 13th and 18th year even better.
Despite how my baby has completely turned our lives upside down, I will do everything just for her. I reflected on the last year, this is my first year as a parent, and thought about how much my life had changed. I know there was so much that was different in me.
Happy First Birthday Dear Daughter of mine!
And thank you E. J. Suratos for the balloons, Ate Mary Ann for the tarp, Ate Mylene for the loot bags and Ate Nelia for tables and chairs.
$this->Post->title('what’s with the 83008?');
quick post lang and sobrang busy ako ngayon week kaya ngayon alng ulet nakapag post. pero sana mangyari to. si vlad nagbalita saken nito.
Umpisahan natin sa 83008, sabi ni edaravelo.net baka daw date ito August 30, 2008. yes! malapit na. at ang maganda sabado siya! wala akong pasok!!!!
sa E baka daw ay Eraserheads.
83008 + E = Eraserheads Reunion Concert sa August 30, 2008? hehehe. wala pang press release. wala pang sinasabi. ehehehehe. pero sana magkatotoo.
vlad thanks!
sana maulit yung Rakrakan sa etivac! sa may montano hall ata yun!
Source : big g
Update : Confirmed na daw sabi ni vlad ![]()
$this->Post->title('notes');
laging may problema ang high speed usb driver ko at kinakailangan set ko mode nya sa normal
sudo rmmod ehci_hcd
pag delete ng .svn folder
find -name .svn -exec rm -rf {} +
$this->Post->title('transporter 3');
Jason Statham returns as iconic action hero as Frank Martin in Transporter 3. Transporter and Transporter 2 are great, specially those kickass non-stop gun fights and barehands combat. Can’t wait to see this movie eh!? Trailer Video
$this->Post->title('stormy saturday');
Signal #2 dito sa Cavite at sobrang lamig! heheheh.
OO nga pala may update ako sa simple weather forecast plugin for WP pwede na siyang gamitin sa WP 2.5.1 ![]()

Download Link
Extrat nyo pala muna bago upload nyo lang sa plugins kalimitan sa “/wp-content/plugins/” at activate sa plugins page from admin panel.
Non-Widgets Enabled Themes ( meron pa ba nito? ) :
<?php if (function_exists('weatherforecast')) { weatherforecast(); } ?>
Widgets Enabled Themes :
Design > Widgets > Add Weather Forecast
Tags: weatherforecast wp
$this->Post->title('bug and me….');
(02:11:00) kewlburn: ano piangkaiba ng beetle sa bug?
(02:11:03) kewlburn: Buzz
(02:11:15) vladimyr: itsura
(02:11:21) kewlbur: ano yan?
(02:11:27) kewlburn: beetle?
(02:11:29) kewlburn: o bug?
(02:11:42) vladimyr: salagubang
(02:12:43) kewlburn: amp
(02:12:46) kewlburn: bug nga?
(02:12:52) vladimyr: beetle
(02:13:06) kewlburn: pero pede kong tawagin bug?
(02:13:09) kewlburn: diba diba diba?
(02:13:16) kewlburn: kase ang butterfly pedeng tawagin bug eh
(02:13:16) vladimyr: bug is i think
(02:13:23) vladimyr: is general name for insect
(02:13:24) vladimyr:
(02:13:27) kewlburn: ah ok
(02:13:33) kewlburn: so insect family naman to eh
(02:13:36) kewlburn: kaya bugsiya
(02:13:37) kewlburn: lolz
(02:13:40) vladimyr: oo bug yan
(02:13:46) vladimyr: jinumbug mo ba
(02:13:48) vladimyr: :))
(02:14:10) kewlburn08: hanef to sa joke amp
(02:14:42) vladimyr: natawa ka?
(02:14:58) kewlburn: actually natawa ako sa kakornihan mo
(02:15:07) kewlburn: epekto ng sobrang kape yan pare
(02:15:13) kewlburn: water therapy lang yan
(02:15:24) vladimyr: :))
yan si vlad kahit 2am nakukuha pang mag joke, nocturnal family ka nga…. at take note nang hihingi pa ng privacy policy yan kase nipost ko daw ang convo namin!
Tags: bug
$this->Post->title('Wine 1.0 Released');
After 15 years of development and beta testing dev team proudly announced the release of Wine 1.0. According to winehq although compatibility is not yet perfect yet, thousands of applications have been reported to work very well.
Tags: wine
$this->Post->title('be a part of world download day');
Join the effort to set a Guinness World Record for the most software downloads in 24 hours. Don’t forget to tell your friends, family and colleagues to pledge to download Firefox 3 during Download Day.
$this->Post->title('saturday the 14th');
kase kahapon friday the 13th at bukas sunday the 15th. :p




