Enforce Coding Standards with PHP_CodeSniffer and Eclipse IDE on Ubuntu Linux
ENUMs, User Preferences, and the MySQL SET Datatype
G3D on Ubuntu Linux
Changing Mailman Python Scripts for Virtual Host Support
Using PHP pspell Spell Check Functions with a Custom Dictionary
Using Multi-Byte Character Sets in PHP (Unicode, UTF-8, etc)
Microsoft Office Open XML

Customising Joomla

Monday, 20 November 06, 10:23 am
compton
My first task is to investigate how we can create a single consistent look & feel for the admin GUI. I'll need to get a good understanding of how the admin GUI works and is organised.

When the admin first logs in, you have a grid of square buttons on the left, and some stats on the right. The page shows as index2.php in the address bar.

index2.php has the following structure:
  • includes
  • start session
  • get option and task request params
  • create mainframe object as new mosMainFrame
  • get act, section, no_html and id request params
  • use selected template's index.php
  • show SQL queries if in debug mode
  • if task param is 'save' or 'apply' redo session check
1 2 3   

compton

12:38 pm, Monday, 4 December 06

If a module title has a corresponding image file, that should be loaded instead of outputting text for the title.

We can check if an image file exists, and display it if so, otherwise display text. This check is best placed in the \includes\frontend.html.php file, which defines the modules_html class.

The image file should be located at $mosConfig_absolute_path."/images/".$module->title.".gif".

So adding the following code at line 303 of \includes\frontend.html.php should achieve what we need:

if(file_exists($mosConfig_absolute_path."/templates/".$mainframe->getTemplate()."/images/".$module->title.".gif")) {
   echo "<img src=\"/images/".$module->title.".gif\">";
}
else {
   echo $module->title;
}
 
 
1 2 3  Leave Comment
About This Page