Study Case 120 Juta Lebih Dari Affiliate Lokal 486x60 Ebook Motivasi 468x60 GoBlog Theme v.2.0 468x60 Marketplace theme 468x60 Metode Iklan Premium Praktis 486 x 60 Panduan Membuat Website 468x60 Panduan Dropship 468x60

cara bikin module di joomla 1.5

Bookmark and Share
ini buat joomla 1.5 kukasi nama mod_mujur
mod_mujur.xml
HTML Code:
<?xml version="1.0" encoding="utf-8"?>
<install type="module" version="1.5.0">
    <!-- Name of the Module -->
        <name>Maju Jujur Untuk Rakyat</name>

    <!-- Name of the Author -->
        <author>Mujur</author>

    <!-- Version Date of the Module -->
        <creationDate>Juny 26, 2010 </creationDate>

    <!-- Copyright information -->
        <copyright>All rights reserved by orang mujur.</copyright>

    <!-- License Information -->
        <license>GPL 2.0</license>

    <!-- Author's email address -->
        <authorEmail>gundambison@yahoo.com</authorEmail>

    <!-- Author's website -->
        <authorUrl>http://ngocehh.com</authorUrl>

    <!-- Module version number -->
        <version>0.0.1</version>

    <!-- Description of what the module does -->
        <description>Menu Mujur</description>

    <!-- Listing of all files that should be installed for the module to function -->
        <files>
        <!-- The "module" attribute signifies that this is the main controller file -->
                <filename module="mod_mujur">mod_mujur.php</filename>
                <filename>index.html</filename>
                <filename>helper.php</filename>
                <filename>tmpl/default.php</filename>
                <filename>tmpl/index.html</filename>

        </files>
    <languages>
        <!-- Any language files included with the module -->
        <language tag="en-GB">en-GB.mod_mujur.ini</language>
    </languages>

    <!-- Optional parameters -->
        <params>
        <!-- parameter to allow placement of a module class suffix for the module table / xhtml display -->
                <param name="moduleclass_sfx" type="text" default="" label="Module Class Suffix" description="PARAMMODULECLASSSUFFIX" />

        <!-- just gives us a little room between the previous paramter and the next -->
                <param name="@spacer" type="spacer" default="" label="" description="" />

        <!-- A parameter that allows an administrator to modify the number of users that this module will display -->
        <param name="usercount" type="text" default="5" label="LABEL USER COUNT" description="DESC USER COUNT" />
         <param name="pembuat" type="text" default="5" label="Nama Pengarang" description="DESC Author" />
         <param name="userPermision" type="text" default="5" label="Permision" description="DESC Author" />
        
        
    </params>

   
</install>
buat file bahasanya.. isinya cuma begini doank

en-GB.mod_mujur.ini
Code:

LABEL USER COUNT=User Count
DESC USER COUNT=The number of users to display
RANDOM USERS=Random Users for Hello World2
USER LABEL=%s is a randomly selected user
PERMISION=Permision Name %s
PERMISION DETAIL=Detail %s
dan gw bahkan gk pernah pake file ini lho
mod_mujur.php
PHP Code:
<?php
//don't allow other scripts to grab and execute our file
defined('_JEXEC') or die('Direct Access to this location is not allowed.');

// include the helper file
require_once(dirname(__FILE__).DS.'helper.php');
 
// get a parameter from the module's configuration
$userCount = $params->get('usercount');
$creator =   $params->get('pembuat'); 
$uPermision = $params->get('userPermision');

// include the template for display
require(JModuleHelper::getLayoutPath('mod_mujur'));
untuk nampilin isi dari file bahasa
PHP Code:
$userCount = $params->get('usercount');
$creator =   $params->get('pembuat'); 
$uPermision = $params->get('userPermision'); 
helper.php
PHP Code:
<?php
defined('_JEXEC') or die('Direct Access to this location is not allowed.');
 
class ModMujurHelper
{
    /**
     * Returns a list of post items
    */
    public function getItems($userCount)
    {
        // get a reference to the database
        $db = &JFactory::getDBO();
 
        // get a list of $userCount randomly ordered users 
        $query = 'SELECT a.name FROM `#__users` AS a ORDER BY rand() LIMIT ' . $userCount  . '';
 
        $db->setQuery($query);
        $items = ($items = $db->loadObjectList())?$items:array();
 
        return $items;
    } //end getItems

} //end class 
terakhir.. bikin folder tmpl lalu isi di dalamnya file default.php
default.php
PHP Code:
<?php defined('_JEXEC') or die('Restricted access'); 
$txt="apa kabar dunia!!!";
echo $txt;
Zip semua file ini lalu install ke joomla kamu

{ 0 komentar... Views All / Send Comment! }

Posting Komentar

34-zamrud-khatulistiwa
Ebook ensiklopedik ini berformat Pdf 300 halaman ukuran A4. Besar file 13 Mb. Dipasarkan menyambut HUT RI ke-73. Ebook dengan banyak foto warna ini berisi detil-detil geografi, sejarah, ekonomi, sosial, budaya & pariwisata dari ke-34 provinsi RI, menurut abjad mulai Aceh sampai Yogyakarta.

Di akhir tiap bab provinsi Anda temukan daftar lengkap pranala (link) luar untuk informasi lebih banyak dan lengkap tentang sejarah, demografi, ekonomi, pemerintahan, pariwisata dll. tentang provinsi itu. Bila Anda mengakses versi ebooknya (selain mencetaknya demi kenyamanan membaca), Anda bisa klik link-link ini bila Anda tersambung ke Internet. Miliki Ebook ini sekarang juga, pesan disini

Banjir Dollar "Inilah Panduan Mendapatkan Ribuan Dollar di Internet Terlengkap Dengan lebih dari 300 Cara, Tutorial dan Trik Rahasia" info lengkap Klik disini!

Videlligence Lebih Banyak Trafik, Leads, Penjualan & Profit "Software Video Editor Pertama Di Indonesia Yang Terinspirasi Dari Kecerdasan Buatan Mengubah Halaman Produk Anda Menjadi Video Iklan Yang Menjual SECARA OTOMATIS" Hanya Tiga Klik Untuk Membuat Video Iklan Yang Keren!

Simply Telegram Pro Tingkatkan Penjualan Anda Melalui Telegram Marketing! Promosi GRATIS dengan konversi tinggi yang menjangkau prospek TEPAT secara otomatis

Pixal Evolution Indonesia , Solusi Terbaik Untuk Meningkatkan Klik dan Engagement Anda

Mudah Menghasilkan Uang dari Internet Meski Anda Gaptek Cara Mudah Menghasilkan Uang dari Internet Meski Anda Gaptek!

TheMidiTracks TheMidiTracks Midi Files, Style Keyboard, Backing Track, Instrumental Karaoke Lebih dari 25.000++ file Midi & Style Keyboard lokal maupun internasional tersedia untuk memenuhi kebutuhan Anda

WhatsApp Marketing Cara Untuk Melipat Gandakan Omset Penjualan Lebih Banyak Dan Lebih Cepat Hanya Dengan Menggunakan "WhatsApp!!

InsightZilla Tools fenomenal yang membantu Targeting Iklan Facebook Anda lebih Tertarget dan Relevan Dalam Waktu yang Singkat! Telah digunakan oleh 6.000+ Pebisnis Online!

BONGKAR!! RAHASIA BAGAIMANA BISA MENJANGKAU SEMUA CUSTOMER HANYA DENGAN "SEKALI KLIK" YANG AKAN MELIPAT GANDAKAN OMSET PENJUALAN LEBIH BANYAK DAN LEBIH CEPAT! Kemajuan Bisnis Anda berawal dari sini! info lengkap Klik disini!

Inilah Panduan Mendapatkan Ribuan Dollar di Internet Terlengkap Dengan lebih dari 300 Cara, Tutorial dan Trik Rahasia Klik disini!

10 Entri Populer