Joomla


21September

Open Joomla modal with Javascript

To open a modal box in Joomla using Javascript, first make sure the modal behavior is loaded:

JHTML::_('behavior.modal');

Then, open an external resource with an iframe handler:

SqueezeBox.setContent( 'iframe', 'http://google.com' );

Posted in Joomla, Tutorials, Development

31August

Pop-up calendar in Joomla

The Joomla frameworks offers an easy solution to insert a date field with a pop-up calender select box, to easily select a date. The pop-up is Mootools operated.

Posted in Joomla, Tutorials

27July

Execute Joomla content plugins on string

In Joomla 1.7 (and I assume Joomla 1.6) you can very easily execute content plugins on a string.

$text = JHTML::_('content.prepare', $text );

This is much simpler than the previous method in Joomla 1.5:

$Item = JTable::getInstance('content');
$dispatcher = JDispatcher::getInstance();
$params = new JParameter('');
JPluginHelper::importPlugin('content');
$Item->parameters = new JParameter('');
$Item->id = "";
$Item->state = "";
$Item->catid = "";
$Item->sectionid "";
$Item->title "";
$Item->text = "Your text with {content plugin code}";

// Apply content plugins to custom text
$results = $dispatcher->trigger('onPrepareContent', array (&$Item, &$params, 0));

Posted in Joomla, Tutorials

25June

Passing Joomla session variables to Flash

Flash does not load browser cookies when sending HTTP requests (except in Internet Explorer where persistent cookies are loaded). Any requests from Flash will be processed as a new user agent.

This raised a problem for me when trying to perform an AJAX request from a Flash object which required session data from Joomla. The session data of the user performing the request was not passed.

Obviously, I'm not the first to experience this issue and it is widely discussed elsewhere, but not so much when it comes to Joomla.

Posted in Joomla, Tutorials

05June

E-mail could not be sent in Joomla ‘Send to a friend’ feature

The "send to friend" feature in Joomla allows you to recommend pages to your friends by emailing them directly from Joomla. One common cause of the E-mail could not be sent error message is the anti-spam measure enforced by Joomla. If you try to send an email within 20 seconds of opening the page, Joomla will produce this error message.

Posted in Joomla

08May

Joomla! 1.6.0: SQL Injection Vulnerability

Joomla! 1.6.0 was vulnerable to SQL Injection. Parameters (filter_order, filer_order_Dir) were not properly sanitized in Joomla!, which lead to the SQL Injection vulnerability. This could allow an attacker to inject or manipulate SQL queries in the back-end database, allowing for the manipulation or disclosure of arbitrary data.

The vulnerability was fixed in Joomla! 1.6.1.

Posted in Joomla

About Dave Horsfall

Dave Horsfall is a British software developer and founder of the hwdMediaShare project. More...

Recent Comments

  • Ppl like you get all the brains. I just get to say thanks for he awnesr.

    Rosa, 06. September, 2011 |

  • Ppl like you get all the brains. I just get to say thanks for he awnesr.

    Rosa, 06. September, 2011 |

  • No, the file should be called "project.properties", and it should be located in the same directory as the file called "project.xml". I'm...

    Dave Horsfall, 29. August, 2011 |

  • There is no file called "project.properties". There is a file "project.xml" is this the one? It is not "simple text" though...

    OppfinnarJocke, 29. August, 2011 |