Joomla 1.7 hack – replace the META GENERATOR tag

In Joomla 1.7, the system automatically creates a META Generator tag that you might want to change or hide.

The default tag looks like this:

<meta name="generator" content="Joomla! 1.7 - Open Source Content Management" />

There is no way within Joomla to change or remove this tag, so you have to put a little line of PHP in your template.

Edit your template and look for this line:

<jdoc:include type="head" />

Just above that line, paste in the following:

<?php $this->setMetaData('generator','my site'); ?>

The two lines together should look like this:

<?php $this->setMetaData('generator','my site'); ?>
<jdoc:include type="head" />

In the above code, substitute your custom generator tag value in place of the words my site.

Because this hack is in your template, you don’t have to worry about the next upgrade to Joomla overwriting hacked core files.

Thanks to for showing the way.

(This tip was originally posted on June 18th, 2009 for Joomla 1.5, but this hack is tested and working for 1.7, so I’ve updated and reposted.)

Update 21 January 2012:

Looking at this post’s comments, some people seem to be having trouble. In the following example, I’m using the Joomla 1.7 default template Beez2 – Default to illustrate further.

Editing the HTML of Beez2 – Default, you will see on line 36 is the opening HTML <head> tag, then on line 37 is <jdoc:include type=”head” />

We’re going to insert a new PHP command between line 36 and 37 — between the <head> tag and the <jdoc:include type=”head” />

Copy the following code:

<?php $this->setMetaData('generator','my site'); ?>

Then paste this code into the Beez2 – Default template code between line 36 and 37. Your code should now look like this:

To customize this,  you will replace your own value for the ‘my site’ value. In my case, I use my domain name.

Now, save the template and upload. Switch to your web browser, reload the page, and view the source.


Annoying Facebook bug – I want to block an app

If you’re like me, you have one or more friends who are heavy users of Foursquare, Gowalla, or some other “check in” app on their cellphone. Each one of these check ins shows up on your Facebook wall, and as far as you’re concerned it’s all just spam. Do I really care that someone I used to work with several years ago and who lives on the other side of the U.S. just went to McDonald’s for lunch? Nah.

So in Facebook, you can click the little X next to the wall post, and get this dropdown:

How tempting is it to report that as spam?

There’s “Hide all by Gowalla” — bingo! Click and Facebook says…

They lie!

I’ve clicked on that option about 100 times, and every time I check Facebook, there are a ton of Gowalla posts from this user. They won’t go away. GG on the bug, Facebook. I bet I don’t have this problem on Google+.

Here’s how to actually block an app on Facebook. Go to the Facebook search field, and find the app. In this case, I searched for gowalla and spotted this:

Click on the Gowalla App to go to that page, and scroll down until you see this in the bottom of the left hand column:

Click Block App and it gets actually blocked.

If you want to see what apps you’ve blocked, or if you want to unblock an app, go to Account –> Privacy Settings. Under Block Lists click on the Edit your lists link.

My blocked apps include:

I know, I’m a scrooge. Now you can be one, too.

Twitter Weekly Updates for 2011-07-18

Twitter Weekly Updates for 2011-07-11

Snagged a Google+ invitation

If you want an invite to Google+, send me your Google account e-mail address and I’ll get you hooked up.

Or, if you’re already using Google+, feel free to add me to one of your circles:

Why am I having deja vu? This reminds me of Google Wave… a lot!