Post images

Now that you know how to post. It would be nice that you will be able to post images in your posts. What you have to do is to allow <img> tag in your posts and activate Upload module so that you can update the images.

Configure Input formats to allow <img> in your post

  1. Go to Administer » Site configuration » Input formats.
  2. Click on the Configure link of Filtered HTML.
  3. Click on Configure tab.
  4. In Allowed HTML tags field, add <img>.
  5. Click on the Save Configuration button.

Activate Upload module to upload files

  1. Go to Administer » Site building » Modules.
  2. Check the Upload module.
  3. Click on the Save Configuration button.

Try to post images

  1. When you are creating a post, you will see that there is new section called File attachments located near the bottom. Click on it to expand.
  2. Browse to the image in your computer.
  3. Click on the Attach button to upload the image.
  4. Copy the link underneath your image's filename(e.g. http://localhost/drupal-6.16/sites/default/files/monkey_face.png). That is the link that you should paste in your post's Body.
  5. In the Body textarea, add the <img> tag as follows:

    <img src="http://drupaldn.net/sites/default/files/monkey_face.png" />
  6. Click on the Save button.
  7. Here are the results:

Write your first post

By default, Drupal comes with 2 content types: Page and Story.

Page

Install Drupal

Before continuing reading further, it is assumed that you already installed Apache, PHP and MySQL and you have created a database for Drupal.

  1. Download Drupal.
  2. Decompress drupal-x.x.tar.gz and copy the drupal-x.x/ directory into the root directory of Apache(e.g. C:\wamp\www)
  3. Copy the C:\wamp\www\drupal-x.x\sites\default\default.settings.php file to C:\wamp\www\drupal-x.x\sites\default\settings.php.
  4. Open http://localhost/drupal-x.x using a browser.
  5. Click on Install Drupal in English link.
  6. Type in the followings(Change the values accordingly if your settings are different):

    Database name: drupal
    Database username: root
    Database password: mypassword

    Then, click on the Save and continue button.
  7. Type in the followings:

    Username: x
    E-mail address: x@1243p.com
    Password: x
    Confirm password: x

    Then, click on the Save and continue button.
  8. It will display a big red warning that it can't sent email. Simply ignore it.

    * warning: mail() [function.mail]: Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in C:\wamp\www\drupal-6.16\includes\mail.inc on line 193.
    * Unable to send e-mail. Please contact the site administrator if the problem persists.

    Click on "... your new site" link.
  9. That's it. You have installed Drupal.

Install and configure Apache, PHP and MySQL for Drupal

Install Apache, PHP and MySQL

Development: Implement publication workflows

Implemented the following workflows:

uArticle->pArticle
uQuestion->pQuestion

sArticle->qArticle->pArticle workflow is on hold. It will be implemented later as it is a nice to have feature and it doesn't forbid the basic functionality of the website.

Development: Create content types and fields with CCK

Content types creation
For maintainability, all options selections fields will use taxonomy terms as their options.
Add Taxonomy vocabulary "Version": Terms: 4.x, 5.x, 6.x, 7.x
Add Taxonomy vocabulary "Component": Enable Tags and Multiple select
Add Taxonomy vocabulary "Level": Terms: Beginner, Intermediate, Advanced

Fields for Article

  • Title*: Title of the node.
  • Level*: field_a_level, Content Taxonomy Fields, Select List, Save values additionally to the core taxonomy system, Level vocabulary.
  • Version*: field_a_version, Content Taxonomy Fields, Checkboxes/Radios, Unlimited Number of values, Save values additionally to the core taxonomy system, Version vocabulary.
  • Body*: Minimum number of words = 25 (If people are abusing this, then the number will be increased.)
  • On hold:+Should allow to upload images.

Fields for Question

  • Title*: The title of the node.
  • Components*: Modules, Themes, put Core if general
  • Version*: field_q_version, Content Taxonomy Fields, Checkboxes/Radios, Required, Unlimited Number of values, Save values additionally to the core taxonomy system, Version vocabulary.
  • Body*: Minimum number of words = 1 (If people are abusing this, then the number will be increased.)
  • On hold:+Should allow to upload images.

Permissions settings
Set permissions for Article and Question content types.
Only Authenticated users can create Article and Question.

Permissions will be set according to the following workflow:

Workflow:
==========
sArticle->qArticle->pArticle
uArticle->          pArticle

sQuestion->qQuestion->pQuestion (? Remove this flow)
uQuestion->           pQuestion
s:staff
Contents created and put in queue to be published later on. Content creator can edit or delete their content.
u:user
Contents created by Authenticated users. Content creator can edit or delete their content.
q:queue
No users are allow to modify content in queue to be published
p:published
Contents that are published. Content creator can edit but NOT delete their content. For each change, a new revision is created.

Development: Modules installations and configurations

Enable temporarily the full content of the node to be shown on the frontpage

  1. Administer->Post settings->Length of trimmed posts = unlimited.
  2. Re-save all nodes so that it regenerates bigger teaser.

Enable the following modules:

  • Search
  • Statistics: In Administer->Access log settings, enable access log, Count content views, Discard access logs older than 16 weeks.

Install the following modules:

  • Google Analytics
  • Token
  • Pathauto
  • CCK
  • Content Taxonomy
  • Views
  • Node Export
  • Fivestar
  • Userpoints
  • Userpoints Node Action
  • External Links
  • Rules
  • Token
  • Flag
  • XML sitemap

Under construction

This website is under construction.
The idea of creating a network of Drupal developers has formed as of today, 2009-09-09.
Give me some time to implement my thoughts.

The idea is to create a place where Drupal developers can hang out, get a solution to their problems and at the same time, get an exposure of themselves as Drupal developers.

Brainstorming

There will be 2 main content types: Article and Question.
Article is used to write articles.
Question is used to ask questions.

Fields for Article

  • Title: The title of the article.
  • Level: The level of difficulty(Beginner, Intermediate, Advanced). Beginner level would involve only configurations and settings. Intermediate level would involve a little bit of codes. Advanced level would involve a lot of complex codes.
  • Version: The version of Drupal that prove to be working.(4.x, 5.x, 6.x, 7.x, etc)
  • Body: The text of the article
  • +Should allow to upload images.

Fields for Question

  • Title: The title of the question
  • Modules, Version(4.x, 5.x, 6.x, 7.x)
  • Description: The question
  • +Should allow to upload images.

Point systems

  • Users get 30pts for each article written.
  • Users get 2pts for each solution.

Win-win situation

  • Users get solutions to their questions.
  • Developers get their points. The more points that they have, the better they are.
Syndicate content