| Project: | Advanced Forum |
| Version: | 6.x-2.x-dev |
| Component: | Miscellaneous |
| Category: | task |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | needs review |
Issue Summary
In order to keep things sane, AF limits how deep of a hierarchy is shown on the first page. You can have a much deeper hierarchy and drill down into it but not everything will be visible at /forum. This makes showing the (new) post count trickier.
For example:

- Earth is a forum that is in a container not shown here.
- Container in Earth is a container inside of the Earth forum. It, in turn, contains a forum that is not shown here.
- London, Cardiff, and U.N.I.T. Headquarters are all forums inside of Earth.
- Cardiff contains two forums that are not shown here.
The main table columns that show Topics / Posts are only showing for Earth, not anything in any contained forum. This is different from many stand alone forum apps and is intentional. I always hated that you couldn't see what was actually in the main forum because all its children were added to it. To compensate, I put the (new) post count after each visible child so you can see what's in the children.
This seemed to be working pretty well, but tonight I discovered two problems.
1) Subsubcontainers will always have (0) because containers can't contain topics and the topics in child forums aren't added to its post count because of that intentional decision in the paragraph above.
2) Subsubforums aren't visible at all on the main page, intentionally, but are also not included in the post count. This means there is no indication if there are new posts inside, other than the icon changing.
There are a couple of ways I can think of to handle this.
1) Emulate other forum software and add the full child count to the parents even though it bugs me. My own personal forum doesn't have containers so it's not an issue on my site and I can deal with it being that way in the module if that's what people want. This would solve the problem neatly since every post, no matter how deep, would be counted. It's going to annoy anyone who thinks like me, though.
2) Don't worry about post counts of forums not displayed and remove the count off subsubcontainers since it will always be 0. This is my preferred method but I'd like to hear from people with really deep hierarchies and see what they think.
Other options?
Michelle
| Attachment | Size |
|---|---|
| hierarchy-example.png | 9.73 KB |
Comments
#1
Hi Michelle
First of all thanks for a great job doing on AF.
I switched from alpha3 to newest _dev and now I have exactely this issue.
First of all here is my Forum structure:
Container
- Forum
-- SubForum
-- SubForum
etc...
So my Forum contains two levels (deep 2 - Forum and Subforum) (but deep 3 would be neccesary in the future forum, subforum, subsubforum)
I also don't use containers inside the forums because I want to have the post and view count visisble in each forum.
The topics and post count is not visible on first level (/forum) but I need to get this visible.
Using alpha_3 I could solve this as described here: http://drupal.org/node/720118#comment-3303408
But this does not seem to work in new -dev :(
But in my opinion this is an esential feuture.
#2
@Drake: The topics/post count is definitely visible on the 1st level just like it always was. What's new is it is now visible on the 2nd level as well, which it never was before. The question here is what to do about posts in forums at the 3rd level or below.
Michelle
#3
hmm... so the topic, post count and also the post creator should be visible now on 1st level (/forum) even if the forum contains subforums?
in my case this is not visible on main forum page but only in subforum :(
I tested all Advanced forum styls and nothng :(
I attached the screenshot...
I use forum access too... do you think this could have a influence on this?
#4
Yes, any post in forum1, forum2, forum3, and forum4 should show up on the main page. Your example doesn't have any subforums. If it did, the subforum posts would show up like subforum1 (42). it's when you get past this level that there's a problem because they aren't shown on the front page at all so there is no indication that they exist.
Michelle
#5
Hi michelle
The Forum 1, 2, 3 and 4 contains own subforums.
But I've hidden the list of subforums using css because I don't want to have a list of subforums on the main forum page. But the subforums are definitly there ;)
So forum strukture looks like this:
- Container
--Forum
---Subforum <-- Postings here in Subforum
Her is the question; should be topic and post count visible on main forum page in the Post and Topic column even if the subforums are defined?
If I move up the Subforum then the topic and post count is visible.
#6
No, if you've hidden the subforum list, you're not going to see posts in the subforums because you've hidden them.
Michelle
#7
Well, so will this be fixed in next time?
I mean would it be possible to have the post and topic count and also the post creator on the forum main page even if the subforum are not listed? or is this not possible due to the AF designe?
#8
It isn't a matter of fixing; it isn't broken. If you choose to hide the information that AF provides, that doesn't make AF broken. This is a architectural discussion about how best to present the information given the wide variety of possible configurations that Drupal allows.
Michelle
#9
Maybe "fixing" was a wrong term which i used... I mean will this feuture be added to the AF?
#10
This isn't a feature request; this is a discussion. No decisions have been made, yet.
Michelle
#11
I think it should be added becasue main forum page looks very complex and overloaded if someone has a lot of subforums (>10) and want to have a post and topic count visible on the main forum page.
I think such option should be available; of course everyone can make a own decission how the single forums should appear on the main page.
Greets
Drake
#12
If you don't display the subforum, where are the post counts supposed to go? Having a list of post counts with no forum names by them doesn't give you any useful information. Adding the post counts to the parent is inaccurate, though stand alone software I've looked at seems to choose the inaccurate route so I guess it does have the advantage of being a familiar lie.
Michelle
#13
I find this all rather confusing. I prefer forums to be immediately obvious and easy to understand. But maybe that's just me.
Err on the side of simplicity, I'd say -- for what it's worth.
#14
The trouble is that is subjective. Personally, I always found it very confusing when I look at the main forum page and it lists the forum and how many posts are in it and the last post and I click on it only to find that those posts aren't actually in that forum but rather in a subforum. Other people find it confusing to have posts in a subsubsub forum not show up as part of the great-grandparent forum post count.
Michelle
#15
I dont think its confused. Many big forums supports this designe and for most users its a common forum structure.
I don't like to have subforums and postings in one and the same forum. So in such case the post, topic and last post column on the main page will be always empty.
The container does not support the forum icon. So i use the forum as holder for subforums.
Anyway in my opinion this should be available.
#16
Yes, most forum software does this. I'm not arguing with that. I was just trying to come up with a better design for something that I always was bothered by when using other forum software. But it's clear that people want me to copy, not innovate, so I guess I will change it.
Michelle
#17
I completly agree with you Michelle. I mean it's hard to promote own solutions or ideas and to point the users using this...
I like your forum structure idea as well but i think there should be a option which allows to choose between the different forum structures. (becasue of all the forum mainstream)
Do you think you could add this in the next -dev release?
I'm now a little bit confused how to setup my forum...to leave my current forum structure which means that subforums would be hidden on main forum page and to wait for this feuture or to make subforums visible on main forum page and to change the subforum holder from forum to container.
What do you recommend?
#18
I was just looking at this on my own installation and thinking it was a bug.
It seems natural to me that you should see the total posts for the subcontainers. Sometimes innovation isn't necessary; things are the way they are because it works.
I think the best option would be to add the functionality and allow the user to select which way they wish to do it, or provide the variables and info so that someone writing a theme for AF2 can choose to implement it that way.
I have a simple message board on a personal Drupal site using Advanced Forum 1.2, and now I'm having to implement a more complex one for the Drupal website we have at work. I was originally going to set up phpBB since I've had experience with that for years, but I wanted everything properly integrated with Drupal so I decided to go with the Drupal Forums / Advanced Forums solution.
I've run the current setup passed some of the users and they find it confusing since they are expecting to see it look more like AF1.2 instead of they way it's handled in AF2.
#19
It's not a bug; it's an intentional design decision based on something I wanted to change in forum software for the last decade because I found it very annoying. But I'm clearly in the minority. Since I don't use subforums on my own site, anyway, I don't care enough to argue the point. I'll change it to be annoying like other forum software.
The post count variables are already in the theme. You just need to add them the child count to the post count. What's not available is the last post information from subforums which, frankly, looks like it's going to be a pain to do. Don't know when I'll get to that. Patches welcome.
Michelle
#20
I realized it wasn't a bug once I saw this post, and it saved me quite a bit of time.
Since I'm going to have to do this for work, anyway, I'll see if I can hash out something and submit a patch for the last-post info. Hopefully, I'll have something up in a week or so.
#21
Great, thanks! If you can do it and get paid for it, that beats me doing it for free when my own website doesn't even use it. :)
Michelle
#22
Just an update:
I think I've got it all hashed out. I'm finishing up my theme today and then I'll let the users at the office look it over and test it. It doesn't appear to break anything for the existing themes; it just adds more information for those who want their hierarchy to go deeper.
If it looks good I'll clean up the code and upload some patches either later this week or early next.
#23
Great, thanks!
Michelle
#24
Ok, here's my initial patch for this issue. At my job we're wanting to make Advanced Forum 2's forum list look like AF1's, so that's what the new themes I've included focus on. I've called the new themes "traditional", like "Naked Traditional", "Silver Bells Traditional", and "Cloudless Day Traditional".
The modifications to the code and the additional information being passed into the templates should enable a lot more flexibility in designing forum list layouts without having an effect on any of the current themes.
When I was adding child post-counting to containers I made the decision to only increment the container's "child" post properties (child_total_topics, child_new_topics, etc.) since containers don't have posts and topics in and of themselves. For that reason I modified the Naked theme to display the child post information when display a container's post info.
A list of changes is below:
This is also my first patch that is being uploaded using git's format-patch, so I have my fingers crossed that this will work.
#25
Wow, that's quite a bit more than I was expecting! I wanted to reply to acknowledge this but it may be a week or two before I can give this a good look.
Thanks,
Michelle
#26
Hi
Thanks for this patch. I tried to apply the patch to the AF using the NetBeans IDE tool but something goes wrong here...
I don't get any additional styles (naked_traditional, silver_bells_traditional, etc..)
Could somone post already patched AF module as a zip package or similar?
Would be really appreciated.
Thanks
#27
I haven't tried applying it with NetBeans (I use NetBeans for Drupal developement, too). I think that NB just uses standard diff/patch, and the patch I uploaded was a Git formatted patch (trying to follow the new instructions on uploading patches to Drupal).
You could try installing the Git plugin for NB and see if that allows you to use Git's patching functions inside NB.
If that doesn't work I can upload a straight diff for the changed files and a tar of the new ones when I get a chance.
#28
ok thanks.. i will try to do that but if you can please upload a straight diff for the changed files and a tar of the new ones
Greetings and thanks a lot!!!
#29
Unfortunately, patching the AF didn't work :(
I'm desperate...
#30
Drake, I've tar'ed the new files up along with a standard diff of the patches. When you extract the file below it will create a directory called "patches".
Make sure you clear all of your caches, including your theme registry cache and it should work.
#31
Hi
Thanks for the assistance. I was able to patch this AF but now I've got some issues.
My forum structure:
Container
- Forum1
-- SubForum1
-- SubForum2
-- etc...
- Forum2
-- SubForum3
-- SubForum4
Before patch only Forums were visible on the main forum page /forum
Now all Forums and Subforums are listed on first page /forum
#32
Was able to solve this by deleting this
<?php if (is_array($item->children)) {
$zebra = 'even';
foreach ($item->children as $child_index => $child) {
$zebra = $zebra == 'odd' ? 'even' : 'odd';
$child->zebra = $zebra;
_advanced_forum_naked_traditional_render_item($child);
}
from advanced_forum.naked_traditional.forum-list.tpl.php
Thanks for making this great patch!
#33
Has this patch been applied to the newest dev release? Or do i have to patch the newest dev once again?