home resources search newsjoinmembers: 6958
PHP Flash Java Ruby Windows Linux
Hiveminds | Fri, 2005-05-13 06:22  tags:

Creating a forum

The forum module uses taxonomy to organize itself. To create a forum you first have to create a taxonomy vocabulary.
When doing this, choose a sensible name for it (such as "fora") and
make sure under "Types" that "forum" is selected. Once you have done
this, add some terms to it. Each term
will become a forum. If you fill in the description field, users will
be given additional information about the forum on the main forum page.
For example: "troubleshooting" - "Please ask your questions here."

When you are happy with your vocabulary, go to administer » settings » forum and set Forum vocabulary
to the one you have just created. There will now be fora active on the
site. For users to access them they must have the "access content" permission and to create a topic they must have the "create forum topics" permission. These permissions can be set in the permission pages.

Icons

To disable icons, set the icon path as blank in administer » settings » forum.

All
files in the icon directory are assumed to be images. You may use
images of whatever size you wish, but it is recommended to use 15x15 or
16x16.

printer-friendly version

Hiveminds's picture
This article brought to you by the Hiveminds Magazine - Staff. Contact us if you want to post an article or announcement anonymously
Thoughtbox - So what did you think?



Hiveminds posted on: Fri, 2005-05-13 12:52.

As of Drupal v4.52 (checked 2005/05/13) users cannot edit their own forum topics. This is a great inconvenience and makes the forum a less usable resource. Even though a patch for this problem was put forth it was never properly committed to version 4.5.0 and so persists in version 4.5.2

Answer:

Change line 36-50 in the forum module to this:

<?php

/**
 * Implementation of hook_access().
 */
function forum_access($op$node) {
  global 
$user;
   if (
$op == 'create') {
     return 
user_access('create forum topics');
   }
  if (
$op == 'update') {
    if (
user_access('edit own forum topics') && ($user->uid == $node->uid)) {
      return 
TRUE;
    }
  }
 }
/**
 * Implementation of hook_perm().
 */
function forum_perm() {
  return array(
'create forum topics''edit own forum topics');
}
?>

Then go to the admistration->settings->user->configuration->permissions and give users permission to edit their own forum topic.

 
 
Drupal Web Developers Silverlight Silverlight Drupal Adobe Flex Content Management Systems
 videos
 articles
 blogs
 comments
 downloads
sitemap

Newsletter

Get updates on Hiveminds services, articles and downloads by signing up for the newsletter.

Editor's choice

Some of the better articles, stories and tutorials found at Hiveminds.

Find more

Find more of Hiveminds articles, stories, tutorials and user comments by searching.




Picked links

Hand picked websites and articles from around the web that provide quality reading.

page top