Upgrade to Joomla 1.5.x (1)

5 05 2008

fiiuuhhh, setelah utak atik dan liat2 file core dari joomla 1.5.x plus googling, akhirnya gw bisa nemuin sedikit variable, object dan methods yg berubah dari joomla 1.0.x ke 1.5.x

Berhubung skr Joomla berdiri sendiri tanpa Mambo (whatever their reason…), akhirnya sbg developer, gw yg kelabakan :( SHIIT..!!.. mana client skr mintanya Joomla 1.5.x. terpaksa deehh, option yg ada “belajar ato miskin”.. ^_^

gw mulai satu2 yee.. klo ada yg kurang tambahin sendiri :p

1. untuk no direct access

defined( ‘_VALID_MOS’ ) or die(’bla bla’);
//diganti :
defined( ‘_JEXEC’ ) or die(’bla bla’);

2. untuk memgambil value config live site

echo $mosConfig_live_site;
//diganti :
echo JURI::base();

3. bwat ngambil parameter

mosGetParam
//diganti
JRequest::getVar
//contoh : $id = JRequest::getVar( ‘id’, 0 );

4. site name

echo $mosConfig_sitename;
//diganti
echo $mainframe->getCfg(’sitename’);

5. ngambil user id (setelah login lho.. :p)

$my->id; //simple kan…
//untuk joomla 1.5.x diganti
$USER =& JFactory::getUser();
$uid = $USER->id;

hmmm… palagi ya… ntar deh klo nemu lg gw post disini ya.. \(^0^)/


Actions

Information

One response to “Upgrade to Joomla 1.5.x (1)”

6 05 2008
planetbandit (13:18:06) :

..wuuuih…..opoooo..iku…….emmmmm……nyam..nyam…nyaaammmm

Leave a comment

You can use these tags : <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>