Installing and configuring Advanced Forum - 5.x

Installing Advanced Forum

  1. Enable all dependencies: Author Pane, Forum, Taxonomy, Comment. (Optionally: Statistics)
  2. Copy the entire advanced_forum project directory (not just the contents) to your normal module directory (ie: sites/all/modules)
  3. Enable the advanced forum module at ?q=admin/build/modules
  4. In the module package is a directory called "styles" that contains the included styles, one per directory. Choose one of the styles to use and copy the entire directory (not just the contents) to the theme directory of the theme you are using on your site. If you use forums with more than one site theme, copy the style directory to each theme's directory. If you use subthemes, copy it to the subtheme's directory. You should end up with something like "sites/all/themes/SITETHEME/naked".
  5. If you are not using a theme with built in AF support (Zen, some Roople themes, possibly others) Add this code to the top of _phptemplate_variables in template.php in your theme and make sure you are returning $vars, not array() at the end of the function:
    <?php
     
    if (module_exists('advanced_forum')) {
       
    $vars = advanced_forum_addvars($hook, $vars);
      }
    ?>

Setting up core for best use with Advanced Forum - 6.x

These are the settings I recommend for use with Advanced Forum. All of these settings are part of core Drupal, and not the Advanced Forum module itself, but Advanced Forum builds on top of core so having a good base is important.

  1. If you haven't already, go to ?q=admin/content/forum and add containers and forums as needed.
  2. Forum settings ( ?q=admin/content/forum/settings )
    • Hot topic threshold: Up to you.
    • Topics per page: Up to you.
    • Default order: "Date - newest first" so the most recent posts are at the top of the topic list.
  3. Select content types to use in forums ( ?q=admin/content/taxonomy )
    • Edit the forum vocabulary
    • Check all content types you want to use in forums.
  4. Comment settings ( ?q=admin/content/node-type/forum ) [Note: do this for each content type used in forums]
    • Expand "Comment settings" fieldset.
    • Default comment setting: "Read/write"
    • Set Default display mode: Flat list - expanded. (Advforum is intended to be used flat. Using it threaded should mostly work but is unsupported and may have some issues.)
    • Default display order: Date - oldest first (newest first will break jump links)

Setting up core for best use with Advanced Forum - 5.x

These are the settings I recommend for use with Advanced Forum. All of these settings are part of core Drupal, and not the Advanced Forum module itself, but Advanced Forum builds on top of core so having a good base is important.

  1. Forum settings ( ?q=admin/content/forum/settings )
    • Hot topic threshold: Up to you.
    • Topics per page: Up to you.
    • Default order: "Date - newest first" so the most recent posts are at the top of the topic list.
  2. Comment settings ( ?q=admin/content/comment/settings )
    • Set Default display mode: Flat list - expanded. (Advforum is intended to be used flat. Using it threaded should mostly work but is unsupported and may have some issues.)
    • Default display order: Date - oldest first
    • Default comments per page: Up to you. (If you chose to have a threaded forum, setting this number to the maximum will reduce issues with pagination and threading.)
    • Comment controls: "Do not display" is recommended.
    • Anonymous commenting: Up to you.
    • Comment subject field: Up to you. If disabled, advforum will not display the Drupal default subject, which is the first few words of the comment.
    • Preview comment: Up to you.

Search by Page

The Search by Page module is an enhancement to the core Search module. This handbook page explains what the module does, how to install and configure it, and how best to use it.

SVN authentication using mod_auth_mysql

Here's a tip by leop:

Note: There are several forks of mod_auth_mysql out there. The following documentation is based on the version found on http://modauthmysql.sourceforge.net/ . Unfortunately the version shipped with Debian and Ubuntu - and probably other distros as well - is incompatible.

On my website I use the svn module for Apache (mod_dav_svn). Together with the mod_auth_mysql module, this allows for the use of the accounts in the Drupal table for Subversion authentication. To get this working, I used the following code in the Apache configuration file where the Subversion authentication rules are specified:


AuthType Basic
AuthName "Repository Name"
AuthMySQLEnable On
AuthMySQLAuthoritative On

#MySQL DB
AuthMySQLHost localhost
AuthMySQLDB ********
AuthMySQLUser ********
AuthMySQLPassword ********

#User Tables
AuthMySQLUserTable "users, users_roles"
AuthMySQLNameField users.name
AuthMySQLPasswordField users.pass
AuthMySQLPwEncryption md5

#Group Tables
AuthMySQLGroupTable "users, role, users_roles"
AuthMySQLGroupField role.rid

#WHERE Clauses
AuthMySQLUserCondition "users.status = 1 AND users.uid = users_roles.uid AND users_roles.rid IN (5, 6)"
AuthMySQLGroupCondition "users_roles.uid = users.uid AND users_roles.rid = role.rid"

#read access

Exporting items

Export links are provided for each Biblio entry as well as a link to export at the top of the page to export the entire result set.

The links to each export type can be toggled on or off by going to the admin/settings/biblio page and opening the "Links" section. Additionally, on the "admin/users/permissions" page, there is a permission call "show export links" in the biblio section which turns on or off all the export links for any given role.

Pages

Subscribe with RSS Subscribe to RSS - Site administrators