Drupal

Drupal

Advanced Forum road map

Posted by Michelle on Tue, 05/06/2008 - 22:27 in

Despite the fact that Advanced Forum for D5 is alpha and the D6 version has a warning not to use it, there seems to be an awful lot of people using this module. While I've had a "to do" post up on the DruBB group for some time, I haven't written out my "plan of attack". So I decided to write up a roadmap so people can have an idea of where I'm headed. Some of this is straight copied from my post on the drubb group and some is new. Hopefully it will be helpful to people using the module. I'm going to enable comments for the moment but please do not use this for posting support/feature requests. Use the issue queue.

This is the plan:

  1. Fix the known D5 bugs and do another alpha.
  2. Fix the known D6 bugs and do a first alpha.
  3. Do the code clean up section to make it easier for others to help.
  4. Do the "Improving what's there" section.
  5. Adding the new features in whatever order strikes my fancy. (Hey, life can't be totally planned. ;)
  6. More alphas will come out as needed. I try to keep them coming on a regular basis to discourage people from using the devs as my dev versions tend to be broken.
  7. Once I've added all the features that I plan to put in 1.x, I will make betas.
  8. Much testing will ensue. Simpletest, maybe? I haven't looked into that whole testing business, yet.
  9. RCs until it's all peachy.
  10. Official 1.x release. Yay!
  11. 2.x branch will start to keep up with core forum changes. Exactly when this will happen and what shape this will take is still up in the air. See the discussion.

Converting from nodeprofile to bio

Posted by Michelle on Tue, 04/01/2008 - 21:47 in

I decided to convert CRO from nodeprofile to bio. Nodeprofile is nice for really complex profiles with multiple nodes but I didn't need anything that fancy. More important to me was the ability to put individual fields on the registration page.

Managing your views in code

Posted by Michelle on Tue, 03/25/2008 - 14:26 in

Note: This is for Drupal 5.x and views 1.6.

Panels 2 comes with a nifty exporter that will dump all your panels related stuff (pages, views panes, mini panels, etc) into one export file set up to work as a module. It's a really useful feature for moving them from site to site or simply keeping them in code for outside the database backups.

Views 1, being a much older module, doesn't have quite as nice of an exporter. It does allow you to export your views one at a time but using that export in a module takes a bit more work. This article will show you one way of doing it. There are other ways, such as putting all the views in one file, but I find this method easier to maintain.

Converting from user profiles tutorial to advanced profile

Posted by Michelle on Thu, 02/21/2008 - 11:13 in

I've started converting Coulee Region ONLINE, which was the basis of the user profile tutorials, to using advanced profile. So I have some preliminary docs for converting from the tutorial:

  1. Take your site offline as this will make a temporary mess
  2. Disable nodeprofile bonus (this won't be needed anymore so can be deleted as well if you want)

hook_theme_registry_alter for advanced template control

Posted by Michelle on Sun, 02/17/2008 - 15:00 in

I'm in the process of porting Advanced Forum to Drupal 6.x and am trying to take advantage of the new theme system. One of the things I wanted to do was get rid of the requirement to copy the forum theme to the site theme directory. My goal was to make it so the whole thing could be run right out of the module directory but allow any template copied to the user's theme to override what's in the module. merlinofchaos helped me quite a bit and told me about hook_theme_registry_alter(), which isn't documented much yet. I decided to write up what I learned today in this article. Keep in mind that this is written by someone who has only really dug into the new theme system in the last few days, but merlinofchaos gave it a look over and he thought it looked ok. If you have comments on the article, I'd like to hear from you, but please no support questions. I barely understand this myself. ;)

---

The theme system in D6 does an excellent job of handling template files which will work well for most people. If you need very specific control over the theme registry, however, there is hook_theme_registry_alter(). This hook lets you get in and modify the registry directly. It has a paramater, $theme_registry, which holds the whole registry. To see what's in it, you can use something like this:

<?php
MODULENAME_theme_registry_alter
($theme_registry) {
 
// Assuming you have the devel module installed
 
dsm($theme_registry);
}
?>

This will give you a nicely formatted listing of the entire array to check out. By modifying this array, you can affect how template files are handled.

Syndicate content