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.
Submitted by oliver on Wed, 16/05/2012 - 20:41
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()')));
?>Submitted by oliver on Tue, 17/04/2012 - 10:03
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:
Or find out more about how you can make real money from this multi-billion dollar industry:
Submitted by oliver on Thu, 08/12/2011 - 22:26
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
Submitted by oliver on Thu, 01/12/2011 - 13:25
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 hover
Submitted by oliver on Fri, 11/11/2011 - 13:34
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)
Submitted by oliver on Thu, 10/11/2011 - 14:30
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).
Submitted by oliver on Tue, 08/11/2011 - 16:00
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.
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'.
Submitted by oliver on Thu, 20/10/2011 - 10:34
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 allSubmitted by oliver on Wed, 21/09/2011 - 12:04
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
Submitted by oliver on Mon, 19/09/2011 - 17:05