How To

Using GeShi filter for code highlighting

in How To

This website has the GeShi filter installed, so code can be escaped and formated with syntax highlighting. To have your code highlighted you must enclose it in "<code> </code>" tags. Just using these tags escapes the code and formats it as plain text.

To add syntax highlighting, set the "type" inside the tag like this, "<code type="bash">.

Supported languages are:

Language Name syntax "Type"
Bash bash
C c
C++ cpp
CSS css
Drupal 5 drupal5
Drupal 6 drupal6
HTML html4strict

PHP "The Rambling Guide"

in Help!, How To, PHP

Various code tricks, techniques, snippets, puzzles, bugs, inconsistencies, patterns and other such stuff.

Beginning MySQL

in Help!, How To, MySQL

A guide to the one of the best open sources databases in the world!

Changing your default site theme and/or your blog theme

in Drupal, Help!, How To

After registering an account with the site, you may decide you want to go with a brighter theme than the default. So the site has been populated with about a dozen alternative themes that you can set from your user account.

To do this:

  1. open the "My Account" menu
  2. select the edit option above your account information
  3. scroll down to the theme area of the settings and select the radio button of the theme you want
  4. scroll to the bottom of the page, and hit the save button

Your default theme is now changed whenever you log in.

NOTE: You may have trouble viewing all of the "extra" content with a non-standard theme.

How to use the NOVALUG website

in Drupal, Help!, How To

This book covers how to use some of the sophisticated features of the site.

How to log in with OpenID

in Help!, How To, OpenID, README

So OpenID only provides authentication in it's simplest form, that is,
it validates a password... that's it, finito, end of story, EOL. The
novalug site is built on Drupal, which requires a username and email
address as well as a password for an account. So the process for
first time logins is as follows.

1. Click the OpenID link in the login block.
2. Enter your OpenID login string (example: myname@yahoo.com [another
example: myname.wordpress.com])
3. You'll be redirected to that OpenID providers page to enter your password.
4. The OpenID provider redirects you back to novalug.com, which throws
errors because it doesn't have an email address from your OpenID
provider and the OpenID provider(in the case of Yahoo) has
fragments(data elements) in the identifier URL, which Drupal tries to
assume is the username, but the fragments are deliniated by special
characters not allowed in the username registration process of
Drupal... so it errs partially.

No votes yet

A community BASH Cookbook

in Bash, Command Line, How To, Linux

A collection of Bourne Again SHell tips and tricks.

Don't Hack the Core

in Drupal, How To

So it's important to understand early on that Drupal strives for a 'secure' and 'reliable' architecture and does so by separating the core code from user generated and contributed code. All the editable code is kept in the /sites folder of a Drupal installation. In a single site installation all this modular code is kept in /sites/all/modules or /sites/all/themes. One of the most common beginner mistakes is to look inside the new Drupal directory and use the /modules or /themesdirectory for storing downloaded modules and custom code.

The root /modules directory holds the modules that have been incorporated in the core Drupal release, this directory and all directories outside of /sites should be left alone. Drupal provides ample ways to override the behavior of the core code, and using the API's is vastly more secure and reliable than altering core code.