Up to this point, we have encountered the most typical, "normal" use of the o7, N6, and +6 chords. Fully-diminished seventh chords may function as viio7 in a key or as secondary diminished seventh chords (o7/V and so on); they may occur in root position or any inversion. The Neapolitan sixth chord most often occurs in first inversion, functioning as a chromatic pre-dominant chord with 4 in the bass and b2, 4, and (b) 6 in the upper voices. Augmented sixth chords (It+6, Fr+6, Gr+6, and DA+6) usually function as chromatic pre-dominant chords with b6 in the bass and 1 and #4 (forming an augmented sixth above b6) and some other note in the upper voices. You've also learned that these chords may be used as pivot chords in modulations.
It's time now to cover a few "exceptional" or unusual uses of each of these chords. Bear in mind that the "normal" use of these chords is what very frequently occurs, but you need to be aware of these exceptions, too.
The exceptional fully-diminished seventh chord
As you already know, the most normal diminished seventh chord includes a root, which resolves up by half step, and three other pitches, all of which change (typically moving down by step) upon resolution of the chord. Let's call this the "normal, functional" diminished seventh chord and its resolution to some major or minor triad. There are (at the very least) two types of "exceptional, irregular" diminished seventh chords, both of which provide different functions and resolutions than the "functional" diminished seventh. These are the common tone diminished seventh and the consecutive diminished seventh. The common tone diminished seventh chord includes a note in common with the chord of resolution; it thus does not resolve in a completely "functional" manner. It is labeled CTo7 (makes sense, huh?). See the Mozart example below--the third beat of m. 3 looks like o42/iii in G major, but it obviously doesn't function that way (it resolves to I). Notice that the note G is the common note between the diminished seventh chord and the following one; therefore, the label CTo7 is the best one in this situation. (see also: Turek, vol. 2, pp. 244-246, The Embellishing o7 Chord.)
The consecutive diminished seventh is even simpler: when one diminished seventh resolves directly to another one, this is an example of consecutive diminished seventh chords. The example below shows a tonic chord then three diminished seventh chords in a row. The first two are labeled o7 because they are followed by another diminished seventh chord. The final one resolves functionally; therefore, it is given its functional label of o7/V.
The exceptional Neapolitan chord
Here are a couple additional items of information about the Neapolitan chord:
The exceptional augmented sixth chord
Here are a couple additional items of information about augmented sixth chords:
Tritone substitution
We're now just a step away from something really cool: the use of tritone substitution. This involves the interchangability of dominant seventh chords whose roots are a tritone apart--for example a Db7 chord may substitute for a G7 chord. The roots are a tritone apart, hence the name tritone substitution. In fact, these two chords share the same tritone: a Db7 chord contains the tritone F -- Cb, while the G7 contains F -- B. Shown just using chord symbols and roman numerals, it would look like this:
Dmi7 G7 C becomes Dmi7 Db7 C ii7 V7 I ii7 Gr+6/I I
As you may be aware, this kind of harmonic technique is used all the time in jazz, though its origins are in nineteenth-century "legit" music (Liszt, Wagner, others).
Here's another example, written out: