Skip to Content

Tutorials

Ubercart - running straight out the box

I am working on a type of advanced profile (actually zipped site and sql dump) that will enable others to get Drupal and Ubercart 2 up and running within minutes.
You can see and USE the demo at http://ubercart.venturacottage.com Out the box it has been configured to handle:

truly simple cPanel multsite setup

Posted in

No single multisite setup method above got me all the way there; if you have cPanel and Drupal installed on your original domain, follow these straightforward instructions to set up a multisite:

For 'www.yourlovelysite.com':

1. in cPanel, go to 'Subdomains'

2. enter a name for you subdomain; this is followed by '.' and your original domain name automatically, e.g. 'sub1' becomes 'sub1.yourlovelysite.com'.

Themeing tutorial using Color module

With an eye to the forthcoming Drupal 7, I was keen to encourage everyone to look at developing stunning themes to go with this shiny new release and all with the help of the excellent Color Module. It also applies to Drupal 6 and uses Garland as its starting point.

in /themes make a copy of garland folder > rename say swirly (or whatever your theme is called)
in /themes/swirly rename garland.info to swirly.info

apple no pic

For articles such as this one that have no accompanying image, we use coding within the theming layer of Views to add a default thumbnail image if the story appears on the frontpage. This relates to the tag that is attached to the story so for example in this case the apple tag is translated into the parent taxonomy of fruit.

Coding then checks the image directory for fruit.png and serves it up next to the relevant title.

The code looks something like this:

<?php

if($output==''){

Semi transparent navigation background

Looking at ways to make the excellent superfish dropdown navigation less prominent - I chose a lighter colour at the bottom of bg-header.png, added an off centre photo to the LHS that slightly cut behind the start of the navigation bar and then added the following code to the style.css

#superfish-inner .menu li {
  background: #B1E1EF;
  opacity:0.7;
  filter: alpha(opacity = 70);
  }

The filter: line is a duplication of the opacity: line but it is required for it to work in good old IE.

The end result can be seen opposite

Relative elements and dropdowns

Various Drupal themes now use the excellent Superfish dropdown menu navigation, including Pixturerr. But if you then customise the theme such as adding a frontpage with RELATIVE elements you can find (as in the picture) that the dropdows appear BEHIND other elements, in good old Microsoft Internet Explorer!. This is what I did to resolve the issue.
go to admin/build/themes/settings/pixturerr

we need to set the color set back to Girly Pink default

quick tutorials story

Posted in

jhjhg uhguyg uguy uygu gyufgy u

Top of the class

Posted in

Client brief:

Using PHP to create an assignments system for a school class is challenging. Adding pupils to a subject is fine but when the year is finished and they move up a class. You need an easy way to avoid adding them back in manually.

Method:

Is described in detail at
http://nandrsteer.com/schooltest/wiki/getting-more-courses-and-groups

Result:

http://nandrsteer.com/schooltest

Dealing with fancy fonts

Posted in

When designing a website, extreme caution has to be used when dealing with fonts. Basically usless it is one of a very limited fonts that come preinstalled with Windows or Mac computers, it may look wonderful on your PC but no one else will see it as you intended. If you have to use a particular font stick to using it the headlines and Sub heads, these can be specified in the style.css like so:


#header .site_name {
display:block;
float:left;
font-family:"Edwardian Script ITC","Palace Script MT","sans-serif";

Mask email address from Spammers

Posted in

Client brief:

Feedback is important so an email link on a website is the easiest way to achieve this. Unfortunatly spammers have automated software that trals websites looking for anything with an @ sign to harvest and sell on to junk mailers. We had to find a way around this.

Method:

By using javascript code we can pass the elements of the email address to a programme that will reconstruct it and pass it on correctly to the email programme. Here's an example of this technique at work:

Mr Nobody

Syndicate content