free
HomeContact usSitemap
Home arrow Joomla Corner
Joomla Corner
How to hack in the banner component to display flash banners Print E-mail
Written by Administrator   
Wednesday, 09 April 2008

So I decided to hack the standard com_banners component to get flash banners working as normal images would. Follow the instructions carefully, it's not difficult. Each step responds to a different file that needs to be changed (three files in all) and all you have to do is just copy - paste!

1. administrator/components/com_banners/admin.banners.html.php at about line 275, change this:
Code:

if (eregi("swf", $_row->imageurl)) {
?>
<img src="images/blank.png" name="imagelib">
<?php

to this:
Code:
if (eregi("swf", $_row->imageurl)) {
$imageurl = "../images/banners/".$_row->imageurl;
$getflashinfo = @getimagesize( $imageurl );
echo '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0"
width="'.$getflashinfo[0].'" height="'.$getflashinfo[1].'">
<param name="movie" value="'.$imageurl.'" />
<param name="quality" value="high" />
<param name="wmode" value="transparent" />
<embed src="'.$imageurl.'" quality="high" wmode="transparent"
pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash"
width="'.$getflashinfo[0].'" height="'.$getflashinfo[1].'"></embed>
</object>';
 
Joomla SEO - SEF Patch vs JoomSEO Print E-mail
Written by Administrator   
Wednesday, 09 April 2008

The biggest problem with Joomla! is that it really is not very search engine friendly. The out-of-the-box URLs are horrible squiggles not readable by any search engine let alone humans (well, I exaggerate, Google does not have any problems indexing these pages, but if you do a search for any popular search term you will see that those particular types of pages do not tend to be at the top of the serach results)

But more important than the URLs, is the way that Joomla displays the Title tag - this is by far the most important piece of text on your whole page, and Joomla displays the site name in the title, THEN followed by the name of the particular content item or page being displayed at that point. Even worse, the default setting for the title is that of the MENU name. How awful is that!

To counteract this, I have done my own hacks to the core Joomla! code since about version 1.0.8. Obviously this carries its dangers - if you upgrade and forget that you have applied the hacks (as I have done), your pages with their lovely titles (and individual descriptions and keywords) tend to revert back to having your most important page have the title : Home.

Luckily now I don't need to mess around with all of that any more. There are two fixes out, both of them offering mostly the same end result but using different mechanisms to get to it.

The one is called the Joomla SEF Patch (a component), and the other is JoomSEO (a mambo/plugin).

 
<< Start < Prev 1 2 3 4 5 6 7 8 9 10 Next > End >>

Results 36 - 42 of 219