Currently Browsing

Posts Tagged ‘ joomla ’

How to generate Joomla article alias for cyrillic title

JFilterOutput::stringURLUnicodeSlug($title);
Share

How to add custom fields to Joomla 1.7 registration form

There are ways to do so.

  1. There are some predefined fields in User-Profile plugin. Like address or ZIP. So if you want to use them just activate this plugin and configure it as you like.
  2. If you want to add your own custom fields you must have access to database where your site data is stored.
Share

Using parameter %s in Joomla language files

Sometimes you want to write in your ini files something like

MESSAGE=Thank you for registration, %s! Now you can <a href="%s">login</a>.

and then while displaying this message substitute necessary strings instead of %s.

So. Joomla does allow this but only for language files. To parse this message you should write

JText::sprintf('MESSAGE', $username, $url)

The first parameter is property name. The second parameter $username goes for first %s, $url goes for second %s and so on.

Share

Problem with uploading files to ccBoard

ccBoard is a forum extension for Joomla CMS. One of the best actually.

The only problem I’ve encountered with is the problem with file upload. I couldn’t upload some files even if ccBoard settings and Joomla global settings are ok.

The solution is that file name shouldn’t contain certain symbols. After some testing I’ve found out that correct symbols (that file name should consist of) are latin letters, dot and space.

UPD: ccBoard is now in Joomla vulnerable extensions list. So until the developer fixes it please do not use this forum. I like Discussions instead.

UPD2: It seems that author has fixed this vulnerability.

Share