Archive for the ‘Hacks’ Category

CAPTCHA by own strength: Registration form and Lost password form

Friday, July 13th, 2007

Tags: ,

Now it is a turn to embed captcha in registration form and lost password form. Though the last is not very much necessary (it is to complete the picture).

(more…)

CAPTCHA by own strength: Backend login form

Wednesday, July 4th, 2007

Tags: ,

Allow me to begin a series of articles devoted to embedding of CAPTCHA in Joomla. I know only one project, allowing such embedding, it is Security Images. But this component has some disadvantage, e.g. its size is 1.5Mb in zip-archive. I’ll tell how to embed such a protection by own strength.

For the present I plan following articles:

(more…)

Optimization of queries to a database in Joomla!. Part 1

Thursday, June 14th, 2007

Tags: , ,

Let’s install Joomla! 1.0.12 on a server and set in Back End:

Administration / Site / Global Configuration / Site / Debug site: Yes

Then we save changes and leave from Back End. Now we come on a site. Result—36 queries to a database.

Now we switch on caching in Back End:

Administration / Site / Global Configuration / Cache / Caching: Yes

We come on a site and press “Update” in a browser, to check up, whether the number of queries has decreased. Result—33 queries to a database. Not much better.

(more…)

Problem with PDA-subdomain-mambot and cache

Tuesday, June 12th, 2007

Tags: , , , ,

In some cases, using the mambot you can have problems with display of links on page (from the main domain there can be a link to a pda, and vice versa). It is connected with not absolutely correct work of joomla’s system of caching which does not know, that a site can be visited from different addresses.

(more…)

Joomla! com_search glitch

Monday, May 28th, 2007

Tags: ,

Let’s come on a site joomla.org and click on the Search menu item. Now we enter text “test   test” for search (with three spaces between words!). As a result of the search the huge document with a lot of “<span class=”highlight”></span>” is received.

To get rid of this glitch, it is necessary (more…)

How to make relative links on the pages?

Friday, May 25th, 2007

Tags: ,

By default, Joomla! inserts into a page absolute (”http://site.com/page”), instead of relative (”/page”) links. It has an advantage—for example if someone will copy the text of your pages all links still will point to your site. But authors of some sites wish, that on their site all links were relative since it can noticeably reduce the size of page.

(more…)

Why Homepage is “index.php?option=com_frontpage&Itemid=1″?

Friday, May 25th, 2007

Tags: , seo,

The question why Homepage is accessible to addresses http://site.com/ and http://site.com/index.php?option=com_frontpage&Itemid=1 arises on a regular basis. More precisely, there is a question “How to get rid of it?”

I know at least two solutions of this problem.

(more…)