Blog Tags

Lab Eleven Blogs

A short description about your blog
Tags >> Joomla

How to Submit Additional Images in Virtuemart

Posted by: twmeier

Tagged in: Joomla , Components

Adding a singe image to a product is easy. Adding additional images can be confusing.

To add additional images to a product, find your product in the Product list in the backend of your website.

 In the "Media" column, you will see a small icon. Click this icon. On the next page, you will be able to add more images to the product. You can also add other types of media such as a PDF.

That is all there is to it.


Joomla 1.5 Custom Breadcrumbs

Posted by: gbluma

Tagged in: Programming , PHP , Joomla , Components

Joomla seems to have everything figured out — Breadcrumb support is no exception.

Recently we were writing some custom component for a client and needed to handle the breadcrumbs in a special way that Joomla couldn't manage automatically.

As a simplified example, imagine we redirect a user to a component that isn't attached to a menu. We would expect the breadcrumbs to simply output "Home" and provide a link back to the index of the site.


Joomla 1.5 Database Functions

Posted by: twmeier

Tagged in: Programming , PHP , Joomla

Sometimes it may be hard to know how to best use Joomla's database class. Here are just a few of the most used database functions.

In Joomla 1.5, include the following line of code inside your php:

<?php
     $database  =& JFactory::getDBO();
?>

Use the $loadObject function when you want to retrieve one row from the database. For example:

$database->setQuery("SELECT * FROM jos_comprofiler WHERE id=125");
$userDetails = $database->loadObject();

You can now access the values as follows:

$userDetails->firstname
$userDetails->lastname
.....

If you want to retrieve more than one row from the database, use the loabObjectList() function. For example:

$database->setQuery("SELECT * FROM jos_comprofiler WHERE id<125");
$userDetails = $database->loadObjectList();

You will now have an array of objects. You can access the values as follows:

$userDetails[0]->firstname
$userDetails[0]->lastname
$userDetails[1]->firstname
$userDetails[1]->lastname
.....

If you want to retrieve a single value from the database, use the loadResult() function. For example:

$database->setQuery("SELECT COUNT(*) FROM jos_comprofiler");
$count= $database->loadResult();

You now have a regular php variable. In this case $count.

There are other Joomla database functions, but these three are the most common.


Embedding Videos in Joomla Content

Posted by: twmeier

Tagged in: Plugins , Joomla

Embedding videos inside your Joomla content is easy. There are several Joomla plugins that make it a snap.

The plugin I would suggest is called the AllVideos (by cialis JoomlaWorks), and can be downloaded for free at www.joomla.org.

Once you have installed the plugin, you will need to enable it by going to the "Plugin Manager" in the backend of your Joomla site (/administrator).

Below are some of the plugins features:

1. Dozens of video providers supported, including localized versions of YouTube and Google Video (e.g. es.youtube.com).
2. Stream your own media content, using the most popular video or audio formats for the web (flv, swf, mov, mp4, wmv, wma, mp3, 3gp, divx). You can even use high-definition videos!
3. Easily embed your media content either directly from your server or a remote server!
4. Simple controls inside the plugin's parameters page provide layout consistency on all the videos shown in your Joomla! website. Set your preferences in seconds, publish the plugin and you're ready to start streaming content!
5. Easy, descriptive syntax for media embedding - {format/provider}filename{/format/provider}. You can also use syntax like {format/provider}filename|width|height{/format/provider} (e.g. {youtube}he73js822|600|450{/youtube}) to display videos at different dimensions!
6. Skinnable! AllVideos uses CSS templates to wrap the players, we provide 2 to get you started.

Basically to use this plugin, you must first install and enable it in the backend of you Joomla website (/administrator), then you would simply insert the curly bracket text into your content.
This does not need to be done in HTML, and can simply be text.

To embed an FLV file directly into your content, you would simple upload the video to the folder that the plugin has designated (by default it is images/stories/videos), and use the following text: 
{flv}btodd09|500|400|true{/flv}

From this example, you will notice that you do not need to include the .flv extension. You will also notice that the width and height are determined by the 500 and 400 respectively. By adding "|true", you will can also automatically start your video.

You can get more information on how to use the plugin at their website:
http://www.joomlaworks.gr/content/view/35/41/


Modifying Page Title, Keywords and Description

Posted by: twmeier

Tagged in: SEO , Joomla

Modifying the page title, keywords and description for a page created by a component  in Joomla is very simple.

Inside your component, add the following:

<?php
global $mainframe;
$mainframe->SetPageTitle("Some Page Title");
$mainframe->appendMetaTag( "description", "Some Description.");
$mainframe->appendMetaTag( "keywords", "keyword1, keyword2");
?>

It is that simple.


Changing Page Title and Meta Info in Joomla

Posted by: twmeier

Tagged in: Programming , Joomla , Components

Changing the Page Title and the Meta Tags (keywords and description) in a Joomla Component is simple (this does not apply to articles or the home page of your site).

The first step is to include the following line of code inside php tags:

global $mainframe;

Then simply use the following functions to change the Page Title, Meta Keywords and the Meta Description:

$mainframe->SetPageTitle("Some Page Title");
$mainframe->appendMetaTag( "description", "Some Description.");
$mainframe->appendMetaTag( "keywords", "keyword, keyword2");

Since this code is php, it should all be inside php tags like it is below:


global $mainframe;

$mainframe->SetPageTitle("Some Page Title");
$mainframe->appendMetaTag( "description", "Some Description.");
$mainframe->appendMetaTag( "keywords", "keyword, keyword2");

?>

That is all there is too it. You will notice that your Meta Description and Keywords will be appended to your global Meta Description and Keywords, which can be found in the "Global Configurations" in the backend of Joomla.


Turn on Caching to Speed Up Your Joomla Site

Posted by: twmeier

Tagged in: Joomla

There is a simple and effective way to help speed up your Joomla site. It is called "caching". When you use the caching feature, Joomla creates a static file (or cache), of your web pages. This means that your website can use this cached file instead of making redundant database calls each time someone goes to a page. This in turn saves time and speeds up your site.


Writing a Joomla 1.5 Content Plugin

Posted by: gbluma

Tagged in: Programming , Plugins , PHP , Joomla

This article will show you how to build a quick plugin to replace some text in an article before it get's displayed to the user.

Intro

Lately I've been writing a number of content plugins for Joomla. They're pretty simple, but basically it allows you to transform the content at a number of points in Joomla's process of editing, saving, and displaying of that content. In theory you could use it to do anything but it's common to replace text and/or add special content into the articles.

I used to frown on these types of plugins because it's better to just get the data right in the first place. But sometimes controlling the input just isn't possible or perhaps you need to keep the article in a certain format but display it in another format.


Creating a Joomla Menu Item

Posted by: twmeier

Tagged in: Joomla

Creating a new menu item in Joomla is extremely easy. Joomla uses these menu items to create a menu of links as seen below.

menu


How to add pages in Joomla

Posted by: twmeier

Tagged in: Joomla

The first step in adding a page in Joomla is to understand how Joomla displays pages. To display page, Joomla uses what it calls articles. Articles can be assigned to an infinite number of pages.

To create new articles, you must first sign in to the backend of you website:
http://your_domain_name.com/administrator


<< Start < Prev 1 2 3 Next > End >>

Latest Blogs

Fix Bad Credit With These Helpful Tips
Feb 26th 2013 by: Administrator

Will iPhone Apps Run On iPad?
Jan 29th 2010 by: Trevor M.

How to create a marquee text for an iPhone app
Jan 21st 2010 by: Trevor M.

How to Submit Additional Images in Virtuemart
Aug 7th 2009 by: Trevor M.

Using an Image as a Submit Button in HTML
Jul 31st 2009 by: Trevor M.

Read all blogs