I have the need to create a torrent section in my forums, but in order to do this I need to be able to include a bit torrent cck field(as per the module) and probably an image field as well. I would also like the topic list displayed somewhat differently than the typical discussion forums.

As it is now, it seems that there is only 1 possible content type for topics and 1 possible view. Would you consider making it possible to have multiple forum topic content types and assign them to specific containers or forums and also allow a different view to act as the list of topics per container/forum?

Maybe this can be best achieved by adding an option in the managing containers/forums found at "/admin/content/forum/edit/container/id" to select the content type to be used as the topic node and the view to display the topic list?

What do you think?

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

mitylite’s picture

Ok, so I found that you can assign forum taxonomy to other content types and advanced forum automatically creates a button for that and then I can just use use css to hide the create topic button in the torrent forum, but that still leaves the question of how to utilize a different view to display torrent topics.

Michelle’s picture

Status: Active » Fixed

If you want a view similar to the topic list in AF, you can just clone it and filter it on content type. If you need more help, this is a better question for the forums. Views support is out of scope for this queue.

Michelle

mitylite’s picture

The question is not so much about creating the view, it's about how to have the customized view used instead of the default forum list view when browsing forums in that particular container.

The post list view is being grabbed by your module, not put there using views settings, right?

Michelle’s picture

The post list is a view. It would be easier if you change the existing view rather than replace it. If you really want to replace it, you'll need to dig into the preprocesses and change the view name in all of those.

Michelle

mitylite’s picture

Actually what i would like to do is use both. The original for discussion forums, and one which provides an image preview for torrent forums.

I guess I've wandered into the realm of custom module?

Michelle’s picture

Yeah, and it's been so long since I've looked at that I don't remember enough to guide you off the top of my head. Your best bet is to trace through how AF does it and see if there's a place you can hook into the preprocess and change it to the view you need conditionally.

Michelle

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

thomas1977’s picture

Think I'll try to revive this thread. I've tried very hard to succesfully assign 2 content types to the (advanced) forum by ticking the two content types in question in the forums vocabulary. As expected, when browsing the forum I'm given the option to use both content types to post new topics. That's great. However, only when using the content type that was originally assigned as forum content type, the post shows up inside the forum. In the attached illustration of the problem you can see how the forum topic count shows 3, but only one post is actually available when I click onto that forum - namely the one that was made using the original forum content type. Any solutions or suggestions?

Best,
Thomas

mitylite’s picture

I had somebody poke around and do something like this for me. It's a bit makeshift but I guess I can email you the module, because I would love to see this officially in advanced forum.

I can send it by email if you like.

Michelle’s picture

You can attach it here if you like. I do plan on eventually making it possible to allow specific node types per forum as that would let you allow polls in one forum and not in another, for example. It's not likely that I'll get to it any time soon so better to have it on the issue than in email.

Michelle

mitylite’s picture

FileSize
3.96 KB

Ok, here's the module. It has served my purposes, so hopefully elements of it can improve AV officially.

Michelle’s picture

Status: Closed (fixed) » Postponed

Setting this postponed... I don't want it active because I don't plan on looking at it any time soon but leaving it closed will take it totally out of the to do list.

Michelle

thomas1977’s picture

Thanks for looking into this issue / feature development. Looking forward to seeing the solution being implemented :-)

end user’s picture

I just realised that I'm needing a second content type for my Photo Show Off forums that has a cck image upload field only for those forums and not the rest of the forum.

dre788’s picture

I wanted to say thank you mitylite, your module was exactly what I was looking for. With the exception of having to adjust the code a bit, I manage to get what I needed. The "none" option for the content type was giving me a error so I removed:

$output .= drupal_get_form($new_node['type'] . '_node_form', $new_node);

So the content type would not appear with my custom views. I'm not sure how stable an action this is but it seems ok so far.

Cheers!

Michelle’s picture

Status: Postponed » Needs review

Un postponing things so I can get a clearer picture of what still needs doing.

Michelle

mcdruid’s picture

Status: Needs review » Closed (won't fix)

Sorry if anybody is still interested in this - Advanced Forum 6.x-2.x is in feature freeze.

However, I have verified that it if you associate more than one content type with the forum taxonomy vocab, topics of all the different content types show up in the topic list view.