Thought I might as well post something here, you never know who reads these things…
I am currently on the hunt for a job. Ideally something in PHP / Web development that pays around £30k (or slightly less for the right role) and is based somewhere near Manchester (UK). Working from home would be nice though if you’re based on the other side of the world.
email me for a CV if you have any opportunities that might fit the bill.
Due to being ridiculously busy at work (Working on a VB6 application. Yes really.) There won’t be an update this week. However, in the next week or two you should see some good stuff coming including (but not limited to)
An iPhone app! (finally)
Working SSL support in the android apps (even with self signed certs!!)
Colour coded problems (yellow for soft alerts, red for hard)
So, imagine you have a Joomla site containing lots of pages about…well, anything really. It’d be nice if you could have a ‘request info’ link on each page so users could send you an email with a pre-generated subject line about that page, so you can parse emails (either manually or using some kind of automatic system) coming from the site.
eg: your site has seperate pages about ‘product A’ and ‘product B’. you want a link on ‘product A’s’ page that sends you an email with the subject line ‘yoursite.com: product A enquiry’ and the same for product B.
I can’t find any way of doing this ‘properly’ in Joomla, so here’s a hack I came up with. What it does basically is take a variable from your URL and put it into the subject box. So you can setup a link to ‘http://yoursite.com/contact-us?subject=test subject’ and the contact email form will automagically have the subject line filled in with ‘test subject’.
First up, setup a contact to send the emails from (you’ve probably done this anyway if you have a ‘contact us’ page).
Now publish that contact using the ‘contact’ view under something like yoursite.com/contact-us
now here’s the hack:
open up “components/com_contact/views/contact/tmpl/default_form.php”
the line you’re looking for is this one (it’s line 50 in my copy of the file)
change that to this:
you can now set up links anywhere in your site to ‘contact-us?subject=your subject’ to automatically fill out the subject line.