Thursday, August 17, 2017 09:29 am EDT
Bri's picture

Theming Drupal 6 Login Form or Login Block

Often times people want to theme the drupal login page or the login block for the theme they are using. If you need to go beyond just changing the CSS and want to actually add markup to the login form, this will show you how.

First you are going to need to locate the template.php file in your theme folder. We need to add some code to that file. Open up the template.php file for your theme and add the following:

Bri's picture

Configuring Drupal 6 With Google AdSense Module

I had some trouble when I initially tried setting up AdSense ads on my drupal 6 site. Here are some instructions to help you get it working if you are experiencing trouble.

If you haven't already, download the AdSense module form http://drupal.org/project/adsense

Bri's picture

Changing folder ownership thru SSH

If you ever need to change ownership of a folder using SSH here is how:

You'll need to login to the root of the server, and then run the command

chown -R ownername:groupname /path/to/the/folder/that/needs/to/be/changed

The "-R" will make this a recursive ownership change, changing all folders that are included below the path you have specified.

Bri's picture

Remove / Delete Directory and Its Contents in Linux

rm -rf

This command will remove a directory and its contents without prompting you to make sure you want to delete each file in the directory. Substitute with the actual directory name.

Bri's picture

Randomly Shuffle an Array Using ActionScript 3

If you have ever wanted to randomly re-arrange the elements of an array after they are already set, try using this function.


function randomizeArray(array:Array):Array
{
var newArray:Array = new Array();
while(array.length > 0){
var randomIndex = Math.floor(Math.random()*array.length);
newArray.push(array[randomIndex]);
array.splice(randomIndex, 1)
}
return newArray;
}

The function takes in the array that you want to be modified and returns a new one.

Syndicate content