Taxonomy menu: navigation for terms

Taxonomy terms allow classification of content into categories and subcategories. The Taxonomy Menu module adds links to the navigation menu for taxonomy terms. This is useful when the community is focused on creating content that is organized in a taxonomy.

Creating a Taxonomy Menu

In order to create a taxonomy menu, first create your vocabulary. If you have an existing vocabulary, navigate to the taxonomy administration menu. The path depends on your Drupal version (5, 6, or 7).

Privatemsg: An internal messaging System

The Privatemsg module allows users to send messages to each other without having to share their e-mail addresses. Once the module has been enabled, an inbox link will appear in the navigation menu. "Write to author" links are included in posts, allowing users to write private messages instead of commenting openly. Allowing users to communicate directly with each other is an important part of community building.

Customizing the login form

This seems to be a duplicate (albeit earlier) page

Please see http://drupal.org/node/350634 which is more recent and more accurate.


Description

These snippets allow you to override the default login layout using a custom user_login.tpl.php.

If you want to customize the full page layout, click through to the Customizing the login, registration and request password full page layout handbook page.

Step 1 of 2

In a text editor like notepad.exe, create a file called template.php using the the following snippet. If you already have a template.php file, simply add it to your existing one.

For use with Drupal 4.7.x and Drupal 5.x

<?php
 /**
   * This snippet catches the default login form and looks for an
   * user_login.tpl.php file in the theme folder
   */

function phptemplate_user_login($form) {
    return _phptemplate_callback('user_login', array('form' => $form));
}
?>

For use with Drupal 6.x

_phptemplate_callback is deprecated in Drupal 6 in favor of the theme registry and preprocess functions. See the Drupal 6 theme guide for more information.


<?php
function mytheme_theme(&$existing, $type, $theme, $path) {
$hooks['user_login'] = array(

Customizing the user profile pages (a "before" and "after" example with screenshots)

This illustrative example shows how easy it is to override theme functions using the User_profile pages as an example.

Before

This is how the out-of-the-box user profile looks like, with extra profile fields, such as City, Country, Postcode, Position etc. added in. (please note that i couldn't fit the whole page into the one screenshot..there is an extra "background/more info." field that doesn't show in the BEFORE screen shot.

click to view the BEFORE screenshot in a new window

After

This is how the exact same user profile looks after overriding the theme and applying a simple user_profile.tpl.php file in my theme directory.

click to view the AFTER screenshot in a new window

How I did it

To override just the layout of the User Profile page..I created a template.php file with this in it:


<?php
/**
* Catch the theme_profile_profile function, and redirect through the template api
*/

function phptemplate_user_profile($account, $fields = array()) {
// Pass to phptemplate, including translating the parameters to an associative array. The element names are the names that the variables
// will be assigned within your template.

Specify 403 and 404 error pages

Drupal's page error messages are meant to be direct and to the point. If you want page error messages that are a little more user-friendly, Drupal allows you to customize them.

  1. Create two nodes, one for each kind of page error (403 and 404).
  2. Determine the ID number of the node you wish to redirect users to. One way to determine the node's ID number is to visit the node and look at the number after the last slash in your browser's address bar. This is your node's ID number.
  3. Now enter the paths to your nodes in the appropriate boxes on your error reporting settings page. For example, if the node ID number for 403 error codes is "83," you would type "node/83" into the "Default 403 (access denied) page" setting.
    • Drupal 6 mysite.com/admin/settings/error-reporting
    • Drupal 7 mysite.com/admin/config/system/site-information

Because you are creating nodes, they will show up in the tracker and popular content blocks and anywhere else real nodes would be display. If this isn't acceptable, there is a contributed module called Custom Error that avoids this problem.

Upgrading a theme to a new version

If you upgrade a site from one version of Drupal to another, you must take specific steps to make your theme compatible with the new version.

Always test the modifications on a separate development server before moving to a production site.

Pages

Subscribe with RSS Subscribe to RSS - Designers/themers