Questions tagged [joomla2.5]

Joomla! is an open-source CMS written in PHP and powered by an MVC-oriented framework. Please note that version 2.5 is no longer a supported release and it's highly recommended to upgrade to the latest version. Joomla! questions about programming and administration are best asked on https://joomla.stackexchange.com

Joomla! 2.5

Joomla! is an open-source CMS written in PHP and powered by an MVC-oriented framework. Thousands of extensions are available and can be installed through the admin interface.

Version 2.5 has ended it's life on December 31st, 2014 and it's highly recommended to upgrade to the latest version.

Resources

Related tags

2676 questions
10
votes
1 answer

joomla assets table purpose

could you please explain to me what is the purpose of assets table in joomla? I have script for import articles from .csv (from .xls) that just inserts new rows in content table with asset_id column (foreign key) set to 0. I haven't find any…
Buksy
  • 11,571
  • 9
  • 62
  • 69
9
votes
7 answers

Insert multiple rows using a single query

Can Joomla's DB object add multiple rows at once? MySQL can do this like so: INSERT INTO x (a,b) VALUES ('1', 'one'), ('2', 'two'), ('3', 'three') But can Joomla's own functions achieve the same thing in a single query? Currently I am doing a…
exentric
  • 177
  • 1
  • 4
  • 12
9
votes
7 answers

Joomla - Controller task that returns JSON data

I have the task run in my controller. I want it to return JSON data. As it stands, I am getting my JSON data wrapped inside the template HTML. How do I tell Joomla to just return JSON data from the controller? This is the function I have: public…
Jeffrey Ray
  • 1,244
  • 2
  • 9
  • 20
9
votes
3 answers

Joomla! JDatabase::getErrorNum() is deprecated, use exception handling instead

I have the following code: $db = JFactory::getDbo(); $query = $db->getQuery(true); $query->select('*'); $query->from('#__users'); $db->setQuery($query); // Check for a database error. if ($db->getErrorNum()) { …
Valentin Despa
  • 40,712
  • 18
  • 80
  • 106
9
votes
1 answer

When should I use setUserState in Joomla?

DETAILS I can use user state variables to store and retrieve data in Joomla sessions. EXAMPLE set variable $app =& JFactory::getApplication(); $app->setUserState( 'myvar', $myvarvalue ); but I can also store and retrieve variables in session using…
TryHarder
  • 2,704
  • 8
  • 47
  • 65
9
votes
2 answers

How to prevent race conditions when writing/ reading joomla session variables from an external php script?

QUESTIONS Is the intermittent loss of session data likely to be due to a race condition?If no, what is likely to be the problem? How can I prevent race conditions when writing/ reading joomla session variables from an external php…
TryHarder
  • 2,704
  • 8
  • 47
  • 65
9
votes
1 answer

Joomla 2.5, Accessing template parameters in component's template

What is the correct way to access template parameters in components template in Joomla 2.5? There are something implementations for earlier versions of Joomla but not for 2.5. http://forum.joomla.org/viewtopic.php?p=2166990#p2166903
Roger Wayne
  • 419
  • 3
  • 20
9
votes
4 answers

How to Get User Group Names in Joomla 2.5

I'm writing a Joomla 2.5 component that I had been developing in Joomla 1.7. I have been using code like this: $user = JFactory::getUser(); $groups = $user->get('groups'); The $groups array would contain a list of ids with the group name as the…
nsimon
  • 91
  • 1
  • 1
  • 5
8
votes
2 answers

How to disable registration email in joomla 2.5 and 3

When registering a new Joomla user, an email is sent to the new users email address containing the username and password. Does anyone know how to disable this functionality, so that new users does not recieve this email?
jonasfh
  • 4,151
  • 2
  • 21
  • 37
8
votes
2 answers

Captcha recaptcha does not work anymore

It was working perfect yestarday but today the captcha does not appear anymore. I debuged the code and I realized that my joomla plugin captcharecaptcha is including this file when rendering the page as a javascript file…
themhz
  • 8,335
  • 21
  • 84
  • 109
8
votes
1 answer

How to use cookies from a component?

How can I use cookies in a Joomla component? setcookie( JUtility::getHash('JLOGIN_REMEMBER'), false, time() - 86400, '/' ); Can anybody describe how this works?
Ankur Alankar Biswal
  • 1,184
  • 1
  • 12
  • 23
8
votes
4 answers

How to create a custom form field type in a module?

Im useing joomla 2.5, and I want to create a custom form field type that stored in the same module. In the XML:
Mansour Alnasser
  • 4,446
  • 5
  • 40
  • 51
7
votes
2 answers

How to show all sub-categories articles?

Choosing menu item type to "Category Blog,List All Categories, and Category List" would result all subcategories link not direct to all articles of sub-categories. But I want to show directly the all articles of sub-categories. main-category …
Bhojendra Rauniyar
  • 83,432
  • 35
  • 168
  • 231
7
votes
1 answer

How to make a template overwrite for mod_menu with alternative layouts for link outputs?

I understand and love template overwrites. I need to do some heavier changes to the menu output (basically making the output work better with Bootstrap) - but only for certain menus. Currently in Joomla 3 there are the following in the…
Gisto
  • 887
  • 2
  • 16
  • 32
7
votes
4 answers

JFolder::create: Could not create directory - Joomla

I end up with below error when I try to install a component,module or plugin. JFolder::create: Could not create directory What could be the issue?
Techie
  • 44,706
  • 42
  • 157
  • 243