Providing Semantic Standards Compliant Content

Out of the box, WordPress gives you a semantic, standards-compliant web site. The search engines love this because it makes their job easier. When search engines send their spiders and crawlers out into the Internet, they often encounter barriers to navigating a site JavaScript links, Flash content, and so on. WordPress blogs don't have these barriers to navigation. Furthermore, when the search engines analyze the content of the pages they have gathered to identify the keywords and the keyword...

Sharing a Database Among Multiple Sites

Drupal makes great efforts to allow you to run multiple sites from the same installation. Because each installation requires its own database, the number of sites you can run on some hosting plans would be limited by the number of databases the web hosting service allows you to make. Some hosting plans allow for only one database. How can people in this situation take advantage of Drupal's multisite configuration features Fortunately, there is a relatively simple solution. Through the use of...

Installing the Flexinode Module

Follow these steps to install the Flexinode module 1. Download the latest version of Flexinode from 2. Place the entire flexinode folder in the modules directory. 3. Load the database definition from the file appropriate to your database, either flexinode.mysql or flexinode.pgsql. 4. Move all of the files in flexinode contrib into the flexinode directory. 5. Delete the empty flexinode contrib directory. 6. After making a backup of your database, import the database definitions (flexinode.mysql)...

File System Settings

Drupal offers two types of file downloading methods Public downloading This means that the job of serving uploaded files to the browser falls on the underlying web server, which will serve them directly. Web servers are carefully optimized to be able to serve static resources like files in a very efficient way. This will always be the fastest method for offering downloads. The ramification is that the files must reside in a directory that is visible from the Web. Putting files in a Web-visible...

Making File System Backups

The database backup is only half of the backup equation. Without the files stored on the server, your site can never be completely restored after a disaster. The files in question fall into two general categories those used by Drupal to run and present your site, and those uploaded to the site as content. The files in the first category include the scripts that were delivered with the Drupal installation, contributed modules that you may have installed, customized themes, and the configuration...

Backing Up Word Press Tables

Navigate to WordPress's Manage page, where you'll notice a new tab labeled Backup. Select this tab, and you'll be presented with a page like the one shown in Figure 18-1. Figure 18-1. The standard WP DB-Backup page Figure 18-1. The standard WP DB-Backup page WP-DB Backup lists all the tables it can find in the database. Here, you can see it lists both the WordPress tables and the phpBB tables that happened to be installed in the same database. The plug-in automatically selects all the standard...

Banning Abusive Users

One of the most useful features of the Statistics module is that it allows you to identify visitors who are abusing your site. Usually, these are not human visitors, but rather search engine crawlers that are malfunctioning or machines automatically accessing your site in an abusive manner. Once you identify a user, usually represented by an IP address, that is abusing your site, you can ban access from that particular abuser. This is a fantastic tool if your site is buckling under an...

Maintaining Your Blog

You need to do some regular housekeeping if you are to maintain a working, active community web site. Some of those housekeeping tasks are standard things you should do for any kind of web site making backups, checking your links, and so on. Some things are WordPress-specific, and some of them are specific to maintaining your readers' interest. None of these maintenance tasks are particularly daunting, and most of them should occupy no more than a few hours a week. Your biggest maintenance time...

Spam Module

Recent years have seen an explosion in web site spam. Spam is any content posted to a web site that is unwanted or has an ulterior motive other than being part of the online community. The most common ulterior motive is getting links to third-party web sites published, in pursuit of the higher search engine rankings that come with the elevated page rank that their web sites enjoy when links from external sites point to them. Some people are willing to do almost anything to get a link to their...

Contributing to Your Sites Search Engine Ranking

The things you can do to help your search engine rankings are all about the content. The best and most important advice I can give you is to write well. By sticking to your subject and writing relatively short or medium-length articles that stay on topic, written in the language the community uses, you will not only keep your readers interested, but you also will gain ranking for the very keywords your readers will use in their searches. Still you should bear in mind what measures are important...

Modifying Menus

After activating the Menu module, you can access the menu administration page (admin menu). On this page, you will see a table representing the navigation menu, which is the same navigation menu that you are accustomed to dealing with so far. All of the individual items and subitems are listed in the table as rows. Figure 3-5 shows the navigation menu in its initial state, before undertaking any changes. Figure 3-5. The initial navigation menu Figure 3-5. The initial navigation menu Not all of...

Setting File Upload Options

The next set of options you will want to tweak are those involving adding images and other media to your blog. Click the Miscellaneous tab under Options to get to these options, as shown in Figure 14-13. Figure 14-13. Miscellaneous Options page Figure 14-13. Miscellaneous Options page If you want to be able to add images and other media to your blog posts, you need to enable file uploads. WordPress usually guesses the Destination directory setting correctly. This is the full path to the...

PhpBBs Security Features

Security on your message board should be paramount. phpBB provides many features to assist you in tightening your community's security to keep miscreants out. In Chapter 10, I will go into further detail on how to secure phpBB. For now, I'll give you a brief introduction to phpBB's security features, which include the following Visual confirmation phpBB's later releases come bundled with a visual confirmation system, which aids as a deterrent against automated registration bots that use your...

Installing and Activating the PlugIn

Point your web browser at wp-db-backup and download the WP-DB Backup plug-in from Skippy.net. At the time of writing, it's currently at version 1.7 and mature in development. Unpack the zipped file to your local drive. It contains four files. Depending on your primary language, you'll probably be interested in only two of them wp-db-backup.php and wp-dp-backup.txt. The former is the plug-in, and the latter contains the documentation for the plug-in. The other two files are for language...

Configuring File Uploads

Some of the configuration for the Upload module has already been covered in Chapter 2, in the section on general settings. In particular, the Upload module requires values for the File System Path setting on the general settings page (admin settings). You can also specify a temporary directory where files will be saved first while Drupal is processing your upload. The maximum size of the files that you will be able to upload is controlled by the PHP settings post_max_size and...

Tip The TinyMCE module httpdrupalorgprojecttinymce allows Wysiwyg Html editing and integrates nicely with the Image

The final field on the HTML filter's configuration page is Spam Link Deterrent. In early 2005, Google announced that it would no longer award any page rank credit to sites based on links with the rel nofollow attribute in them. This was done in response to the increasing phenomenon of spammers posting comments on blogs with links to their own sites just to increase their page ranking with Google and other search engines. Drupal quickly responded, and by checking the Spam Link Deterrent option,...

Word Press Releases

The first non-beta release of WordPress was 0.7 in May 2003. This version was essentially an update to b2 version 0.6, but it already included semantically correct, validating default templates a built-in link manager a new administration interface and other features. Release 0.71 followed in June and added a 300 speed increase (honest ), draft and private posts, comment status, Outline Processor Markup Language (OPML) import of blogrolls, and many more improvements. The WordPress developer...

Visiting Other Points of Interest

The following are some other features of interest to end users FAQs phpBB offers an extensive list of frequently asked questions (FAQs) about the software built in with each installation. The link is available in the header of each page on the board, and provides a quick online reference guide to some of phpBB's features. As a phpBB administrator, you should be familiar with the contents of the FAQs and be ready to direct your users there, as it is a valuable resource. Member lists The...

Path Module

We live in the time of search engines, and optimizing your site to work well with the crawling and indexing programs that are used to build search engines is vital. Your site's ranking in the results of search engines such as Google or Yahoo will greatly influence how many visitors it gets. One very important factor in facilitating this is the nature of the URLs that are used by your site to link to all of the content. If the URLs are meaningful and contain keywords pertinent to the content...

Monitoring Your Storage Space

The storage space used by your files is usually more than adequate in current hosting packages, unless you have an exceptionally large number of images or files. Many hosting companies' cheapest packages allow from 500MB of storage to as much as 4GB. Some offer considerably less. I would steer clear of those. As a rough guide to how much space you might need, WordPress itself, including the built-in themes and perhaps a couple more themes, is unlikely to be more than 2MB. But if you have a lot...

Setting File Permissions

Before you put away the FTP program, you need to check your permissions on certain files and directories. By default, files you upload to your server and directories you create on it are owned by you, or rather your account on the server. This is correct and as you might expect. However, the web server, Apache, usually runs as a different user, often apache, httpd, or nobody. This means that software running under Apache in this case, WordPress doesn't normally have permissions to modify or...

Seeking New Readers

Submit your site to related directories and special-interest sites. Politely invite people to your site. Don't spam those other sites show respect for their owners, who are likely trying to build their own readership. Always consider reciprocal links to sites that contain links to your site. Keep abreast of new sites in your subject area. If new ones appear, visit them regularly to see if they offer potential to gain you new visitors. Comment on their stories, and post your own stories about...

Subscribe to Comments

For a scenario of a reader who is solely interested in your article and the discussion stemming from it, an extension can help to keep that reader involved. An appropriate plug-in is one named Subscribe to Comments, created by Mark Jaquith, originally by Jennifer at ScriptyGoddess You can download this plug-in from The Subscribe to Comments plug-in allows your readers to subscribe to the comments of a post. This will appeal to those readers who enjoy the conversation aspect of your blog and...

Configuring Blogs

To get started with the Blog module, you need to assign the Edit Own Blog permission to the user roles that should be able to maintain individual blogs. Users with the proper permissions can then create new blog entries using the create content > personal blog entry link. As with all other Drupal content, you can categorize blogs (with the Taxonomy module). Additionally, blogs can have file uploads (thanks to the Upload module), store revision history, be promoted to the front page, and have...

Conducting Special Searches

PhpBB's search engine is also equipped with three types of predefined special searches. Any users guests or registered are able to find posts that have yet to receive a reply by clicking the View unanswered posts link in the top-right portion of the page, just above the forum and category listing. Registered users can perform two additional searches A search for all new posts since the user's last visit (very useful for catching up with recent activity, especially after a long layoff from the...

Aggregator Module

RSS has been a revolutionary force in finding and distributing content on the Web. The ability of a site or program to query other sites about what content is available has led to the advent of aggregator sites such as Weblogs (http weblogs.com ), Feedster (http feedster.com ), Bloglines (http www.bloglines.com ), and Technorati (http www.technorati.com ). These sites regularly access RSS feeds from around the Web and catalog the results. RSS also allows visitors to your site to subscribe to...

Validating New User Accounts

The General Configuration section of the Administration panel contains an option to enable new account activation. You can disable the feature, which I discourage you from doing, as it opens you up to a myriad of unwanted registrations. Rather, my recommendation is to enable either user validation, which requires users to provide a valid e-mail address to activate their account, or enable administrator validation, which notifies the forum administrators that a new account is created and needs...

Creating Groups

Groups are another content type, just like blogs, pages, and stories. To create a group, you use the group link on the Create content page (node add). In this case, the group node that you create serves as a container for all of the other content and activities of your group. You have the same general services that Drupal provides for other types of nodes, such as the ability to be categorized with the taxonomy system. Note that you must have the Create Groups permission to create a group. When...

Checking Your Links

Another regular routine task you should undertake is to check the links on your site. Nothing is quite so frustrating to a user than to click a link referenced in a blog post, only to find the page has disappeared. Inevitably, people do move their web sites to new URLs, or they rearrange their site so that old links to pages no longer work. Sometimes, they abandon their sites altogether. You cannot control what other people do with the pages you link to, but you can at least make sure your...

Improving Your Sites Search Engine Visibility

An important way to get more visitors to your site and help build your community is to have good search engine visibility. WordPress is great for natural search engine visibility, and by that I mean the real search results that appear below and to the left of the paid-for-inclusion ads in Google and other popular search engines. Getting search engine optimization for free right out of the box is a great bonus when you're trying to build an online community. Getting good search engine ranking...

Choosing Avatar Options

PhpBB offers many options for displaying avatars, as Figure 9-9 illustrates. You can permit users to upload avatars to the server from their hard drives or another web site, or link to avatar images on remote sites. Alternatively, you can provide a gallery of avatars for your users to peruse and select from. You can pick and choose which options you wish to enable by using the Configuration panel in the Administration panel, under the heading Avatar Settings. Permitting users to upload their...

Creating the files Directory

Drupal needs a place to store uploaded files. These files range from user pictures, to files attached to postings, to images and music files. These are all typically stored in a folder in the root Drupal installation called files and a subdirectory therein called pictures. If these directories don't exist, Drupal will create them for you. If you are installing Drupal on Windows, all is fine, and you can skip this section. If you are installing Drupal on a flavor of *nix (a UNIX or Linux...

Obtaining Drupal

You can download the latest Drupal releases from http drupal.org project. Place the files in the download package somewhere in the document root of the web server. They can be either at the top level or in a subdirectory. If you are running other web applications on the same server in the same document root, putting Drupal in a subdirectory is the better choice. For GNU Linux users, the quickest way to get Drupal onto your server is to open a shell and use the wget tool to download the Drupal...

Installing and Activating the RSS Link List PlugIn

Download the plug-in from the author's site at It comes as a zip file. Extract it onto your local hard drive. Upload the file lastRSS.php to the wpcontent folder, and the file rssLinkList.php to the wpcontent plugins folder. Bill also recommends creating a new folder to allow the plug-in to cache the external RSS content. Create the folder wpcontent rssCache and set the permissions so that the web server process can create and write to files in that folder. The permissions need to be the same...

Scheduling Automated Tasks

A number of Drupal features and maintenance tasks are designed to be done at regular intervals on an ongoing basis. These are tasks that need to be executed periodically and include updating the search index, updating aggregator feeds, closing polls, and discarding old logging information. As you can see, these are important and vital functions for most Drupal web sites. Drupal is programmed in PHI, and PHP running on a web server like Apache offers no solution to the problem of scheduling...

Performing the Initial Tests

New to the phpBB 3.0 installer is a set of initial tests that run on your server to verify that you have the proper PHP version and a compatible database server available, as shown in Figure 8-15. It also checks to see which modules are available to phpBB for use in its various features, and it tells you which features are affected. Figure 8-15. phpBB 3's new installation routine checks to make sure you have all the requisite software. Figure 8-15. phpBB 3's new installation routine checks to...

Setting Up the Database

Drupal does not create the database for you. For this, you will need to become familiar with the tools provided by the database management system that you have chosen to use. For MySQL, the PHP-based web application phpMyAdmin is popular. For PostgreSQL, phpPgAdmin is a common choice. Both are often included as standard fare by web hosting companies selling hosting packages. Note All of the examples for working with the database server in this chapter are MySQL-specific. No matter which...

Database Administration Module Permissions

To quote from the module's documentation If a user is granted (or manages to acquire) 'dba administer database' permissions, they are able to directly alter the database. At minimum, they are able to modify data, and possibly to drop tables. Depending on how you have defined your database permissions, the user may also be able to modify other databases unrelated to your Drupal installation. Use at your own risk Clearly, the Dba Administer Database permission is not to be granted lightly. The...

Using Desktop Link Checking Tools

An alternative to online link checking services is desktop link checking tools. One such tool I came across is an extension for the Firefox web browser. If you are using this browser, you can install the LinkChecker extension by Kevin A. Freitas. This extension allows you to check the links on any page you are viewing. After you install the extension into Firefox from Kevin's site, you will have a new command in the Tools menu Check Page Links, as shown in Figure 18-12. Click this command, and...

Pingbacks Track Backs and Comments

The first setting on the Discussion Options page, Attempt to notify any Weblogs linked to from the article (slows down posting), specifies that when you post a story that contains links, WordPress will attempt to send a Pingback message to each of those links. It uses a little discrimination in that it pings only links it thinks are permalinks. Links that are only to domains (such as http www.google.com or http amazon.co.uk) are not pinged. The reasoning is that it only makes sense to Pingback...

Menu Module

One of the most important aspects of any web site is its navigation menus. Furthermore, one of the first questions many people have about using Drupal is, How do I make my own navigation menu The Menu module is the tool that allows you to customize and create navigation menus. Drupal comes with a default navigation menu that serves as the main control panel for your Drupal site. By now, you are probably very familiar with this menu and its create content, my account, and administer links. The...

Spam Module Permissions

The permissions structure of the Spam module is designed to let you divide your users into roughly three groups those who can decide what content is or is not spam, those who are trustworthy and never create spam, and everyone else who cannot be trusted. The Access Spam Rating and Administer Spam Rating permissions can be given to user roles who will help train the filter and identify spam. When looking at content, they will be able to mark it either as spam or not spam, thus assigning a new...

Exercise Identify Themable Functions

The goal of this exercise is to modify the function responsible for calling themable functions in such a way that allows you to see in the HTML output which function was called. To do this, you will wrap the output from each call to a themable function in HTML comments like this < -- BEGIN theme_foo --> result of the themable function < -- END theme_foo --> This way, you can look at the source code of a generated page and know exactly which themable function to override in order to...

Changing the Front Page

Now let's look at the site's front page again. Click the Drupal icon or the Home link to return to the front page. Instead of the default message introducing you to your new site, you see a view of the story you just created. If you entered longer text for the body of the story, it will have been shortened on the front page. The shortened view of a post in Drupal is called a teaser. The front page is a listing of recent content that has been added to your site. If you add several more stories...

Content Type Creation

To create a flexinode type, choose administer > content > content types > add content type (admin node types add_type). The content type name and description that you choose for your new type are analogous to the names and descriptions you can see for existing node types when you click create content (node add). The help text will appear at the top of the form when you or other web users create new instances of the custom node. Use this field to give any special instructions that might be...

Filtering Content

A key aspect of all Drupal sites is that they gather text-based input from users and display it in web pages. Whenever user-provided text is included in an HTML document, there is risk that the text might interfere with the HTML in some way, or even worse, allow attackers to damage a site or render it useless. This could happen in many ways, from malformed or inappropriate HTML tags breaking the carefully designed layout of a site to a single line of JavaScript code that redirects the page to a...

Setting Forum Permissions

After filling in the settings and continuing, phpBB will tell you it created the forum, and it gives you a link to start filling in permissions another nice touch (before, you had to remember to set permissions). Permissions in phpBB 3.0 are vastly expanded over version 2.0, with the introduction of access control lists (ACLs). The new ACLs work with both individual users and user groups, as shown in Figure 8-27. You can add groups or users to the list and apply permissions to each object....

Tip The Glossary module httpdrupalorgprojectglossary builds a categorybased glossary on your web site to help visitors

Free tagging Sites like del.icio.us (http del.icio.us ) and Flickr (http www.flickr.com ) have championed the use of free tagging for categorizing content. Instead of the site administrator creating a set of terms and expecting the users to choose one or more of them as they apply, the users themselves can create the terms as a list of words that apply, thus the name free tagging. Drupal offers free tagging as an option as well. By checking the Free Tagging check box on the edit vocabulary...

Adding Contributed Modules

One of Drupal's great strengths is the ease with which new functionality can be added in the form of contributed modules. The clear and well-defined hook system (http drupaldocs.org api head group hooks) allows modules to interact with all of the Drupal subsystems, including the user, menu, taxonomy, filtering, and node-handling systems. As a result, more than 350 modules have been contributed to the Concurrent Versions System (CVS) repository at http drupal.org project Modules. The...

Getting Drupal Support

Documentation isn't worth anything if you don't know where to find it, and sometimes all the documentation in the world isn't as useful as being able to ask someone for advice. Knowing where to look and whom to ask will greatly enhance your success and enjoyment as a Drupal site administrator. Not surprisingly, the main resource for Drupal documentation and help is Drupal.org. Here is a quick tour of the most important resources to be found there. Projects Keeping up with the latest releases...

Identifying Feeds

The process of configuring your site to act as an aggregator of syndicated content starts with finding the URLs of feeds to which you wish to subscribe. Fortunately, for many sites on the Web, this is as easy as locating the RSS link or icon, right-clicking it, and choosing Copy Link Location. For other sites, including most blogs hosted by Blogger (http blogger.com), the feed URL is embedded in the page source header, and no link or icon is provided. Modern browsers such as Firefox recognize...

Formatting Posts Using BBCode

Phpbb Bbcode Buttons

PhpBB provides a potent and safe HTML substitute, known as BBCode, so users can format their text bold, italic, underline, and so on without exposing your board to the possibility of malicious HTML. BBCode is usable in forum posts, private messages, and signatures small lines of text registered users can optionally attach to every post . The BBCode system is incredibly powerful and easily customized via phpBB's template engine, which I will discuss in Chapter 12. Table 9-1 outlines the...

Bayesian Filter

The Bayesian filter learns to detect spam by being shown content that has been identified as spam by the site administrator. The best way to describe this method is to quote Jeremy Andrews, the author of the Spam module. The Bayesian filter does statistical analysis on spam content, learning from spam and non-spam that it sees to determine the likelihood that new content is or is not spam. The filter starts out knowing nothing, and has to be trained every time it makes a mistake. This is done...

Accessing the Drupal Site

To access the Drupal site, open your browser and navigate to the value that you set for the base_url. If you've done everything correctly, you'll see the screen shown in Figure 1-1. Welcome to your new Drupal-powered website. This message will guide you through your first steps with Drupalj and will disappear once you have posted your first piece of content. Welcome to your new Drupal-powered website. This message will guide you through your first steps with Drupalj and will disappear once you...

Organic Groups Module

One of the hallmarks of vibrant online communities is the presence of a common interest or theme that unites those who are involved. Whether this common interest is relatively broad or narrow, there are likely to be smaller but related topics that are of interest only to a subset of the community. For instance, on a music school site, the brass players might want to organize their own rehearsals and brass ensemble concerts. The ability for these people to band together and form a group is the...

Installing the Organic Groups Module

Please take the time to back up your database before installing the Organic Groups module. While this is good advice for every module that has its own database definitions, it is especially important in this case, as the installation of the Organic Groups module will make fundamental changes in the database's data, and that will alter the way the database behaves. Specifically, there is a table, node_access, which controls whether a given user can view a given node. In the absence of a...

Using Image Assist

Now that you've configured the Image Assist module, you can use it to insert in-line images into posts. When you create a new story, blog, page, or similar node type that has one or more text areas for content, you will notice the Image Assist icon directly below the text areas. Click this icon, and the Image Assist pop-up window will appear so make sure your browser allows pop-ups for your site , as shown in Figure 4-6. Figure 4-6. The Image Assist icon and pop-up window Figure 4-6. The Image...

Tip The Tagadelic module httpdrupalorgprojecttagadelic shows free tagging tags in the style made famous by Flickr

Hierarchy If your terms are to appear in a flat list, then the Hierarchy field should be Disabled. If child terms should have only one parent, choose Single. Single represents a one-to-many relationship between a parent and its children. If terms should be able to have multiple parents, choose Multiple. This represents a many-to-many relationship between parents and children child terms can have many parents . Multiple select This allows you to assign more than one term to content. This is...

Exercise Play Block Lottery

Imagine how many visitors your site would get if every time they viewed a page, they had a chance to win the lottery. It doesn't matter which page is viewed if the lucky number is drawn, a winner has been chosen. Here's how to make a random You Win block for your site. 1. Create a new block admin block add named Block Lottery. Use the following message for the body or create your own lt p gt lt strong gt You win lt strong gt lt p gt lt p gt You have won block lottery. Congratulations, and enjoy...

Finding Term IDs

The first thing that you need in order to query the taxonomy category system is the ID number of the term s you are interested in. You'll need to do some sleuthing to find this, but it is not hard to do. Select administer gt categories gt edit terms to go to the edit page of a vocabulary. There you will see a list of terms as well as an Edit link for each one. The Edit link provides the important clue that you are seeking. Hover your cursor over the link, and the URL to the link will appear in...

Before a Comment Appears

The first setting in this section, An administrator must approve the comment, means that an administrator must approve every single comment including TrackBacks and Pingbacks before it is displayed on your site. To that end, all comments are placed in a moderation queue. This is the most effective anti-comment spam measure. Nothing gets past WordPress, because you must approve each comment before it is posted on your site. As you can imagine, enabling comment approval is the most inconvenient...

How Drupal Finds Themes

Whenever you visit the theme administration page admin themes , Drupal looks to see which themes are available and lists them for you. This is a four-step process, which is important to be aware of if you are interested in modifying existing themes or making new themes 1. Drupal looks for pure themes like Chameleon by searching for subdirectories of themes that contain a name .theme file. It expects that the name of the theme will match the directory in which it is found, so chameleon.theme...

Word Press Features

WordPress includes the usual support for blogging, with comments, TrackBacks, and Pingbacks. Here is a summary of its main features It supports multiple authors and registered visitors with the privilege to comment. You can configure different administration rights for each author. It supports a draft mode for your posts, so you can work on them until you are ready to publish. It supports protected posts, where a reader must supply a password to read the post. It supports private posts, visible...

Creating a sites Subdirectory

Your Drupal installation has a folder named sites. The sites folder is where Drupal looks to see what domains and subdomains it is supposed to handle. During installation, I instructed you to use the sites default settings.php file for your site configuration. This is fine, as long as you need to run only one site with your Drupal installation. Now, since you are learning to run multiple sites, you need to create a subdirectory in the sites folder for every site that you wish to run with this...

Poor Mans Cron The Poormanscron Module

For many people, the Poormanscron module is the easiest choice for addressing the cron issue. The module is a snap to install. You just need to move it to the modules directory, activate it, and set some basic configurations, such as how often it should run. When people visit your site, the Poormanscron module triggers the cron tasks, exactly as calling cron.php would do. The main drawback to this approach is that it makes the cron tasks dependent on your site having visitors. This isn't a...

Fantastico and Debian

Two options for completely automated installations of Drupal include Fantastico offered by many web hosts and the Debian operating system. Fantastico is a set of scripts to install web applications such as Drupal on a server, and Debian is a GNU Linux distribution that allows you to install Drupal using the apt-get tool, which installs and updates Debian packages. If you're using one of these tools, make sure to check that they are installing the latest stable version of Drupal, or you risk...

Using phpBBs Template System

When writing hacks for phpBB, interfacing with the template engine is about as inevitable as death and taxes. While this chapter will not specifically detail the creation of templates a Chapter 12 topic , your modifications will need to perform some operations to properly integrate with the templating engine. Therefore, you should have some idea of how the template engine works. When a phpBB page is started, all output is directed to an output buffer, which holds all output until the end of the...

Country Selection

As a convenience, the Location module lets you set a default country for your web site with the Default Country Selection field. This should be the country that generates the largest portion of your traffic. Whichever country you set here will be selected by default in all location forms. If the locations your site tracks are all within one country, you can simplify matters even further by checking Hide Country Selection, which saves your users the step of selecting the country. The default...

Accessing the phpBB Database Abstraction Layer

The database abstraction layer provided by phpBB helps to simplify support for major database systems. PHP has groups of functions, such as mysql_query , that correspond to whichever database type it is accessing. This can prove painful when writing blocks of SQL to support different databases you will not only need to define different SQL which you typically must do in any case , but you will also must implement the query method for each different database system. Undoubtedly, this can prove...