Advanced Forum Alpha 12

Advanced Forum Alpha 12

Posted 10/02/2008 - 13:28 by Michelle

Advanced Forum Alpha 12 has been released. I jumped ahead the D6 numbering so I'm using one number on both branches. Not only is it easier for me to refer to one number but it makes more sense as the module is at the same point in development on both branches and is being developed in parallel.

The theme changes in this version are huge. First off, in the D6 version, there is an entirely new way of handling "forum themes" which we now refer to as "styles" to avoid confusion with "site themes" (Thanks to merlinofchaos and sdboyer). The default styles live in the styles directory. Existing styles can be overridden by copying files to your theme. Completely new styles can be created by adding a hook to your site module. The advantage in creating a new style is that it lies outside the theme system and can be used by any theme on your site. Because of limitations in the D5 theme system, the D5 version still uses the old method of copying a style to your site's theme.

Along with the new system comes new styles. Stephanie Pakrul (aka stephthegeek), maker of professional Drupal themes stepped up to do the new base style, "Naked". We called it Naked because it gives form to your forums without adding styles that that could clash with your theme and need to be unstyled. In addition, she provided a variation called, "Naked Stacked" that places the author information pane on top, which is great for narrow themes. These two styles will provide the foundation for all future Advanced Forum styles, starting with blue_lagoon, which is also included in this alpha. Blue Lagoon, named after the Garland color set that it was designed to match (thanks again, Steph), is a basic blue style that will look good in several existing themes, such as Pixture. It also lists the colors at the top of the .css file for easy search and replace color changes.

The graphics in the old "advforum" theme, aside from the ones provided by yoroy, were a hodgepodge of files gathered from icon sharing sites. While we're still using yoroy's icons, the rest have been replaced by Dave Paris. He's provided two sets: a desaturated, recolorable set that's used in the Naked and Naked Stacked themes and a pretty, blue tinged, set that's used in Blue Lagoon. If you're using Drupal on a non English site, don't worry, there is an option to turn off the buttons with writing on the settings page.

In addition to the style changes, there have been options added to the settings page for easier customization, numerous small tweaks and fixes as well as some code clean up. I did quite a bit of testing to try and avoid releasing this alpha with a glaring bug like the last one. Even so, I'm going to hold off on any big features and focus on small additions and tweaks until this alpha has been in the wild a while. If any major bugs come up, I'll do a new alpha right away. If not, it's onwards towards version 1.

Now that the style system has settled down, I want to give a shout out to you themers out there. The more styles I can ship with Advanced Forum, the less work there is for end users to match the forums to their theme. Also, if you maintain a contributed theme, you can feel safe now including some theming for Advanced Forum. There will be minor changes to styles to add in new features but the really awful throw-your-existing-themes-away kind of changes are behind us.

I hope everyone enjoys this release. As always, if you find bugs or are looking for support, please use the issue queue.

Michelle

Joined: 10/05/2008
User offline. Last seen 5 weeks 6 days ago.
Wow! Gotta learn CSS!

Your new version wiped out the previously nice theme... the forum containers (is that right? I'm still new to Drupal!) should be in a different color - so I have to figure it out. (you can see what I mean at http://www.burningknife.com/forum )

I'm otherwise very happy with your forum - it was really tough deciding against going with proven forums such as vBulletin, or SMF. I think I made the right decision, but what expertise I have is in HTML, not PHP or CSS - so I'm hampered in trying to make it look right.

Thankyou for your efforts, it's certainly appreciated here!

Joined: 05/13/2007
User offline. Last seen 8 hours 20 min ago.
Theme CSS after

Your theme's CSS comes after AF's and some themes override bits of the forum style. There isn't really anything I can do about that. I suggest getting Firebug for Firefox and then you can go in and see where the AF style gets overridden and override it back.

Michelle

Joined: 10/05/2008
User offline. Last seen 5 weeks 6 days ago.
Thankyou for the theming CSS trick!

I didn't know that. I already use Firefox, so I'll go download 'Firebug'. I should have remembered that WhiteJazz by Roople supports Advanced Forum - and certainly is doing some things I no longer want! Thanks!

By the way, I hope you're an affiliate for HotDrupal.com - because if you are, you just earned a commission - I switched my site over based on your blurb... and if anything, you dramatically understate it...

My site is BLAZINGLY fast now... I love it!

Joined: 05/13/2007
User offline. Last seen 8 hours 20 min ago.
No affiliates

He doesn't have an affiliate program. I recommend his hosting because I'm very happy with it. :)

Firebug is an awesome tool. You click "inspect" and then click on the thing that's wrong and then you look at the CSS list. You can see right there when stuff is overridden because it's listed as crossed out.

Unfortunately, any theme that put in CSS to support AF was likely burned by the latest alpha. :( There were massive changes. The results are well worth it but I'm sure it was a painful upgrade for some.

Michelle

Joined: 10/05/2008
User offline. Last seen 5 weeks 6 days ago.
Firebug is a Wonderful Tool!

I'm quite competent at HTML, having hardcoded entire sites... but PHP and CSS are new languages to me.

But with your suggested tool, Firebug; I was able to pinpoint the offending CSS, and make my forum look a tad better. (The td.container, rather than a different color, was the same as the light grey - now I can see the light blue!) Hopefully, Roople will play catchup to all your new changes... I'm not even sure what the 'Blue Lagoon' theme is supposed to look like - since my Roople theme is jumping in on top of your coding...

But I'm quite happy now. Particularly with my newfound speed - you can bet I'll be telling everyone about HotDrupal.com!

Joined: 05/13/2007
User offline. Last seen 8 hours 20 min ago.
Yay!

If you want to see what blue_lagoon is _supposed_ to look like, have a look at it with default Garland. That's what I developed it on.

Michelle

wsmith (not verified)
theming the forum post page

Admittedly, I am a newbie when it comes to drupal.

I have a site that has a few pages that are themed differently from the rest -- they are associated with a forum topic.

Advanced forum topic views work great in most instances, except when a user goes to post an entry. then the theme reverts to the default page.tpl.php template instead of the custom theme.

Does anyone else encounter this? what is the best advice you have?

thanks,

ward

Post new comment
The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd><blockquote>
  • Lines and paragraphs break automatically.
  • You may post code using <code>...</code> (generic) or <?php ... ?> (highlighted PHP) tags.

More information about formatting options