Friday, March 24, 2017

Mar 25, 2015: This article is back online, updated with the latest changes to Joomla! 3.4

Whatever you are developing - a complex application that consists of several extensions, a component or just a plugin for Joomla, you may encounter a situation when you need to add new editor button with your functionality. I faced this problem recently, and found that there's not so much information on the Web concerning this topic, at least in English. There are some fragments of necessary information, but not the complete step-by-step procedure. So I've decided to write this tutorial.

Wednesday, 25 March 2015 10:56

Correcting T3 framework MegaMenu issues

T3 Framework is one of Joomla! template frameworks. It features responsive design, powerful customization options and MegaMenu system.

It's a good framework, however, no system is free from bugs. In case with T3 you may occasionally encounter a situation where changes you are doing in MegaMenu Editor do not appear on the site. This is caused by corrupted template's JSON settings string.

To fix it, you need to access #__template_styles table of your Joomla! database, either with phpMyAdmin or by manually editing SQL dump.

The approach described here requires some basic knowledge of JSON & SQL. It may not be useful for beginners.

The following script may help you to transfer or mirror your existing PHP+MySQL website completely from one server to another. You will need SSH accounts on both servers, with public key authentification set up (server 2 has public key in its ~/.ssh/authorized_keys for corresponding server 1's ~/.ssh/id_dsa (id_rsa)  ).

Save the following script as ~/transfer-site.sh, make it executable (chmod +x ~/transfer-site.sh) and launch it on server 1:

#!/bin/sh echo "Starting syncronization..." echo "Starting file transfer" rsync -rvz -e 'ssh -p 22' /PATH/TO/YOUR/EXISTING/SITE/ This email address is being protected from spambots. You need JavaScript enabled to view it.:/PATH/TO/YOUR/NEW/SITE/ --exclude="configuration.php" echo "Starting MySQL transfer" mysqldump --add-drop-table -u dbuser_1 -h mysql.example.com database_1 -pPASSWORD1 | ssh new-server mysql -h mysql.example.org -u dbuser_2 -pPASSWORD2 database_2 echo "All done!"

Is is assumed that you are transferring data from server 1 (example.com) to server 2 (example.org). And, sure, you do not need --exclude="configuration.php" in most cases. This will be useful only if you are synchronizing master Joomla! website with its mirror.

 

To use

ssh new-server

syntax you will need add the following to your ~/.ssh/config:

Host new-server Hostname example.org User username Port 22 PasswordAuthentication no
Published in Linux, BSD, Unix
Wednesday, 27 March 2013 17:58

Premium Joomla templates

Many years ago I discovered a site with tons of high-qualty Joomla templates. Yes, it's ThemeForest - one of my favourite marketplaces. I often use it to get adequately-priced and high-quality items.

Try it for yourself! >>

Published in Blog

Welcome!

Here I publish articles related to my areas of interest, my brief notes that may save some time to others, as well as some of my works.

This site is a work in progress. I will add more sections in the future, such as

  • More photos to photogallery
  • More Joomla!-related articles
  • ...

 

themeforest

New Posts

Using dynamic GeoIP module with nginx (CentOS)

nginx introduced dynamic module support in v. 1.9.11. This brief article provides step-by-step procedure...

13-04-2016 in Linux, BSD, Unix

READ MORE

Visual difference between pseudo and true random data

This is is "random" image generated using PHP rand() function: And this is an image...

20-11-2015 in Blog

READ MORE

Best EEPROM practices

(this article is a work in progress). My own advice will be added later...   Having...

12-10-2015 in Arduino

READ MORE
Scroll to top

We use cookies, just to track visits to our website, we store no personal details Privacy policy