Zend_Log wrapper

This is a small class to wrap a zend log, so we dont have to call the registry and the logger to log a message.

With this, instead of :

$logger = Zend_Registry::get('log');
$logger->info($message);

we can do:

ZC_FileLogger::info($message);

The full class:

<?php
class ZC_FileLogger
{
    /**
     *
     * @var Zend_Log
     */
    protected $logger;

    /**
     *
     * @var ZC_FileLogger
     */
    static $fileLogger = null;

    public static function getInstance()
    {
        if (self::$fileLogger === null)
        {
            self::$fileLogger = new self();
        }
        return self::$fileLogger;
    }
    /**
     *
     * @return Zend_Log
     */
    public function getLog()
    {
        return $this->logger;
    }

    protected function __construct()
    {
        $this->logger = Zend_Registry::get('log');
    }
    /**
     * log a message
     * @param string $message
     */
    public static function info($message)
    {
        self::getInstance()->getLog()->info($message);
    }
}

Credits: Jon Lebensold

Exam Enrollments

A Joomla component to allow students to enroll themselves on-line into exams.

It’s made having in mind Portuguese K12 Professional Courses, but its quite generic, so it probably works for other countries/models as well.

The only language is Portuguese, but you are free to translate it, and if you do, please send it to me so I can add it to the package.

You can see it working in the video below (available soon), and you can get it here.

Check out the pictures below.

Application admin
Application admin

Students/Exams list
Students/Exams list

Admin edit options
Admin edit options

Form so a student enrolls in an exam
Form so a student enrolls in an exam

Student checks exams list
Student checks exams list

File Selector

A component to select a file to download using up to 4 selection criteria, in 4 selection drop down menus. I created this in 2008.

I use it in my school website to make the all the final grades available. For example, the user would choose the year, the level and the class he is in, and would download the required pdf file with the class grades. Furthermore, it has a full functional back office to create different document types, that will show in different web pages, and to upload several files at once. When creating the link, you will be able to choose the document type, the page title and if you want to show the downloads count for that document type. Since version 1.0.3 there’s also the option to show the selection menus vertically.

The files download count are also marked, but I don’t show them in the site front end, only in the administrator view. It requires PHP5.

As of version 2.0.0, its designed for Joomla! 1.6.x .

NOTE: I used PHP short tags, so if you have some problems with the component, try following this instructions:
http://www.cyberciti.biz/faq/php-allow-short_open_tag/
If you still have problems, feel free to contact me and I’ll try to help you out. I will solve that issue whenever I make a new version for this.

You can see it working here, and you can get it here.

Check out the pictures below.

File selector
File selector

Main back-end
Main back-end

Creating a new document type
Creating a new document type

Uploading files
Uploading files

Folding Menu

It’s vertical accordion menu I created in 2007.

Actually, I remastered the original Joomla menu module and made it an accordion menu adding some JavaScript.

I didn’t use any JavaScript framework like JQuery, so the movement is not fluid, but its practical and that is what was needed at the time.

You can see it working here, and you can get it here.

Img Shortcuts

A module to show images with links (shortcuts) in the sidebars.

Images have the same size in an instance of the module, but each instance can have different sizes. The only draw back is that it doesn’t have an upload widget for the images, so before using an image you have to upload it to the server using as FTP client or similar solution.

You can see it working here, and you can get it here.

Check out the pictures below.

Img shortcuts
Embeded in a webpage

Back-end
Back-end

Small Quotes

Just a simple module to show a random quote. I created this in 2007.

In the back-end you write a list of quotes in the format of “quote|author”, each quote in a different line.

In the front-end it shows a random quote each time the page loads.

You can see it working here, and you can get it here.

Check out the pictures below.

Quote block
Quote block

Quote block in a web page
Quote block in a web page

back-end
Back-end

Category based portfolio

Another one of my WordPress plugins.

This one creates a portfolio of images and/or videos, with different categories.

A portfolio entry is nothing more than a post with a bunch of images and/or youtube videos thrown into it. This post belongs to some category, which identifies the portfolio it belongs to.

Included in this plugin, there is a widget that shows the newest additions to the portfolio.

Once you load a portfolio, it will start loading all the other portfolios in the background using AJAX. This way the first page loads as fast as possible, and when you visit another portfolio it will be instantaneous because it will be already loaded. If it was not designed this way, it would take a long time to visit all portfolios because it would have to load the page every time and the images are usualy quite heavy.

You can check it working here, and see some pictures below.

Random quotes

This was my first WordPress plugin. Its just a tiny plugin to show some text (quote) somewhere in a post or page.

You just have to install it, activate it, edit the post or page where u want the quote to appear and put [ rdm-quote ] where ever you want.

In the backoffice, in “settings”>”random quote” you can insert the quotes in the format “quote|author”, there’s a lot of examples so you shouldn’t have a problem.

Also, the CSS is also editable through the WordPress back office.

Here’s how it works, every time you reload this page, it will show a different quote:

[rdm-quote]

 

Some day, when I’m bored, I will eventually add some option to cycle through quotes automatically.

You can download it here.