Tips & Tricks using Joomla Content Management System
Here are some useful Joomla tips and tricks:
1. Insert javascript or css styles
Sometimes we want to insert a small script to change the appearance of the web a little, for testing, version 3.3.6 is already opened by Joomla by default, but for older versions we need to activate it, here are the steps to enable script input: a. Click System -> Global Configuration, then select the Text Filter tab b. Determine the user group that will be given access to write scripts, there are several options, namely Default Black List, Custom Black List, White List, No HTML, and No Filtering. c. Select No Filtering for the Super User group No Filtering Joomla d. Click Save & Close. e. By default the editor used is TinyMCE, TinyMCE will automatically filter 3 tags, namely: script, applet, iframe. You can delete the filter but it is not recommended if there are several users because each user can insert certain codes that are harmful to website security. Click Extensions -> Plugin Manager, type in the search box tinymce click to configure TinyMCE In addition to disabling filters in the TinyMCE editor, there is a second way, namely changing the editor tool for certain users Click Users -> User Manager, edit the Super User account, change the Editor parameter to Editor – CodeMirror, then click Save & Close e. After you finish configuring, you can try to input javascript or css script in Article, click Content -> Article Manager -> Add New Article.2. Overrides Template
Sometimes we want to slightly change the appearance of the Joomla component, this can be done easily using the template overrides feature 3. Activate Google’s ReCaptcha feature The Captcha feature is used to block spam messages that flood contact us or register. By default the captcha plugin is not active, to activate it, you can open it in Extensions -> Plugin Manager, type in recaptcha search, then click Enable to activate it. Then edit the recaptcha.php file in the plugins/captcha/recaptcha folder on line 24 replace the code belowconst RECAPTCHA_API_SERVER = "http://api.recaptcha.net"; const RECAPTCHA_API_SECURE_SERVER = "https://www.google.com/recaptcha/api"; const RECAPTCHA_VERIFY_SERVER = "api-verify.recaptcha.net";menjadi
const RECAPTCHA_API_SERVER = "http://www.google.com/recaptcha/api"; const RECAPTCHA_API_SECURE_SERVER = "https://www.google.com/recaptcha/api"; const RECAPTCHA_VERIFY_SERVER = "www.google.com";pada line 118 ganti code dibawah
$response = $this->_recaptcha_http_post(self::RECAPTCHA_VERIFY_SERVER, "/verify",dengan
$response = $this->_recaptcha_http_post(self::RECAPTCHA_VERIFY_SERVER, "/recaptcha/api/verify",Kemudian aktifkan Default captcha di System -> Global Configuration menjadi Recaptcha
4. Protect administrator folder with .htaccess
Protect the administrator folder from various attacks by providing login protection, here are the steps: a. Create a .htpasswd password file and place it outside the public_html folder for example the home folder and enter the following password code: admin:24IQa4hXAaLKA The code is the password for “handsome” If you want to generate a different password in .htpasswd format, you can use the site http://www.mreriksson.net/online/htgenerator/ b. Create an .htaccess file in the administrator folder of the Joomla root and enter the following code:<Files .htaccess> order allow,deny deny from all </Files> AuthType Basic AuthUserFile /home/.htpasswd AuthGroupFile /dev/null AuthName "Joomla Administrator Area" <Limit GET POST> require valid-user </Limit>Now try to access the administrator folder, you are required to login first before you can access the Joomla login. Authenticate Htpasswd sumber: http://www.id-joomla.com/blog/entry/menambah-perlindungan-administrator-joomla-anda-dengan-htaccess 5. Create a backend menu for each user By default Joomla backend does not support different backend menus for each user, but Joomla provides a feature to override backend menus. Here are the steps: 1. Open Joomla backend and login 2. Click Extensions -> Template Manager -> Templates -> Isis Details and Files (The default template that Isis uses is according to the template you are using) 3. Click the Click Overrides tab -> Modules -> mod_menu 4. Then click the Editor tab, open the navigation folder to html/mod_menu 5. There are 2 files, namely: default_disabled.php , which is a file that handles the display of the menu when the menu is blocked due to editing default_enabled.php is the file that handles the display of the default menu 6. Edit default_enabled.php and add the code: sumber: http://magazine.joomla.org/issues/Issue-Apr-2012/item/721-Customizing-the-Admin-Menu 6. View the template position display 1. Login to Joomla backend 2. Click Extensions -> Templates -> Styles 3. Click the Options button at the top left 4. On the Templates tab, click Enabled option Preview Module Positions 5. Click Save & Close to save 6. Now we can access the template preview in the Extensions menu -> Templates -> Templates or can open it directly by adding in the url ?tp=1 7. Reset Super User password If we forget the super user password, but have direct access to the database, we can reset the super user password by changing the password in the users table in the database with: d2064d358136996bd22421584a7cb33e:trd7TvKHx6dMeoMmBVxYmg0vuXEA4199 Then try logging in with the admin user and password “secret”