JOOMLA FICTION LAB
When you want to display only a certain amount of characters of a text block in Joomla, you can use the class JHTML and the method truncate.
With this code you can load the parameters of any Joomla module inside an external php file.

How to load the Joomla framework inside an external file

by minitek Monday, 02 April 2012 13:56
In some cases, like when you are accessing an external php file through an ajax call, it is necessary to load the Joomla framework inside that file. Loading the framework will ensure that you can use the Joomla classes and methods in the external file.
In php you can emulate an ajax request by inserting a proper header. With this header you can prevent users from directly accessing php pages that are meant only for ajax calls.

How to dynamically resize a div with javascript and jQuery

by minitek Wednesday, 14 March 2012 15:18
When you are designing a website, in some cases you will find your self in a situation where the width of a div element must be dynamically resized taking into account the static width of another div element.

How to modify the Joomla generator tag

by minitek Wednesday, 07 March 2012 14:23
Joomla generates a meta tag that is included in the head section of the page stating that the website is built with the Joomla! CMS.

How to redirect using the Joomla API

by minitek Tuesday, 28 February 2012 14:06
You can use the Joomla API to easily redirect to another url and display a relevant message after the redirection.

How to strip specific words from a string with php

by minitek Wednesday, 22 February 2012 11:46
With this simple php script you can remove any specified words from a string. This is very useful when you need to filter input to strip forbidden words.

How to reset or clear a form with jQuery

by minitek Thursday, 16 February 2012 11:16
With the jQuery Form Plugin you can easily clear the form elements by clicking on a button and empty all text, password, textarea, select, radio and checkbox inputs.

How to create an iframe-wrapper in Joomla with dynamic height

by minitek Wednesday, 08 February 2012 18:41
In Joomla you can insert an iframe inside the component area using the wrapper component. You can also set the iframe height when you create the wrapper menu item however you must insert a specific value for the height. So what can you do if…
Page 1 of 9