Joomla 1.5 hack Contact component form redirect

Posted: June 3rd, 2009 | Author: waynehastings | Filed under: Hacks, Joomla | No Comments »

When it somes to Joomla 1.5, sometimes having to create a feedback form is overkill, when all you really need is for a Contact to do a graceful redirect to a thank you page upon submission.

This hack requires modifying a core component, so be sure to save a copy of your original :-)

The file to edit is:
/components/com_contact/controller.php

Create your redirect page and have the URL for the redirect handy.

Look for the following code at line 193 in Joomla 1.5.10 (this is the version I was working on this week):

$msg = JText::_( 'Thank you for your e-mail');
$link = JRoute::_('index.php?option=com_contact&view=contact&id='.$contact->slug.'&catid='.$contact->catslug, false);
$this->setRedirect($link, $msg);

And replace it with this code:

$link = JRoute::_('redirect url goes here');
$this->setRedirect($link);

Replace the text redirect url goes here with the URL of your redirect page. Save and upload the revised controller.php file.

Thanks to Sulu for showing the way.


Gmail Notifier hack for Mac OS X

Posted: June 2nd, 2009 | Author: waynehastings | Filed under: Google, Hacks, Macintosh | No Comments »

gmailnotifier1

I’ve been using Gmail Notifier for a couple weeks now, and it is growing on me. The default value for checking for new mail is something like 4 minutes, much too long when I’m in the middle of a busy day and have people counting on me to be on top of my e-mail.

You can change the interval using this little trick: hold down the Command (aka Apple or propeller) key and the Option key, then select Preferences… from the Gmail Notifier menu in the menu bar.

A new window will pop up. Enter the values shown:

gmailnotifier2

Click Set, then close the window. 

Thanks to macosxhints.com for showing the way.


Hacks!

Posted: June 1st, 2009 | Author: waynehastings | Filed under: Hacks | No Comments »

I’ve been doing a lot of random research lately, looking for ways to get things done and to extend the functionality of the various systems I work with daily.

I’m a big fan of Delicious, but the very nature of the Internet means these resources I have bookmarked for later reference are just as likely to disappear tomorrow — this has happened to me more than once. And I hate having to search for something I know used to exist before that random website did a redesign or went offline.

So for my own future reference as much as anything, I’m going to start a Hacks series of blog posts. Now, when I see a hack I like and use successfully, I’m going to blog it for future reference and credit the original source. Most of these tricks and tips will be for Joomla, WordPress, SugarCRM, Mac OS applications, the Adobe Creative Suite, or something along those lines.

So enjoy. Hopefully these tidbits will be of help to someone besides myself.