Setting up a new Drupal 5.3 website like InfoEntropy.com
- cPanel install
- login to new drupal
Active Core Modules
Administer -> Site building -> Modules
- blog
- color (default)
- comment (default)
- help (default)
- menu (default)
- path
- search
- taxonomy (default)
Additional useful modules
The best part about drupal is the extensive library of user contributed modules. These are the modules that I like to use.
Download these
- google_analytics for visitor tracking
- google adsense for ads
- google adsense injector to put ads in many places
- meta tags for meta tags
- tagadelic weighted tag cloud
- path auto for easy URL paths
- Requires install of token module
- textile for easy HTML
- important to download the PHP library
- (maybe) scheduler for timed publishing
- (maybe) disknode for uploads
Prepare modules for install
- Extract to folders
- FTP upload to your site (drupal dir)/sites/all/modules <== may need to create dir “modules”
- copy extracted classTextile.php over to Textile module folder
Activate Modules
Administer -> Site building -> Modules
- Adsense Modules
- adsenese basic
- Other
- Google Analytics
- Meta tags
- Path auto
- scheduler
- textile
Site and module configuration
use clean URLs
- Administer -> Site Configuration -> Clean URLs
- run the clean URL test link (bottom of text)
- radio button = “enabled”
- save
Google Analytics
- Administer -> Site configuration -> Google Analytics
- paste Google Analytics ID i.e. UA-xxxxxx-x
- check “anonymous user”, others optional
- save
Pathauto
- General Settings
- separator = “_”
- leave case
- change Underscore _: to “Replace by Separator” in “Punctuation Settings”
- node path settings
- default path = [title-raw], removed “content” which was default
- category path settings
- default path = “[vocab-raw]/[catpath-raw]”, removed “category” in default
Adsense
- Administer -> Site Configuration -> Adsense -> adsense_basic
- login to google adsense
- create an ad unit
- copy the code similar to “pub-xxxxxxxxxxxxxxx”
- paste into code box
- save
Tagadelic
- Administer -> Site Configuration -> Tagadelic
- whatever options you choose. (I’m default)
Textile
- Administer -> Site Configuration -> Input Formats
- “add input format” (near top)
- anonymous and authenticated OK
- check “textile”
- save
- radio “default” to “Textile”
- save
Site Title, etc.
- Administer -> Site Configuration -> Site Information
- change accordingly
- save
Categories and Tags
Main Navigation Topics
- Administer -> Content Mangement -> Categories
- “Add vocabulary” (near top) to create top-level menu structure
- name = “Topic”. avoid category called “category” because url structure will be http://host.com/category/Category it is redundant
- Types = page, blog entry, etc.
- Hierarchy = disabled
- Required = true
- save
- click “add terms”
- add a new term and save
- My terms are “business, development, hci” <== notice they in the top menu
Tags
- “Add vocabulary” to create another vocabulary for tagging
- name = “tags”
- types = all
- free tagging = true
Menus
- Administer -> Site building -> Menus
- under “Primary Links” click “add item”
- add the primary navigations from the “category” stuff you just made
- I suggest using the system URLs (non-pathauto) for this. I.e. “taxonomy/term/1”, etc.
- I suggest that because you might change the name of the term. Using the system URL means it will not get broken when you change the terms of your vocabulary.
- Also, the system will automatically translate the URL into the human readable URL. i.e.
taxonomy/term/1 ===> topic/food by itself.
Access control
Who can write stories? Who can comment? Who can do various things? Decide that all here.
Administer -> User Management -> Access Control
- Anonymous User
- access comments
- post comments (approval req’d?)
- access content (default)
- search content
- Authenticated User
- edit own blog
- access comments
- post comments without approval
- access content (default)
- search content
- view revisions
- advanced search
- administer access control
Administer -> User Management -> User Settings
- only site admin create accounts
- require e-mail verification
Themes
- select a theme
- internet jobs was my old one. I’m sticking with it.
- download, extract, then FTP to “sites/all/themes/” <== may need to create “themes” folder
- Administer -> SIte Building -> Themes
- set default as “internet jobs”
- select admin theme
- i prefer “garland” for my administration theme.
- Administer -> Site Configuration -> Administration theme
Fix a path error in internet_jobs template
- find the file
links.tpl.php
- find this line
$path = $base_path . path_to_theme();
- change it to
$path = base_path() . path_to_theme();
Blocks
Administer -> Site Building -> Blocks
Left Sidebar
Right Sidebar
- login
- navigation
- search form