Extensions: Module Featured Articles

Featured Articles

This module allows you to construct a list of articles by section, category, or article ID (similar to Latest News). It relies on the GD libraries, so make sure you have that configured in your web server’s php if you want to use the image feature of this module.

You have the option to also display the list with a thumbnail of the first image in the article itself.

The module comes with 3 style displays defined already: joomla, style, style2.

Continue reading “Extensions: Module Featured Articles”

Removing the PostDateIcon in a Joomla! Template

PostHeaderIcons (in Artisteer Templates) for Joomla!

If you have a template (more than likely generated by Artisteer) and you want to remove the PostDateIcon (or PostAuthorIcon) from displaying, here’s how to accomplish that task.

For whatever reason, the Artisteer templates apply the icons to the article date and author inside the html over-rides rather than through CSS (like they should).

You’ll need to edit /html/com_content/all_sub_dirs/default.php (or blog_item.php etc.)

Find the line like: 

 <?php ob_start(); ?><?php echo JHTML::_(‘image.site’, ‘PostDateIcon.png’, null, null, null, JText::_(“PostDateIcon”), array(‘width’ => ’17’, ‘height’ => ’18’)); ?> <?php echo JHTML::_(‘date’, $this->item->created, JText::_(‘DATE_FORMAT_LC2’)); ?>

You need to remove the

 <?php echo JHTML::_(‘image.site’, ‘PostDateIcon.png’, null, null, null, JText::_(“PostDateIcon”), array(‘width’ => ’17’, ‘height’ => ’18’)); ?>

part.

Then you may need to go into your /template/your_template/css/style.css and adjust the article header css some:

/* begin PostIcons */
.PostHeaderIcons, .PostHeaderIcons a, .PostHeaderIcons a:link, .PostHeaderIcons a:visited, .PostHeaderIcons a:hover
{
  font-family: Arial, Helvetica, Sans-Serif;
  font-size: 11px;
  color: #630F70;
}

 

 

 

Joomla! Component to Un-Register

Though you never want your users to leave your site, it is nice to provide them a method to do so, if they should desire.

Here’s a little component to allow a user to remove his account.  After you install it, add a new menu link to it. Select the removeme link and make sure to set it to Registered if you don’t want to bother guests with seeing it. Don’t use the notuser type for a link. It’s not meant to be assigned a menu link.

If you’d rather have your remove me function in a module, get the module and install it after the component.

You can download both the component and the module here.

Using MooTools in Joomla!

Adding an Accordion Effect to the Header of Your Template

I recently had occassion to want to place an accordion effect in the top of a template.

example image - accordion effectWhen you click a bar, it turns yellow and opens up its picture. When you hover over a bar, it also turns yellow.

Also, some of the images are linked to menu links so that if you change to one of the linked menu items, that particular picture pops open as opposed to always being the same picture actively displayed on page load.

In this article, we will take a look at how to integrate the javascript with the template.

Continue reading “Using MooTools in Joomla!”

Writing a Joomla! Module

There is a lovely extension out there for adding attachments to an article. It lets you upload/download files from an article. You install the component and a plugin, and the plugin displays the list of attachments at the base of the article content. You can find that extension here.

There are quite a few tutorials on how to write a Joomla! extension of the HelloWorld variety. I thought it would be amusing to write one with a practical application, for a change. I want the list of downloadable attachments to appear in a module location rather than in the article content.

If you are logged in to this site, you can download the module we will be writing in this article.

Continue reading “Writing a Joomla! Module”

AJAX in Joomla!

You want a form that updates one selector based on the selection made in another selector. For example, in your form, the user might click on a link to generate a select of all the site users so he can choose one user to interact with. You don’t want the list of users on the form, initially, for whatever reason.

The obvious solution comes to mind – AJAX. How do you accomplish that in Joomla?

First, you’ll need a component to listen for the AJAX requests and supply the updated HTML information to the form. While you’re at it, you probably want to make the form part of the component, just to be elegant.

Joomla! 1.5+ is built on a Model-View Controller concept, which basically means we want to keep our data (the model) separated from the display of it (the view). The MVC paradigm is a way of breaking an application, or even just a piece of an application’s interface, into three parts: the model, the view, and the controller.

 

MVC

 

 

Continue reading “AJAX in Joomla!”