We changed our privacy policy. Read more.

Questions tagged [joomla-2.5]

For questions regarding version 2.5 of the Joomla Content Management System. This version is part of the LTS (Long Term Support). Please note this version of Joomla is no longer supported and is recommended you migrate to Joomla 3.x

Filter by
Sorted by
Tagged with
17
votes
4answers
33k views

Adding custom CSS styling on some of my pages

I would like to add custom CSS styling to some of my pages to give them a unique style, and override the default template styling. How can I achieve this in Joomla?
17
votes
3answers
13k views

Joomla tmp directory - What is it for and can I delete its content?

My Joomla website currently uses about 100 MB of storage. I checked my folders and found out that the tmp folder is about 30MB and contains a number of files and folders named like "...
15
votes
2answers
39k views

Where is $this->baseurl defined in joomla?

I asked this question on stackoverflow.com first (question here). In the comments you can read that it would be better if I ask that question here. On my joomla website I'm using echo $this->...
15
votes
7answers
10k views

Upgrade from 2.5 to 3.x overview

This is something I have been curious on for some time considering a few things. How well is the "one click" upgrade going to improve prior to the EoL of Joomla! 2.5? Right now we have a very low ...
14
votes
4answers
10k views

How to check what component is being used on current page?

I want to set up my template so it will display different layout depending on what component is being used on current page. How to check for this?
14
votes
4answers
14k views

How to get Itemid by URL and pass it to JRoute

I have a menu item for a specific view in a custom component. Attached to this menu item I have another Template Style selected, not the standard template. Accessing the view via the menu works well, ...
13
votes
8answers
16k views

How to display module in component area

I often need to create a menu item that displays a module in the component area, without any other content. The way I solve this is to create a new article, and add only {loadposition mymodule} in ...
13
votes
2answers
2k views

How can I programmatically get the Joomla database prefix using php?

I sometimes access the Joomla DB via external scripts. The problem I have is that if I ever need to change the prefix, I'll need to edit my scripts again too. Is there a way to programmatically ...
12
votes
6answers
1k views

Joomla Component Tool or Scaffold?

I have created a couple of plugins for Joomla 3.2 and have recently started on a component to manage apartment rentals. I was wondering if there is a framework out there that had the basic file/folder ...
12
votes
3answers
3k views

Best method to check if a component is installed/enabled?

Between joomla 2.5 and 3.x what is the best way to check if another component is installed and/or enabled? There exist a helper class called JComponentHelper but I believe the isEnabled function will ...
12
votes
2answers
1k views

How to test a Joomla 2.5 component

I've asked this question on StackOverflow, and it was suggested that I ask it here. I'm familiar with unit/system/integration testing, and would like to be able to test my Joomla component. Is there ...
11
votes
3answers
24k views

How to get joomla version by http?

I have seen screenshots of a solution, there the Joomla version is getting detected by only accessing the page via http. E.g. the solution displayed all 3 digits of a version of Joomla. e.g. 2.5.28, ...
11
votes
2answers
10k views

Catching exception/error in database transaction

I am using the following way in joomla 2.5 and 3 to execute database query - $database = JFactory::getDBO(); $database->setQuery $database->execute(); but how do I catch errors/exceptions if ...
10
votes
4answers
2k views

How to develop a Joomla module?

I've looked far and wide for a tutorial on this, but can't seem to find anything satisfactory. How do you make a new module for joomla? Right now I'm using custom HTML modules all over my code, and ...
10
votes
2answers
4k views

Adding joomla's default toolbar in a component view page

I am developing a mvc component for both joomla 2.5 and 3.In many components i saw they added joomla's default command buttons like new, edit, publish, trash, options at top of their settings page in ...
10
votes
1answer
2k views

Understanding CSS classes applied to menus: "deeper" and "parent"

I'm trying to understand the difference between the "deeper" and "parent" class names applied to parent li elements in a default Joomla 2.5 menu. They always seem to be applied together? It is always "...
9
votes
2answers
16k views

How to stop (fake) users from registering on my website?

I administer a website which does not require users to register. The only user that is needed is the Super User. The problem is that I found a large number of new registered users. First I want to ...
9
votes
4answers
987 views

Scaling Joomla with Database read write splitting

I've got a mysql server with in North America (using Amazon RDS) and a read replica. I've also got a read replica for a new region - Australia. The Australian server is brutally slow due to the ...
8
votes
5answers
1k views

How to append the site title to all pages except the front page?

In the Joomla 2.5 Global Configuration under SEO, there is the option to "Include Site Name in Page Titles", with the options "After", "Before" or "No". However, how do you include the site name ("...
8
votes
3answers
4k views

No notification to update to latest Joomla version

I am managing a site powered by Joomla 2.5 (online installation) and hosted on Joomla free hosting. Only since the latest 2-3 months it happens that I don't receive anymore the emails reminding to ...
8
votes
2answers
372 views

Where to place code in Joomla modules

When developing a Joomla extension, are there any best practices, guidelines or recommendations regarding where to place the different parts of my code (PHP and HTML)? I'm mostly thinking about the ...
8
votes
1answer
4k views

How to allow registered users on offline site

When putting my Joomla site in offline mode, only Super Users can log in and view the site: How can I allow registered users to log in and see the site even in offline mode, without giving them Super ...
8
votes
1answer
4k views

How to remove "Joomla! 2.5 Support Is Ending On December 31, 2014!" from admin panel?

I want to remove this message from my admin panel: Joomla! 2.5 Support Is Ending On December 31, 2014! Click Here for More Information. The message appeared after updating to the 2.5.28 version. ...
8
votes
1answer
925 views

Confirmation message when deleting items in the media manager

I would like to have a confirmation message when I delete the items the media manager. For now, to delete an image, I just have to click on the top-right cross and the image is gone: if I make a ...
8
votes
6answers
2k views

How can I create a menu item on a different subdomain?

I want to create a menu-structure like this in Joomla 2.5: Root (www.example.com) About (www.example.com/about) Site a (a.example.com) Site b (b.example.com) Is it possible to create menu items ...
7
votes
2answers
5k views

Model getListQuery() fetch all rows with using JPagination

I have method getListQuery() in my model, which return query. As we know, Joomla automically set limit and offset to query when we use JPagination. I have problem, that I want to use JPagination and ...
7
votes
2answers
2k views

How do deal with Multiple Article Authors (with/without K2)

I have got in our company Joomla publication software to care about. We are using Joomla to publish technical magazine articles. Mostly one article have 2-3 authors. In the past the admins solved ...
7
votes
1answer
344 views

Understanding mvc way of component coding for both joomla 2.5 and 3 version

I made a component in joomla 2.5 in mvc way which was not working in joomla 3, later found out it's because in joomla 3 previous mvc classes not working so is controller, view, model classes must be ...
7
votes
3answers
2k views

Is "Uncategorised" a Category?

While editing the articles tag, I read about articles on the Joomla! Documentation site, and noticed this: It is also possible to have Uncategorised Articles. These articles exist without being ...
7
votes
2answers
918 views

Automatically publish plugin after installation

I've created a couple of small plugins that I install on most of my websites. But new plugins are (fortunately) disabled by default when installed. I know it's only a couple of clicks to enable the ...
7
votes
1answer
553 views

How to access an array in $_GET using JInput?

I've been researching different ways to get an array using JInput. According to http://docs.joomla.org/Retrieving_request_data_using_JInput there are 2 methods that I can use. Method1 $jinput = ...
6
votes
5answers
7k views

Upgrade to Joomla 3 not available

I've got a Joomla 2.5.28 site that I want to upgrade to Joomla 3.3.x. All available docs say all I need to do is set my update server to short term, and the 3.x series upgrade option will appear. ...
6
votes
2answers
6k views

Restrict user access to specific com_content category

I want to restrict user access to only one specific category for content component. I have an idea to create new user group, give access to this group to edit this one category and then assign user to ...
6
votes
3answers
1k views

Adding Mathjax to a Joomla website

I would like to add MathJax functionality to my website but I have no idea how to go about doing so. Does this require using a specific template or modifying an existing one? (I'm currently using ...
6
votes
3answers
3k views

Is it possible to redirect a admin user to a specific component after login?

Not too much else to add to the question really, I'm trying to redirect a specific user group to a specific area after they log in to the administrator back-end, but I'm not sure if this is possible. ...
6
votes
3answers
3k views

Joomla! JFactory::getDate wrong

According to the documentation JFactory/getDate $tzOffset default value is 0. However, the following example: $date_default_offset = JFactory::getDate('now'); echo $date_default_offset->toRFC822(...
6
votes
2answers
6k views

What's the purpose of $this->get('Item') in Joomla view.html.php example file?

I refer to the code below, presented in Developing a MVC Component - Front End Function Example: class HelloWorldViewUpdHelloWorld extends JView { // Overwriting JView display method function ...
6
votes
1answer
437 views

jdoc: include in Joomla

Hi I am a newbie in Joomla and want to understand one of the functionalities of the Joomla. In joomla templates we use jdoc:include type="component" statement. But I am not able to understand how ...
6
votes
1answer
765 views

Custom XML attributes not showing in HTML markup

Here is the XML for a particular form field: <field type="text" name="first-name" id="first-name" label="MOD_LABEL_FIRST_NAME" required="required" maxlength="27" color="yellow" /> My ...
6
votes
1answer
178 views

Joomla Administrator : Sub menus are getting displayed 6 times instead of one?

Whenever i select a category like users/content etc from administrator area the submenus are getting displayed 6 times. Like the below picture for Users. Debug: Administrator template (hathor/index....
6
votes
1answer
2k views

Redirect to previous page after login in custom component

I want redirect users after login Current link in joomla 2.5 custom component I use this code but after login i have error 500 $user =& JFactory::getUser(); $mainframe = ...
6
votes
1answer
342 views

Empty tag is replaced with unicode replacement character

I'm saving rich texts from my custom component. It uses wysiwyg editor. Therefore there are html codes also. <table> <tbody> <!-- More here --> <tr> <td colspan="5"> &...
6
votes
2answers
3k views

Logging in user without getting password from them

My requirement is something like login by Facebook, so the user does not provide password but gets logged in. I want to make a user logged in from within extension code by knowing his user id and/or ...
6
votes
1answer
51 views

Using "Joom" as part of extension name

The Joomla documentation states clearly that it's not permitted to use the word "Joomla" as part of an extension name, unless it's called "MyExtension for Joomla!" (except with a license): The ...
6
votes
4answers
2k views

What's the correct method to get the alias of the active page

I want to load some JS but only on the page where it is needed. I'm trying to use the alias of the active article to determine that. My code in the component.php file is: $path = &JFactory::...
6
votes
1answer
98 views

What should be last, cache plugins or CDN plugins?

I'm running several plugins to try to speed up our site and make the load on the server a bit lighter. I've got JotCache and NoNumber Joomla CDN running, along with the template itself compressing ...
5
votes
3answers
5k views

Migrating component from 2.5 to 3.3

This documentation: Adapting a Joomla 1.5 extension to Joomla 2.5 http://docs.joomla.org/Adapting_a_Joomla_1.5_extension_to_Joomla_1.6#Renamed_events Really helped me when I migrated my component to ...
5
votes
3answers
631 views

Non-static method JUserHelper::getProfile() should not be called statically

I was refactoring some code in an older component and I came across this warning: Strict standards: Non-static method JUserHelper::getProfile() should not be called statically, assuming $this from ...
5
votes
3answers
2k views

Get module parameters using loop

I'm creating a module for a website, and to get the module parameters I do something like this: //-- Get a parameter from the module's configuration $company1_enable = $params->get('...
5
votes
2answers
3k views

What is best approach to show the component page in popup-modal window without header and footer?

I have developed a custom component that displays some information. I want to show the same information in modal popup window without header and footer information. what should be best approach to ...

1
2 3 4 5
9