Joomla is a free and open source content management system (CMS) for publishing content on the World Wide Web and intranets and a model–view–controller (MVC) Web application framework that can also be used independently.
Joomla is written in PHP, uses object-oriented programming (OOP) techniques and software design patterns[citation needed], stores data in a MySQL database, and includes features such as page caching, RSS feeds, printable versions of pages, news flashes, blogs, polls, search, and support for language internationalization.
Sometimes web designers need to access a page class suffix from directly within a template. A common reason to do this is to assign unique styles to individual pages linked from a menu (e.g. to change the dominant color on that page). By default Joomla applies the page class suffixes only to limited areas of a page, which often doesn’t offer enough flexibility. However, by making some simple changes to your template you can take advantage of the cascading nature of stylesheets to apply unique styles to any element on a page.
Load Suffix
First, we need to find out what the page class suffix is for the page we are visiting. To do this, you will need add some code to your template:
[custom_list type=”check”]
- Open your template’s index.php file (located in /templates/*template-name*/)
- Find the tag in the index.php, near the top area of the template
- Above this, insert one of the following code blocks (Either of the following options will work fine in most cases. However they work slightly differently, so in certain cases your needs may dictate a specific choice.)
[/custom_list]
(more…)
If you have experienced this error in your webpage:
Fatal error: Cannot use object of type stdClass as array in /modules/mod_jf_twitter/helper.php on line 38
Then it is a problem of “JF Twitter” module. Do the following on /modules/mod_jf_twitter/helper.php/helper.php on line 38:
(more…)
My contact forms no longer work in Chrome or Safari. The form will load but errors occur upon clicking “send”. Works still in firefox and Explorer. (more…)
Problem: How to get menu Itemid? or How to get active menu item properties in joomla?
To get menu “Itemid” use the following code
$menus = &JSite::getMenu();
$menu = $menus->getActive();
$itemid = $menu->id;
(more…)
Use the code below to check if a user is logged in. This is useful if you want to only show certain parts of your component to registered users and not non-registred users. Have fun.
(more…)
Basics
For every request in Joomla!, there is one user. Information about this user is readily available through the Joomla! framework in the form of an object. To get this object for the current user, use the following member function of JFactory:
$user =& JFactory::getUser();
(more…)
Please note that this article only applies to Joomla 1.5.
I use custom user groups (user roles) within Joomla 1.5. For example under the registered users group I’ve added several subgroups:
myproject
customers
customer A admin
product manager
product manager admin
etc....
(more…)
Rumor has it that Joomla! 1.6 will have customizable access levels. Until then, however, the only way to customize access to your site is via third party extensions or hacking Joomla! yourself. The popular third party extensions (which shall here remain nameless) tend to be commercial, charging a fee or subscription for the latest and greatest version, and requiring registration even for the unsupported or semi-supported old versions. If you haven’t used them before, you can’t be sure of how well they’ll integrate with the rest of Joomla! This is obviously not an ideal solution, especially for the webmaster on a budget. Following are instructions for hacking Joomla! yourself to add an extra user level called “Subscriber” who can be given access, for example, to premium paid content. These steps were carried out successfully on a Joomla! 1.5.10 installation, but there are no guarantees, as the author is not a Joomla! developer; try at your own risk!
(more…)
to allow your custom components to access Joomla's content plugins [php] $text = JHTML::_('content.prepare', $text ); [/php]
navigate to administrator/components/com_k2/models/category.php replace the two liens below [php] $handle->image_resize = true; $handle->image_ratio_y = true; [/php] with [php] $handle->image_resize = false; $handle->image_ratio_y = false; [/php] :)