Motorcycle Blog

Login

Message Box

You are not logged in.

Notification

Members Online

None

User Statistics

Registered users : 38792
Online : 1808
Guest : 1808
Members : 0

Online members
No members online!

Last 5 users
alisapugacescu
adrylawumi
dienul82
suksesbisnismlm
ariefalbani
registerFunction( 'onBeforeUserUpdate','protectFields', 'getProtectFieldsTab' ); /** * Protection Tab Class for handling the CB tab api * @package Community Builder * @author JoomlaJoe and Beat */ class getProtectFieldsTab extends cbTabHandler { /** * Constructor */ function getProtectFieldsTab() { $this->cbTabHandler(); } /** * gets object with name, title and table corresponding to a field id * @access private * @param int fieldId * @returns mixed : either object, or null if no match */ function getFieldInfo($protectFieldId) { global $database; if ($protectFieldId == "0") return null; $query = "SELECT `name`,`table`,`title`,`type` FROM #__comprofiler_fields WHERE published=1 AND fieldid=".$protectFieldId; $database->setQuery($query); $protectObj = null; $database->loadObject($protectObj); return $protectObj; } /** * Discards all changes the user makes to email field. Admins are allowed to change email addresses. * Method is called before user data is stored in the database * @access private * @param object holds the core mambo user data * @param object holds the community builder user data * @param object holds the field information * @return boolean true check ok no changes, FALSE error raised */ function checkMyFieldChanges(&$user,&$cbUser,$protectObj) { global $database, $my, $_PLUGINS; if ($protectObj === null) return true; $params = $this->params; $alertMsg = htmlspecialchars($params->get('alertMsg', '0')); $protectFieldName = $protectObj->name; $protectTable = $protectObj->table; $protectTitle = $protectObj->title; //if ($my->gid != 2) { // admins can change their profile unrestricted from the backend if ($protectTable != "#__comprofiler") { $query = "SELECT `".$database->getEscaped($protectFieldName)."` FROM #__users WHERE id=".$user->id." LIMIT 1"; $pObject =& $user; } else { $query = "SELECT `".$database->getEscaped($protectFieldName)."` FROM #__comprofiler WHERE id=".$user->id." LIMIT 1"; $pObject =& $cbUser; } $database->setQuery($query); $pOriginalField = $database->loadResult(); //The field before the change was attempted if ($pObject->$protectFieldName != $pOriginalField) { $_PLUGINS->raiseError(0); $_PLUGINS->_setErrorMSG(htmlspecialchars(getLangDefinition($protectTitle))." ".$alertMsg); $pObject->$protectFieldName = $pOriginalField; return false; } //} return true; } /** * generates javascript code to check and flag at browser end * @access private * @param object tab reflecting the tab database entry * @param object mosUser reflecting the user being displayed * @param object holds the field information */ function getEditTabJScode(&$user,$protectObj) { if ($protectObj == null) return; $params = $this->params; $alertMsg = $params->get('alertMsg', '0'); $protectFieldName = $protectObj->name; $protectTitle = $protectObj->title; $protectValue = $user->$protectFieldName; //Type matters ;) $protectType = $protectObj->type; //We need to add square brackets for accessing select, multiselect and mulitcheckbox in JS $addBrackets = ""; if($protectType == "multiselect" || $protectType == "select" || $protectType == "multicheckbox"){$addBrackets = "[]";} $this->_addValidationJS( "\t if (getInputValue(me['".htmlspecialchars($protectFieldName).$addBrackets."'])!=getInputDefaultValue(me['".htmlspecialchars($protectFieldName).$addBrackets."'])){\n" ."\t errorMSG += \"".html_entity_decode(getLangDefinition($protectTitle)." ".$alertMsg)."\\n\"\n" ."\t me['".htmlspecialchars($protectFieldName).$addBrackets."'].style.background = \"red\";\n" ."\t setInputValue(me['".htmlspecialchars($protectFieldName).$addBrackets."'],getInputDefaultValue(me['".htmlspecialchars($protectFieldName).$addBrackets."']));\n" ."\t iserror=1;\n" ."\t} else {\n" ."\t me['".htmlspecialchars($protectFieldName).$addBrackets."'].style.background = cbDefaultFieldBackground;\n" ."\t}\n"); // also see event: 'onBeforeUserUpdate' : must also be implemented as above to avoid changes with JS off. } /** * Discards all changes the user makes to email field. Admins are allowed to change email addresses. * Method is called before user data is stored in the database * @param array holds the core mambo user data * @param array holds the community builder user data */ function protectFields(&$user,&$cbUser) { $params = $this->params; $protectFieldId = $params->get('protect1', '0'); $result1 = $this->checkMyFieldChanges($user, $cbUser, $this->getFieldInfo($protectFieldId)); $protectFieldId = $params->get('protect2', '0'); $result2 = $this->checkMyFieldChanges($user, $cbUser, $this->getFieldInfo($protectFieldId)); $protectFieldId = $params->get('protect3', '0'); $result3 = $this->checkMyFieldChanges($user, $cbUser, $this->getFieldInfo($protectFieldId)); $protectFieldId = $params->get('protect4', '0'); $result4 = $this->checkMyFieldChanges($user, $cbUser, $this->getFieldInfo($protectFieldId)); return result1 && result2 && restult3 && result4; } /** * Generates the HTML to display the user edit tab * @param object tab reflecting the tab database entry * @param object mosUser reflecting the user being displayed * @param int 1 for front-end, 2 for back-end * @returns mixed : either string HTML for tab content, or false if ErrorMSG generated */ function getEditTab($tab,$user,$ui) { if ($ui == 2) return ""; // don't protect backend user edits. $params = $this->params; //Functions used in every check. So let's include them here only once. $this->_addValidationJS( "\t // ===================================================================\n" ."\t //JavaScript functions\n" ."\t // Author: Matt Kruse \n" ."\t // WWW: http://www.mattkruse.com/\n" ."\t // ===================================================================\n" ."\t //-------------------------------------------------------------------\n" ."\t // isArray(obj)\n" ."\t // Returns true if the object is an array, else false\n" ."\t //-------------------------------------------------------------------\n" ."\t function isArray(obj){return(typeof(obj.length)==\"undefined\")?false:true;}\n" ."\t //-------------------------------------------------------------------\n" ."\t // getInputValue(input_object[,delimiter])\n" ."\t // Get the value of any form input field\n" ."\t // Multiple-select fields are returned as comma-separated values, or\n" ."\t // delmited by the optional second argument\n" ."\t // (Doesn't support input types: button,file,reset,submit)\n" ."\t //-------------------------------------------------------------------\n" ."\t function getInputValue(obj,delimiter) {\n" ."\t var use_default=(arguments.length>2)?arguments[2]:false;\n" ."\t if (isArray(obj) && (typeof(obj.type)==\"undefined\")) {\n" ."\t var values=new Array();\n" ."\t for(var i=0;i0)?obj.options[obj.selectedIndex].value:null;\n" ."\t case 'select-multiple': \n" ."\t if (obj.options==null) { return null; }\n" ."\t var values=new Array();\n" ."\t for(var i=0;i1)?arguments[1]:false;\n" ."\t if(isArray(obj)&&(typeof(obj.type)==\"undefined\")){\n" ."\t for(var i=0;iget('protect1', '0'); $this->getEditTabJScode($user, $this->getFieldInfo($protectFieldId)); $protectFieldId = $params->get('protect2', '0'); $this->getEditTabJScode($user, $this->getFieldInfo($protectFieldId)); $protectFieldId = $params->get('protect3', '0'); $this->getEditTabJScode($user, $this->getFieldInfo($protectFieldId)); $protectFieldId = $params->get('protect4', '0'); $this->getEditTabJScode($user, $this->getFieldInfo($protectFieldId)); return ""; } } // end class getProtectFieldsTab. ?>
Welcome, Guest
Please Login or Register.    Lost Password?

Tips memodifikasi motor
(1 viewing) (1) Guest
Go to bottomPage: 1
TOPIC: Tips memodifikasi motor
#1800
Anwar Adam
Moderator
Posts: 39
graphgraph
User Offline Click here to see the profile of this user
Tips memodifikasi motor 1 Year, 8 Months ago Karma: 0
Modifikasi …. emm
Jadi wajib hukumnya buat para pencinta kendaraan bermotor, tapi seperti apa modifaikasi yang bisa dilakukan untuk motor kesayangan anda.. baca tips di bawah ini

Memodifikasi motor selain berguna meningkatkan kinerja dan tampilan motor juga merupakan ajang untuk menyalurkan kreatifitas. Namun dalam prakteknya, memodifikasi tunggangan kesayangan sering tidak memperhatikan aspek savety (keamanan) dan ketidak sesuaian dengan aturan yang berlaku.

Hal yang penting dari modifikasi adalah tujuan dan fungsinya, sehingga lebih aman, nyaman, cepat, dan gaya.

Tapi dengan apakah modif motor dilakukan? Apakah perlu menggunakan limbah motor gede (moge) ataukah cukup menggunakan perangkat aftermarket?

Kebanyakan pemula modifikasi memulainya dari barang-barang yang tersedia dipasar yang disebut aftermarket. Di samping lebih murah, juga lebih mudah didapatkan. Tak kalah pentingnya gampang dicicil satu persatu.

Dalam kasus Indonesia, barang-barang aftermarket berkualitas masih relatif sulit ditemukan. Rata-rata barang yang ada di pasaran berasal dari Thailand dan China. Dengan modal meniru berbagai komponen versi motor buatan Jepang atau Italia yang lebih bermutu, pasar modifikasi kita dibanjiri berbagai perangkat pemanis motor.

Bagi yang tidak puas dengan barang aftermarket sehingga ingin memodifikasi secara ekstrim, kebanyakan bikers berusaha mengaplikasikan limbah moge di besutannya.

Keuntungan aplikasi perangkat moge, seperti garpu sok depan, swing arm dan sok set, hingga body set, memberikan tampilan lebih kekar dan stylish. Bahkan tidak jarang, limbah memberi keuntungan lebih dari sisi kekuatan dan kenyamanan.

Hal yang harus diperhatikan bagi yang ingin memodifikasi motor dengan limbah moge adalah mengetahui aliran yang diinginkan. Misalnya, sport, sport touring, chopper atau klasik Selanjutnya, sesuaikanlah dengan budget yang Anda siapkan. Dan terakhir serahkan kepada sang modifikator yang akan menyulap tampilan motor Anda

Masalah tempat modifikasi sangat bergantung pada komponen yang digunakan. Biasanya modifikasi barang aftermarket bisa dilakukan oleh montir semi profesional di bengkel-bengkel asesori motor. Ini mengingat barang aftermarket biasanya sejak awal dimanufaktur sesuai setting standar motor yang beredar dipasar dan bisa langsung pasang alias bolt-on.

Sebaliknya untuk pemakaian limbah moge, hampir dipastikan harus dilakukan dibengkel/ workshop modifikasi. Sebab setiap limbah memiliki karakteristik yang belum tentu langsung padu dengan motor yang ingin dimodif. Karena itu, modif limbah lebih banyak memasukkan unsur kreasi seni bersama-sama dengan kemampuan mekanis sang modifikator.

Selamat mencoba.


dari berbagai sumber
 
The administrator has disabled public write access.
Go to topPage: 1
Moderators: admin, lulut, adamhadziq
get the latest posts directly to your desktop