Oliver Polden

An exercise in SEO

I'm currently creating a course on how to maximise your profits from your online business.

As part of this course I am working with a domain I have registered www.websitefromscratch.net

As the domain suggests, this course will take you all the way from building your website from scratch, through to building multiple streams of traffic, generating leads and converting these leads into paying clients.

However it doesn't stop there. You also need to insure your clients are happy, in order to upsell and cross sell or sell other similar products to them.

Getting the active database in Drupal

Sometimes when you're debugging you might want to check which is the currently selected database. The following code will print out the current database to the messages area:

<?php
drupal_set_message
(db_result(db_query('select database()')));
?>

Spinglo - The revolution in Social Media. Get your free invite code.

The biggest revolution in Social Media is about to happen where you can earn points and exchange them for products. The bigger your personal network, the more you get! Get in at the beginning and be at the top!

You can sign up with my invite code for free at: www.spinglo.com/i/injtesar

Or view the fantastic video at:

www.spingloinvitecode.net

Or find out more about how you can make real money from this multi-billion dollar industry:

Resizing and moving maximized windows in Kubuntu Oneiric

I use the Meta (Alt by default) button together with the mouse to move and resize windows. You can hold Alt, click on the window and move it, if it's not maximised, you can also resize with middle click. I believe Ubuntu has this as well but you can't resize.

If a window is maximised then you can't move it but there used to be a setting 'Allow resizing of maximised windows'. In Oneiric this appears to have disappeared however the setting is actually still there. It's just called:

Window Behaviour > Moving > Display borders on maximized windows

How to inspect the CSS hover and active style

In Firebug it's possible to get the :hover and :active pseudo class style by selecting ':hover' or ':active' from the 'Style' dropdown in the inspector:

Firebug inspect CSS hoverFirebug inspect CSS hover

My top Utility modules for Drupal

This list created with the help of ‎Drupal.org project link filter

Hotkey
Keyboard shortcut utility
Form Tips
Build modes
ModalFrame Exclude From Node
User Quota
Clicktale
jQuery Msg Alert
Realtime CSS Editor
Nice dash
Userfly Advanced Integration
lc
Page renderer
Desktop Notify
Scrolling Tutorials
Web Slices
Bot user interface
Domain Access
Domain Bulk Import/Export
Config Check
Calendar Block
Environment Indicator
Logging and alerts
SEO Watcher
Pageroute
Manager
Dynamic Dashboard for Storm (Project Management)

How to get the variables available in a Drupal template

This is such a basic PHP function but easy to forget and hard to find for some reason. Anyway, here are a selection of the best ways to find what variables are available in a template file.

First off, the function you need is:

get_defined_vars();

The quickest way to use it is to put the following in your template file:

print_r(get_defined_vars());

Next, install the devel module. Once installed you will now have a 'Devel' tab available when viewing nodes (if you have the correct permission set up).

Drupal popup forms

I've been trying to find a standardised way of creating popup forms that appear in a lightbox. Everything just seemed too inelegant. Then it hit me... Why not use the Drupal menu system itself to form the basis of this functionality?

First of all, this is for Drupal 6 but the technique is probably almost identical for Drupal 7.

How it's done.

Whenever I build something, I always build an HTML fallback. I usually find it makes you think in the right way and greatly simplifies coding. So first of all you build a normal menu item where the page callback is 'drupal_get_form'.

Super high value Continuous Integration test with Drupal, Jenkins and Selenium

Sometimes unit testing is a lot of work, especially if you have a system that has had many months of development without it.

One very valuable test is to check there are no errors in the Drupal log after you've committed new code.

First I clear the Drupal error log when Jenkins runs an update from version control using Drush:

cd /var/lib/jenkins/jobs/mysite
drush --uri=http://test.mysite.com watchdog delete all

Prometheus Traffic and Lead generation software tool for affiliate marketers

Prometheus is an amazing new software that is coming out that will allow you to find existing sources of traffic and also leads. This is a great tool that will be amazing for affiliate online or internet marketers. You could even just create a business to match leads classified as buyers to leads classified as sellers.

When it's available I will post a link to it here.

Here's a bit more about it:
http://www.prometheusleadgenerationsoftware.com

and here's a great webinar:
http://tiny.cc/hc4h0

User login

Proud to work with
Analytics Search Engine Optimisation Software

  • If you would like to donate to Sport relief and change people's lives the address is: http://t.co/riQCnQEq 8 weeks 1 day ago
  • Why big businesses cannot compete with small businesses: http://t.co/dNaQVJv3 11 weeks 2 days ago
  • The newest addition to my kindle: 'Know Me, Like Me, Follow Me' - Social networking for business by @pennypower http://t.co/hPVMRQKe 11 weeks 4 days ago
  • Using YouTube videos to improve your exposure and credibility http://t.co/rLKx6ByY 11 weeks 5 days ago
  • Penny power making great points about social media being personal #kpiday 12 weeks 19 hours ago
  • @philhawksworth Yes, I lust after kate 13 weeks 4 days ago
  • Monday the 13th is the new Friday 13th. 13 weeks 5 days ago
  • My blog about 'Time is NOT money'... and value http://t.co/g2C6pZy0 14 weeks 1 day ago