What?
This is a quick article on what I change the error page for Joomla websites to. I like a clean error page, for a demo visit http://www.joellipman.com/my_error_page.
  • Applies to Joomla 1.6.x, 1.7.x, 2.5.x

How?
  1. Backup the file \templates\system\error.php
  2. Create a replacement file called error.php including the below code
  3. Change the message "The Page you are looking for..." to what you want.
  4. Change the link "www.joellipman.com" to the "www.yoursitename.com".
  5. [Optional] If you want the image that creates the shadow you can download it here. I put it in the folder \templates\system\images.

What?
Apologies for posting yet another article on how to access the Joomla Database using the Joomla classes but this is just a quick note for myself as a reference sheet. Plus the official documentation don't have enough examples in my view. Source: http://docs.joomla.org/ for v1.5.x and for v2.5.x

This article applies to Joomla 1.5.x, 2.5.x and 3.x.


What?
More for others than for myself, but this article is for those who do not have development/test environments of their Joomla website.

I have been doing this for years and still come across clients who have the one version of their website. They experiment on their customer-facing website and in most cases, they are paying for a hosting package which would allow them to have several copies of their website.


What?
Quick article here as googling/binging for how to refer to Joomla articles after versions 1.5.x wasn't obvious. This article is to demonstrate how to write the webaddress for a Joomla article even when you have Search-engine-friendly website addresses enabled.

How?
Basically you have to include &view=article as opposed to Joomla v1.5.x when the option and id parameters would suffice:
copyraw
- SEF URL
http://www.joellipman.com/support/documentation/449-module-joes-word-cloud-jwc.html

- Direct Link (irrespective of SEF)
http://www.joellipman.com/?option=com_content&view=article&id=449
  1.  - SEF URL 
  2.  http://www.joellipman.com/support/documentation/449-module-joes-word-cloud-jwc.html 
  3.   
  4.  - Direct Link (irrespective of SEF) 
  5.  http://www.joellipman.com/?option=com_content&view=article&id=449 
Category: Joomla :: Article: 458

What?
If you get something like the following error:

Warning: call_user_func() [function.call-user-func]: First argument is expected to be a valid callback in /home/.../templates/rt_affinity/rt_sectionrows.php on line 311

How?

  1. Copy & backup the file /public_html/.../templates/rt_affinity/rt_sectionrows.php
  2. Find the following piece of code around line 311:
    copyraw
    foreach($this->horizontalCookie[$row] as $block) {
    	$block = str_replace('-', '', $block);
    	$this->module_row1 .= call_user_func($block, $this, $mClasses);
    }
    1.  foreach($this->horizontalCookie[$row] as $block) { 
    2.      $block = str_replace('-', '', $block)
    3.      $this->module_row1 .= call_user_func($block, $this, $mClasses)
    4.  } 
  3. And change it to:
    copyraw
    foreach($this->horizontalCookie[$row] as $block) {
    	if(!empty($block)) {
    		$block = str_replace('-', '', $block);
    		$this->module_row1 .= call_user_func($block, $this, $mClasses);
    	}
    }
    1.  foreach($this->horizontalCookie[$row] as $block) { 
    2.      if(!empty($block)) { 
    3.          $block = str_replace('-', '', $block)
    4.          $this->module_row1 .= call_user_func($block, $this, $mClasses)
    5.      } 
    6.  } 
Category: Joomla :: Article: 451

Applies to:
  • Joomla 2.5.8
  • Yootheme Template 2012

What?
For any web-developer who can program in PHP/HTML, this would be easy to hard-code and override. However, the article below demonstrates how to make this an option that your client can switch off/on using the Joomla Admin Panel.

How?

Applies to Joomla 1.6+

What?
This is an article to describe how to add an article modal button in the Joomla Admin Panel (at time of print version 2.5.6) of your component including the all important clear button. What I found was that no one posted this solution which I found is compatible with almost any site and with all my components without having to modify the below script.

Why?
The article modal is a much easier way for the end-users to select a Joomla! article in the component parameters/options. The "clear" button is essential as some article_modal fields may not be required and are difficult to clear once set.

How?

What?
This is an article to demo the crudest form which uses Joomla's version 2.5 core mootools (uncompressed?). This is intended for absolute novices (like me) who just want to see an example of an AJAX form within Joomla 1.6.x - 2.5.x in it's most basic state. At time of print, I am using this with Joomla 2.5.6.

Why?
The examples of the official site (mootools.net) did not work in my Joomla environment nor did most people's examples across the web. All I wanted was a basic example to show me how to send a form asynchronously (ie. running in the background without loading a new page).

APPLIES TO Joomla 2.5.x

Why?
I'm building a Joomla component which is to be compatible with Joomla versions 1.6.x to 2.5.x. Because I use dynamic scripts running in the background (mootools), some of these need to connect to the database but as they sit outside of the MVC structure, we need them to use the existing configuration file in order to retrieve the credentials (ie. username, password, database, etc.). For obvious reasons, these cannot be hardcoded.


What?
Trying to make a component and can't remember how to store HTML code when the save command is clicked (ie. submitted from a PHP form). This is for the Opensource Content Management System (CMS - phew what a mouthful) Joomla! version 1.6.x to 2.5.x; no wonder customers have difficulty following.

How?
So it's the field on the XML file /models/forms/whatever.xml which needs the filter=raw attribute, for example:
copyraw
<field name="item_desc" type="editor" filter="raw" rows="15" cols="40" default="" />
  1.  <field name="item_desc" type="editor" filter="raw" rows="15" cols="40" default="" /> 

Other searches:
  • Stripping HTML from my joomla 2.5 component
  • Leave my HTML alone for admins
  • field types for Joomla 1.6
Category: Joomla :: Article: 425

Thought I'd add the migration script I've been using to test my JComments migration from my Joomla CMS site version 1.5.20 to Joomla CMS site version 2.5.6.

DISCLAIMER

  1. I do not work for either Joomla or JoomlaTune (Jcomments)
  2. This script is provided as is without warranty
  3. If you do not understand what this script is doing, let someone who does run it instead

INSTALL INSTRUCTIONS

  1. Install JComments on your upgraded website (at time of print: Jcomments v2.3.0 on Joomla v2.5.4)
  2. Copy the below script to a text file
    1. Change the database names to match your setup
    2. Change the table name prefixes to match your setup
  3. Run the modified SQL script against your database.
Note: It is not advisable to run this on a production website!

What?
In not as many words as others, here's my MySQL query to extract details on images stored in the MediaWiki CMS system (v1.14).

Why?
Prior to a migration and just after another change freeze, I had sent all Wiki articles modified since the last export but then needed to send all images that had also been either added/modified since.

How?
Using MySQL, the following query lists the image name, size, user who uploaded, timestamp and the path. Remember that the paths are determined using the MD5 Hash of the filename:

Credit where Credit is Due:


Feel free to copy, redistribute and share this information. All that we ask is that you attribute credit and possibly even a link back to this website as it really helps in our search engine rankings.

Disclaimer: Please note that the information provided on this website is intended for informational purposes only and does not represent a warranty. The opinions expressed are those of the author only. We recommend testing any solutions in a development environment before implementing them in production. The articles are based on our good faith efforts and were current at the time of writing, reflecting our practical experience in a commercial setting.

Thank you for visiting and, as always, we hope this website was of some use to you!

Kind Regards,

Joel Lipman
www.joellipman.com

RSS Feed

Related Articles

Joes Revolver Map

Joes Word Cloud

user   deluge   function   server   joomla   list   database   value   uploaded   error   create   zoho   files   work   time   script   report   note   source   windows   page   client   first   creator   field   table   form   order   mysql   find   would   system   license   name   used   version   added   file   website   google   using   date   code   display   parameter   case   need   following   where   data   JoelLipman.Com

Accreditation

Badge - Certified Zoho Creator Associate
Badge - Certified Zoho Creator Associate

Donate & Support

If you like my content, and would like to support this sharing site, feel free to donate using a method below:

Paypal:
Donate to Joel Lipman via PayPal

Bitcoin:
Donate to Joel Lipman with Bitcoin bc1qf6elrdxc968h0k673l2djc9wrpazhqtxw8qqp4

Ethereum:
Donate to Joel Lipman with Ethereum 0xb038962F3809b425D661EF5D22294Cf45E02FebF
© 2024 Joel Lipman .com. All Rights Reserved.